configure 437 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044140451404614047140481404914050140511405214053140541405514056140571405814059140601406114062140631406414065140661406714068140691407014071140721407314074140751407614077140781407914080140811408214083140841408514086140871408814089140901409114092140931409414095140961409714098140991410014101141021410314104141051410614107141081410914110141111411214113141141411514116141171411814119141201412114122141231412414125141261412714128141291413014131141321413314134141351413614137141381413914140141411414214143141441414514146141471414814149141501415114152141531415414155141561415714158141591416014161141621416314164141651416614167141681416914170141711417214173141741417514176141771417814179141801418114182141831418414185141861418714188141891419014191141921419314194141951419614197141981419914200142011420214203142041420514206142071420814209142101421114212142131421414215142161421714218142191422014221142221422314224142251422614227142281422914230142311423214233142341423514236142371423814239142401424114242142431424414245142461424714248142491425014251142521425314254142551425614257142581425914260142611426214263142641426514266142671426814269142701427114272142731427414275142761427714278142791428014281142821428314284142851428614287142881428914290142911429214293142941429514296142971429814299143001430114302143031430414305143061430714308143091431014311143121431314314143151431614317143181431914320143211432214323143241432514326143271432814329143301433114332143331433414335143361433714338143391434014341143421434314344143451434614347143481434914350143511435214353143541435514356143571435814359143601436114362143631436414365143661436714368143691437014371143721437314374143751437614377143781437914380143811438214383143841438514386143871438814389143901439114392143931439414395143961439714398143991440014401144021440314404144051440614407144081440914410144111441214413144141441514416144171441814419144201442114422144231442414425144261442714428144291443014431144321443314434144351443614437144381443914440144411444214443144441444514446144471444814449144501445114452144531445414455144561445714458144591446014461144621446314464144651446614467144681446914470144711447214473144741447514476144771447814479144801448114482144831448414485144861448714488144891449014491144921449314494144951449614497144981449914500145011450214503145041450514506145071450814509145101451114512145131451414515145161451714518145191452014521145221452314524145251452614527145281452914530145311453214533145341453514536145371453814539145401454114542145431454414545145461454714548145491455014551145521455314554145551455614557145581455914560145611456214563145641456514566145671456814569145701457114572145731457414575145761457714578145791458014581145821458314584145851458614587145881458914590145911459214593145941459514596145971459814599146001460114602146031460414605146061460714608146091461014611146121461314614146151461614617146181461914620146211462214623146241462514626146271462814629146301463114632146331463414635146361463714638146391464014641146421464314644146451464614647146481464914650146511465214653146541465514656146571465814659146601466114662146631466414665146661466714668146691467014671146721467314674146751467614677146781467914680146811468214683146841468514686146871468814689146901469114692146931469414695146961469714698146991470014701147021470314704147051470614707147081470914710147111471214713147141471514716147171471814719147201472114722147231472414725147261472714728147291473014731147321473314734147351473614737147381473914740147411474214743147441474514746147471474814749147501475114752147531475414755147561475714758147591476014761147621476314764147651476614767147681476914770147711477214773147741477514776147771477814779147801478114782147831478414785147861478714788147891479014791147921479314794147951479614797147981479914800148011480214803148041480514806148071480814809148101481114812148131481414815148161481714818148191482014821148221482314824148251482614827148281482914830148311483214833148341483514836148371483814839148401484114842148431484414845148461484714848148491485014851148521485314854148551485614857148581485914860148611486214863148641486514866148671486814869148701487114872148731487414875148761487714878148791488014881148821488314884148851488614887148881488914890148911489214893148941489514896148971489814899149001490114902149031490414905149061490714908149091491014911149121491314914149151491614917149181491914920149211492214923149241492514926149271492814929149301493114932149331493414935149361493714938149391494014941149421494314944149451494614947149481494914950149511495214953149541495514956149571495814959149601496114962149631496414965149661496714968149691497014971149721497314974149751497614977149781497914980149811498214983149841498514986149871498814989149901499114992149931499414995149961499714998149991500015001150021500315004150051500615007150081500915010150111501215013150141501515016150171501815019150201502115022150231502415025150261502715028150291503015031150321503315034150351503615037150381503915040150411504215043150441504515046150471504815049150501505115052150531505415055150561505715058150591506015061150621506315064150651506615067150681506915070150711507215073150741507515076150771507815079150801508115082150831508415085150861508715088150891509015091150921509315094150951509615097150981509915100151011510215103151041510515106151071510815109151101511115112151131511415115151161511715118151191512015121151221512315124151251512615127151281512915130151311513215133151341513515136151371513815139151401514115142151431514415145151461514715148151491515015151151521515315154151551515615157151581515915160151611516215163151641516515166151671516815169151701517115172151731517415175151761517715178151791518015181151821518315184151851518615187151881518915190151911519215193151941519515196151971519815199152001520115202152031520415205152061520715208152091521015211152121521315214152151521615217152181521915220152211522215223152241522515226152271522815229152301523115232152331523415235152361523715238152391524015241152421524315244152451524615247152481524915250152511525215253152541525515256152571525815259152601526115262152631526415265152661526715268152691527015271152721527315274152751527615277152781527915280152811528215283152841528515286152871528815289152901529115292152931529415295152961529715298152991530015301153021530315304153051530615307153081530915310153111531215313153141531515316153171531815319153201532115322153231532415325153261532715328153291533015331153321533315334153351533615337153381533915340153411534215343153441534515346153471534815349153501535115352153531535415355153561535715358153591536015361153621536315364153651536615367153681536915370153711537215373153741537515376153771537815379
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.68 for file 5.09.
  4. #
  5. # Report bugs to <christos@astron.com>.
  6. #
  7. #
  8. # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
  9. # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
  10. # Foundation, Inc.
  11. #
  12. #
  13. # This configure script is free software; the Free Software Foundation
  14. # gives unlimited permission to copy, distribute and modify it.
  15. ## -------------------- ##
  16. ## M4sh Initialization. ##
  17. ## -------------------- ##
  18. # Be more Bourne compatible
  19. DUALCASE=1; export DUALCASE # for MKS sh
  20. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  21. emulate sh
  22. NULLCMD=:
  23. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  24. # is contrary to our usage. Disable this feature.
  25. alias -g '${1+"$@"}'='"$@"'
  26. setopt NO_GLOB_SUBST
  27. else
  28. case `(set -o) 2>/dev/null` in #(
  29. *posix*) :
  30. set -o posix ;; #(
  31. *) :
  32. ;;
  33. esac
  34. fi
  35. as_nl='
  36. '
  37. export as_nl
  38. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  39. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  40. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  41. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  42. # Prefer a ksh shell builtin over an external printf program on Solaris,
  43. # but without wasting forks for bash or zsh.
  44. if test -z "$BASH_VERSION$ZSH_VERSION" \
  45. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  46. as_echo='print -r --'
  47. as_echo_n='print -rn --'
  48. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  49. as_echo='printf %s\n'
  50. as_echo_n='printf %s'
  51. else
  52. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  53. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  54. as_echo_n='/usr/ucb/echo -n'
  55. else
  56. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  57. as_echo_n_body='eval
  58. arg=$1;
  59. case $arg in #(
  60. *"$as_nl"*)
  61. expr "X$arg" : "X\\(.*\\)$as_nl";
  62. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  63. esac;
  64. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  65. '
  66. export as_echo_n_body
  67. as_echo_n='sh -c $as_echo_n_body as_echo'
  68. fi
  69. export as_echo_body
  70. as_echo='sh -c $as_echo_body as_echo'
  71. fi
  72. # The user is always right.
  73. if test "${PATH_SEPARATOR+set}" != set; then
  74. PATH_SEPARATOR=:
  75. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  76. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  77. PATH_SEPARATOR=';'
  78. }
  79. fi
  80. # IFS
  81. # We need space, tab and new line, in precisely that order. Quoting is
  82. # there to prevent editors from complaining about space-tab.
  83. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  84. # splitting by setting IFS to empty value.)
  85. IFS=" "" $as_nl"
  86. # Find who we are. Look in the path if we contain no directory separator.
  87. as_myself=
  88. case $0 in #((
  89. *[\\/]* ) as_myself=$0 ;;
  90. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  91. for as_dir in $PATH
  92. do
  93. IFS=$as_save_IFS
  94. test -z "$as_dir" && as_dir=.
  95. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  96. done
  97. IFS=$as_save_IFS
  98. ;;
  99. esac
  100. # We did not find ourselves, most probably we were run as `sh COMMAND'
  101. # in which case we are not to be found in the path.
  102. if test "x$as_myself" = x; then
  103. as_myself=$0
  104. fi
  105. if test ! -f "$as_myself"; then
  106. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  107. exit 1
  108. fi
  109. # Unset variables that we do not need and which cause bugs (e.g. in
  110. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  111. # suppresses any "Segmentation fault" message there. '((' could
  112. # trigger a bug in pdksh 5.2.14.
  113. for as_var in BASH_ENV ENV MAIL MAILPATH
  114. do eval test x\${$as_var+set} = xset \
  115. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  116. done
  117. PS1='$ '
  118. PS2='> '
  119. PS4='+ '
  120. # NLS nuisances.
  121. LC_ALL=C
  122. export LC_ALL
  123. LANGUAGE=C
  124. export LANGUAGE
  125. # CDPATH.
  126. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  127. if test "x$CONFIG_SHELL" = x; then
  128. as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
  129. emulate sh
  130. NULLCMD=:
  131. # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
  132. # is contrary to our usage. Disable this feature.
  133. alias -g '\${1+\"\$@\"}'='\"\$@\"'
  134. setopt NO_GLOB_SUBST
  135. else
  136. case \`(set -o) 2>/dev/null\` in #(
  137. *posix*) :
  138. set -o posix ;; #(
  139. *) :
  140. ;;
  141. esac
  142. fi
  143. "
  144. as_required="as_fn_return () { (exit \$1); }
  145. as_fn_success () { as_fn_return 0; }
  146. as_fn_failure () { as_fn_return 1; }
  147. as_fn_ret_success () { return 0; }
  148. as_fn_ret_failure () { return 1; }
  149. exitcode=0
  150. as_fn_success || { exitcode=1; echo as_fn_success failed.; }
  151. as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
  152. as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
  153. as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
  154. if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
  155. else
  156. exitcode=1; echo positional parameters were not saved.
  157. fi
  158. test x\$exitcode = x0 || exit 1"
  159. as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
  160. as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
  161. eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
  162. test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
  163. test \$(( 1 + 1 )) = 2 || exit 1"
  164. if (eval "$as_required") 2>/dev/null; then :
  165. as_have_required=yes
  166. else
  167. as_have_required=no
  168. fi
  169. if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
  170. else
  171. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  172. as_found=false
  173. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  174. do
  175. IFS=$as_save_IFS
  176. test -z "$as_dir" && as_dir=.
  177. as_found=:
  178. case $as_dir in #(
  179. /*)
  180. for as_base in sh bash ksh sh5; do
  181. # Try only shells that exist, to save several forks.
  182. as_shell=$as_dir/$as_base
  183. if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  184. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
  185. CONFIG_SHELL=$as_shell as_have_required=yes
  186. if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
  187. break 2
  188. fi
  189. fi
  190. done;;
  191. esac
  192. as_found=false
  193. done
  194. $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
  195. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
  196. CONFIG_SHELL=$SHELL as_have_required=yes
  197. fi; }
  198. IFS=$as_save_IFS
  199. if test "x$CONFIG_SHELL" != x; then :
  200. # We cannot yet assume a decent shell, so we have to provide a
  201. # neutralization value for shells without unset; and this also
  202. # works around shells that cannot unset nonexistent variables.
  203. # Preserve -v and -x to the replacement shell.
  204. BASH_ENV=/dev/null
  205. ENV=/dev/null
  206. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  207. export CONFIG_SHELL
  208. case $- in # ((((
  209. *v*x* | *x*v* ) as_opts=-vx ;;
  210. *v* ) as_opts=-v ;;
  211. *x* ) as_opts=-x ;;
  212. * ) as_opts= ;;
  213. esac
  214. exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
  215. fi
  216. if test x$as_have_required = xno; then :
  217. $as_echo "$0: This script requires a shell more modern than all"
  218. $as_echo "$0: the shells that I found on your system."
  219. if test x${ZSH_VERSION+set} = xset ; then
  220. $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
  221. $as_echo "$0: be upgraded to zsh 4.3.4 or later."
  222. else
  223. $as_echo "$0: Please tell bug-autoconf@gnu.org and
  224. $0: christos@astron.com about your system, including any
  225. $0: error possibly output before this message. Then install
  226. $0: a modern shell, or manually run the script under such a
  227. $0: shell if you do have one."
  228. fi
  229. exit 1
  230. fi
  231. fi
  232. fi
  233. SHELL=${CONFIG_SHELL-/bin/sh}
  234. export SHELL
  235. # Unset more variables known to interfere with behavior of common tools.
  236. CLICOLOR_FORCE= GREP_OPTIONS=
  237. unset CLICOLOR_FORCE GREP_OPTIONS
  238. ## --------------------- ##
  239. ## M4sh Shell Functions. ##
  240. ## --------------------- ##
  241. # as_fn_unset VAR
  242. # ---------------
  243. # Portably unset VAR.
  244. as_fn_unset ()
  245. {
  246. { eval $1=; unset $1;}
  247. }
  248. as_unset=as_fn_unset
  249. # as_fn_set_status STATUS
  250. # -----------------------
  251. # Set $? to STATUS, without forking.
  252. as_fn_set_status ()
  253. {
  254. return $1
  255. } # as_fn_set_status
  256. # as_fn_exit STATUS
  257. # -----------------
  258. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  259. as_fn_exit ()
  260. {
  261. set +e
  262. as_fn_set_status $1
  263. exit $1
  264. } # as_fn_exit
  265. # as_fn_mkdir_p
  266. # -------------
  267. # Create "$as_dir" as a directory, including parents if necessary.
  268. as_fn_mkdir_p ()
  269. {
  270. case $as_dir in #(
  271. -*) as_dir=./$as_dir;;
  272. esac
  273. test -d "$as_dir" || eval $as_mkdir_p || {
  274. as_dirs=
  275. while :; do
  276. case $as_dir in #(
  277. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  278. *) as_qdir=$as_dir;;
  279. esac
  280. as_dirs="'$as_qdir' $as_dirs"
  281. as_dir=`$as_dirname -- "$as_dir" ||
  282. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  283. X"$as_dir" : 'X\(//\)[^/]' \| \
  284. X"$as_dir" : 'X\(//\)$' \| \
  285. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  286. $as_echo X"$as_dir" |
  287. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  288. s//\1/
  289. q
  290. }
  291. /^X\(\/\/\)[^/].*/{
  292. s//\1/
  293. q
  294. }
  295. /^X\(\/\/\)$/{
  296. s//\1/
  297. q
  298. }
  299. /^X\(\/\).*/{
  300. s//\1/
  301. q
  302. }
  303. s/.*/./; q'`
  304. test -d "$as_dir" && break
  305. done
  306. test -z "$as_dirs" || eval "mkdir $as_dirs"
  307. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  308. } # as_fn_mkdir_p
  309. # as_fn_append VAR VALUE
  310. # ----------------------
  311. # Append the text in VALUE to the end of the definition contained in VAR. Take
  312. # advantage of any shell optimizations that allow amortized linear growth over
  313. # repeated appends, instead of the typical quadratic growth present in naive
  314. # implementations.
  315. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  316. eval 'as_fn_append ()
  317. {
  318. eval $1+=\$2
  319. }'
  320. else
  321. as_fn_append ()
  322. {
  323. eval $1=\$$1\$2
  324. }
  325. fi # as_fn_append
  326. # as_fn_arith ARG...
  327. # ------------------
  328. # Perform arithmetic evaluation on the ARGs, and store the result in the
  329. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  330. # must be portable across $(()) and expr.
  331. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  332. eval 'as_fn_arith ()
  333. {
  334. as_val=$(( $* ))
  335. }'
  336. else
  337. as_fn_arith ()
  338. {
  339. as_val=`expr "$@" || test $? -eq 1`
  340. }
  341. fi # as_fn_arith
  342. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  343. # ----------------------------------------
  344. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  345. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  346. # script with STATUS, using 1 if that was 0.
  347. as_fn_error ()
  348. {
  349. as_status=$1; test $as_status -eq 0 && as_status=1
  350. if test "$4"; then
  351. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  352. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  353. fi
  354. $as_echo "$as_me: error: $2" >&2
  355. as_fn_exit $as_status
  356. } # as_fn_error
  357. if expr a : '\(a\)' >/dev/null 2>&1 &&
  358. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  359. as_expr=expr
  360. else
  361. as_expr=false
  362. fi
  363. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  364. as_basename=basename
  365. else
  366. as_basename=false
  367. fi
  368. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  369. as_dirname=dirname
  370. else
  371. as_dirname=false
  372. fi
  373. as_me=`$as_basename -- "$0" ||
  374. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  375. X"$0" : 'X\(//\)$' \| \
  376. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  377. $as_echo X/"$0" |
  378. sed '/^.*\/\([^/][^/]*\)\/*$/{
  379. s//\1/
  380. q
  381. }
  382. /^X\/\(\/\/\)$/{
  383. s//\1/
  384. q
  385. }
  386. /^X\/\(\/\).*/{
  387. s//\1/
  388. q
  389. }
  390. s/.*/./; q'`
  391. # Avoid depending upon Character Ranges.
  392. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  393. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  394. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  395. as_cr_digits='0123456789'
  396. as_cr_alnum=$as_cr_Letters$as_cr_digits
  397. as_lineno_1=$LINENO as_lineno_1a=$LINENO
  398. as_lineno_2=$LINENO as_lineno_2a=$LINENO
  399. eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
  400. test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
  401. # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
  402. sed -n '
  403. p
  404. /[$]LINENO/=
  405. ' <$as_myself |
  406. sed '
  407. s/[$]LINENO.*/&-/
  408. t lineno
  409. b
  410. :lineno
  411. N
  412. :loop
  413. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  414. t loop
  415. s/-\n.*//
  416. ' >$as_me.lineno &&
  417. chmod +x "$as_me.lineno" ||
  418. { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
  419. # Don't try to exec as it changes $[0], causing all sort of problems
  420. # (the dirname of $[0] is not the place where we might find the
  421. # original and so on. Autoconf is especially sensitive to this).
  422. . "./$as_me.lineno"
  423. # Exit status is that of the last command.
  424. exit
  425. }
  426. ECHO_C= ECHO_N= ECHO_T=
  427. case `echo -n x` in #(((((
  428. -n*)
  429. case `echo 'xy\c'` in
  430. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  431. xy) ECHO_C='\c';;
  432. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  433. ECHO_T=' ';;
  434. esac;;
  435. *)
  436. ECHO_N='-n';;
  437. esac
  438. rm -f conf$$ conf$$.exe conf$$.file
  439. if test -d conf$$.dir; then
  440. rm -f conf$$.dir/conf$$.file
  441. else
  442. rm -f conf$$.dir
  443. mkdir conf$$.dir 2>/dev/null
  444. fi
  445. if (echo >conf$$.file) 2>/dev/null; then
  446. if ln -s conf$$.file conf$$ 2>/dev/null; then
  447. as_ln_s='ln -s'
  448. # ... but there are two gotchas:
  449. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  450. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  451. # In both cases, we have to default to `cp -p'.
  452. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  453. as_ln_s='cp -p'
  454. elif ln conf$$.file conf$$ 2>/dev/null; then
  455. as_ln_s=ln
  456. else
  457. as_ln_s='cp -p'
  458. fi
  459. else
  460. as_ln_s='cp -p'
  461. fi
  462. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  463. rmdir conf$$.dir 2>/dev/null
  464. if mkdir -p . 2>/dev/null; then
  465. as_mkdir_p='mkdir -p "$as_dir"'
  466. else
  467. test -d ./-p && rmdir ./-p
  468. as_mkdir_p=false
  469. fi
  470. if test -x / >/dev/null 2>&1; then
  471. as_test_x='test -x'
  472. else
  473. if ls -dL / >/dev/null 2>&1; then
  474. as_ls_L_option=L
  475. else
  476. as_ls_L_option=
  477. fi
  478. as_test_x='
  479. eval sh -c '\''
  480. if test -d "$1"; then
  481. test -d "$1/.";
  482. else
  483. case $1 in #(
  484. -*)set "./$1";;
  485. esac;
  486. case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
  487. ???[sx]*):;;*)false;;esac;fi
  488. '\'' sh
  489. '
  490. fi
  491. as_executable_p=$as_test_x
  492. # Sed expression to map a string onto a valid CPP name.
  493. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  494. # Sed expression to map a string onto a valid variable name.
  495. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  496. # Check that we are running under the correct shell.
  497. SHELL=${CONFIG_SHELL-/bin/sh}
  498. case X$lt_ECHO in
  499. X*--fallback-echo)
  500. # Remove one level of quotation (which was required for Make).
  501. ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
  502. ;;
  503. esac
  504. ECHO=${lt_ECHO-echo}
  505. if test "X$1" = X--no-reexec; then
  506. # Discard the --no-reexec flag, and continue.
  507. shift
  508. elif test "X$1" = X--fallback-echo; then
  509. # Avoid inline document here, it may be left over
  510. :
  511. elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
  512. # Yippee, $ECHO works!
  513. :
  514. else
  515. # Restart under the correct shell.
  516. exec $SHELL "$0" --no-reexec ${1+"$@"}
  517. fi
  518. if test "X$1" = X--fallback-echo; then
  519. # used as fallback echo
  520. shift
  521. cat <<_LT_EOF
  522. $*
  523. _LT_EOF
  524. exit 0
  525. fi
  526. # The HP-UX ksh and POSIX shell print the target directory to stdout
  527. # if CDPATH is set.
  528. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  529. if test -z "$lt_ECHO"; then
  530. if test "X${echo_test_string+set}" != Xset; then
  531. # find a string as large as possible, as long as the shell can cope with it
  532. for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
  533. # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
  534. if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
  535. { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
  536. then
  537. break
  538. fi
  539. done
  540. fi
  541. if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
  542. echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
  543. test "X$echo_testing_string" = "X$echo_test_string"; then
  544. :
  545. else
  546. # The Solaris, AIX, and Digital Unix default echo programs unquote
  547. # backslashes. This makes it impossible to quote backslashes using
  548. # echo "$something" | sed 's/\\/\\\\/g'
  549. #
  550. # So, first we look for a working echo in the user's PATH.
  551. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  552. for dir in $PATH /usr/ucb; do
  553. IFS="$lt_save_ifs"
  554. if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
  555. test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
  556. echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
  557. test "X$echo_testing_string" = "X$echo_test_string"; then
  558. ECHO="$dir/echo"
  559. break
  560. fi
  561. done
  562. IFS="$lt_save_ifs"
  563. if test "X$ECHO" = Xecho; then
  564. # We didn't find a better echo, so look for alternatives.
  565. if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
  566. echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
  567. test "X$echo_testing_string" = "X$echo_test_string"; then
  568. # This shell has a builtin print -r that does the trick.
  569. ECHO='print -r'
  570. elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
  571. test "X$CONFIG_SHELL" != X/bin/ksh; then
  572. # If we have ksh, try running configure again with it.
  573. ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
  574. export ORIGINAL_CONFIG_SHELL
  575. CONFIG_SHELL=/bin/ksh
  576. export CONFIG_SHELL
  577. exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
  578. else
  579. # Try using printf.
  580. ECHO='printf %s\n'
  581. if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
  582. echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
  583. test "X$echo_testing_string" = "X$echo_test_string"; then
  584. # Cool, printf works
  585. :
  586. elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
  587. test "X$echo_testing_string" = 'X\t' &&
  588. echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
  589. test "X$echo_testing_string" = "X$echo_test_string"; then
  590. CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
  591. export CONFIG_SHELL
  592. SHELL="$CONFIG_SHELL"
  593. export SHELL
  594. ECHO="$CONFIG_SHELL $0 --fallback-echo"
  595. elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
  596. test "X$echo_testing_string" = 'X\t' &&
  597. echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
  598. test "X$echo_testing_string" = "X$echo_test_string"; then
  599. ECHO="$CONFIG_SHELL $0 --fallback-echo"
  600. else
  601. # maybe with a smaller string...
  602. prev=:
  603. for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
  604. if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
  605. then
  606. break
  607. fi
  608. prev="$cmd"
  609. done
  610. if test "$prev" != 'sed 50q "$0"'; then
  611. echo_test_string=`eval $prev`
  612. export echo_test_string
  613. exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
  614. else
  615. # Oops. We lost completely, so just stick with echo.
  616. ECHO=echo
  617. fi
  618. fi
  619. fi
  620. fi
  621. fi
  622. fi
  623. # Copy echo and quote the copy suitably for passing to libtool from
  624. # the Makefile, instead of quoting the original, which is used later.
  625. lt_ECHO=$ECHO
  626. if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
  627. lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
  628. fi
  629. test -n "$DJDIR" || exec 7<&0 </dev/null
  630. exec 6>&1
  631. # Name of the host.
  632. # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
  633. # so uname gets run too.
  634. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  635. #
  636. # Initializations.
  637. #
  638. ac_default_prefix=/usr/local
  639. ac_clean_files=
  640. ac_config_libobj_dir=.
  641. LIBOBJS=
  642. cross_compiling=no
  643. subdirs=
  644. MFLAGS=
  645. MAKEFLAGS=
  646. # Identity of this package.
  647. PACKAGE_NAME='file'
  648. PACKAGE_TARNAME='file'
  649. PACKAGE_VERSION='5.09'
  650. PACKAGE_STRING='file 5.09'
  651. PACKAGE_BUGREPORT='christos@astron.com'
  652. PACKAGE_URL=''
  653. # Factoring default headers for most tests.
  654. ac_includes_default="\
  655. #include <stdio.h>
  656. #ifdef HAVE_SYS_TYPES_H
  657. # include <sys/types.h>
  658. #endif
  659. #ifdef HAVE_SYS_STAT_H
  660. # include <sys/stat.h>
  661. #endif
  662. #ifdef STDC_HEADERS
  663. # include <stdlib.h>
  664. # include <stddef.h>
  665. #else
  666. # ifdef HAVE_STDLIB_H
  667. # include <stdlib.h>
  668. # endif
  669. #endif
  670. #ifdef HAVE_STRING_H
  671. # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
  672. # include <memory.h>
  673. # endif
  674. # include <string.h>
  675. #endif
  676. #ifdef HAVE_STRINGS_H
  677. # include <strings.h>
  678. #endif
  679. #ifdef HAVE_INTTYPES_H
  680. # include <inttypes.h>
  681. #endif
  682. #ifdef HAVE_STDINT_H
  683. # include <stdint.h>
  684. #endif
  685. #ifdef HAVE_UNISTD_H
  686. # include <unistd.h>
  687. #endif"
  688. ac_subst_vars='am__EXEEXT_FALSE
  689. am__EXEEXT_TRUE
  690. LTLIBOBJS
  691. IS_CROSS_COMPILE_FALSE
  692. IS_CROSS_COMPILE_TRUE
  693. LIBOBJS
  694. OTOOL64
  695. OTOOL
  696. LIPO
  697. NMEDIT
  698. DSYMUTIL
  699. lt_ECHO
  700. RANLIB
  701. AR
  702. OBJDUMP
  703. NM
  704. ac_ct_DUMPBIN
  705. DUMPBIN
  706. LD
  707. FGREP
  708. SED
  709. LIBTOOL
  710. LN_S
  711. EGREP
  712. GREP
  713. CPP
  714. am__fastdepCC_FALSE
  715. am__fastdepCC_TRUE
  716. CCDEPMODE
  717. AMDEPBACKSLASH
  718. AMDEP_FALSE
  719. AMDEP_TRUE
  720. am__quote
  721. am__include
  722. DEPDIR
  723. OBJEXT
  724. EXEEXT
  725. ac_ct_CC
  726. CPPFLAGS
  727. LDFLAGS
  728. CFLAGS
  729. CC
  730. WARNINGS
  731. FSECT5_FALSE
  732. FSECT5_TRUE
  733. fsect
  734. pkgdatadir
  735. MINGW_FALSE
  736. MINGW_TRUE
  737. MINGW
  738. host_os
  739. host_vendor
  740. host_cpu
  741. host
  742. build_os
  743. build_vendor
  744. build_cpu
  745. build
  746. AM_BACKSLASH
  747. AM_DEFAULT_VERBOSITY
  748. am__untar
  749. am__tar
  750. AMTAR
  751. am__leading_dot
  752. SET_MAKE
  753. AWK
  754. mkdir_p
  755. MKDIR_P
  756. INSTALL_STRIP_PROGRAM
  757. STRIP
  758. install_sh
  759. MAKEINFO
  760. AUTOHEADER
  761. AUTOMAKE
  762. AUTOCONF
  763. ACLOCAL
  764. VERSION
  765. PACKAGE
  766. CYGPATH_W
  767. am__isrc
  768. INSTALL_DATA
  769. INSTALL_SCRIPT
  770. INSTALL_PROGRAM
  771. target_alias
  772. host_alias
  773. build_alias
  774. LIBS
  775. ECHO_T
  776. ECHO_N
  777. ECHO_C
  778. DEFS
  779. mandir
  780. localedir
  781. libdir
  782. psdir
  783. pdfdir
  784. dvidir
  785. htmldir
  786. infodir
  787. docdir
  788. oldincludedir
  789. includedir
  790. localstatedir
  791. sharedstatedir
  792. sysconfdir
  793. datadir
  794. datarootdir
  795. libexecdir
  796. sbindir
  797. bindir
  798. program_transform_name
  799. prefix
  800. exec_prefix
  801. PACKAGE_URL
  802. PACKAGE_BUGREPORT
  803. PACKAGE_STRING
  804. PACKAGE_VERSION
  805. PACKAGE_TARNAME
  806. PACKAGE_NAME
  807. PATH_SEPARATOR
  808. SHELL'
  809. ac_subst_files=''
  810. ac_user_opts='
  811. enable_option_checking
  812. enable_silent_rules
  813. enable_elf
  814. enable_elf_core
  815. enable_fsect_man5
  816. enable_dependency_tracking
  817. enable_shared
  818. enable_static
  819. with_pic
  820. enable_fast_install
  821. with_gnu_ld
  822. enable_libtool_lock
  823. enable_largefile
  824. enable_warnings
  825. '
  826. ac_precious_vars='build_alias
  827. host_alias
  828. target_alias
  829. CC
  830. CFLAGS
  831. LDFLAGS
  832. LIBS
  833. CPPFLAGS
  834. CPP'
  835. # Initialize some variables set by options.
  836. ac_init_help=
  837. ac_init_version=false
  838. ac_unrecognized_opts=
  839. ac_unrecognized_sep=
  840. # The variables have the same names as the options, with
  841. # dashes changed to underlines.
  842. cache_file=/dev/null
  843. exec_prefix=NONE
  844. no_create=
  845. no_recursion=
  846. prefix=NONE
  847. program_prefix=NONE
  848. program_suffix=NONE
  849. program_transform_name=s,x,x,
  850. silent=
  851. site=
  852. srcdir=
  853. verbose=
  854. x_includes=NONE
  855. x_libraries=NONE
  856. # Installation directory options.
  857. # These are left unexpanded so users can "make install exec_prefix=/foo"
  858. # and all the variables that are supposed to be based on exec_prefix
  859. # by default will actually change.
  860. # Use braces instead of parens because sh, perl, etc. also accept them.
  861. # (The list follows the same order as the GNU Coding Standards.)
  862. bindir='${exec_prefix}/bin'
  863. sbindir='${exec_prefix}/sbin'
  864. libexecdir='${exec_prefix}/libexec'
  865. datarootdir='${prefix}/share'
  866. datadir='${datarootdir}'
  867. sysconfdir='${prefix}/etc'
  868. sharedstatedir='${prefix}/com'
  869. localstatedir='${prefix}/var'
  870. includedir='${prefix}/include'
  871. oldincludedir='/usr/include'
  872. docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
  873. infodir='${datarootdir}/info'
  874. htmldir='${docdir}'
  875. dvidir='${docdir}'
  876. pdfdir='${docdir}'
  877. psdir='${docdir}'
  878. libdir='${exec_prefix}/lib'
  879. localedir='${datarootdir}/locale'
  880. mandir='${datarootdir}/man'
  881. ac_prev=
  882. ac_dashdash=
  883. for ac_option
  884. do
  885. # If the previous option needs an argument, assign it.
  886. if test -n "$ac_prev"; then
  887. eval $ac_prev=\$ac_option
  888. ac_prev=
  889. continue
  890. fi
  891. case $ac_option in
  892. *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  893. *=) ac_optarg= ;;
  894. *) ac_optarg=yes ;;
  895. esac
  896. # Accept the important Cygnus configure options, so we can diagnose typos.
  897. case $ac_dashdash$ac_option in
  898. --)
  899. ac_dashdash=yes ;;
  900. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  901. ac_prev=bindir ;;
  902. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  903. bindir=$ac_optarg ;;
  904. -build | --build | --buil | --bui | --bu)
  905. ac_prev=build_alias ;;
  906. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  907. build_alias=$ac_optarg ;;
  908. -cache-file | --cache-file | --cache-fil | --cache-fi \
  909. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  910. ac_prev=cache_file ;;
  911. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  912. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  913. cache_file=$ac_optarg ;;
  914. --config-cache | -C)
  915. cache_file=config.cache ;;
  916. -datadir | --datadir | --datadi | --datad)
  917. ac_prev=datadir ;;
  918. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  919. datadir=$ac_optarg ;;
  920. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  921. | --dataroo | --dataro | --datar)
  922. ac_prev=datarootdir ;;
  923. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  924. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  925. datarootdir=$ac_optarg ;;
  926. -disable-* | --disable-*)
  927. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  928. # Reject names that are not valid shell variable names.
  929. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  930. as_fn_error $? "invalid feature name: $ac_useropt"
  931. ac_useropt_orig=$ac_useropt
  932. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  933. case $ac_user_opts in
  934. *"
  935. "enable_$ac_useropt"
  936. "*) ;;
  937. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  938. ac_unrecognized_sep=', ';;
  939. esac
  940. eval enable_$ac_useropt=no ;;
  941. -docdir | --docdir | --docdi | --doc | --do)
  942. ac_prev=docdir ;;
  943. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  944. docdir=$ac_optarg ;;
  945. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  946. ac_prev=dvidir ;;
  947. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  948. dvidir=$ac_optarg ;;
  949. -enable-* | --enable-*)
  950. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  951. # Reject names that are not valid shell variable names.
  952. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  953. as_fn_error $? "invalid feature name: $ac_useropt"
  954. ac_useropt_orig=$ac_useropt
  955. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  956. case $ac_user_opts in
  957. *"
  958. "enable_$ac_useropt"
  959. "*) ;;
  960. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  961. ac_unrecognized_sep=', ';;
  962. esac
  963. eval enable_$ac_useropt=\$ac_optarg ;;
  964. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  965. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  966. | --exec | --exe | --ex)
  967. ac_prev=exec_prefix ;;
  968. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  969. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  970. | --exec=* | --exe=* | --ex=*)
  971. exec_prefix=$ac_optarg ;;
  972. -gas | --gas | --ga | --g)
  973. # Obsolete; use --with-gas.
  974. with_gas=yes ;;
  975. -help | --help | --hel | --he | -h)
  976. ac_init_help=long ;;
  977. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  978. ac_init_help=recursive ;;
  979. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  980. ac_init_help=short ;;
  981. -host | --host | --hos | --ho)
  982. ac_prev=host_alias ;;
  983. -host=* | --host=* | --hos=* | --ho=*)
  984. host_alias=$ac_optarg ;;
  985. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  986. ac_prev=htmldir ;;
  987. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  988. | --ht=*)
  989. htmldir=$ac_optarg ;;
  990. -includedir | --includedir | --includedi | --included | --include \
  991. | --includ | --inclu | --incl | --inc)
  992. ac_prev=includedir ;;
  993. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  994. | --includ=* | --inclu=* | --incl=* | --inc=*)
  995. includedir=$ac_optarg ;;
  996. -infodir | --infodir | --infodi | --infod | --info | --inf)
  997. ac_prev=infodir ;;
  998. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  999. infodir=$ac_optarg ;;
  1000. -libdir | --libdir | --libdi | --libd)
  1001. ac_prev=libdir ;;
  1002. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  1003. libdir=$ac_optarg ;;
  1004. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  1005. | --libexe | --libex | --libe)
  1006. ac_prev=libexecdir ;;
  1007. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  1008. | --libexe=* | --libex=* | --libe=*)
  1009. libexecdir=$ac_optarg ;;
  1010. -localedir | --localedir | --localedi | --localed | --locale)
  1011. ac_prev=localedir ;;
  1012. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  1013. localedir=$ac_optarg ;;
  1014. -localstatedir | --localstatedir | --localstatedi | --localstated \
  1015. | --localstate | --localstat | --localsta | --localst | --locals)
  1016. ac_prev=localstatedir ;;
  1017. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  1018. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  1019. localstatedir=$ac_optarg ;;
  1020. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  1021. ac_prev=mandir ;;
  1022. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  1023. mandir=$ac_optarg ;;
  1024. -nfp | --nfp | --nf)
  1025. # Obsolete; use --without-fp.
  1026. with_fp=no ;;
  1027. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  1028. | --no-cr | --no-c | -n)
  1029. no_create=yes ;;
  1030. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  1031. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  1032. no_recursion=yes ;;
  1033. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  1034. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  1035. | --oldin | --oldi | --old | --ol | --o)
  1036. ac_prev=oldincludedir ;;
  1037. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  1038. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  1039. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  1040. oldincludedir=$ac_optarg ;;
  1041. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  1042. ac_prev=prefix ;;
  1043. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  1044. prefix=$ac_optarg ;;
  1045. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  1046. | --program-pre | --program-pr | --program-p)
  1047. ac_prev=program_prefix ;;
  1048. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  1049. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  1050. program_prefix=$ac_optarg ;;
  1051. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  1052. | --program-suf | --program-su | --program-s)
  1053. ac_prev=program_suffix ;;
  1054. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  1055. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  1056. program_suffix=$ac_optarg ;;
  1057. -program-transform-name | --program-transform-name \
  1058. | --program-transform-nam | --program-transform-na \
  1059. | --program-transform-n | --program-transform- \
  1060. | --program-transform | --program-transfor \
  1061. | --program-transfo | --program-transf \
  1062. | --program-trans | --program-tran \
  1063. | --progr-tra | --program-tr | --program-t)
  1064. ac_prev=program_transform_name ;;
  1065. -program-transform-name=* | --program-transform-name=* \
  1066. | --program-transform-nam=* | --program-transform-na=* \
  1067. | --program-transform-n=* | --program-transform-=* \
  1068. | --program-transform=* | --program-transfor=* \
  1069. | --program-transfo=* | --program-transf=* \
  1070. | --program-trans=* | --program-tran=* \
  1071. | --progr-tra=* | --program-tr=* | --program-t=*)
  1072. program_transform_name=$ac_optarg ;;
  1073. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  1074. ac_prev=pdfdir ;;
  1075. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  1076. pdfdir=$ac_optarg ;;
  1077. -psdir | --psdir | --psdi | --psd | --ps)
  1078. ac_prev=psdir ;;
  1079. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  1080. psdir=$ac_optarg ;;
  1081. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1082. | -silent | --silent | --silen | --sile | --sil)
  1083. silent=yes ;;
  1084. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  1085. ac_prev=sbindir ;;
  1086. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  1087. | --sbi=* | --sb=*)
  1088. sbindir=$ac_optarg ;;
  1089. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  1090. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  1091. | --sharedst | --shareds | --shared | --share | --shar \
  1092. | --sha | --sh)
  1093. ac_prev=sharedstatedir ;;
  1094. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  1095. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  1096. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  1097. | --sha=* | --sh=*)
  1098. sharedstatedir=$ac_optarg ;;
  1099. -site | --site | --sit)
  1100. ac_prev=site ;;
  1101. -site=* | --site=* | --sit=*)
  1102. site=$ac_optarg ;;
  1103. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1104. ac_prev=srcdir ;;
  1105. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1106. srcdir=$ac_optarg ;;
  1107. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  1108. | --syscon | --sysco | --sysc | --sys | --sy)
  1109. ac_prev=sysconfdir ;;
  1110. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1111. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1112. sysconfdir=$ac_optarg ;;
  1113. -target | --target | --targe | --targ | --tar | --ta | --t)
  1114. ac_prev=target_alias ;;
  1115. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1116. target_alias=$ac_optarg ;;
  1117. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1118. verbose=yes ;;
  1119. -version | --version | --versio | --versi | --vers | -V)
  1120. ac_init_version=: ;;
  1121. -with-* | --with-*)
  1122. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1123. # Reject names that are not valid shell variable names.
  1124. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1125. as_fn_error $? "invalid package name: $ac_useropt"
  1126. ac_useropt_orig=$ac_useropt
  1127. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1128. case $ac_user_opts in
  1129. *"
  1130. "with_$ac_useropt"
  1131. "*) ;;
  1132. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  1133. ac_unrecognized_sep=', ';;
  1134. esac
  1135. eval with_$ac_useropt=\$ac_optarg ;;
  1136. -without-* | --without-*)
  1137. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1138. # Reject names that are not valid shell variable names.
  1139. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1140. as_fn_error $? "invalid package name: $ac_useropt"
  1141. ac_useropt_orig=$ac_useropt
  1142. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1143. case $ac_user_opts in
  1144. *"
  1145. "with_$ac_useropt"
  1146. "*) ;;
  1147. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1148. ac_unrecognized_sep=', ';;
  1149. esac
  1150. eval with_$ac_useropt=no ;;
  1151. --x)
  1152. # Obsolete; use --with-x.
  1153. with_x=yes ;;
  1154. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1155. | --x-incl | --x-inc | --x-in | --x-i)
  1156. ac_prev=x_includes ;;
  1157. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1158. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1159. x_includes=$ac_optarg ;;
  1160. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1161. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1162. ac_prev=x_libraries ;;
  1163. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1164. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1165. x_libraries=$ac_optarg ;;
  1166. -*) as_fn_error $? "unrecognized option: \`$ac_option'
  1167. Try \`$0 --help' for more information"
  1168. ;;
  1169. *=*)
  1170. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1171. # Reject names that are not valid shell variable names.
  1172. case $ac_envvar in #(
  1173. '' | [0-9]* | *[!_$as_cr_alnum]* )
  1174. as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
  1175. esac
  1176. eval $ac_envvar=\$ac_optarg
  1177. export $ac_envvar ;;
  1178. *)
  1179. # FIXME: should be removed in autoconf 3.0.
  1180. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1181. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1182. $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1183. : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
  1184. ;;
  1185. esac
  1186. done
  1187. if test -n "$ac_prev"; then
  1188. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1189. as_fn_error $? "missing argument to $ac_option"
  1190. fi
  1191. if test -n "$ac_unrecognized_opts"; then
  1192. case $enable_option_checking in
  1193. no) ;;
  1194. fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
  1195. *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1196. esac
  1197. fi
  1198. # Check all directory arguments for consistency.
  1199. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1200. datadir sysconfdir sharedstatedir localstatedir includedir \
  1201. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1202. libdir localedir mandir
  1203. do
  1204. eval ac_val=\$$ac_var
  1205. # Remove trailing slashes.
  1206. case $ac_val in
  1207. */ )
  1208. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1209. eval $ac_var=\$ac_val;;
  1210. esac
  1211. # Be sure to have absolute directory names.
  1212. case $ac_val in
  1213. [\\/$]* | ?:[\\/]* ) continue;;
  1214. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1215. esac
  1216. as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
  1217. done
  1218. # There might be people who depend on the old broken behavior: `$host'
  1219. # used to hold the argument of --host etc.
  1220. # FIXME: To remove some day.
  1221. build=$build_alias
  1222. host=$host_alias
  1223. target=$target_alias
  1224. # FIXME: To remove some day.
  1225. if test "x$host_alias" != x; then
  1226. if test "x$build_alias" = x; then
  1227. cross_compiling=maybe
  1228. $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
  1229. If a cross compiler is detected then cross compile mode will be used" >&2
  1230. elif test "x$build_alias" != "x$host_alias"; then
  1231. cross_compiling=yes
  1232. fi
  1233. fi
  1234. ac_tool_prefix=
  1235. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1236. test "$silent" = yes && exec 6>/dev/null
  1237. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1238. ac_ls_di=`ls -di .` &&
  1239. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1240. as_fn_error $? "working directory cannot be determined"
  1241. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1242. as_fn_error $? "pwd does not report name of working directory"
  1243. # Find the source files, if location was not specified.
  1244. if test -z "$srcdir"; then
  1245. ac_srcdir_defaulted=yes
  1246. # Try the directory containing this script, then the parent directory.
  1247. ac_confdir=`$as_dirname -- "$as_myself" ||
  1248. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1249. X"$as_myself" : 'X\(//\)[^/]' \| \
  1250. X"$as_myself" : 'X\(//\)$' \| \
  1251. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1252. $as_echo X"$as_myself" |
  1253. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1254. s//\1/
  1255. q
  1256. }
  1257. /^X\(\/\/\)[^/].*/{
  1258. s//\1/
  1259. q
  1260. }
  1261. /^X\(\/\/\)$/{
  1262. s//\1/
  1263. q
  1264. }
  1265. /^X\(\/\).*/{
  1266. s//\1/
  1267. q
  1268. }
  1269. s/.*/./; q'`
  1270. srcdir=$ac_confdir
  1271. if test ! -r "$srcdir/$ac_unique_file"; then
  1272. srcdir=..
  1273. fi
  1274. else
  1275. ac_srcdir_defaulted=no
  1276. fi
  1277. if test ! -r "$srcdir/$ac_unique_file"; then
  1278. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1279. as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
  1280. fi
  1281. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1282. ac_abs_confdir=`(
  1283. cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
  1284. pwd)`
  1285. # When building in place, set srcdir=.
  1286. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1287. srcdir=.
  1288. fi
  1289. # Remove unnecessary trailing slashes from srcdir.
  1290. # Double slashes in file names in object file debugging info
  1291. # mess up M-x gdb in Emacs.
  1292. case $srcdir in
  1293. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1294. esac
  1295. for ac_var in $ac_precious_vars; do
  1296. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1297. eval ac_env_${ac_var}_value=\$${ac_var}
  1298. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1299. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1300. done
  1301. #
  1302. # Report the --help message.
  1303. #
  1304. if test "$ac_init_help" = "long"; then
  1305. # Omit some internal or obsolete options to make the list less imposing.
  1306. # This message is too long to be a string in the A/UX 3.1 sh.
  1307. cat <<_ACEOF
  1308. \`configure' configures file 5.09 to adapt to many kinds of systems.
  1309. Usage: $0 [OPTION]... [VAR=VALUE]...
  1310. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1311. VAR=VALUE. See below for descriptions of some of the useful variables.
  1312. Defaults for the options are specified in brackets.
  1313. Configuration:
  1314. -h, --help display this help and exit
  1315. --help=short display options specific to this package
  1316. --help=recursive display the short help of all the included packages
  1317. -V, --version display version information and exit
  1318. -q, --quiet, --silent do not print \`checking ...' messages
  1319. --cache-file=FILE cache test results in FILE [disabled]
  1320. -C, --config-cache alias for \`--cache-file=config.cache'
  1321. -n, --no-create do not create output files
  1322. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1323. Installation directories:
  1324. --prefix=PREFIX install architecture-independent files in PREFIX
  1325. [$ac_default_prefix]
  1326. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1327. [PREFIX]
  1328. By default, \`make install' will install all the files in
  1329. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1330. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1331. for instance \`--prefix=\$HOME'.
  1332. For better control, use the options below.
  1333. Fine tuning of the installation directories:
  1334. --bindir=DIR user executables [EPREFIX/bin]
  1335. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1336. --libexecdir=DIR program executables [EPREFIX/libexec]
  1337. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1338. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1339. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1340. --libdir=DIR object code libraries [EPREFIX/lib]
  1341. --includedir=DIR C header files [PREFIX/include]
  1342. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1343. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1344. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1345. --infodir=DIR info documentation [DATAROOTDIR/info]
  1346. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1347. --mandir=DIR man documentation [DATAROOTDIR/man]
  1348. --docdir=DIR documentation root [DATAROOTDIR/doc/file]
  1349. --htmldir=DIR html documentation [DOCDIR]
  1350. --dvidir=DIR dvi documentation [DOCDIR]
  1351. --pdfdir=DIR pdf documentation [DOCDIR]
  1352. --psdir=DIR ps documentation [DOCDIR]
  1353. _ACEOF
  1354. cat <<\_ACEOF
  1355. Program names:
  1356. --program-prefix=PREFIX prepend PREFIX to installed program names
  1357. --program-suffix=SUFFIX append SUFFIX to installed program names
  1358. --program-transform-name=PROGRAM run sed PROGRAM on installed program names
  1359. System types:
  1360. --build=BUILD configure for building on BUILD [guessed]
  1361. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1362. _ACEOF
  1363. fi
  1364. if test -n "$ac_init_help"; then
  1365. case $ac_init_help in
  1366. short | recursive ) echo "Configuration of file 5.09:";;
  1367. esac
  1368. cat <<\_ACEOF
  1369. Optional Features:
  1370. --disable-option-checking ignore unrecognized --enable/--with options
  1371. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1372. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1373. --enable-silent-rules less verbose build output (undo: `make V=1')
  1374. --disable-silent-rules verbose build output (undo: `make V=0')
  1375. --disable-elf disable builtin ELF support
  1376. --disable-elf-core disable ELF core file support
  1377. --enable-fsect-man5 enable file formats in man section 5
  1378. --disable-dependency-tracking speeds up one-time build
  1379. --enable-dependency-tracking do not reject slow dependency extractors
  1380. --enable-shared[=PKGS] build shared libraries [default=yes]
  1381. --enable-static[=PKGS] build static libraries [default=yes]
  1382. --enable-fast-install[=PKGS]
  1383. optimize for fast installation [default=yes]
  1384. --disable-libtool-lock avoid locking (might break parallel builds)
  1385. --disable-largefile omit support for large files
  1386. --disable-warnings disable compiler warnings
  1387. Optional Packages:
  1388. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1389. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1390. --with-pic try to use only PIC/non-PIC objects [default=use
  1391. both]
  1392. --with-gnu-ld assume the C compiler uses GNU ld [default=no]
  1393. Some influential environment variables:
  1394. CC C compiler command
  1395. CFLAGS C compiler flags
  1396. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1397. nonstandard directory <lib dir>
  1398. LIBS libraries to pass to the linker, e.g. -l<library>
  1399. CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
  1400. you have headers in a nonstandard directory <include dir>
  1401. CPP C preprocessor
  1402. Use these variables to override the choices made by `configure' or to help
  1403. it to find libraries and programs with nonstandard names/locations.
  1404. Report bugs to <christos@astron.com>.
  1405. _ACEOF
  1406. ac_status=$?
  1407. fi
  1408. if test "$ac_init_help" = "recursive"; then
  1409. # If there are subdirs, report their specific --help.
  1410. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1411. test -d "$ac_dir" ||
  1412. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1413. continue
  1414. ac_builddir=.
  1415. case "$ac_dir" in
  1416. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1417. *)
  1418. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  1419. # A ".." for each directory in $ac_dir_suffix.
  1420. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1421. case $ac_top_builddir_sub in
  1422. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1423. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1424. esac ;;
  1425. esac
  1426. ac_abs_top_builddir=$ac_pwd
  1427. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1428. # for backward compatibility:
  1429. ac_top_builddir=$ac_top_build_prefix
  1430. case $srcdir in
  1431. .) # We are building in place.
  1432. ac_srcdir=.
  1433. ac_top_srcdir=$ac_top_builddir_sub
  1434. ac_abs_top_srcdir=$ac_pwd ;;
  1435. [\\/]* | ?:[\\/]* ) # Absolute name.
  1436. ac_srcdir=$srcdir$ac_dir_suffix;
  1437. ac_top_srcdir=$srcdir
  1438. ac_abs_top_srcdir=$srcdir ;;
  1439. *) # Relative name.
  1440. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1441. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1442. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1443. esac
  1444. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1445. cd "$ac_dir" || { ac_status=$?; continue; }
  1446. # Check for guested configure.
  1447. if test -f "$ac_srcdir/configure.gnu"; then
  1448. echo &&
  1449. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1450. elif test -f "$ac_srcdir/configure"; then
  1451. echo &&
  1452. $SHELL "$ac_srcdir/configure" --help=recursive
  1453. else
  1454. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1455. fi || ac_status=$?
  1456. cd "$ac_pwd" || { ac_status=$?; break; }
  1457. done
  1458. fi
  1459. test -n "$ac_init_help" && exit $ac_status
  1460. if $ac_init_version; then
  1461. cat <<\_ACEOF
  1462. file configure 5.09
  1463. generated by GNU Autoconf 2.68
  1464. Copyright (C) 2010 Free Software Foundation, Inc.
  1465. This configure script is free software; the Free Software Foundation
  1466. gives unlimited permission to copy, distribute and modify it.
  1467. _ACEOF
  1468. exit
  1469. fi
  1470. ## ------------------------ ##
  1471. ## Autoconf initialization. ##
  1472. ## ------------------------ ##
  1473. # ac_fn_c_try_compile LINENO
  1474. # --------------------------
  1475. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1476. ac_fn_c_try_compile ()
  1477. {
  1478. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1479. rm -f conftest.$ac_objext
  1480. if { { ac_try="$ac_compile"
  1481. case "(($ac_try" in
  1482. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1483. *) ac_try_echo=$ac_try;;
  1484. esac
  1485. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1486. $as_echo "$ac_try_echo"; } >&5
  1487. (eval "$ac_compile") 2>conftest.err
  1488. ac_status=$?
  1489. if test -s conftest.err; then
  1490. grep -v '^ *+' conftest.err >conftest.er1
  1491. cat conftest.er1 >&5
  1492. mv -f conftest.er1 conftest.err
  1493. fi
  1494. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1495. test $ac_status = 0; } && {
  1496. test -z "$ac_c_werror_flag" ||
  1497. test ! -s conftest.err
  1498. } && test -s conftest.$ac_objext; then :
  1499. ac_retval=0
  1500. else
  1501. $as_echo "$as_me: failed program was:" >&5
  1502. sed 's/^/| /' conftest.$ac_ext >&5
  1503. ac_retval=1
  1504. fi
  1505. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1506. as_fn_set_status $ac_retval
  1507. } # ac_fn_c_try_compile
  1508. # ac_fn_c_try_cpp LINENO
  1509. # ----------------------
  1510. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1511. ac_fn_c_try_cpp ()
  1512. {
  1513. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1514. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1515. case "(($ac_try" in
  1516. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1517. *) ac_try_echo=$ac_try;;
  1518. esac
  1519. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1520. $as_echo "$ac_try_echo"; } >&5
  1521. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1522. ac_status=$?
  1523. if test -s conftest.err; then
  1524. grep -v '^ *+' conftest.err >conftest.er1
  1525. cat conftest.er1 >&5
  1526. mv -f conftest.er1 conftest.err
  1527. fi
  1528. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1529. test $ac_status = 0; } > conftest.i && {
  1530. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  1531. test ! -s conftest.err
  1532. }; then :
  1533. ac_retval=0
  1534. else
  1535. $as_echo "$as_me: failed program was:" >&5
  1536. sed 's/^/| /' conftest.$ac_ext >&5
  1537. ac_retval=1
  1538. fi
  1539. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1540. as_fn_set_status $ac_retval
  1541. } # ac_fn_c_try_cpp
  1542. # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
  1543. # -------------------------------------------------------
  1544. # Tests whether HEADER exists, giving a warning if it cannot be compiled using
  1545. # the include files in INCLUDES and setting the cache variable VAR
  1546. # accordingly.
  1547. ac_fn_c_check_header_mongrel ()
  1548. {
  1549. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1550. if eval \${$3+:} false; then :
  1551. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1552. $as_echo_n "checking for $2... " >&6; }
  1553. if eval \${$3+:} false; then :
  1554. $as_echo_n "(cached) " >&6
  1555. fi
  1556. eval ac_res=\$$3
  1557. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1558. $as_echo "$ac_res" >&6; }
  1559. else
  1560. # Is the header compilable?
  1561. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
  1562. $as_echo_n "checking $2 usability... " >&6; }
  1563. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1564. /* end confdefs.h. */
  1565. $4
  1566. #include <$2>
  1567. _ACEOF
  1568. if ac_fn_c_try_compile "$LINENO"; then :
  1569. ac_header_compiler=yes
  1570. else
  1571. ac_header_compiler=no
  1572. fi
  1573. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1574. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
  1575. $as_echo "$ac_header_compiler" >&6; }
  1576. # Is the header present?
  1577. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
  1578. $as_echo_n "checking $2 presence... " >&6; }
  1579. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1580. /* end confdefs.h. */
  1581. #include <$2>
  1582. _ACEOF
  1583. if ac_fn_c_try_cpp "$LINENO"; then :
  1584. ac_header_preproc=yes
  1585. else
  1586. ac_header_preproc=no
  1587. fi
  1588. rm -f conftest.err conftest.i conftest.$ac_ext
  1589. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
  1590. $as_echo "$ac_header_preproc" >&6; }
  1591. # So? What about this header?
  1592. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
  1593. yes:no: )
  1594. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
  1595. $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
  1596. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1597. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1598. ;;
  1599. no:yes:* )
  1600. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
  1601. $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
  1602. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
  1603. $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
  1604. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
  1605. $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
  1606. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
  1607. $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
  1608. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1609. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1610. ( $as_echo "## ---------------------------------- ##
  1611. ## Report this to christos@astron.com ##
  1612. ## ---------------------------------- ##"
  1613. ) | sed "s/^/$as_me: WARNING: /" >&2
  1614. ;;
  1615. esac
  1616. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1617. $as_echo_n "checking for $2... " >&6; }
  1618. if eval \${$3+:} false; then :
  1619. $as_echo_n "(cached) " >&6
  1620. else
  1621. eval "$3=\$ac_header_compiler"
  1622. fi
  1623. eval ac_res=\$$3
  1624. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1625. $as_echo "$ac_res" >&6; }
  1626. fi
  1627. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1628. } # ac_fn_c_check_header_mongrel
  1629. # ac_fn_c_try_run LINENO
  1630. # ----------------------
  1631. # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
  1632. # that executables *can* be run.
  1633. ac_fn_c_try_run ()
  1634. {
  1635. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1636. if { { ac_try="$ac_link"
  1637. case "(($ac_try" in
  1638. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1639. *) ac_try_echo=$ac_try;;
  1640. esac
  1641. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1642. $as_echo "$ac_try_echo"; } >&5
  1643. (eval "$ac_link") 2>&5
  1644. ac_status=$?
  1645. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1646. test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  1647. { { case "(($ac_try" in
  1648. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1649. *) ac_try_echo=$ac_try;;
  1650. esac
  1651. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1652. $as_echo "$ac_try_echo"; } >&5
  1653. (eval "$ac_try") 2>&5
  1654. ac_status=$?
  1655. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1656. test $ac_status = 0; }; }; then :
  1657. ac_retval=0
  1658. else
  1659. $as_echo "$as_me: program exited with status $ac_status" >&5
  1660. $as_echo "$as_me: failed program was:" >&5
  1661. sed 's/^/| /' conftest.$ac_ext >&5
  1662. ac_retval=$ac_status
  1663. fi
  1664. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1665. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1666. as_fn_set_status $ac_retval
  1667. } # ac_fn_c_try_run
  1668. # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
  1669. # -------------------------------------------------------
  1670. # Tests whether HEADER exists and can be compiled using the include files in
  1671. # INCLUDES, setting the cache variable VAR accordingly.
  1672. ac_fn_c_check_header_compile ()
  1673. {
  1674. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1675. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1676. $as_echo_n "checking for $2... " >&6; }
  1677. if eval \${$3+:} false; then :
  1678. $as_echo_n "(cached) " >&6
  1679. else
  1680. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1681. /* end confdefs.h. */
  1682. $4
  1683. #include <$2>
  1684. _ACEOF
  1685. if ac_fn_c_try_compile "$LINENO"; then :
  1686. eval "$3=yes"
  1687. else
  1688. eval "$3=no"
  1689. fi
  1690. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1691. fi
  1692. eval ac_res=\$$3
  1693. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1694. $as_echo "$ac_res" >&6; }
  1695. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1696. } # ac_fn_c_check_header_compile
  1697. # ac_fn_c_try_link LINENO
  1698. # -----------------------
  1699. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1700. ac_fn_c_try_link ()
  1701. {
  1702. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1703. rm -f conftest.$ac_objext conftest$ac_exeext
  1704. if { { ac_try="$ac_link"
  1705. case "(($ac_try" in
  1706. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1707. *) ac_try_echo=$ac_try;;
  1708. esac
  1709. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1710. $as_echo "$ac_try_echo"; } >&5
  1711. (eval "$ac_link") 2>conftest.err
  1712. ac_status=$?
  1713. if test -s conftest.err; then
  1714. grep -v '^ *+' conftest.err >conftest.er1
  1715. cat conftest.er1 >&5
  1716. mv -f conftest.er1 conftest.err
  1717. fi
  1718. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1719. test $ac_status = 0; } && {
  1720. test -z "$ac_c_werror_flag" ||
  1721. test ! -s conftest.err
  1722. } && test -s conftest$ac_exeext && {
  1723. test "$cross_compiling" = yes ||
  1724. $as_test_x conftest$ac_exeext
  1725. }; then :
  1726. ac_retval=0
  1727. else
  1728. $as_echo "$as_me: failed program was:" >&5
  1729. sed 's/^/| /' conftest.$ac_ext >&5
  1730. ac_retval=1
  1731. fi
  1732. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1733. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1734. # interfere with the next link command; also delete a directory that is
  1735. # left behind by Apple's compiler. We do this before executing the actions.
  1736. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1737. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1738. as_fn_set_status $ac_retval
  1739. } # ac_fn_c_try_link
  1740. # ac_fn_c_check_func LINENO FUNC VAR
  1741. # ----------------------------------
  1742. # Tests whether FUNC exists, setting the cache variable VAR accordingly
  1743. ac_fn_c_check_func ()
  1744. {
  1745. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1746. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1747. $as_echo_n "checking for $2... " >&6; }
  1748. if eval \${$3+:} false; then :
  1749. $as_echo_n "(cached) " >&6
  1750. else
  1751. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1752. /* end confdefs.h. */
  1753. /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  1754. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  1755. #define $2 innocuous_$2
  1756. /* System header to define __stub macros and hopefully few prototypes,
  1757. which can conflict with char $2 (); below.
  1758. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  1759. <limits.h> exists even on freestanding compilers. */
  1760. #ifdef __STDC__
  1761. # include <limits.h>
  1762. #else
  1763. # include <assert.h>
  1764. #endif
  1765. #undef $2
  1766. /* Override any GCC internal prototype to avoid an error.
  1767. Use char because int might match the return type of a GCC
  1768. builtin and then its argument prototype would still apply. */
  1769. #ifdef __cplusplus
  1770. extern "C"
  1771. #endif
  1772. char $2 ();
  1773. /* The GNU C library defines this for functions which it implements
  1774. to always fail with ENOSYS. Some functions are actually named
  1775. something starting with __ and the normal name is an alias. */
  1776. #if defined __stub_$2 || defined __stub___$2
  1777. choke me
  1778. #endif
  1779. int
  1780. main ()
  1781. {
  1782. return $2 ();
  1783. ;
  1784. return 0;
  1785. }
  1786. _ACEOF
  1787. if ac_fn_c_try_link "$LINENO"; then :
  1788. eval "$3=yes"
  1789. else
  1790. eval "$3=no"
  1791. fi
  1792. rm -f core conftest.err conftest.$ac_objext \
  1793. conftest$ac_exeext conftest.$ac_ext
  1794. fi
  1795. eval ac_res=\$$3
  1796. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1797. $as_echo "$ac_res" >&6; }
  1798. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1799. } # ac_fn_c_check_func
  1800. # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
  1801. # -------------------------------------------
  1802. # Tests whether TYPE exists after having included INCLUDES, setting cache
  1803. # variable VAR accordingly.
  1804. ac_fn_c_check_type ()
  1805. {
  1806. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1807. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1808. $as_echo_n "checking for $2... " >&6; }
  1809. if eval \${$3+:} false; then :
  1810. $as_echo_n "(cached) " >&6
  1811. else
  1812. eval "$3=no"
  1813. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1814. /* end confdefs.h. */
  1815. $4
  1816. int
  1817. main ()
  1818. {
  1819. if (sizeof ($2))
  1820. return 0;
  1821. ;
  1822. return 0;
  1823. }
  1824. _ACEOF
  1825. if ac_fn_c_try_compile "$LINENO"; then :
  1826. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1827. /* end confdefs.h. */
  1828. $4
  1829. int
  1830. main ()
  1831. {
  1832. if (sizeof (($2)))
  1833. return 0;
  1834. ;
  1835. return 0;
  1836. }
  1837. _ACEOF
  1838. if ac_fn_c_try_compile "$LINENO"; then :
  1839. else
  1840. eval "$3=yes"
  1841. fi
  1842. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1843. fi
  1844. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1845. fi
  1846. eval ac_res=\$$3
  1847. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1848. $as_echo "$ac_res" >&6; }
  1849. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1850. } # ac_fn_c_check_type
  1851. # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
  1852. # ----------------------------------------------------
  1853. # Tries to find if the field MEMBER exists in type AGGR, after including
  1854. # INCLUDES, setting cache variable VAR accordingly.
  1855. ac_fn_c_check_member ()
  1856. {
  1857. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1858. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
  1859. $as_echo_n "checking for $2.$3... " >&6; }
  1860. if eval \${$4+:} false; then :
  1861. $as_echo_n "(cached) " >&6
  1862. else
  1863. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1864. /* end confdefs.h. */
  1865. $5
  1866. int
  1867. main ()
  1868. {
  1869. static $2 ac_aggr;
  1870. if (ac_aggr.$3)
  1871. return 0;
  1872. ;
  1873. return 0;
  1874. }
  1875. _ACEOF
  1876. if ac_fn_c_try_compile "$LINENO"; then :
  1877. eval "$4=yes"
  1878. else
  1879. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1880. /* end confdefs.h. */
  1881. $5
  1882. int
  1883. main ()
  1884. {
  1885. static $2 ac_aggr;
  1886. if (sizeof ac_aggr.$3)
  1887. return 0;
  1888. ;
  1889. return 0;
  1890. }
  1891. _ACEOF
  1892. if ac_fn_c_try_compile "$LINENO"; then :
  1893. eval "$4=yes"
  1894. else
  1895. eval "$4=no"
  1896. fi
  1897. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1898. fi
  1899. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1900. fi
  1901. eval ac_res=\$$4
  1902. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1903. $as_echo "$ac_res" >&6; }
  1904. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1905. } # ac_fn_c_check_member
  1906. # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
  1907. # ---------------------------------------------
  1908. # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
  1909. # accordingly.
  1910. ac_fn_c_check_decl ()
  1911. {
  1912. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1913. as_decl_name=`echo $2|sed 's/ *(.*//'`
  1914. as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
  1915. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
  1916. $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
  1917. if eval \${$3+:} false; then :
  1918. $as_echo_n "(cached) " >&6
  1919. else
  1920. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1921. /* end confdefs.h. */
  1922. $4
  1923. int
  1924. main ()
  1925. {
  1926. #ifndef $as_decl_name
  1927. #ifdef __cplusplus
  1928. (void) $as_decl_use;
  1929. #else
  1930. (void) $as_decl_name;
  1931. #endif
  1932. #endif
  1933. ;
  1934. return 0;
  1935. }
  1936. _ACEOF
  1937. if ac_fn_c_try_compile "$LINENO"; then :
  1938. eval "$3=yes"
  1939. else
  1940. eval "$3=no"
  1941. fi
  1942. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1943. fi
  1944. eval ac_res=\$$3
  1945. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1946. $as_echo "$ac_res" >&6; }
  1947. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1948. } # ac_fn_c_check_decl
  1949. # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
  1950. # --------------------------------------------
  1951. # Tries to find the compile-time value of EXPR in a program that includes
  1952. # INCLUDES, setting VAR accordingly. Returns whether the value could be
  1953. # computed
  1954. ac_fn_c_compute_int ()
  1955. {
  1956. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1957. if test "$cross_compiling" = yes; then
  1958. # Depending upon the size, compute the lo and hi bounds.
  1959. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1960. /* end confdefs.h. */
  1961. $4
  1962. int
  1963. main ()
  1964. {
  1965. static int test_array [1 - 2 * !(($2) >= 0)];
  1966. test_array [0] = 0
  1967. ;
  1968. return 0;
  1969. }
  1970. _ACEOF
  1971. if ac_fn_c_try_compile "$LINENO"; then :
  1972. ac_lo=0 ac_mid=0
  1973. while :; do
  1974. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1975. /* end confdefs.h. */
  1976. $4
  1977. int
  1978. main ()
  1979. {
  1980. static int test_array [1 - 2 * !(($2) <= $ac_mid)];
  1981. test_array [0] = 0
  1982. ;
  1983. return 0;
  1984. }
  1985. _ACEOF
  1986. if ac_fn_c_try_compile "$LINENO"; then :
  1987. ac_hi=$ac_mid; break
  1988. else
  1989. as_fn_arith $ac_mid + 1 && ac_lo=$as_val
  1990. if test $ac_lo -le $ac_mid; then
  1991. ac_lo= ac_hi=
  1992. break
  1993. fi
  1994. as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
  1995. fi
  1996. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1997. done
  1998. else
  1999. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2000. /* end confdefs.h. */
  2001. $4
  2002. int
  2003. main ()
  2004. {
  2005. static int test_array [1 - 2 * !(($2) < 0)];
  2006. test_array [0] = 0
  2007. ;
  2008. return 0;
  2009. }
  2010. _ACEOF
  2011. if ac_fn_c_try_compile "$LINENO"; then :
  2012. ac_hi=-1 ac_mid=-1
  2013. while :; do
  2014. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2015. /* end confdefs.h. */
  2016. $4
  2017. int
  2018. main ()
  2019. {
  2020. static int test_array [1 - 2 * !(($2) >= $ac_mid)];
  2021. test_array [0] = 0
  2022. ;
  2023. return 0;
  2024. }
  2025. _ACEOF
  2026. if ac_fn_c_try_compile "$LINENO"; then :
  2027. ac_lo=$ac_mid; break
  2028. else
  2029. as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
  2030. if test $ac_mid -le $ac_hi; then
  2031. ac_lo= ac_hi=
  2032. break
  2033. fi
  2034. as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
  2035. fi
  2036. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2037. done
  2038. else
  2039. ac_lo= ac_hi=
  2040. fi
  2041. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2042. fi
  2043. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2044. # Binary search between lo and hi bounds.
  2045. while test "x$ac_lo" != "x$ac_hi"; do
  2046. as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
  2047. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2048. /* end confdefs.h. */
  2049. $4
  2050. int
  2051. main ()
  2052. {
  2053. static int test_array [1 - 2 * !(($2) <= $ac_mid)];
  2054. test_array [0] = 0
  2055. ;
  2056. return 0;
  2057. }
  2058. _ACEOF
  2059. if ac_fn_c_try_compile "$LINENO"; then :
  2060. ac_hi=$ac_mid
  2061. else
  2062. as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
  2063. fi
  2064. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2065. done
  2066. case $ac_lo in #((
  2067. ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
  2068. '') ac_retval=1 ;;
  2069. esac
  2070. else
  2071. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2072. /* end confdefs.h. */
  2073. $4
  2074. static long int longval () { return $2; }
  2075. static unsigned long int ulongval () { return $2; }
  2076. #include <stdio.h>
  2077. #include <stdlib.h>
  2078. int
  2079. main ()
  2080. {
  2081. FILE *f = fopen ("conftest.val", "w");
  2082. if (! f)
  2083. return 1;
  2084. if (($2) < 0)
  2085. {
  2086. long int i = longval ();
  2087. if (i != ($2))
  2088. return 1;
  2089. fprintf (f, "%ld", i);
  2090. }
  2091. else
  2092. {
  2093. unsigned long int i = ulongval ();
  2094. if (i != ($2))
  2095. return 1;
  2096. fprintf (f, "%lu", i);
  2097. }
  2098. /* Do not output a trailing newline, as this causes \r\n confusion
  2099. on some platforms. */
  2100. return ferror (f) || fclose (f) != 0;
  2101. ;
  2102. return 0;
  2103. }
  2104. _ACEOF
  2105. if ac_fn_c_try_run "$LINENO"; then :
  2106. echo >>conftest.val; read $3 <conftest.val; ac_retval=0
  2107. else
  2108. ac_retval=1
  2109. fi
  2110. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  2111. conftest.$ac_objext conftest.beam conftest.$ac_ext
  2112. rm -f conftest.val
  2113. fi
  2114. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2115. as_fn_set_status $ac_retval
  2116. } # ac_fn_c_compute_int
  2117. cat >config.log <<_ACEOF
  2118. This file contains any messages produced by compilers while
  2119. running configure, to aid debugging if configure makes a mistake.
  2120. It was created by file $as_me 5.09, which was
  2121. generated by GNU Autoconf 2.68. Invocation command line was
  2122. $ $0 $@
  2123. _ACEOF
  2124. exec 5>>config.log
  2125. {
  2126. cat <<_ASUNAME
  2127. ## --------- ##
  2128. ## Platform. ##
  2129. ## --------- ##
  2130. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  2131. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  2132. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  2133. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  2134. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  2135. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  2136. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  2137. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  2138. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  2139. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  2140. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  2141. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  2142. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  2143. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  2144. _ASUNAME
  2145. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2146. for as_dir in $PATH
  2147. do
  2148. IFS=$as_save_IFS
  2149. test -z "$as_dir" && as_dir=.
  2150. $as_echo "PATH: $as_dir"
  2151. done
  2152. IFS=$as_save_IFS
  2153. } >&5
  2154. cat >&5 <<_ACEOF
  2155. ## ----------- ##
  2156. ## Core tests. ##
  2157. ## ----------- ##
  2158. _ACEOF
  2159. # Keep a trace of the command line.
  2160. # Strip out --no-create and --no-recursion so they do not pile up.
  2161. # Strip out --silent because we don't want to record it for future runs.
  2162. # Also quote any args containing shell meta-characters.
  2163. # Make two passes to allow for proper duplicate-argument suppression.
  2164. ac_configure_args=
  2165. ac_configure_args0=
  2166. ac_configure_args1=
  2167. ac_must_keep_next=false
  2168. for ac_pass in 1 2
  2169. do
  2170. for ac_arg
  2171. do
  2172. case $ac_arg in
  2173. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  2174. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  2175. | -silent | --silent | --silen | --sile | --sil)
  2176. continue ;;
  2177. *\'*)
  2178. ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  2179. esac
  2180. case $ac_pass in
  2181. 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  2182. 2)
  2183. as_fn_append ac_configure_args1 " '$ac_arg'"
  2184. if test $ac_must_keep_next = true; then
  2185. ac_must_keep_next=false # Got value, back to normal.
  2186. else
  2187. case $ac_arg in
  2188. *=* | --config-cache | -C | -disable-* | --disable-* \
  2189. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  2190. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  2191. | -with-* | --with-* | -without-* | --without-* | --x)
  2192. case "$ac_configure_args0 " in
  2193. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  2194. esac
  2195. ;;
  2196. -* ) ac_must_keep_next=true ;;
  2197. esac
  2198. fi
  2199. as_fn_append ac_configure_args " '$ac_arg'"
  2200. ;;
  2201. esac
  2202. done
  2203. done
  2204. { ac_configure_args0=; unset ac_configure_args0;}
  2205. { ac_configure_args1=; unset ac_configure_args1;}
  2206. # When interrupted or exit'd, cleanup temporary files, and complete
  2207. # config.log. We remove comments because anyway the quotes in there
  2208. # would cause problems or look ugly.
  2209. # WARNING: Use '\'' to represent an apostrophe within the trap.
  2210. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  2211. trap 'exit_status=$?
  2212. # Save into config.log some information that might help in debugging.
  2213. {
  2214. echo
  2215. $as_echo "## ---------------- ##
  2216. ## Cache variables. ##
  2217. ## ---------------- ##"
  2218. echo
  2219. # The following way of writing the cache mishandles newlines in values,
  2220. (
  2221. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  2222. eval ac_val=\$$ac_var
  2223. case $ac_val in #(
  2224. *${as_nl}*)
  2225. case $ac_var in #(
  2226. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  2227. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  2228. esac
  2229. case $ac_var in #(
  2230. _ | IFS | as_nl) ;; #(
  2231. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  2232. *) { eval $ac_var=; unset $ac_var;} ;;
  2233. esac ;;
  2234. esac
  2235. done
  2236. (set) 2>&1 |
  2237. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  2238. *${as_nl}ac_space=\ *)
  2239. sed -n \
  2240. "s/'\''/'\''\\\\'\'''\''/g;
  2241. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  2242. ;; #(
  2243. *)
  2244. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  2245. ;;
  2246. esac |
  2247. sort
  2248. )
  2249. echo
  2250. $as_echo "## ----------------- ##
  2251. ## Output variables. ##
  2252. ## ----------------- ##"
  2253. echo
  2254. for ac_var in $ac_subst_vars
  2255. do
  2256. eval ac_val=\$$ac_var
  2257. case $ac_val in
  2258. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2259. esac
  2260. $as_echo "$ac_var='\''$ac_val'\''"
  2261. done | sort
  2262. echo
  2263. if test -n "$ac_subst_files"; then
  2264. $as_echo "## ------------------- ##
  2265. ## File substitutions. ##
  2266. ## ------------------- ##"
  2267. echo
  2268. for ac_var in $ac_subst_files
  2269. do
  2270. eval ac_val=\$$ac_var
  2271. case $ac_val in
  2272. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2273. esac
  2274. $as_echo "$ac_var='\''$ac_val'\''"
  2275. done | sort
  2276. echo
  2277. fi
  2278. if test -s confdefs.h; then
  2279. $as_echo "## ----------- ##
  2280. ## confdefs.h. ##
  2281. ## ----------- ##"
  2282. echo
  2283. cat confdefs.h
  2284. echo
  2285. fi
  2286. test "$ac_signal" != 0 &&
  2287. $as_echo "$as_me: caught signal $ac_signal"
  2288. $as_echo "$as_me: exit $exit_status"
  2289. } >&5
  2290. rm -f core *.core core.conftest.* &&
  2291. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  2292. exit $exit_status
  2293. ' 0
  2294. for ac_signal in 1 2 13 15; do
  2295. trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  2296. done
  2297. ac_signal=0
  2298. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  2299. rm -f -r conftest* confdefs.h
  2300. $as_echo "/* confdefs.h */" > confdefs.h
  2301. # Predefined preprocessor variables.
  2302. cat >>confdefs.h <<_ACEOF
  2303. #define PACKAGE_NAME "$PACKAGE_NAME"
  2304. _ACEOF
  2305. cat >>confdefs.h <<_ACEOF
  2306. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  2307. _ACEOF
  2308. cat >>confdefs.h <<_ACEOF
  2309. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  2310. _ACEOF
  2311. cat >>confdefs.h <<_ACEOF
  2312. #define PACKAGE_STRING "$PACKAGE_STRING"
  2313. _ACEOF
  2314. cat >>confdefs.h <<_ACEOF
  2315. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  2316. _ACEOF
  2317. cat >>confdefs.h <<_ACEOF
  2318. #define PACKAGE_URL "$PACKAGE_URL"
  2319. _ACEOF
  2320. # Let the site file select an alternate cache file if it wants to.
  2321. # Prefer an explicitly selected file to automatically selected ones.
  2322. ac_site_file1=NONE
  2323. ac_site_file2=NONE
  2324. if test -n "$CONFIG_SITE"; then
  2325. # We do not want a PATH search for config.site.
  2326. case $CONFIG_SITE in #((
  2327. -*) ac_site_file1=./$CONFIG_SITE;;
  2328. */*) ac_site_file1=$CONFIG_SITE;;
  2329. *) ac_site_file1=./$CONFIG_SITE;;
  2330. esac
  2331. elif test "x$prefix" != xNONE; then
  2332. ac_site_file1=$prefix/share/config.site
  2333. ac_site_file2=$prefix/etc/config.site
  2334. else
  2335. ac_site_file1=$ac_default_prefix/share/config.site
  2336. ac_site_file2=$ac_default_prefix/etc/config.site
  2337. fi
  2338. for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  2339. do
  2340. test "x$ac_site_file" = xNONE && continue
  2341. if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
  2342. { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  2343. $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  2344. sed 's/^/| /' "$ac_site_file" >&5
  2345. . "$ac_site_file" \
  2346. || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2347. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2348. as_fn_error $? "failed to load site script $ac_site_file
  2349. See \`config.log' for more details" "$LINENO" 5; }
  2350. fi
  2351. done
  2352. if test -r "$cache_file"; then
  2353. # Some versions of bash will fail to source /dev/null (special files
  2354. # actually), so we avoid doing that. DJGPP emulates it as a regular file.
  2355. if test /dev/null != "$cache_file" && test -f "$cache_file"; then
  2356. { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  2357. $as_echo "$as_me: loading cache $cache_file" >&6;}
  2358. case $cache_file in
  2359. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  2360. *) . "./$cache_file";;
  2361. esac
  2362. fi
  2363. else
  2364. { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  2365. $as_echo "$as_me: creating cache $cache_file" >&6;}
  2366. >$cache_file
  2367. fi
  2368. # Check that the precious variables saved in the cache have kept the same
  2369. # value.
  2370. ac_cache_corrupted=false
  2371. for ac_var in $ac_precious_vars; do
  2372. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  2373. eval ac_new_set=\$ac_env_${ac_var}_set
  2374. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  2375. eval ac_new_val=\$ac_env_${ac_var}_value
  2376. case $ac_old_set,$ac_new_set in
  2377. set,)
  2378. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  2379. $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  2380. ac_cache_corrupted=: ;;
  2381. ,set)
  2382. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  2383. $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  2384. ac_cache_corrupted=: ;;
  2385. ,);;
  2386. *)
  2387. if test "x$ac_old_val" != "x$ac_new_val"; then
  2388. # differences in whitespace do not lead to failure.
  2389. ac_old_val_w=`echo x $ac_old_val`
  2390. ac_new_val_w=`echo x $ac_new_val`
  2391. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  2392. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  2393. $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  2394. ac_cache_corrupted=:
  2395. else
  2396. { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  2397. $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  2398. eval $ac_var=\$ac_old_val
  2399. fi
  2400. { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  2401. $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  2402. { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  2403. $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  2404. fi;;
  2405. esac
  2406. # Pass precious variables to config.status.
  2407. if test "$ac_new_set" = set; then
  2408. case $ac_new_val in
  2409. *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  2410. *) ac_arg=$ac_var=$ac_new_val ;;
  2411. esac
  2412. case " $ac_configure_args " in
  2413. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  2414. *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  2415. esac
  2416. fi
  2417. done
  2418. if $ac_cache_corrupted; then
  2419. { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2420. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2421. { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  2422. $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  2423. as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
  2424. fi
  2425. ## -------------------- ##
  2426. ## Main body of script. ##
  2427. ## -------------------- ##
  2428. ac_ext=c
  2429. ac_cpp='$CPP $CPPFLAGS'
  2430. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2431. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2432. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2433. am__api_version='1.11'
  2434. ac_aux_dir=
  2435. for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
  2436. if test -f "$ac_dir/install-sh"; then
  2437. ac_aux_dir=$ac_dir
  2438. ac_install_sh="$ac_aux_dir/install-sh -c"
  2439. break
  2440. elif test -f "$ac_dir/install.sh"; then
  2441. ac_aux_dir=$ac_dir
  2442. ac_install_sh="$ac_aux_dir/install.sh -c"
  2443. break
  2444. elif test -f "$ac_dir/shtool"; then
  2445. ac_aux_dir=$ac_dir
  2446. ac_install_sh="$ac_aux_dir/shtool install -c"
  2447. break
  2448. fi
  2449. done
  2450. if test -z "$ac_aux_dir"; then
  2451. as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
  2452. fi
  2453. # These three variables are undocumented and unsupported,
  2454. # and are intended to be withdrawn in a future Autoconf release.
  2455. # They can cause serious problems if a builder's source tree is in a directory
  2456. # whose full name contains unusual characters.
  2457. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  2458. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  2459. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  2460. # Find a good install program. We prefer a C program (faster),
  2461. # so one script is as good as another. But avoid the broken or
  2462. # incompatible versions:
  2463. # SysV /etc/install, /usr/sbin/install
  2464. # SunOS /usr/etc/install
  2465. # IRIX /sbin/install
  2466. # AIX /bin/install
  2467. # AmigaOS /C/install, which installs bootblocks on floppy discs
  2468. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  2469. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  2470. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  2471. # OS/2's system install, which has a completely different semantic
  2472. # ./install, which can be erroneously created by make from ./install.sh.
  2473. # Reject install programs that cannot install multiple files.
  2474. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  2475. $as_echo_n "checking for a BSD-compatible install... " >&6; }
  2476. if test -z "$INSTALL"; then
  2477. if ${ac_cv_path_install+:} false; then :
  2478. $as_echo_n "(cached) " >&6
  2479. else
  2480. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2481. for as_dir in $PATH
  2482. do
  2483. IFS=$as_save_IFS
  2484. test -z "$as_dir" && as_dir=.
  2485. # Account for people who put trailing slashes in PATH elements.
  2486. case $as_dir/ in #((
  2487. ./ | .// | /[cC]/* | \
  2488. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  2489. ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  2490. /usr/ucb/* ) ;;
  2491. *)
  2492. # OSF1 and SCO ODT 3.0 have their own names for install.
  2493. # Don't use installbsd from OSF since it installs stuff as root
  2494. # by default.
  2495. for ac_prog in ginstall scoinst install; do
  2496. for ac_exec_ext in '' $ac_executable_extensions; do
  2497. if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
  2498. if test $ac_prog = install &&
  2499. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2500. # AIX install. It has an incompatible calling convention.
  2501. :
  2502. elif test $ac_prog = install &&
  2503. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2504. # program-specific install script used by HP pwplus--don't use.
  2505. :
  2506. else
  2507. rm -rf conftest.one conftest.two conftest.dir
  2508. echo one > conftest.one
  2509. echo two > conftest.two
  2510. mkdir conftest.dir
  2511. if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
  2512. test -s conftest.one && test -s conftest.two &&
  2513. test -s conftest.dir/conftest.one &&
  2514. test -s conftest.dir/conftest.two
  2515. then
  2516. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  2517. break 3
  2518. fi
  2519. fi
  2520. fi
  2521. done
  2522. done
  2523. ;;
  2524. esac
  2525. done
  2526. IFS=$as_save_IFS
  2527. rm -rf conftest.one conftest.two conftest.dir
  2528. fi
  2529. if test "${ac_cv_path_install+set}" = set; then
  2530. INSTALL=$ac_cv_path_install
  2531. else
  2532. # As a last resort, use the slow shell script. Don't cache a
  2533. # value for INSTALL within a source directory, because that will
  2534. # break other packages using the cache if that directory is
  2535. # removed, or if the value is a relative name.
  2536. INSTALL=$ac_install_sh
  2537. fi
  2538. fi
  2539. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  2540. $as_echo "$INSTALL" >&6; }
  2541. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  2542. # It thinks the first close brace ends the variable substitution.
  2543. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  2544. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  2545. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  2546. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
  2547. $as_echo_n "checking whether build environment is sane... " >&6; }
  2548. # Just in case
  2549. sleep 1
  2550. echo timestamp > conftest.file
  2551. # Reject unsafe characters in $srcdir or the absolute working directory
  2552. # name. Accept space and tab only in the latter.
  2553. am_lf='
  2554. '
  2555. case `pwd` in
  2556. *[\\\"\#\$\&\'\`$am_lf]*)
  2557. as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
  2558. esac
  2559. case $srcdir in
  2560. *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
  2561. as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
  2562. esac
  2563. # Do `set' in a subshell so we don't clobber the current shell's
  2564. # arguments. Must try -L first in case configure is actually a
  2565. # symlink; some systems play weird games with the mod time of symlinks
  2566. # (eg FreeBSD returns the mod time of the symlink's containing
  2567. # directory).
  2568. if (
  2569. set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
  2570. if test "$*" = "X"; then
  2571. # -L didn't work.
  2572. set X `ls -t "$srcdir/configure" conftest.file`
  2573. fi
  2574. rm -f conftest.file
  2575. if test "$*" != "X $srcdir/configure conftest.file" \
  2576. && test "$*" != "X conftest.file $srcdir/configure"; then
  2577. # If neither matched, then we have a broken ls. This can happen
  2578. # if, for instance, CONFIG_SHELL is bash and it inherits a
  2579. # broken ls alias from the environment. This has actually
  2580. # happened. Such a system could not be considered "sane".
  2581. as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
  2582. alias in your environment" "$LINENO" 5
  2583. fi
  2584. test "$2" = conftest.file
  2585. )
  2586. then
  2587. # Ok.
  2588. :
  2589. else
  2590. as_fn_error $? "newly created file is older than distributed files!
  2591. Check your system clock" "$LINENO" 5
  2592. fi
  2593. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2594. $as_echo "yes" >&6; }
  2595. test "$program_prefix" != NONE &&
  2596. program_transform_name="s&^&$program_prefix&;$program_transform_name"
  2597. # Use a double $ so make ignores it.
  2598. test "$program_suffix" != NONE &&
  2599. program_transform_name="s&\$&$program_suffix&;$program_transform_name"
  2600. # Double any \ or $.
  2601. # By default was `s,x,x', remove it if useless.
  2602. ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
  2603. program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
  2604. # expand $ac_aux_dir to an absolute path
  2605. am_aux_dir=`cd $ac_aux_dir && pwd`
  2606. if test x"${MISSING+set}" != xset; then
  2607. case $am_aux_dir in
  2608. *\ * | *\ *)
  2609. MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
  2610. *)
  2611. MISSING="\${SHELL} $am_aux_dir/missing" ;;
  2612. esac
  2613. fi
  2614. # Use eval to expand $SHELL
  2615. if eval "$MISSING --run true"; then
  2616. am_missing_run="$MISSING --run "
  2617. else
  2618. am_missing_run=
  2619. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
  2620. $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
  2621. fi
  2622. if test x"${install_sh}" != xset; then
  2623. case $am_aux_dir in
  2624. *\ * | *\ *)
  2625. install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
  2626. *)
  2627. install_sh="\${SHELL} $am_aux_dir/install-sh"
  2628. esac
  2629. fi
  2630. # Installed binaries are usually stripped using `strip' when the user
  2631. # run `make install-strip'. However `strip' might not be the right
  2632. # tool to use in cross-compilation environments, therefore Automake
  2633. # will honor the `STRIP' environment variable to overrule this program.
  2634. if test "$cross_compiling" != no; then
  2635. if test -n "$ac_tool_prefix"; then
  2636. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  2637. set dummy ${ac_tool_prefix}strip; ac_word=$2
  2638. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2639. $as_echo_n "checking for $ac_word... " >&6; }
  2640. if ${ac_cv_prog_STRIP+:} false; then :
  2641. $as_echo_n "(cached) " >&6
  2642. else
  2643. if test -n "$STRIP"; then
  2644. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  2645. else
  2646. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2647. for as_dir in $PATH
  2648. do
  2649. IFS=$as_save_IFS
  2650. test -z "$as_dir" && as_dir=.
  2651. for ac_exec_ext in '' $ac_executable_extensions; do
  2652. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2653. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  2654. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2655. break 2
  2656. fi
  2657. done
  2658. done
  2659. IFS=$as_save_IFS
  2660. fi
  2661. fi
  2662. STRIP=$ac_cv_prog_STRIP
  2663. if test -n "$STRIP"; then
  2664. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  2665. $as_echo "$STRIP" >&6; }
  2666. else
  2667. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2668. $as_echo "no" >&6; }
  2669. fi
  2670. fi
  2671. if test -z "$ac_cv_prog_STRIP"; then
  2672. ac_ct_STRIP=$STRIP
  2673. # Extract the first word of "strip", so it can be a program name with args.
  2674. set dummy strip; ac_word=$2
  2675. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2676. $as_echo_n "checking for $ac_word... " >&6; }
  2677. if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
  2678. $as_echo_n "(cached) " >&6
  2679. else
  2680. if test -n "$ac_ct_STRIP"; then
  2681. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  2682. else
  2683. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2684. for as_dir in $PATH
  2685. do
  2686. IFS=$as_save_IFS
  2687. test -z "$as_dir" && as_dir=.
  2688. for ac_exec_ext in '' $ac_executable_extensions; do
  2689. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2690. ac_cv_prog_ac_ct_STRIP="strip"
  2691. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2692. break 2
  2693. fi
  2694. done
  2695. done
  2696. IFS=$as_save_IFS
  2697. fi
  2698. fi
  2699. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  2700. if test -n "$ac_ct_STRIP"; then
  2701. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  2702. $as_echo "$ac_ct_STRIP" >&6; }
  2703. else
  2704. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2705. $as_echo "no" >&6; }
  2706. fi
  2707. if test "x$ac_ct_STRIP" = x; then
  2708. STRIP=":"
  2709. else
  2710. case $cross_compiling:$ac_tool_warned in
  2711. yes:)
  2712. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2713. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2714. ac_tool_warned=yes ;;
  2715. esac
  2716. STRIP=$ac_ct_STRIP
  2717. fi
  2718. else
  2719. STRIP="$ac_cv_prog_STRIP"
  2720. fi
  2721. fi
  2722. INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
  2723. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
  2724. $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
  2725. if test -z "$MKDIR_P"; then
  2726. if ${ac_cv_path_mkdir+:} false; then :
  2727. $as_echo_n "(cached) " >&6
  2728. else
  2729. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2730. for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
  2731. do
  2732. IFS=$as_save_IFS
  2733. test -z "$as_dir" && as_dir=.
  2734. for ac_prog in mkdir gmkdir; do
  2735. for ac_exec_ext in '' $ac_executable_extensions; do
  2736. { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
  2737. case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
  2738. 'mkdir (GNU coreutils) '* | \
  2739. 'mkdir (coreutils) '* | \
  2740. 'mkdir (fileutils) '4.1*)
  2741. ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
  2742. break 3;;
  2743. esac
  2744. done
  2745. done
  2746. done
  2747. IFS=$as_save_IFS
  2748. fi
  2749. test -d ./--version && rmdir ./--version
  2750. if test "${ac_cv_path_mkdir+set}" = set; then
  2751. MKDIR_P="$ac_cv_path_mkdir -p"
  2752. else
  2753. # As a last resort, use the slow shell script. Don't cache a
  2754. # value for MKDIR_P within a source directory, because that will
  2755. # break other packages using the cache if that directory is
  2756. # removed, or if the value is a relative name.
  2757. MKDIR_P="$ac_install_sh -d"
  2758. fi
  2759. fi
  2760. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
  2761. $as_echo "$MKDIR_P" >&6; }
  2762. mkdir_p="$MKDIR_P"
  2763. case $mkdir_p in
  2764. [\\/$]* | ?:[\\/]*) ;;
  2765. */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
  2766. esac
  2767. for ac_prog in gawk mawk nawk awk
  2768. do
  2769. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2770. set dummy $ac_prog; ac_word=$2
  2771. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2772. $as_echo_n "checking for $ac_word... " >&6; }
  2773. if ${ac_cv_prog_AWK+:} false; then :
  2774. $as_echo_n "(cached) " >&6
  2775. else
  2776. if test -n "$AWK"; then
  2777. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  2778. else
  2779. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2780. for as_dir in $PATH
  2781. do
  2782. IFS=$as_save_IFS
  2783. test -z "$as_dir" && as_dir=.
  2784. for ac_exec_ext in '' $ac_executable_extensions; do
  2785. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2786. ac_cv_prog_AWK="$ac_prog"
  2787. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2788. break 2
  2789. fi
  2790. done
  2791. done
  2792. IFS=$as_save_IFS
  2793. fi
  2794. fi
  2795. AWK=$ac_cv_prog_AWK
  2796. if test -n "$AWK"; then
  2797. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  2798. $as_echo "$AWK" >&6; }
  2799. else
  2800. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2801. $as_echo "no" >&6; }
  2802. fi
  2803. test -n "$AWK" && break
  2804. done
  2805. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  2806. $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  2807. set x ${MAKE-make}
  2808. ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  2809. if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
  2810. $as_echo_n "(cached) " >&6
  2811. else
  2812. cat >conftest.make <<\_ACEOF
  2813. SHELL = /bin/sh
  2814. all:
  2815. @echo '@@@%%%=$(MAKE)=@@@%%%'
  2816. _ACEOF
  2817. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  2818. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  2819. *@@@%%%=?*=@@@%%%*)
  2820. eval ac_cv_prog_make_${ac_make}_set=yes;;
  2821. *)
  2822. eval ac_cv_prog_make_${ac_make}_set=no;;
  2823. esac
  2824. rm -f conftest.make
  2825. fi
  2826. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  2827. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2828. $as_echo "yes" >&6; }
  2829. SET_MAKE=
  2830. else
  2831. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2832. $as_echo "no" >&6; }
  2833. SET_MAKE="MAKE=${MAKE-make}"
  2834. fi
  2835. rm -rf .tst 2>/dev/null
  2836. mkdir .tst 2>/dev/null
  2837. if test -d .tst; then
  2838. am__leading_dot=.
  2839. else
  2840. am__leading_dot=_
  2841. fi
  2842. rmdir .tst 2>/dev/null
  2843. if test "`cd $srcdir && pwd`" != "`pwd`"; then
  2844. # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
  2845. # is not polluted with repeated "-I."
  2846. am__isrc=' -I$(srcdir)'
  2847. # test to see if srcdir already configured
  2848. if test -f $srcdir/config.status; then
  2849. as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
  2850. fi
  2851. fi
  2852. # test whether we have cygpath
  2853. if test -z "$CYGPATH_W"; then
  2854. if (cygpath --version) >/dev/null 2>/dev/null; then
  2855. CYGPATH_W='cygpath -w'
  2856. else
  2857. CYGPATH_W=echo
  2858. fi
  2859. fi
  2860. # Define the identity of the package.
  2861. PACKAGE='file'
  2862. VERSION='5.09'
  2863. cat >>confdefs.h <<_ACEOF
  2864. #define PACKAGE "$PACKAGE"
  2865. _ACEOF
  2866. cat >>confdefs.h <<_ACEOF
  2867. #define VERSION "$VERSION"
  2868. _ACEOF
  2869. # Some tools Automake needs.
  2870. ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
  2871. AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
  2872. AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
  2873. AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
  2874. MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
  2875. # We need awk for the "check" target. The system "awk" is bad on
  2876. # some platforms.
  2877. # Always define AMTAR for backward compatibility.
  2878. AMTAR=${AMTAR-"${am_missing_run}tar"}
  2879. am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
  2880. # Check whether --enable-silent-rules was given.
  2881. if test "${enable_silent_rules+set}" = set; then :
  2882. enableval=$enable_silent_rules;
  2883. fi
  2884. case $enable_silent_rules in
  2885. yes) AM_DEFAULT_VERBOSITY=0;;
  2886. no) AM_DEFAULT_VERBOSITY=1;;
  2887. *) AM_DEFAULT_VERBOSITY=0;;
  2888. esac
  2889. AM_BACKSLASH='\'
  2890. ac_config_headers="$ac_config_headers config.h"
  2891. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for builtin ELF support" >&5
  2892. $as_echo_n "checking for builtin ELF support... " >&6; }
  2893. # Check whether --enable-elf was given.
  2894. if test "${enable_elf+set}" = set; then :
  2895. enableval=$enable_elf; if test "${enableval}" = yes; then
  2896. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2897. $as_echo "yes" >&6; }
  2898. $as_echo "#define BUILTIN_ELF 1" >>confdefs.h
  2899. else
  2900. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2901. $as_echo "no" >&6; }
  2902. fi
  2903. else
  2904. # enable by default
  2905. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2906. $as_echo "yes" >&6; }
  2907. $as_echo "#define BUILTIN_ELF 1" >>confdefs.h
  2908. fi
  2909. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ELF core file support" >&5
  2910. $as_echo_n "checking for ELF core file support... " >&6; }
  2911. # Check whether --enable-elf-core was given.
  2912. if test "${enable_elf_core+set}" = set; then :
  2913. enableval=$enable_elf_core; if test "${enableval}" = yes; then
  2914. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2915. $as_echo "yes" >&6; }
  2916. $as_echo "#define ELFCORE 1" >>confdefs.h
  2917. else
  2918. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2919. $as_echo "no" >&6; }
  2920. fi
  2921. else
  2922. # enable by default
  2923. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2924. $as_echo "yes" >&6; }
  2925. $as_echo "#define ELFCORE 1" >>confdefs.h
  2926. fi
  2927. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file formats in man section 5" >&5
  2928. $as_echo_n "checking for file formats in man section 5... " >&6; }
  2929. # Check whether --enable-fsect-man5 was given.
  2930. if test "${enable_fsect_man5+set}" = set; then :
  2931. enableval=$enable_fsect_man5; if test "${enableval}" = yes; then
  2932. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2933. $as_echo "yes" >&6; }
  2934. fsect=5
  2935. else
  2936. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2937. $as_echo "no" >&6; }
  2938. fsect=4
  2939. fi
  2940. else
  2941. # disable by default
  2942. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2943. $as_echo "no" >&6; }
  2944. fsect=4
  2945. fi
  2946. # Make sure we can run config.sub.
  2947. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  2948. as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
  2949. { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  2950. $as_echo_n "checking build system type... " >&6; }
  2951. if ${ac_cv_build+:} false; then :
  2952. $as_echo_n "(cached) " >&6
  2953. else
  2954. ac_build_alias=$build_alias
  2955. test "x$ac_build_alias" = x &&
  2956. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  2957. test "x$ac_build_alias" = x &&
  2958. as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
  2959. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  2960. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
  2961. fi
  2962. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  2963. $as_echo "$ac_cv_build" >&6; }
  2964. case $ac_cv_build in
  2965. *-*-*) ;;
  2966. *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
  2967. esac
  2968. build=$ac_cv_build
  2969. ac_save_IFS=$IFS; IFS='-'
  2970. set x $ac_cv_build
  2971. shift
  2972. build_cpu=$1
  2973. build_vendor=$2
  2974. shift; shift
  2975. # Remember, the first character of IFS is used to create $*,
  2976. # except with old shells:
  2977. build_os=$*
  2978. IFS=$ac_save_IFS
  2979. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  2980. { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  2981. $as_echo_n "checking host system type... " >&6; }
  2982. if ${ac_cv_host+:} false; then :
  2983. $as_echo_n "(cached) " >&6
  2984. else
  2985. if test "x$host_alias" = x; then
  2986. ac_cv_host=$ac_cv_build
  2987. else
  2988. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  2989. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
  2990. fi
  2991. fi
  2992. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  2993. $as_echo "$ac_cv_host" >&6; }
  2994. case $ac_cv_host in
  2995. *-*-*) ;;
  2996. *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
  2997. esac
  2998. host=$ac_cv_host
  2999. ac_save_IFS=$IFS; IFS='-'
  3000. set x $ac_cv_host
  3001. shift
  3002. host_cpu=$1
  3003. host_vendor=$2
  3004. shift; shift
  3005. # Remember, the first character of IFS is used to create $*,
  3006. # except with old shells:
  3007. host_os=$*
  3008. IFS=$ac_save_IFS
  3009. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  3010. case "$host_os" in
  3011. mingw32*)
  3012. MINGW=1
  3013. ;;
  3014. *)
  3015. MINGW=0
  3016. ;;
  3017. esac
  3018. if test "$MINGW" = 1; then
  3019. MINGW_TRUE=
  3020. MINGW_FALSE='#'
  3021. else
  3022. MINGW_TRUE='#'
  3023. MINGW_FALSE=
  3024. fi
  3025. pkgdatadir='$(datadir)/misc'
  3026. if test x$fsect = x5; then
  3027. FSECT5_TRUE=
  3028. FSECT5_FALSE='#'
  3029. else
  3030. FSECT5_TRUE='#'
  3031. FSECT5_FALSE=
  3032. fi
  3033. DEPDIR="${am__leading_dot}deps"
  3034. ac_config_commands="$ac_config_commands depfiles"
  3035. am_make=${MAKE-make}
  3036. cat > confinc << 'END'
  3037. am__doit:
  3038. @echo this is the am__doit target
  3039. .PHONY: am__doit
  3040. END
  3041. # If we don't find an include directive, just comment out the code.
  3042. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
  3043. $as_echo_n "checking for style of include used by $am_make... " >&6; }
  3044. am__include="#"
  3045. am__quote=
  3046. _am_result=none
  3047. # First try GNU make style include.
  3048. echo "include confinc" > confmf
  3049. # Ignore all kinds of additional output from `make'.
  3050. case `$am_make -s -f confmf 2> /dev/null` in #(
  3051. *the\ am__doit\ target*)
  3052. am__include=include
  3053. am__quote=
  3054. _am_result=GNU
  3055. ;;
  3056. esac
  3057. # Now try BSD make style include.
  3058. if test "$am__include" = "#"; then
  3059. echo '.include "confinc"' > confmf
  3060. case `$am_make -s -f confmf 2> /dev/null` in #(
  3061. *the\ am__doit\ target*)
  3062. am__include=.include
  3063. am__quote="\""
  3064. _am_result=BSD
  3065. ;;
  3066. esac
  3067. fi
  3068. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
  3069. $as_echo "$_am_result" >&6; }
  3070. rm -f confinc confmf
  3071. # Check whether --enable-dependency-tracking was given.
  3072. if test "${enable_dependency_tracking+set}" = set; then :
  3073. enableval=$enable_dependency_tracking;
  3074. fi
  3075. if test "x$enable_dependency_tracking" != xno; then
  3076. am_depcomp="$ac_aux_dir/depcomp"
  3077. AMDEPBACKSLASH='\'
  3078. fi
  3079. if test "x$enable_dependency_tracking" != xno; then
  3080. AMDEP_TRUE=
  3081. AMDEP_FALSE='#'
  3082. else
  3083. AMDEP_TRUE='#'
  3084. AMDEP_FALSE=
  3085. fi
  3086. ac_ext=c
  3087. ac_cpp='$CPP $CPPFLAGS'
  3088. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3089. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3090. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3091. if test -n "$ac_tool_prefix"; then
  3092. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  3093. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  3094. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3095. $as_echo_n "checking for $ac_word... " >&6; }
  3096. if ${ac_cv_prog_CC+:} false; then :
  3097. $as_echo_n "(cached) " >&6
  3098. else
  3099. if test -n "$CC"; then
  3100. ac_cv_prog_CC="$CC" # Let the user override the test.
  3101. else
  3102. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3103. for as_dir in $PATH
  3104. do
  3105. IFS=$as_save_IFS
  3106. test -z "$as_dir" && as_dir=.
  3107. for ac_exec_ext in '' $ac_executable_extensions; do
  3108. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3109. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  3110. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3111. break 2
  3112. fi
  3113. done
  3114. done
  3115. IFS=$as_save_IFS
  3116. fi
  3117. fi
  3118. CC=$ac_cv_prog_CC
  3119. if test -n "$CC"; then
  3120. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3121. $as_echo "$CC" >&6; }
  3122. else
  3123. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3124. $as_echo "no" >&6; }
  3125. fi
  3126. fi
  3127. if test -z "$ac_cv_prog_CC"; then
  3128. ac_ct_CC=$CC
  3129. # Extract the first word of "gcc", so it can be a program name with args.
  3130. set dummy gcc; ac_word=$2
  3131. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3132. $as_echo_n "checking for $ac_word... " >&6; }
  3133. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  3134. $as_echo_n "(cached) " >&6
  3135. else
  3136. if test -n "$ac_ct_CC"; then
  3137. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3138. else
  3139. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3140. for as_dir in $PATH
  3141. do
  3142. IFS=$as_save_IFS
  3143. test -z "$as_dir" && as_dir=.
  3144. for ac_exec_ext in '' $ac_executable_extensions; do
  3145. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3146. ac_cv_prog_ac_ct_CC="gcc"
  3147. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3148. break 2
  3149. fi
  3150. done
  3151. done
  3152. IFS=$as_save_IFS
  3153. fi
  3154. fi
  3155. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3156. if test -n "$ac_ct_CC"; then
  3157. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3158. $as_echo "$ac_ct_CC" >&6; }
  3159. else
  3160. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3161. $as_echo "no" >&6; }
  3162. fi
  3163. if test "x$ac_ct_CC" = x; then
  3164. CC=""
  3165. else
  3166. case $cross_compiling:$ac_tool_warned in
  3167. yes:)
  3168. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3169. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3170. ac_tool_warned=yes ;;
  3171. esac
  3172. CC=$ac_ct_CC
  3173. fi
  3174. else
  3175. CC="$ac_cv_prog_CC"
  3176. fi
  3177. if test -z "$CC"; then
  3178. if test -n "$ac_tool_prefix"; then
  3179. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  3180. set dummy ${ac_tool_prefix}cc; ac_word=$2
  3181. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3182. $as_echo_n "checking for $ac_word... " >&6; }
  3183. if ${ac_cv_prog_CC+:} false; then :
  3184. $as_echo_n "(cached) " >&6
  3185. else
  3186. if test -n "$CC"; then
  3187. ac_cv_prog_CC="$CC" # Let the user override the test.
  3188. else
  3189. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3190. for as_dir in $PATH
  3191. do
  3192. IFS=$as_save_IFS
  3193. test -z "$as_dir" && as_dir=.
  3194. for ac_exec_ext in '' $ac_executable_extensions; do
  3195. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3196. ac_cv_prog_CC="${ac_tool_prefix}cc"
  3197. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3198. break 2
  3199. fi
  3200. done
  3201. done
  3202. IFS=$as_save_IFS
  3203. fi
  3204. fi
  3205. CC=$ac_cv_prog_CC
  3206. if test -n "$CC"; then
  3207. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3208. $as_echo "$CC" >&6; }
  3209. else
  3210. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3211. $as_echo "no" >&6; }
  3212. fi
  3213. fi
  3214. fi
  3215. if test -z "$CC"; then
  3216. # Extract the first word of "cc", so it can be a program name with args.
  3217. set dummy cc; ac_word=$2
  3218. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3219. $as_echo_n "checking for $ac_word... " >&6; }
  3220. if ${ac_cv_prog_CC+:} false; then :
  3221. $as_echo_n "(cached) " >&6
  3222. else
  3223. if test -n "$CC"; then
  3224. ac_cv_prog_CC="$CC" # Let the user override the test.
  3225. else
  3226. ac_prog_rejected=no
  3227. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3228. for as_dir in $PATH
  3229. do
  3230. IFS=$as_save_IFS
  3231. test -z "$as_dir" && as_dir=.
  3232. for ac_exec_ext in '' $ac_executable_extensions; do
  3233. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3234. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  3235. ac_prog_rejected=yes
  3236. continue
  3237. fi
  3238. ac_cv_prog_CC="cc"
  3239. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3240. break 2
  3241. fi
  3242. done
  3243. done
  3244. IFS=$as_save_IFS
  3245. if test $ac_prog_rejected = yes; then
  3246. # We found a bogon in the path, so make sure we never use it.
  3247. set dummy $ac_cv_prog_CC
  3248. shift
  3249. if test $# != 0; then
  3250. # We chose a different compiler from the bogus one.
  3251. # However, it has the same basename, so the bogon will be chosen
  3252. # first if we set CC to just the basename; use the full file name.
  3253. shift
  3254. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  3255. fi
  3256. fi
  3257. fi
  3258. fi
  3259. CC=$ac_cv_prog_CC
  3260. if test -n "$CC"; then
  3261. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3262. $as_echo "$CC" >&6; }
  3263. else
  3264. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3265. $as_echo "no" >&6; }
  3266. fi
  3267. fi
  3268. if test -z "$CC"; then
  3269. if test -n "$ac_tool_prefix"; then
  3270. for ac_prog in cl.exe
  3271. do
  3272. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  3273. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  3274. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3275. $as_echo_n "checking for $ac_word... " >&6; }
  3276. if ${ac_cv_prog_CC+:} false; then :
  3277. $as_echo_n "(cached) " >&6
  3278. else
  3279. if test -n "$CC"; then
  3280. ac_cv_prog_CC="$CC" # Let the user override the test.
  3281. else
  3282. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3283. for as_dir in $PATH
  3284. do
  3285. IFS=$as_save_IFS
  3286. test -z "$as_dir" && as_dir=.
  3287. for ac_exec_ext in '' $ac_executable_extensions; do
  3288. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3289. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  3290. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3291. break 2
  3292. fi
  3293. done
  3294. done
  3295. IFS=$as_save_IFS
  3296. fi
  3297. fi
  3298. CC=$ac_cv_prog_CC
  3299. if test -n "$CC"; then
  3300. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3301. $as_echo "$CC" >&6; }
  3302. else
  3303. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3304. $as_echo "no" >&6; }
  3305. fi
  3306. test -n "$CC" && break
  3307. done
  3308. fi
  3309. if test -z "$CC"; then
  3310. ac_ct_CC=$CC
  3311. for ac_prog in cl.exe
  3312. do
  3313. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3314. set dummy $ac_prog; ac_word=$2
  3315. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3316. $as_echo_n "checking for $ac_word... " >&6; }
  3317. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  3318. $as_echo_n "(cached) " >&6
  3319. else
  3320. if test -n "$ac_ct_CC"; then
  3321. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3322. else
  3323. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3324. for as_dir in $PATH
  3325. do
  3326. IFS=$as_save_IFS
  3327. test -z "$as_dir" && as_dir=.
  3328. for ac_exec_ext in '' $ac_executable_extensions; do
  3329. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3330. ac_cv_prog_ac_ct_CC="$ac_prog"
  3331. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3332. break 2
  3333. fi
  3334. done
  3335. done
  3336. IFS=$as_save_IFS
  3337. fi
  3338. fi
  3339. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3340. if test -n "$ac_ct_CC"; then
  3341. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3342. $as_echo "$ac_ct_CC" >&6; }
  3343. else
  3344. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3345. $as_echo "no" >&6; }
  3346. fi
  3347. test -n "$ac_ct_CC" && break
  3348. done
  3349. if test "x$ac_ct_CC" = x; then
  3350. CC=""
  3351. else
  3352. case $cross_compiling:$ac_tool_warned in
  3353. yes:)
  3354. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3355. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3356. ac_tool_warned=yes ;;
  3357. esac
  3358. CC=$ac_ct_CC
  3359. fi
  3360. fi
  3361. fi
  3362. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3363. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3364. as_fn_error $? "no acceptable C compiler found in \$PATH
  3365. See \`config.log' for more details" "$LINENO" 5; }
  3366. # Provide some information about the compiler.
  3367. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  3368. set X $ac_compile
  3369. ac_compiler=$2
  3370. for ac_option in --version -v -V -qversion; do
  3371. { { ac_try="$ac_compiler $ac_option >&5"
  3372. case "(($ac_try" in
  3373. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3374. *) ac_try_echo=$ac_try;;
  3375. esac
  3376. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3377. $as_echo "$ac_try_echo"; } >&5
  3378. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  3379. ac_status=$?
  3380. if test -s conftest.err; then
  3381. sed '10a\
  3382. ... rest of stderr output deleted ...
  3383. 10q' conftest.err >conftest.er1
  3384. cat conftest.er1 >&5
  3385. fi
  3386. rm -f conftest.er1 conftest.err
  3387. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3388. test $ac_status = 0; }
  3389. done
  3390. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3391. /* end confdefs.h. */
  3392. int
  3393. main ()
  3394. {
  3395. ;
  3396. return 0;
  3397. }
  3398. _ACEOF
  3399. ac_clean_files_save=$ac_clean_files
  3400. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  3401. # Try to create an executable without -o first, disregard a.out.
  3402. # It will help us diagnose broken compilers, and finding out an intuition
  3403. # of exeext.
  3404. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
  3405. $as_echo_n "checking whether the C compiler works... " >&6; }
  3406. ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  3407. # The possible output files:
  3408. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  3409. ac_rmfiles=
  3410. for ac_file in $ac_files
  3411. do
  3412. case $ac_file in
  3413. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3414. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  3415. esac
  3416. done
  3417. rm -f $ac_rmfiles
  3418. if { { ac_try="$ac_link_default"
  3419. case "(($ac_try" in
  3420. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3421. *) ac_try_echo=$ac_try;;
  3422. esac
  3423. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3424. $as_echo "$ac_try_echo"; } >&5
  3425. (eval "$ac_link_default") 2>&5
  3426. ac_status=$?
  3427. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3428. test $ac_status = 0; }; then :
  3429. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  3430. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  3431. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  3432. # so that the user can short-circuit this test for compilers unknown to
  3433. # Autoconf.
  3434. for ac_file in $ac_files ''
  3435. do
  3436. test -f "$ac_file" || continue
  3437. case $ac_file in
  3438. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  3439. ;;
  3440. [ab].out )
  3441. # We found the default executable, but exeext='' is most
  3442. # certainly right.
  3443. break;;
  3444. *.* )
  3445. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  3446. then :; else
  3447. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3448. fi
  3449. # We set ac_cv_exeext here because the later test for it is not
  3450. # safe: cross compilers may not add the suffix if given an `-o'
  3451. # argument, so we may need to know it at that point already.
  3452. # Even if this section looks crufty: it has the advantage of
  3453. # actually working.
  3454. break;;
  3455. * )
  3456. break;;
  3457. esac
  3458. done
  3459. test "$ac_cv_exeext" = no && ac_cv_exeext=
  3460. else
  3461. ac_file=''
  3462. fi
  3463. if test -z "$ac_file"; then :
  3464. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3465. $as_echo "no" >&6; }
  3466. $as_echo "$as_me: failed program was:" >&5
  3467. sed 's/^/| /' conftest.$ac_ext >&5
  3468. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3469. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3470. as_fn_error 77 "C compiler cannot create executables
  3471. See \`config.log' for more details" "$LINENO" 5; }
  3472. else
  3473. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3474. $as_echo "yes" >&6; }
  3475. fi
  3476. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
  3477. $as_echo_n "checking for C compiler default output file name... " >&6; }
  3478. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  3479. $as_echo "$ac_file" >&6; }
  3480. ac_exeext=$ac_cv_exeext
  3481. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  3482. ac_clean_files=$ac_clean_files_save
  3483. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  3484. $as_echo_n "checking for suffix of executables... " >&6; }
  3485. if { { ac_try="$ac_link"
  3486. case "(($ac_try" in
  3487. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3488. *) ac_try_echo=$ac_try;;
  3489. esac
  3490. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3491. $as_echo "$ac_try_echo"; } >&5
  3492. (eval "$ac_link") 2>&5
  3493. ac_status=$?
  3494. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3495. test $ac_status = 0; }; then :
  3496. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  3497. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  3498. # work properly (i.e., refer to `conftest.exe'), while it won't with
  3499. # `rm'.
  3500. for ac_file in conftest.exe conftest conftest.*; do
  3501. test -f "$ac_file" || continue
  3502. case $ac_file in
  3503. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3504. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3505. break;;
  3506. * ) break;;
  3507. esac
  3508. done
  3509. else
  3510. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3511. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3512. as_fn_error $? "cannot compute suffix of executables: cannot compile and link
  3513. See \`config.log' for more details" "$LINENO" 5; }
  3514. fi
  3515. rm -f conftest conftest$ac_cv_exeext
  3516. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  3517. $as_echo "$ac_cv_exeext" >&6; }
  3518. rm -f conftest.$ac_ext
  3519. EXEEXT=$ac_cv_exeext
  3520. ac_exeext=$EXEEXT
  3521. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3522. /* end confdefs.h. */
  3523. #include <stdio.h>
  3524. int
  3525. main ()
  3526. {
  3527. FILE *f = fopen ("conftest.out", "w");
  3528. return ferror (f) || fclose (f) != 0;
  3529. ;
  3530. return 0;
  3531. }
  3532. _ACEOF
  3533. ac_clean_files="$ac_clean_files conftest.out"
  3534. # Check that the compiler produces executables we can run. If not, either
  3535. # the compiler is broken, or we cross compile.
  3536. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  3537. $as_echo_n "checking whether we are cross compiling... " >&6; }
  3538. if test "$cross_compiling" != yes; then
  3539. { { ac_try="$ac_link"
  3540. case "(($ac_try" in
  3541. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3542. *) ac_try_echo=$ac_try;;
  3543. esac
  3544. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3545. $as_echo "$ac_try_echo"; } >&5
  3546. (eval "$ac_link") 2>&5
  3547. ac_status=$?
  3548. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3549. test $ac_status = 0; }
  3550. if { ac_try='./conftest$ac_cv_exeext'
  3551. { { case "(($ac_try" in
  3552. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3553. *) ac_try_echo=$ac_try;;
  3554. esac
  3555. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3556. $as_echo "$ac_try_echo"; } >&5
  3557. (eval "$ac_try") 2>&5
  3558. ac_status=$?
  3559. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3560. test $ac_status = 0; }; }; then
  3561. cross_compiling=no
  3562. else
  3563. if test "$cross_compiling" = maybe; then
  3564. cross_compiling=yes
  3565. else
  3566. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3567. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3568. as_fn_error $? "cannot run C compiled programs.
  3569. If you meant to cross compile, use \`--host'.
  3570. See \`config.log' for more details" "$LINENO" 5; }
  3571. fi
  3572. fi
  3573. fi
  3574. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  3575. $as_echo "$cross_compiling" >&6; }
  3576. rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
  3577. ac_clean_files=$ac_clean_files_save
  3578. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  3579. $as_echo_n "checking for suffix of object files... " >&6; }
  3580. if ${ac_cv_objext+:} false; then :
  3581. $as_echo_n "(cached) " >&6
  3582. else
  3583. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3584. /* end confdefs.h. */
  3585. int
  3586. main ()
  3587. {
  3588. ;
  3589. return 0;
  3590. }
  3591. _ACEOF
  3592. rm -f conftest.o conftest.obj
  3593. if { { ac_try="$ac_compile"
  3594. case "(($ac_try" in
  3595. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3596. *) ac_try_echo=$ac_try;;
  3597. esac
  3598. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3599. $as_echo "$ac_try_echo"; } >&5
  3600. (eval "$ac_compile") 2>&5
  3601. ac_status=$?
  3602. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3603. test $ac_status = 0; }; then :
  3604. for ac_file in conftest.o conftest.obj conftest.*; do
  3605. test -f "$ac_file" || continue;
  3606. case $ac_file in
  3607. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  3608. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  3609. break;;
  3610. esac
  3611. done
  3612. else
  3613. $as_echo "$as_me: failed program was:" >&5
  3614. sed 's/^/| /' conftest.$ac_ext >&5
  3615. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3616. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3617. as_fn_error $? "cannot compute suffix of object files: cannot compile
  3618. See \`config.log' for more details" "$LINENO" 5; }
  3619. fi
  3620. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  3621. fi
  3622. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  3623. $as_echo "$ac_cv_objext" >&6; }
  3624. OBJEXT=$ac_cv_objext
  3625. ac_objext=$OBJEXT
  3626. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  3627. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  3628. if ${ac_cv_c_compiler_gnu+:} false; then :
  3629. $as_echo_n "(cached) " >&6
  3630. else
  3631. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3632. /* end confdefs.h. */
  3633. int
  3634. main ()
  3635. {
  3636. #ifndef __GNUC__
  3637. choke me
  3638. #endif
  3639. ;
  3640. return 0;
  3641. }
  3642. _ACEOF
  3643. if ac_fn_c_try_compile "$LINENO"; then :
  3644. ac_compiler_gnu=yes
  3645. else
  3646. ac_compiler_gnu=no
  3647. fi
  3648. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3649. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  3650. fi
  3651. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  3652. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  3653. if test $ac_compiler_gnu = yes; then
  3654. GCC=yes
  3655. else
  3656. GCC=
  3657. fi
  3658. ac_test_CFLAGS=${CFLAGS+set}
  3659. ac_save_CFLAGS=$CFLAGS
  3660. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  3661. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  3662. if ${ac_cv_prog_cc_g+:} false; then :
  3663. $as_echo_n "(cached) " >&6
  3664. else
  3665. ac_save_c_werror_flag=$ac_c_werror_flag
  3666. ac_c_werror_flag=yes
  3667. ac_cv_prog_cc_g=no
  3668. CFLAGS="-g"
  3669. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3670. /* end confdefs.h. */
  3671. int
  3672. main ()
  3673. {
  3674. ;
  3675. return 0;
  3676. }
  3677. _ACEOF
  3678. if ac_fn_c_try_compile "$LINENO"; then :
  3679. ac_cv_prog_cc_g=yes
  3680. else
  3681. CFLAGS=""
  3682. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3683. /* end confdefs.h. */
  3684. int
  3685. main ()
  3686. {
  3687. ;
  3688. return 0;
  3689. }
  3690. _ACEOF
  3691. if ac_fn_c_try_compile "$LINENO"; then :
  3692. else
  3693. ac_c_werror_flag=$ac_save_c_werror_flag
  3694. CFLAGS="-g"
  3695. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3696. /* end confdefs.h. */
  3697. int
  3698. main ()
  3699. {
  3700. ;
  3701. return 0;
  3702. }
  3703. _ACEOF
  3704. if ac_fn_c_try_compile "$LINENO"; then :
  3705. ac_cv_prog_cc_g=yes
  3706. fi
  3707. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3708. fi
  3709. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3710. fi
  3711. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3712. ac_c_werror_flag=$ac_save_c_werror_flag
  3713. fi
  3714. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  3715. $as_echo "$ac_cv_prog_cc_g" >&6; }
  3716. if test "$ac_test_CFLAGS" = set; then
  3717. CFLAGS=$ac_save_CFLAGS
  3718. elif test $ac_cv_prog_cc_g = yes; then
  3719. if test "$GCC" = yes; then
  3720. CFLAGS="-g -O2"
  3721. else
  3722. CFLAGS="-g"
  3723. fi
  3724. else
  3725. if test "$GCC" = yes; then
  3726. CFLAGS="-O2"
  3727. else
  3728. CFLAGS=
  3729. fi
  3730. fi
  3731. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  3732. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  3733. if ${ac_cv_prog_cc_c89+:} false; then :
  3734. $as_echo_n "(cached) " >&6
  3735. else
  3736. ac_cv_prog_cc_c89=no
  3737. ac_save_CC=$CC
  3738. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3739. /* end confdefs.h. */
  3740. #include <stdarg.h>
  3741. #include <stdio.h>
  3742. #include <sys/types.h>
  3743. #include <sys/stat.h>
  3744. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  3745. struct buf { int x; };
  3746. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  3747. static char *e (p, i)
  3748. char **p;
  3749. int i;
  3750. {
  3751. return p[i];
  3752. }
  3753. static char *f (char * (*g) (char **, int), char **p, ...)
  3754. {
  3755. char *s;
  3756. va_list v;
  3757. va_start (v,p);
  3758. s = g (p, va_arg (v,int));
  3759. va_end (v);
  3760. return s;
  3761. }
  3762. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  3763. function prototypes and stuff, but not '\xHH' hex character constants.
  3764. These don't provoke an error unfortunately, instead are silently treated
  3765. as 'x'. The following induces an error, until -std is added to get
  3766. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  3767. array size at least. It's necessary to write '\x00'==0 to get something
  3768. that's true only with -std. */
  3769. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  3770. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  3771. inside strings and character constants. */
  3772. #define FOO(x) 'x'
  3773. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  3774. int test (int i, double x);
  3775. struct s1 {int (*f) (int a);};
  3776. struct s2 {int (*f) (double a);};
  3777. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  3778. int argc;
  3779. char **argv;
  3780. int
  3781. main ()
  3782. {
  3783. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  3784. ;
  3785. return 0;
  3786. }
  3787. _ACEOF
  3788. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  3789. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  3790. do
  3791. CC="$ac_save_CC $ac_arg"
  3792. if ac_fn_c_try_compile "$LINENO"; then :
  3793. ac_cv_prog_cc_c89=$ac_arg
  3794. fi
  3795. rm -f core conftest.err conftest.$ac_objext
  3796. test "x$ac_cv_prog_cc_c89" != "xno" && break
  3797. done
  3798. rm -f conftest.$ac_ext
  3799. CC=$ac_save_CC
  3800. fi
  3801. # AC_CACHE_VAL
  3802. case "x$ac_cv_prog_cc_c89" in
  3803. x)
  3804. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  3805. $as_echo "none needed" >&6; } ;;
  3806. xno)
  3807. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  3808. $as_echo "unsupported" >&6; } ;;
  3809. *)
  3810. CC="$CC $ac_cv_prog_cc_c89"
  3811. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  3812. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  3813. esac
  3814. if test "x$ac_cv_prog_cc_c89" != xno; then :
  3815. fi
  3816. ac_ext=c
  3817. ac_cpp='$CPP $CPPFLAGS'
  3818. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3819. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3820. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3821. depcc="$CC" am_compiler_list=
  3822. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  3823. $as_echo_n "checking dependency style of $depcc... " >&6; }
  3824. if ${am_cv_CC_dependencies_compiler_type+:} false; then :
  3825. $as_echo_n "(cached) " >&6
  3826. else
  3827. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  3828. # We make a subdir and do the tests there. Otherwise we can end up
  3829. # making bogus files that we don't know about and never remove. For
  3830. # instance it was reported that on HP-UX the gcc test will end up
  3831. # making a dummy file named `D' -- because `-MD' means `put the output
  3832. # in D'.
  3833. mkdir conftest.dir
  3834. # Copy depcomp to subdir because otherwise we won't find it if we're
  3835. # using a relative directory.
  3836. cp "$am_depcomp" conftest.dir
  3837. cd conftest.dir
  3838. # We will build objects and dependencies in a subdirectory because
  3839. # it helps to detect inapplicable dependency modes. For instance
  3840. # both Tru64's cc and ICC support -MD to output dependencies as a
  3841. # side effect of compilation, but ICC will put the dependencies in
  3842. # the current directory while Tru64 will put them in the object
  3843. # directory.
  3844. mkdir sub
  3845. am_cv_CC_dependencies_compiler_type=none
  3846. if test "$am_compiler_list" = ""; then
  3847. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  3848. fi
  3849. am__universal=false
  3850. case " $depcc " in #(
  3851. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  3852. esac
  3853. for depmode in $am_compiler_list; do
  3854. # Setup a source with many dependencies, because some compilers
  3855. # like to wrap large dependency lists on column 80 (with \), and
  3856. # we should not choose a depcomp mode which is confused by this.
  3857. #
  3858. # We need to recreate these files for each test, as the compiler may
  3859. # overwrite some of them when testing with obscure command lines.
  3860. # This happens at least with the AIX C compiler.
  3861. : > sub/conftest.c
  3862. for i in 1 2 3 4 5 6; do
  3863. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  3864. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  3865. # Solaris 8's {/usr,}/bin/sh.
  3866. touch sub/conftst$i.h
  3867. done
  3868. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  3869. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  3870. # mode. It turns out that the SunPro C++ compiler does not properly
  3871. # handle `-M -o', and we need to detect this. Also, some Intel
  3872. # versions had trouble with output in subdirs
  3873. am__obj=sub/conftest.${OBJEXT-o}
  3874. am__minus_obj="-o $am__obj"
  3875. case $depmode in
  3876. gcc)
  3877. # This depmode causes a compiler race in universal mode.
  3878. test "$am__universal" = false || continue
  3879. ;;
  3880. nosideeffect)
  3881. # after this tag, mechanisms are not by side-effect, so they'll
  3882. # only be used when explicitly requested
  3883. if test "x$enable_dependency_tracking" = xyes; then
  3884. continue
  3885. else
  3886. break
  3887. fi
  3888. ;;
  3889. msvisualcpp | msvcmsys)
  3890. # This compiler won't grok `-c -o', but also, the minuso test has
  3891. # not run yet. These depmodes are late enough in the game, and
  3892. # so weak that their functioning should not be impacted.
  3893. am__obj=conftest.${OBJEXT-o}
  3894. am__minus_obj=
  3895. ;;
  3896. none) break ;;
  3897. esac
  3898. if depmode=$depmode \
  3899. source=sub/conftest.c object=$am__obj \
  3900. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  3901. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  3902. >/dev/null 2>conftest.err &&
  3903. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  3904. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  3905. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  3906. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  3907. # icc doesn't choke on unknown options, it will just issue warnings
  3908. # or remarks (even with -Werror). So we grep stderr for any message
  3909. # that says an option was ignored or not supported.
  3910. # When given -MP, icc 7.0 and 7.1 complain thusly:
  3911. # icc: Command line warning: ignoring option '-M'; no argument required
  3912. # The diagnosis changed in icc 8.0:
  3913. # icc: Command line remark: option '-MP' not supported
  3914. if (grep 'ignoring option' conftest.err ||
  3915. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  3916. am_cv_CC_dependencies_compiler_type=$depmode
  3917. break
  3918. fi
  3919. fi
  3920. done
  3921. cd ..
  3922. rm -rf conftest.dir
  3923. else
  3924. am_cv_CC_dependencies_compiler_type=none
  3925. fi
  3926. fi
  3927. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
  3928. $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
  3929. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  3930. if
  3931. test "x$enable_dependency_tracking" != xno \
  3932. && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  3933. am__fastdepCC_TRUE=
  3934. am__fastdepCC_FALSE='#'
  3935. else
  3936. am__fastdepCC_TRUE='#'
  3937. am__fastdepCC_FALSE=
  3938. fi
  3939. ac_ext=c
  3940. ac_cpp='$CPP $CPPFLAGS'
  3941. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3942. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3943. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3944. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  3945. $as_echo_n "checking how to run the C preprocessor... " >&6; }
  3946. # On Suns, sometimes $CPP names a directory.
  3947. if test -n "$CPP" && test -d "$CPP"; then
  3948. CPP=
  3949. fi
  3950. if test -z "$CPP"; then
  3951. if ${ac_cv_prog_CPP+:} false; then :
  3952. $as_echo_n "(cached) " >&6
  3953. else
  3954. # Double quotes because CPP needs to be expanded
  3955. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  3956. do
  3957. ac_preproc_ok=false
  3958. for ac_c_preproc_warn_flag in '' yes
  3959. do
  3960. # Use a header file that comes with gcc, so configuring glibc
  3961. # with a fresh cross-compiler works.
  3962. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  3963. # <limits.h> exists even on freestanding compilers.
  3964. # On the NeXT, cc -E runs the code through the compiler's parser,
  3965. # not just through cpp. "Syntax error" is here to catch this case.
  3966. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3967. /* end confdefs.h. */
  3968. #ifdef __STDC__
  3969. # include <limits.h>
  3970. #else
  3971. # include <assert.h>
  3972. #endif
  3973. Syntax error
  3974. _ACEOF
  3975. if ac_fn_c_try_cpp "$LINENO"; then :
  3976. else
  3977. # Broken: fails on valid input.
  3978. continue
  3979. fi
  3980. rm -f conftest.err conftest.i conftest.$ac_ext
  3981. # OK, works on sane cases. Now check whether nonexistent headers
  3982. # can be detected and how.
  3983. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3984. /* end confdefs.h. */
  3985. #include <ac_nonexistent.h>
  3986. _ACEOF
  3987. if ac_fn_c_try_cpp "$LINENO"; then :
  3988. # Broken: success on invalid input.
  3989. continue
  3990. else
  3991. # Passes both tests.
  3992. ac_preproc_ok=:
  3993. break
  3994. fi
  3995. rm -f conftest.err conftest.i conftest.$ac_ext
  3996. done
  3997. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  3998. rm -f conftest.i conftest.err conftest.$ac_ext
  3999. if $ac_preproc_ok; then :
  4000. break
  4001. fi
  4002. done
  4003. ac_cv_prog_CPP=$CPP
  4004. fi
  4005. CPP=$ac_cv_prog_CPP
  4006. else
  4007. ac_cv_prog_CPP=$CPP
  4008. fi
  4009. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  4010. $as_echo "$CPP" >&6; }
  4011. ac_preproc_ok=false
  4012. for ac_c_preproc_warn_flag in '' yes
  4013. do
  4014. # Use a header file that comes with gcc, so configuring glibc
  4015. # with a fresh cross-compiler works.
  4016. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  4017. # <limits.h> exists even on freestanding compilers.
  4018. # On the NeXT, cc -E runs the code through the compiler's parser,
  4019. # not just through cpp. "Syntax error" is here to catch this case.
  4020. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4021. /* end confdefs.h. */
  4022. #ifdef __STDC__
  4023. # include <limits.h>
  4024. #else
  4025. # include <assert.h>
  4026. #endif
  4027. Syntax error
  4028. _ACEOF
  4029. if ac_fn_c_try_cpp "$LINENO"; then :
  4030. else
  4031. # Broken: fails on valid input.
  4032. continue
  4033. fi
  4034. rm -f conftest.err conftest.i conftest.$ac_ext
  4035. # OK, works on sane cases. Now check whether nonexistent headers
  4036. # can be detected and how.
  4037. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4038. /* end confdefs.h. */
  4039. #include <ac_nonexistent.h>
  4040. _ACEOF
  4041. if ac_fn_c_try_cpp "$LINENO"; then :
  4042. # Broken: success on invalid input.
  4043. continue
  4044. else
  4045. # Passes both tests.
  4046. ac_preproc_ok=:
  4047. break
  4048. fi
  4049. rm -f conftest.err conftest.i conftest.$ac_ext
  4050. done
  4051. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  4052. rm -f conftest.i conftest.err conftest.$ac_ext
  4053. if $ac_preproc_ok; then :
  4054. else
  4055. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  4056. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  4057. as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
  4058. See \`config.log' for more details" "$LINENO" 5; }
  4059. fi
  4060. ac_ext=c
  4061. ac_cpp='$CPP $CPPFLAGS'
  4062. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4063. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4064. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4065. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  4066. $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  4067. if ${ac_cv_path_GREP+:} false; then :
  4068. $as_echo_n "(cached) " >&6
  4069. else
  4070. if test -z "$GREP"; then
  4071. ac_path_GREP_found=false
  4072. # Loop through the user's path and test for each of PROGNAME-LIST
  4073. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4074. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4075. do
  4076. IFS=$as_save_IFS
  4077. test -z "$as_dir" && as_dir=.
  4078. for ac_prog in grep ggrep; do
  4079. for ac_exec_ext in '' $ac_executable_extensions; do
  4080. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  4081. { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
  4082. # Check for GNU ac_path_GREP and select it if it is found.
  4083. # Check for GNU $ac_path_GREP
  4084. case `"$ac_path_GREP" --version 2>&1` in
  4085. *GNU*)
  4086. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  4087. *)
  4088. ac_count=0
  4089. $as_echo_n 0123456789 >"conftest.in"
  4090. while :
  4091. do
  4092. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4093. mv "conftest.tmp" "conftest.in"
  4094. cp "conftest.in" "conftest.nl"
  4095. $as_echo 'GREP' >> "conftest.nl"
  4096. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4097. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4098. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4099. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  4100. # Best one so far, save it but keep looking for a better one
  4101. ac_cv_path_GREP="$ac_path_GREP"
  4102. ac_path_GREP_max=$ac_count
  4103. fi
  4104. # 10*(2^10) chars as input seems more than enough
  4105. test $ac_count -gt 10 && break
  4106. done
  4107. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4108. esac
  4109. $ac_path_GREP_found && break 3
  4110. done
  4111. done
  4112. done
  4113. IFS=$as_save_IFS
  4114. if test -z "$ac_cv_path_GREP"; then
  4115. as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4116. fi
  4117. else
  4118. ac_cv_path_GREP=$GREP
  4119. fi
  4120. fi
  4121. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  4122. $as_echo "$ac_cv_path_GREP" >&6; }
  4123. GREP="$ac_cv_path_GREP"
  4124. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  4125. $as_echo_n "checking for egrep... " >&6; }
  4126. if ${ac_cv_path_EGREP+:} false; then :
  4127. $as_echo_n "(cached) " >&6
  4128. else
  4129. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  4130. then ac_cv_path_EGREP="$GREP -E"
  4131. else
  4132. if test -z "$EGREP"; then
  4133. ac_path_EGREP_found=false
  4134. # Loop through the user's path and test for each of PROGNAME-LIST
  4135. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4136. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4137. do
  4138. IFS=$as_save_IFS
  4139. test -z "$as_dir" && as_dir=.
  4140. for ac_prog in egrep; do
  4141. for ac_exec_ext in '' $ac_executable_extensions; do
  4142. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  4143. { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
  4144. # Check for GNU ac_path_EGREP and select it if it is found.
  4145. # Check for GNU $ac_path_EGREP
  4146. case `"$ac_path_EGREP" --version 2>&1` in
  4147. *GNU*)
  4148. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  4149. *)
  4150. ac_count=0
  4151. $as_echo_n 0123456789 >"conftest.in"
  4152. while :
  4153. do
  4154. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4155. mv "conftest.tmp" "conftest.in"
  4156. cp "conftest.in" "conftest.nl"
  4157. $as_echo 'EGREP' >> "conftest.nl"
  4158. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4159. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4160. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4161. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  4162. # Best one so far, save it but keep looking for a better one
  4163. ac_cv_path_EGREP="$ac_path_EGREP"
  4164. ac_path_EGREP_max=$ac_count
  4165. fi
  4166. # 10*(2^10) chars as input seems more than enough
  4167. test $ac_count -gt 10 && break
  4168. done
  4169. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4170. esac
  4171. $ac_path_EGREP_found && break 3
  4172. done
  4173. done
  4174. done
  4175. IFS=$as_save_IFS
  4176. if test -z "$ac_cv_path_EGREP"; then
  4177. as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4178. fi
  4179. else
  4180. ac_cv_path_EGREP=$EGREP
  4181. fi
  4182. fi
  4183. fi
  4184. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  4185. $as_echo "$ac_cv_path_EGREP" >&6; }
  4186. EGREP="$ac_cv_path_EGREP"
  4187. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  4188. $as_echo_n "checking for ANSI C header files... " >&6; }
  4189. if ${ac_cv_header_stdc+:} false; then :
  4190. $as_echo_n "(cached) " >&6
  4191. else
  4192. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4193. /* end confdefs.h. */
  4194. #include <stdlib.h>
  4195. #include <stdarg.h>
  4196. #include <string.h>
  4197. #include <float.h>
  4198. int
  4199. main ()
  4200. {
  4201. ;
  4202. return 0;
  4203. }
  4204. _ACEOF
  4205. if ac_fn_c_try_compile "$LINENO"; then :
  4206. ac_cv_header_stdc=yes
  4207. else
  4208. ac_cv_header_stdc=no
  4209. fi
  4210. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4211. if test $ac_cv_header_stdc = yes; then
  4212. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  4213. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4214. /* end confdefs.h. */
  4215. #include <string.h>
  4216. _ACEOF
  4217. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  4218. $EGREP "memchr" >/dev/null 2>&1; then :
  4219. else
  4220. ac_cv_header_stdc=no
  4221. fi
  4222. rm -f conftest*
  4223. fi
  4224. if test $ac_cv_header_stdc = yes; then
  4225. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  4226. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4227. /* end confdefs.h. */
  4228. #include <stdlib.h>
  4229. _ACEOF
  4230. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  4231. $EGREP "free" >/dev/null 2>&1; then :
  4232. else
  4233. ac_cv_header_stdc=no
  4234. fi
  4235. rm -f conftest*
  4236. fi
  4237. if test $ac_cv_header_stdc = yes; then
  4238. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  4239. if test "$cross_compiling" = yes; then :
  4240. :
  4241. else
  4242. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4243. /* end confdefs.h. */
  4244. #include <ctype.h>
  4245. #include <stdlib.h>
  4246. #if ((' ' & 0x0FF) == 0x020)
  4247. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  4248. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  4249. #else
  4250. # define ISLOWER(c) \
  4251. (('a' <= (c) && (c) <= 'i') \
  4252. || ('j' <= (c) && (c) <= 'r') \
  4253. || ('s' <= (c) && (c) <= 'z'))
  4254. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  4255. #endif
  4256. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  4257. int
  4258. main ()
  4259. {
  4260. int i;
  4261. for (i = 0; i < 256; i++)
  4262. if (XOR (islower (i), ISLOWER (i))
  4263. || toupper (i) != TOUPPER (i))
  4264. return 2;
  4265. return 0;
  4266. }
  4267. _ACEOF
  4268. if ac_fn_c_try_run "$LINENO"; then :
  4269. else
  4270. ac_cv_header_stdc=no
  4271. fi
  4272. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  4273. conftest.$ac_objext conftest.beam conftest.$ac_ext
  4274. fi
  4275. fi
  4276. fi
  4277. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  4278. $as_echo "$ac_cv_header_stdc" >&6; }
  4279. if test $ac_cv_header_stdc = yes; then
  4280. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  4281. fi
  4282. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  4283. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  4284. inttypes.h stdint.h unistd.h
  4285. do :
  4286. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  4287. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  4288. "
  4289. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  4290. cat >>confdefs.h <<_ACEOF
  4291. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  4292. _ACEOF
  4293. fi
  4294. done
  4295. ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
  4296. if test "x$ac_cv_header_minix_config_h" = xyes; then :
  4297. MINIX=yes
  4298. else
  4299. MINIX=
  4300. fi
  4301. if test "$MINIX" = yes; then
  4302. $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
  4303. $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
  4304. $as_echo "#define _MINIX 1" >>confdefs.h
  4305. fi
  4306. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
  4307. $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
  4308. if ${ac_cv_safe_to_define___extensions__+:} false; then :
  4309. $as_echo_n "(cached) " >&6
  4310. else
  4311. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4312. /* end confdefs.h. */
  4313. # define __EXTENSIONS__ 1
  4314. $ac_includes_default
  4315. int
  4316. main ()
  4317. {
  4318. ;
  4319. return 0;
  4320. }
  4321. _ACEOF
  4322. if ac_fn_c_try_compile "$LINENO"; then :
  4323. ac_cv_safe_to_define___extensions__=yes
  4324. else
  4325. ac_cv_safe_to_define___extensions__=no
  4326. fi
  4327. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4328. fi
  4329. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
  4330. $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
  4331. test $ac_cv_safe_to_define___extensions__ = yes &&
  4332. $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
  4333. $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
  4334. $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
  4335. $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
  4336. $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
  4337. ac_ext=c
  4338. ac_cpp='$CPP $CPPFLAGS'
  4339. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4340. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4341. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4342. if test -n "$ac_tool_prefix"; then
  4343. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  4344. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  4345. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4346. $as_echo_n "checking for $ac_word... " >&6; }
  4347. if ${ac_cv_prog_CC+:} false; then :
  4348. $as_echo_n "(cached) " >&6
  4349. else
  4350. if test -n "$CC"; then
  4351. ac_cv_prog_CC="$CC" # Let the user override the test.
  4352. else
  4353. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4354. for as_dir in $PATH
  4355. do
  4356. IFS=$as_save_IFS
  4357. test -z "$as_dir" && as_dir=.
  4358. for ac_exec_ext in '' $ac_executable_extensions; do
  4359. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4360. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  4361. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4362. break 2
  4363. fi
  4364. done
  4365. done
  4366. IFS=$as_save_IFS
  4367. fi
  4368. fi
  4369. CC=$ac_cv_prog_CC
  4370. if test -n "$CC"; then
  4371. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  4372. $as_echo "$CC" >&6; }
  4373. else
  4374. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4375. $as_echo "no" >&6; }
  4376. fi
  4377. fi
  4378. if test -z "$ac_cv_prog_CC"; then
  4379. ac_ct_CC=$CC
  4380. # Extract the first word of "gcc", so it can be a program name with args.
  4381. set dummy gcc; ac_word=$2
  4382. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4383. $as_echo_n "checking for $ac_word... " >&6; }
  4384. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  4385. $as_echo_n "(cached) " >&6
  4386. else
  4387. if test -n "$ac_ct_CC"; then
  4388. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  4389. else
  4390. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4391. for as_dir in $PATH
  4392. do
  4393. IFS=$as_save_IFS
  4394. test -z "$as_dir" && as_dir=.
  4395. for ac_exec_ext in '' $ac_executable_extensions; do
  4396. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4397. ac_cv_prog_ac_ct_CC="gcc"
  4398. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4399. break 2
  4400. fi
  4401. done
  4402. done
  4403. IFS=$as_save_IFS
  4404. fi
  4405. fi
  4406. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  4407. if test -n "$ac_ct_CC"; then
  4408. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  4409. $as_echo "$ac_ct_CC" >&6; }
  4410. else
  4411. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4412. $as_echo "no" >&6; }
  4413. fi
  4414. if test "x$ac_ct_CC" = x; then
  4415. CC=""
  4416. else
  4417. case $cross_compiling:$ac_tool_warned in
  4418. yes:)
  4419. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4420. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4421. ac_tool_warned=yes ;;
  4422. esac
  4423. CC=$ac_ct_CC
  4424. fi
  4425. else
  4426. CC="$ac_cv_prog_CC"
  4427. fi
  4428. if test -z "$CC"; then
  4429. if test -n "$ac_tool_prefix"; then
  4430. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  4431. set dummy ${ac_tool_prefix}cc; ac_word=$2
  4432. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4433. $as_echo_n "checking for $ac_word... " >&6; }
  4434. if ${ac_cv_prog_CC+:} false; then :
  4435. $as_echo_n "(cached) " >&6
  4436. else
  4437. if test -n "$CC"; then
  4438. ac_cv_prog_CC="$CC" # Let the user override the test.
  4439. else
  4440. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4441. for as_dir in $PATH
  4442. do
  4443. IFS=$as_save_IFS
  4444. test -z "$as_dir" && as_dir=.
  4445. for ac_exec_ext in '' $ac_executable_extensions; do
  4446. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4447. ac_cv_prog_CC="${ac_tool_prefix}cc"
  4448. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4449. break 2
  4450. fi
  4451. done
  4452. done
  4453. IFS=$as_save_IFS
  4454. fi
  4455. fi
  4456. CC=$ac_cv_prog_CC
  4457. if test -n "$CC"; then
  4458. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  4459. $as_echo "$CC" >&6; }
  4460. else
  4461. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4462. $as_echo "no" >&6; }
  4463. fi
  4464. fi
  4465. fi
  4466. if test -z "$CC"; then
  4467. # Extract the first word of "cc", so it can be a program name with args.
  4468. set dummy cc; ac_word=$2
  4469. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4470. $as_echo_n "checking for $ac_word... " >&6; }
  4471. if ${ac_cv_prog_CC+:} false; then :
  4472. $as_echo_n "(cached) " >&6
  4473. else
  4474. if test -n "$CC"; then
  4475. ac_cv_prog_CC="$CC" # Let the user override the test.
  4476. else
  4477. ac_prog_rejected=no
  4478. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4479. for as_dir in $PATH
  4480. do
  4481. IFS=$as_save_IFS
  4482. test -z "$as_dir" && as_dir=.
  4483. for ac_exec_ext in '' $ac_executable_extensions; do
  4484. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4485. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  4486. ac_prog_rejected=yes
  4487. continue
  4488. fi
  4489. ac_cv_prog_CC="cc"
  4490. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4491. break 2
  4492. fi
  4493. done
  4494. done
  4495. IFS=$as_save_IFS
  4496. if test $ac_prog_rejected = yes; then
  4497. # We found a bogon in the path, so make sure we never use it.
  4498. set dummy $ac_cv_prog_CC
  4499. shift
  4500. if test $# != 0; then
  4501. # We chose a different compiler from the bogus one.
  4502. # However, it has the same basename, so the bogon will be chosen
  4503. # first if we set CC to just the basename; use the full file name.
  4504. shift
  4505. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  4506. fi
  4507. fi
  4508. fi
  4509. fi
  4510. CC=$ac_cv_prog_CC
  4511. if test -n "$CC"; then
  4512. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  4513. $as_echo "$CC" >&6; }
  4514. else
  4515. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4516. $as_echo "no" >&6; }
  4517. fi
  4518. fi
  4519. if test -z "$CC"; then
  4520. if test -n "$ac_tool_prefix"; then
  4521. for ac_prog in cl.exe
  4522. do
  4523. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  4524. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  4525. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4526. $as_echo_n "checking for $ac_word... " >&6; }
  4527. if ${ac_cv_prog_CC+:} false; then :
  4528. $as_echo_n "(cached) " >&6
  4529. else
  4530. if test -n "$CC"; then
  4531. ac_cv_prog_CC="$CC" # Let the user override the test.
  4532. else
  4533. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4534. for as_dir in $PATH
  4535. do
  4536. IFS=$as_save_IFS
  4537. test -z "$as_dir" && as_dir=.
  4538. for ac_exec_ext in '' $ac_executable_extensions; do
  4539. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4540. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  4541. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4542. break 2
  4543. fi
  4544. done
  4545. done
  4546. IFS=$as_save_IFS
  4547. fi
  4548. fi
  4549. CC=$ac_cv_prog_CC
  4550. if test -n "$CC"; then
  4551. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  4552. $as_echo "$CC" >&6; }
  4553. else
  4554. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4555. $as_echo "no" >&6; }
  4556. fi
  4557. test -n "$CC" && break
  4558. done
  4559. fi
  4560. if test -z "$CC"; then
  4561. ac_ct_CC=$CC
  4562. for ac_prog in cl.exe
  4563. do
  4564. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4565. set dummy $ac_prog; ac_word=$2
  4566. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4567. $as_echo_n "checking for $ac_word... " >&6; }
  4568. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  4569. $as_echo_n "(cached) " >&6
  4570. else
  4571. if test -n "$ac_ct_CC"; then
  4572. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  4573. else
  4574. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4575. for as_dir in $PATH
  4576. do
  4577. IFS=$as_save_IFS
  4578. test -z "$as_dir" && as_dir=.
  4579. for ac_exec_ext in '' $ac_executable_extensions; do
  4580. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4581. ac_cv_prog_ac_ct_CC="$ac_prog"
  4582. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4583. break 2
  4584. fi
  4585. done
  4586. done
  4587. IFS=$as_save_IFS
  4588. fi
  4589. fi
  4590. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  4591. if test -n "$ac_ct_CC"; then
  4592. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  4593. $as_echo "$ac_ct_CC" >&6; }
  4594. else
  4595. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4596. $as_echo "no" >&6; }
  4597. fi
  4598. test -n "$ac_ct_CC" && break
  4599. done
  4600. if test "x$ac_ct_CC" = x; then
  4601. CC=""
  4602. else
  4603. case $cross_compiling:$ac_tool_warned in
  4604. yes:)
  4605. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4606. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4607. ac_tool_warned=yes ;;
  4608. esac
  4609. CC=$ac_ct_CC
  4610. fi
  4611. fi
  4612. fi
  4613. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  4614. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  4615. as_fn_error $? "no acceptable C compiler found in \$PATH
  4616. See \`config.log' for more details" "$LINENO" 5; }
  4617. # Provide some information about the compiler.
  4618. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  4619. set X $ac_compile
  4620. ac_compiler=$2
  4621. for ac_option in --version -v -V -qversion; do
  4622. { { ac_try="$ac_compiler $ac_option >&5"
  4623. case "(($ac_try" in
  4624. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4625. *) ac_try_echo=$ac_try;;
  4626. esac
  4627. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  4628. $as_echo "$ac_try_echo"; } >&5
  4629. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  4630. ac_status=$?
  4631. if test -s conftest.err; then
  4632. sed '10a\
  4633. ... rest of stderr output deleted ...
  4634. 10q' conftest.err >conftest.er1
  4635. cat conftest.er1 >&5
  4636. fi
  4637. rm -f conftest.er1 conftest.err
  4638. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4639. test $ac_status = 0; }
  4640. done
  4641. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  4642. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  4643. if ${ac_cv_c_compiler_gnu+:} false; then :
  4644. $as_echo_n "(cached) " >&6
  4645. else
  4646. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4647. /* end confdefs.h. */
  4648. int
  4649. main ()
  4650. {
  4651. #ifndef __GNUC__
  4652. choke me
  4653. #endif
  4654. ;
  4655. return 0;
  4656. }
  4657. _ACEOF
  4658. if ac_fn_c_try_compile "$LINENO"; then :
  4659. ac_compiler_gnu=yes
  4660. else
  4661. ac_compiler_gnu=no
  4662. fi
  4663. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4664. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  4665. fi
  4666. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  4667. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  4668. if test $ac_compiler_gnu = yes; then
  4669. GCC=yes
  4670. else
  4671. GCC=
  4672. fi
  4673. ac_test_CFLAGS=${CFLAGS+set}
  4674. ac_save_CFLAGS=$CFLAGS
  4675. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  4676. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  4677. if ${ac_cv_prog_cc_g+:} false; then :
  4678. $as_echo_n "(cached) " >&6
  4679. else
  4680. ac_save_c_werror_flag=$ac_c_werror_flag
  4681. ac_c_werror_flag=yes
  4682. ac_cv_prog_cc_g=no
  4683. CFLAGS="-g"
  4684. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4685. /* end confdefs.h. */
  4686. int
  4687. main ()
  4688. {
  4689. ;
  4690. return 0;
  4691. }
  4692. _ACEOF
  4693. if ac_fn_c_try_compile "$LINENO"; then :
  4694. ac_cv_prog_cc_g=yes
  4695. else
  4696. CFLAGS=""
  4697. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4698. /* end confdefs.h. */
  4699. int
  4700. main ()
  4701. {
  4702. ;
  4703. return 0;
  4704. }
  4705. _ACEOF
  4706. if ac_fn_c_try_compile "$LINENO"; then :
  4707. else
  4708. ac_c_werror_flag=$ac_save_c_werror_flag
  4709. CFLAGS="-g"
  4710. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4711. /* end confdefs.h. */
  4712. int
  4713. main ()
  4714. {
  4715. ;
  4716. return 0;
  4717. }
  4718. _ACEOF
  4719. if ac_fn_c_try_compile "$LINENO"; then :
  4720. ac_cv_prog_cc_g=yes
  4721. fi
  4722. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4723. fi
  4724. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4725. fi
  4726. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4727. ac_c_werror_flag=$ac_save_c_werror_flag
  4728. fi
  4729. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  4730. $as_echo "$ac_cv_prog_cc_g" >&6; }
  4731. if test "$ac_test_CFLAGS" = set; then
  4732. CFLAGS=$ac_save_CFLAGS
  4733. elif test $ac_cv_prog_cc_g = yes; then
  4734. if test "$GCC" = yes; then
  4735. CFLAGS="-g -O2"
  4736. else
  4737. CFLAGS="-g"
  4738. fi
  4739. else
  4740. if test "$GCC" = yes; then
  4741. CFLAGS="-O2"
  4742. else
  4743. CFLAGS=
  4744. fi
  4745. fi
  4746. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  4747. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  4748. if ${ac_cv_prog_cc_c89+:} false; then :
  4749. $as_echo_n "(cached) " >&6
  4750. else
  4751. ac_cv_prog_cc_c89=no
  4752. ac_save_CC=$CC
  4753. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4754. /* end confdefs.h. */
  4755. #include <stdarg.h>
  4756. #include <stdio.h>
  4757. #include <sys/types.h>
  4758. #include <sys/stat.h>
  4759. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  4760. struct buf { int x; };
  4761. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  4762. static char *e (p, i)
  4763. char **p;
  4764. int i;
  4765. {
  4766. return p[i];
  4767. }
  4768. static char *f (char * (*g) (char **, int), char **p, ...)
  4769. {
  4770. char *s;
  4771. va_list v;
  4772. va_start (v,p);
  4773. s = g (p, va_arg (v,int));
  4774. va_end (v);
  4775. return s;
  4776. }
  4777. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  4778. function prototypes and stuff, but not '\xHH' hex character constants.
  4779. These don't provoke an error unfortunately, instead are silently treated
  4780. as 'x'. The following induces an error, until -std is added to get
  4781. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  4782. array size at least. It's necessary to write '\x00'==0 to get something
  4783. that's true only with -std. */
  4784. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  4785. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  4786. inside strings and character constants. */
  4787. #define FOO(x) 'x'
  4788. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  4789. int test (int i, double x);
  4790. struct s1 {int (*f) (int a);};
  4791. struct s2 {int (*f) (double a);};
  4792. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  4793. int argc;
  4794. char **argv;
  4795. int
  4796. main ()
  4797. {
  4798. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  4799. ;
  4800. return 0;
  4801. }
  4802. _ACEOF
  4803. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  4804. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  4805. do
  4806. CC="$ac_save_CC $ac_arg"
  4807. if ac_fn_c_try_compile "$LINENO"; then :
  4808. ac_cv_prog_cc_c89=$ac_arg
  4809. fi
  4810. rm -f core conftest.err conftest.$ac_objext
  4811. test "x$ac_cv_prog_cc_c89" != "xno" && break
  4812. done
  4813. rm -f conftest.$ac_ext
  4814. CC=$ac_save_CC
  4815. fi
  4816. # AC_CACHE_VAL
  4817. case "x$ac_cv_prog_cc_c89" in
  4818. x)
  4819. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  4820. $as_echo "none needed" >&6; } ;;
  4821. xno)
  4822. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  4823. $as_echo "unsupported" >&6; } ;;
  4824. *)
  4825. CC="$CC $ac_cv_prog_cc_c89"
  4826. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  4827. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  4828. esac
  4829. if test "x$ac_cv_prog_cc_c89" != xno; then :
  4830. fi
  4831. ac_ext=c
  4832. ac_cpp='$CPP $CPPFLAGS'
  4833. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4834. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4835. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4836. depcc="$CC" am_compiler_list=
  4837. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  4838. $as_echo_n "checking dependency style of $depcc... " >&6; }
  4839. if ${am_cv_CC_dependencies_compiler_type+:} false; then :
  4840. $as_echo_n "(cached) " >&6
  4841. else
  4842. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  4843. # We make a subdir and do the tests there. Otherwise we can end up
  4844. # making bogus files that we don't know about and never remove. For
  4845. # instance it was reported that on HP-UX the gcc test will end up
  4846. # making a dummy file named `D' -- because `-MD' means `put the output
  4847. # in D'.
  4848. mkdir conftest.dir
  4849. # Copy depcomp to subdir because otherwise we won't find it if we're
  4850. # using a relative directory.
  4851. cp "$am_depcomp" conftest.dir
  4852. cd conftest.dir
  4853. # We will build objects and dependencies in a subdirectory because
  4854. # it helps to detect inapplicable dependency modes. For instance
  4855. # both Tru64's cc and ICC support -MD to output dependencies as a
  4856. # side effect of compilation, but ICC will put the dependencies in
  4857. # the current directory while Tru64 will put them in the object
  4858. # directory.
  4859. mkdir sub
  4860. am_cv_CC_dependencies_compiler_type=none
  4861. if test "$am_compiler_list" = ""; then
  4862. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  4863. fi
  4864. am__universal=false
  4865. case " $depcc " in #(
  4866. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  4867. esac
  4868. for depmode in $am_compiler_list; do
  4869. # Setup a source with many dependencies, because some compilers
  4870. # like to wrap large dependency lists on column 80 (with \), and
  4871. # we should not choose a depcomp mode which is confused by this.
  4872. #
  4873. # We need to recreate these files for each test, as the compiler may
  4874. # overwrite some of them when testing with obscure command lines.
  4875. # This happens at least with the AIX C compiler.
  4876. : > sub/conftest.c
  4877. for i in 1 2 3 4 5 6; do
  4878. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  4879. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  4880. # Solaris 8's {/usr,}/bin/sh.
  4881. touch sub/conftst$i.h
  4882. done
  4883. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  4884. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  4885. # mode. It turns out that the SunPro C++ compiler does not properly
  4886. # handle `-M -o', and we need to detect this. Also, some Intel
  4887. # versions had trouble with output in subdirs
  4888. am__obj=sub/conftest.${OBJEXT-o}
  4889. am__minus_obj="-o $am__obj"
  4890. case $depmode in
  4891. gcc)
  4892. # This depmode causes a compiler race in universal mode.
  4893. test "$am__universal" = false || continue
  4894. ;;
  4895. nosideeffect)
  4896. # after this tag, mechanisms are not by side-effect, so they'll
  4897. # only be used when explicitly requested
  4898. if test "x$enable_dependency_tracking" = xyes; then
  4899. continue
  4900. else
  4901. break
  4902. fi
  4903. ;;
  4904. msvisualcpp | msvcmsys)
  4905. # This compiler won't grok `-c -o', but also, the minuso test has
  4906. # not run yet. These depmodes are late enough in the game, and
  4907. # so weak that their functioning should not be impacted.
  4908. am__obj=conftest.${OBJEXT-o}
  4909. am__minus_obj=
  4910. ;;
  4911. none) break ;;
  4912. esac
  4913. if depmode=$depmode \
  4914. source=sub/conftest.c object=$am__obj \
  4915. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  4916. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  4917. >/dev/null 2>conftest.err &&
  4918. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  4919. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  4920. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  4921. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  4922. # icc doesn't choke on unknown options, it will just issue warnings
  4923. # or remarks (even with -Werror). So we grep stderr for any message
  4924. # that says an option was ignored or not supported.
  4925. # When given -MP, icc 7.0 and 7.1 complain thusly:
  4926. # icc: Command line warning: ignoring option '-M'; no argument required
  4927. # The diagnosis changed in icc 8.0:
  4928. # icc: Command line remark: option '-MP' not supported
  4929. if (grep 'ignoring option' conftest.err ||
  4930. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  4931. am_cv_CC_dependencies_compiler_type=$depmode
  4932. break
  4933. fi
  4934. fi
  4935. done
  4936. cd ..
  4937. rm -rf conftest.dir
  4938. else
  4939. am_cv_CC_dependencies_compiler_type=none
  4940. fi
  4941. fi
  4942. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
  4943. $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
  4944. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  4945. if
  4946. test "x$enable_dependency_tracking" != xno \
  4947. && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  4948. am__fastdepCC_TRUE=
  4949. am__fastdepCC_FALSE='#'
  4950. else
  4951. am__fastdepCC_TRUE='#'
  4952. am__fastdepCC_FALSE=
  4953. fi
  4954. if test "x$CC" != xcc; then
  4955. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
  4956. $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
  4957. else
  4958. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
  4959. $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
  4960. fi
  4961. set dummy $CC; ac_cc=`$as_echo "$2" |
  4962. sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
  4963. if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
  4964. $as_echo_n "(cached) " >&6
  4965. else
  4966. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4967. /* end confdefs.h. */
  4968. int
  4969. main ()
  4970. {
  4971. ;
  4972. return 0;
  4973. }
  4974. _ACEOF
  4975. # Make sure it works both with $CC and with simple cc.
  4976. # We do the test twice because some compilers refuse to overwrite an
  4977. # existing .o file with -o, though they will create one.
  4978. ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
  4979. rm -f conftest2.*
  4980. if { { case "(($ac_try" in
  4981. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4982. *) ac_try_echo=$ac_try;;
  4983. esac
  4984. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  4985. $as_echo "$ac_try_echo"; } >&5
  4986. (eval "$ac_try") 2>&5
  4987. ac_status=$?
  4988. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4989. test $ac_status = 0; } &&
  4990. test -f conftest2.$ac_objext && { { case "(($ac_try" in
  4991. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4992. *) ac_try_echo=$ac_try;;
  4993. esac
  4994. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  4995. $as_echo "$ac_try_echo"; } >&5
  4996. (eval "$ac_try") 2>&5
  4997. ac_status=$?
  4998. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4999. test $ac_status = 0; };
  5000. then
  5001. eval ac_cv_prog_cc_${ac_cc}_c_o=yes
  5002. if test "x$CC" != xcc; then
  5003. # Test first that cc exists at all.
  5004. if { ac_try='cc -c conftest.$ac_ext >&5'
  5005. { { case "(($ac_try" in
  5006. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5007. *) ac_try_echo=$ac_try;;
  5008. esac
  5009. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  5010. $as_echo "$ac_try_echo"; } >&5
  5011. (eval "$ac_try") 2>&5
  5012. ac_status=$?
  5013. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5014. test $ac_status = 0; }; }; then
  5015. ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
  5016. rm -f conftest2.*
  5017. if { { case "(($ac_try" in
  5018. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5019. *) ac_try_echo=$ac_try;;
  5020. esac
  5021. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  5022. $as_echo "$ac_try_echo"; } >&5
  5023. (eval "$ac_try") 2>&5
  5024. ac_status=$?
  5025. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5026. test $ac_status = 0; } &&
  5027. test -f conftest2.$ac_objext && { { case "(($ac_try" in
  5028. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5029. *) ac_try_echo=$ac_try;;
  5030. esac
  5031. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  5032. $as_echo "$ac_try_echo"; } >&5
  5033. (eval "$ac_try") 2>&5
  5034. ac_status=$?
  5035. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5036. test $ac_status = 0; };
  5037. then
  5038. # cc works too.
  5039. :
  5040. else
  5041. # cc exists but doesn't like -o.
  5042. eval ac_cv_prog_cc_${ac_cc}_c_o=no
  5043. fi
  5044. fi
  5045. fi
  5046. else
  5047. eval ac_cv_prog_cc_${ac_cc}_c_o=no
  5048. fi
  5049. rm -f core conftest*
  5050. fi
  5051. if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
  5052. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  5053. $as_echo "yes" >&6; }
  5054. else
  5055. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5056. $as_echo "no" >&6; }
  5057. $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
  5058. fi
  5059. # FIXME: we rely on the cache variable name because
  5060. # there is no other way.
  5061. set dummy $CC
  5062. am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
  5063. eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
  5064. if test "$am_t" != yes; then
  5065. # Losing compiler, so override with the script.
  5066. # FIXME: It is wrong to rewrite CC.
  5067. # But if we don't then we get into trouble of one sort or another.
  5068. # A longer-term fix would be to have automake use am__CC in this case,
  5069. # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
  5070. CC="$am_aux_dir/compile $CC"
  5071. fi
  5072. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
  5073. $as_echo_n "checking whether ln -s works... " >&6; }
  5074. LN_S=$as_ln_s
  5075. if test "$LN_S" = "ln -s"; then
  5076. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  5077. $as_echo "yes" >&6; }
  5078. else
  5079. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
  5080. $as_echo "no, using $LN_S" >&6; }
  5081. fi
  5082. case `pwd` in
  5083. *\ * | *\ *)
  5084. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
  5085. $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
  5086. esac
  5087. macro_version='2.2.6b'
  5088. macro_revision='1.3017'
  5089. ltmain="$ac_aux_dir/ltmain.sh"
  5090. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
  5091. $as_echo_n "checking for a sed that does not truncate output... " >&6; }
  5092. if ${ac_cv_path_SED+:} false; then :
  5093. $as_echo_n "(cached) " >&6
  5094. else
  5095. ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  5096. for ac_i in 1 2 3 4 5 6 7; do
  5097. ac_script="$ac_script$as_nl$ac_script"
  5098. done
  5099. echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  5100. { ac_script=; unset ac_script;}
  5101. if test -z "$SED"; then
  5102. ac_path_SED_found=false
  5103. # Loop through the user's path and test for each of PROGNAME-LIST
  5104. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5105. for as_dir in $PATH
  5106. do
  5107. IFS=$as_save_IFS
  5108. test -z "$as_dir" && as_dir=.
  5109. for ac_prog in sed gsed; do
  5110. for ac_exec_ext in '' $ac_executable_extensions; do
  5111. ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
  5112. { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
  5113. # Check for GNU ac_path_SED and select it if it is found.
  5114. # Check for GNU $ac_path_SED
  5115. case `"$ac_path_SED" --version 2>&1` in
  5116. *GNU*)
  5117. ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  5118. *)
  5119. ac_count=0
  5120. $as_echo_n 0123456789 >"conftest.in"
  5121. while :
  5122. do
  5123. cat "conftest.in" "conftest.in" >"conftest.tmp"
  5124. mv "conftest.tmp" "conftest.in"
  5125. cp "conftest.in" "conftest.nl"
  5126. $as_echo '' >> "conftest.nl"
  5127. "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  5128. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  5129. as_fn_arith $ac_count + 1 && ac_count=$as_val
  5130. if test $ac_count -gt ${ac_path_SED_max-0}; then
  5131. # Best one so far, save it but keep looking for a better one
  5132. ac_cv_path_SED="$ac_path_SED"
  5133. ac_path_SED_max=$ac_count
  5134. fi
  5135. # 10*(2^10) chars as input seems more than enough
  5136. test $ac_count -gt 10 && break
  5137. done
  5138. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  5139. esac
  5140. $ac_path_SED_found && break 3
  5141. done
  5142. done
  5143. done
  5144. IFS=$as_save_IFS
  5145. if test -z "$ac_cv_path_SED"; then
  5146. as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
  5147. fi
  5148. else
  5149. ac_cv_path_SED=$SED
  5150. fi
  5151. fi
  5152. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
  5153. $as_echo "$ac_cv_path_SED" >&6; }
  5154. SED="$ac_cv_path_SED"
  5155. rm -f conftest.sed
  5156. test -z "$SED" && SED=sed
  5157. Xsed="$SED -e 1s/^X//"
  5158. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
  5159. $as_echo_n "checking for fgrep... " >&6; }
  5160. if ${ac_cv_path_FGREP+:} false; then :
  5161. $as_echo_n "(cached) " >&6
  5162. else
  5163. if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
  5164. then ac_cv_path_FGREP="$GREP -F"
  5165. else
  5166. if test -z "$FGREP"; then
  5167. ac_path_FGREP_found=false
  5168. # Loop through the user's path and test for each of PROGNAME-LIST
  5169. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5170. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  5171. do
  5172. IFS=$as_save_IFS
  5173. test -z "$as_dir" && as_dir=.
  5174. for ac_prog in fgrep; do
  5175. for ac_exec_ext in '' $ac_executable_extensions; do
  5176. ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
  5177. { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
  5178. # Check for GNU ac_path_FGREP and select it if it is found.
  5179. # Check for GNU $ac_path_FGREP
  5180. case `"$ac_path_FGREP" --version 2>&1` in
  5181. *GNU*)
  5182. ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
  5183. *)
  5184. ac_count=0
  5185. $as_echo_n 0123456789 >"conftest.in"
  5186. while :
  5187. do
  5188. cat "conftest.in" "conftest.in" >"conftest.tmp"
  5189. mv "conftest.tmp" "conftest.in"
  5190. cp "conftest.in" "conftest.nl"
  5191. $as_echo 'FGREP' >> "conftest.nl"
  5192. "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
  5193. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  5194. as_fn_arith $ac_count + 1 && ac_count=$as_val
  5195. if test $ac_count -gt ${ac_path_FGREP_max-0}; then
  5196. # Best one so far, save it but keep looking for a better one
  5197. ac_cv_path_FGREP="$ac_path_FGREP"
  5198. ac_path_FGREP_max=$ac_count
  5199. fi
  5200. # 10*(2^10) chars as input seems more than enough
  5201. test $ac_count -gt 10 && break
  5202. done
  5203. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  5204. esac
  5205. $ac_path_FGREP_found && break 3
  5206. done
  5207. done
  5208. done
  5209. IFS=$as_save_IFS
  5210. if test -z "$ac_cv_path_FGREP"; then
  5211. as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  5212. fi
  5213. else
  5214. ac_cv_path_FGREP=$FGREP
  5215. fi
  5216. fi
  5217. fi
  5218. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
  5219. $as_echo "$ac_cv_path_FGREP" >&6; }
  5220. FGREP="$ac_cv_path_FGREP"
  5221. test -z "$GREP" && GREP=grep
  5222. # Check whether --with-gnu-ld was given.
  5223. if test "${with_gnu_ld+set}" = set; then :
  5224. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  5225. else
  5226. with_gnu_ld=no
  5227. fi
  5228. ac_prog=ld
  5229. if test "$GCC" = yes; then
  5230. # Check if gcc -print-prog-name=ld gives a path.
  5231. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  5232. $as_echo_n "checking for ld used by $CC... " >&6; }
  5233. case $host in
  5234. *-*-mingw*)
  5235. # gcc leaves a trailing carriage return which upsets mingw
  5236. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  5237. *)
  5238. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  5239. esac
  5240. case $ac_prog in
  5241. # Accept absolute paths.
  5242. [\\/]* | ?:[\\/]*)
  5243. re_direlt='/[^/][^/]*/\.\./'
  5244. # Canonicalize the pathname of ld
  5245. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  5246. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  5247. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  5248. done
  5249. test -z "$LD" && LD="$ac_prog"
  5250. ;;
  5251. "")
  5252. # If it fails, then pretend we aren't using GCC.
  5253. ac_prog=ld
  5254. ;;
  5255. *)
  5256. # If it is relative, then search for the first ld in PATH.
  5257. with_gnu_ld=unknown
  5258. ;;
  5259. esac
  5260. elif test "$with_gnu_ld" = yes; then
  5261. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  5262. $as_echo_n "checking for GNU ld... " >&6; }
  5263. else
  5264. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  5265. $as_echo_n "checking for non-GNU ld... " >&6; }
  5266. fi
  5267. if ${lt_cv_path_LD+:} false; then :
  5268. $as_echo_n "(cached) " >&6
  5269. else
  5270. if test -z "$LD"; then
  5271. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  5272. for ac_dir in $PATH; do
  5273. IFS="$lt_save_ifs"
  5274. test -z "$ac_dir" && ac_dir=.
  5275. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  5276. lt_cv_path_LD="$ac_dir/$ac_prog"
  5277. # Check to see if the program is GNU ld. I'd rather use --version,
  5278. # but apparently some variants of GNU ld only accept -v.
  5279. # Break only if it was the GNU/non-GNU ld that we prefer.
  5280. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  5281. *GNU* | *'with BFD'*)
  5282. test "$with_gnu_ld" != no && break
  5283. ;;
  5284. *)
  5285. test "$with_gnu_ld" != yes && break
  5286. ;;
  5287. esac
  5288. fi
  5289. done
  5290. IFS="$lt_save_ifs"
  5291. else
  5292. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  5293. fi
  5294. fi
  5295. LD="$lt_cv_path_LD"
  5296. if test -n "$LD"; then
  5297. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  5298. $as_echo "$LD" >&6; }
  5299. else
  5300. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5301. $as_echo "no" >&6; }
  5302. fi
  5303. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  5304. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  5305. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  5306. if ${lt_cv_prog_gnu_ld+:} false; then :
  5307. $as_echo_n "(cached) " >&6
  5308. else
  5309. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  5310. case `$LD -v 2>&1 </dev/null` in
  5311. *GNU* | *'with BFD'*)
  5312. lt_cv_prog_gnu_ld=yes
  5313. ;;
  5314. *)
  5315. lt_cv_prog_gnu_ld=no
  5316. ;;
  5317. esac
  5318. fi
  5319. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  5320. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  5321. with_gnu_ld=$lt_cv_prog_gnu_ld
  5322. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
  5323. $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
  5324. if ${lt_cv_path_NM+:} false; then :
  5325. $as_echo_n "(cached) " >&6
  5326. else
  5327. if test -n "$NM"; then
  5328. # Let the user override the test.
  5329. lt_cv_path_NM="$NM"
  5330. else
  5331. lt_nm_to_check="${ac_tool_prefix}nm"
  5332. if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  5333. lt_nm_to_check="$lt_nm_to_check nm"
  5334. fi
  5335. for lt_tmp_nm in $lt_nm_to_check; do
  5336. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  5337. for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  5338. IFS="$lt_save_ifs"
  5339. test -z "$ac_dir" && ac_dir=.
  5340. tmp_nm="$ac_dir/$lt_tmp_nm"
  5341. if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
  5342. # Check to see if the nm accepts a BSD-compat flag.
  5343. # Adding the `sed 1q' prevents false positives on HP-UX, which says:
  5344. # nm: unknown option "B" ignored
  5345. # Tru64's nm complains that /dev/null is an invalid object file
  5346. case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
  5347. */dev/null* | *'Invalid file or object type'*)
  5348. lt_cv_path_NM="$tmp_nm -B"
  5349. break
  5350. ;;
  5351. *)
  5352. case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  5353. */dev/null*)
  5354. lt_cv_path_NM="$tmp_nm -p"
  5355. break
  5356. ;;
  5357. *)
  5358. lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  5359. continue # so that we can try to find one that supports BSD flags
  5360. ;;
  5361. esac
  5362. ;;
  5363. esac
  5364. fi
  5365. done
  5366. IFS="$lt_save_ifs"
  5367. done
  5368. : ${lt_cv_path_NM=no}
  5369. fi
  5370. fi
  5371. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
  5372. $as_echo "$lt_cv_path_NM" >&6; }
  5373. if test "$lt_cv_path_NM" != "no"; then
  5374. NM="$lt_cv_path_NM"
  5375. else
  5376. # Didn't find any BSD compatible name lister, look for dumpbin.
  5377. if test -n "$ac_tool_prefix"; then
  5378. for ac_prog in "dumpbin -symbols" "link -dump -symbols"
  5379. do
  5380. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  5381. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  5382. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5383. $as_echo_n "checking for $ac_word... " >&6; }
  5384. if ${ac_cv_prog_DUMPBIN+:} false; then :
  5385. $as_echo_n "(cached) " >&6
  5386. else
  5387. if test -n "$DUMPBIN"; then
  5388. ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
  5389. else
  5390. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5391. for as_dir in $PATH
  5392. do
  5393. IFS=$as_save_IFS
  5394. test -z "$as_dir" && as_dir=.
  5395. for ac_exec_ext in '' $ac_executable_extensions; do
  5396. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5397. ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
  5398. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5399. break 2
  5400. fi
  5401. done
  5402. done
  5403. IFS=$as_save_IFS
  5404. fi
  5405. fi
  5406. DUMPBIN=$ac_cv_prog_DUMPBIN
  5407. if test -n "$DUMPBIN"; then
  5408. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
  5409. $as_echo "$DUMPBIN" >&6; }
  5410. else
  5411. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5412. $as_echo "no" >&6; }
  5413. fi
  5414. test -n "$DUMPBIN" && break
  5415. done
  5416. fi
  5417. if test -z "$DUMPBIN"; then
  5418. ac_ct_DUMPBIN=$DUMPBIN
  5419. for ac_prog in "dumpbin -symbols" "link -dump -symbols"
  5420. do
  5421. # Extract the first word of "$ac_prog", so it can be a program name with args.
  5422. set dummy $ac_prog; ac_word=$2
  5423. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5424. $as_echo_n "checking for $ac_word... " >&6; }
  5425. if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
  5426. $as_echo_n "(cached) " >&6
  5427. else
  5428. if test -n "$ac_ct_DUMPBIN"; then
  5429. ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
  5430. else
  5431. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5432. for as_dir in $PATH
  5433. do
  5434. IFS=$as_save_IFS
  5435. test -z "$as_dir" && as_dir=.
  5436. for ac_exec_ext in '' $ac_executable_extensions; do
  5437. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5438. ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
  5439. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5440. break 2
  5441. fi
  5442. done
  5443. done
  5444. IFS=$as_save_IFS
  5445. fi
  5446. fi
  5447. ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
  5448. if test -n "$ac_ct_DUMPBIN"; then
  5449. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
  5450. $as_echo "$ac_ct_DUMPBIN" >&6; }
  5451. else
  5452. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5453. $as_echo "no" >&6; }
  5454. fi
  5455. test -n "$ac_ct_DUMPBIN" && break
  5456. done
  5457. if test "x$ac_ct_DUMPBIN" = x; then
  5458. DUMPBIN=":"
  5459. else
  5460. case $cross_compiling:$ac_tool_warned in
  5461. yes:)
  5462. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5463. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5464. ac_tool_warned=yes ;;
  5465. esac
  5466. DUMPBIN=$ac_ct_DUMPBIN
  5467. fi
  5468. fi
  5469. if test "$DUMPBIN" != ":"; then
  5470. NM="$DUMPBIN"
  5471. fi
  5472. fi
  5473. test -z "$NM" && NM=nm
  5474. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
  5475. $as_echo_n "checking the name lister ($NM) interface... " >&6; }
  5476. if ${lt_cv_nm_interface+:} false; then :
  5477. $as_echo_n "(cached) " >&6
  5478. else
  5479. lt_cv_nm_interface="BSD nm"
  5480. echo "int some_variable = 0;" > conftest.$ac_ext
  5481. (eval echo "\"\$as_me:6095: $ac_compile\"" >&5)
  5482. (eval "$ac_compile" 2>conftest.err)
  5483. cat conftest.err >&5
  5484. (eval echo "\"\$as_me:6098: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
  5485. (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  5486. cat conftest.err >&5
  5487. (eval echo "\"\$as_me:6101: output\"" >&5)
  5488. cat conftest.out >&5
  5489. if $GREP 'External.*some_variable' conftest.out > /dev/null; then
  5490. lt_cv_nm_interface="MS dumpbin"
  5491. fi
  5492. rm -f conftest*
  5493. fi
  5494. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
  5495. $as_echo "$lt_cv_nm_interface" >&6; }
  5496. # find the maximum length of command line arguments
  5497. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
  5498. $as_echo_n "checking the maximum length of command line arguments... " >&6; }
  5499. if ${lt_cv_sys_max_cmd_len+:} false; then :
  5500. $as_echo_n "(cached) " >&6
  5501. else
  5502. i=0
  5503. teststring="ABCD"
  5504. case $build_os in
  5505. msdosdjgpp*)
  5506. # On DJGPP, this test can blow up pretty badly due to problems in libc
  5507. # (any single argument exceeding 2000 bytes causes a buffer overrun
  5508. # during glob expansion). Even if it were fixed, the result of this
  5509. # check would be larger than it should be.
  5510. lt_cv_sys_max_cmd_len=12288; # 12K is about right
  5511. ;;
  5512. gnu*)
  5513. # Under GNU Hurd, this test is not required because there is
  5514. # no limit to the length of command line arguments.
  5515. # Libtool will interpret -1 as no limit whatsoever
  5516. lt_cv_sys_max_cmd_len=-1;
  5517. ;;
  5518. cygwin* | mingw* | cegcc*)
  5519. # On Win9x/ME, this test blows up -- it succeeds, but takes
  5520. # about 5 minutes as the teststring grows exponentially.
  5521. # Worse, since 9x/ME are not pre-emptively multitasking,
  5522. # you end up with a "frozen" computer, even though with patience
  5523. # the test eventually succeeds (with a max line length of 256k).
  5524. # Instead, let's just punt: use the minimum linelength reported by
  5525. # all of the supported platforms: 8192 (on NT/2K/XP).
  5526. lt_cv_sys_max_cmd_len=8192;
  5527. ;;
  5528. amigaos*)
  5529. # On AmigaOS with pdksh, this test takes hours, literally.
  5530. # So we just punt and use a minimum line length of 8192.
  5531. lt_cv_sys_max_cmd_len=8192;
  5532. ;;
  5533. netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
  5534. # This has been around since 386BSD, at least. Likely further.
  5535. if test -x /sbin/sysctl; then
  5536. lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  5537. elif test -x /usr/sbin/sysctl; then
  5538. lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  5539. else
  5540. lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  5541. fi
  5542. # And add a safety zone
  5543. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  5544. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  5545. ;;
  5546. interix*)
  5547. # We know the value 262144 and hardcode it with a safety zone (like BSD)
  5548. lt_cv_sys_max_cmd_len=196608
  5549. ;;
  5550. osf*)
  5551. # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  5552. # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  5553. # nice to cause kernel panics so lets avoid the loop below.
  5554. # First set a reasonable default.
  5555. lt_cv_sys_max_cmd_len=16384
  5556. #
  5557. if test -x /sbin/sysconfig; then
  5558. case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  5559. *1*) lt_cv_sys_max_cmd_len=-1 ;;
  5560. esac
  5561. fi
  5562. ;;
  5563. sco3.2v5*)
  5564. lt_cv_sys_max_cmd_len=102400
  5565. ;;
  5566. sysv5* | sco5v6* | sysv4.2uw2*)
  5567. kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  5568. if test -n "$kargmax"; then
  5569. lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
  5570. else
  5571. lt_cv_sys_max_cmd_len=32768
  5572. fi
  5573. ;;
  5574. *)
  5575. lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  5576. if test -n "$lt_cv_sys_max_cmd_len"; then
  5577. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  5578. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  5579. else
  5580. # Make teststring a little bigger before we do anything with it.
  5581. # a 1K string should be a reasonable start.
  5582. for i in 1 2 3 4 5 6 7 8 ; do
  5583. teststring=$teststring$teststring
  5584. done
  5585. SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  5586. # If test is not a shell built-in, we'll probably end up computing a
  5587. # maximum length that is only half of the actual maximum length, but
  5588. # we can't tell.
  5589. while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
  5590. = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
  5591. test $i != 17 # 1/2 MB should be enough
  5592. do
  5593. i=`expr $i + 1`
  5594. teststring=$teststring$teststring
  5595. done
  5596. # Only check the string length outside the loop.
  5597. lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
  5598. teststring=
  5599. # Add a significant safety factor because C++ compilers can tack on
  5600. # massive amounts of additional arguments before passing them to the
  5601. # linker. It appears as though 1/2 is a usable value.
  5602. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  5603. fi
  5604. ;;
  5605. esac
  5606. fi
  5607. if test -n $lt_cv_sys_max_cmd_len ; then
  5608. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
  5609. $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
  5610. else
  5611. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
  5612. $as_echo "none" >&6; }
  5613. fi
  5614. max_cmd_len=$lt_cv_sys_max_cmd_len
  5615. : ${CP="cp -f"}
  5616. : ${MV="mv -f"}
  5617. : ${RM="rm -f"}
  5618. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
  5619. $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
  5620. # Try some XSI features
  5621. xsi_shell=no
  5622. ( _lt_dummy="a/b/c"
  5623. test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
  5624. = c,a/b,, \
  5625. && eval 'test $(( 1 + 1 )) -eq 2 \
  5626. && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
  5627. && xsi_shell=yes
  5628. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
  5629. $as_echo "$xsi_shell" >&6; }
  5630. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
  5631. $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
  5632. lt_shell_append=no
  5633. ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
  5634. >/dev/null 2>&1 \
  5635. && lt_shell_append=yes
  5636. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
  5637. $as_echo "$lt_shell_append" >&6; }
  5638. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  5639. lt_unset=unset
  5640. else
  5641. lt_unset=false
  5642. fi
  5643. # test EBCDIC or ASCII
  5644. case `echo X|tr X '\101'` in
  5645. A) # ASCII based system
  5646. # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  5647. lt_SP2NL='tr \040 \012'
  5648. lt_NL2SP='tr \015\012 \040\040'
  5649. ;;
  5650. *) # EBCDIC based system
  5651. lt_SP2NL='tr \100 \n'
  5652. lt_NL2SP='tr \r\n \100\100'
  5653. ;;
  5654. esac
  5655. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
  5656. $as_echo_n "checking for $LD option to reload object files... " >&6; }
  5657. if ${lt_cv_ld_reload_flag+:} false; then :
  5658. $as_echo_n "(cached) " >&6
  5659. else
  5660. lt_cv_ld_reload_flag='-r'
  5661. fi
  5662. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
  5663. $as_echo "$lt_cv_ld_reload_flag" >&6; }
  5664. reload_flag=$lt_cv_ld_reload_flag
  5665. case $reload_flag in
  5666. "" | " "*) ;;
  5667. *) reload_flag=" $reload_flag" ;;
  5668. esac
  5669. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  5670. case $host_os in
  5671. darwin*)
  5672. if test "$GCC" = yes; then
  5673. reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
  5674. else
  5675. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  5676. fi
  5677. ;;
  5678. esac
  5679. if test -n "$ac_tool_prefix"; then
  5680. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  5681. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  5682. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5683. $as_echo_n "checking for $ac_word... " >&6; }
  5684. if ${ac_cv_prog_OBJDUMP+:} false; then :
  5685. $as_echo_n "(cached) " >&6
  5686. else
  5687. if test -n "$OBJDUMP"; then
  5688. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  5689. else
  5690. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5691. for as_dir in $PATH
  5692. do
  5693. IFS=$as_save_IFS
  5694. test -z "$as_dir" && as_dir=.
  5695. for ac_exec_ext in '' $ac_executable_extensions; do
  5696. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5697. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  5698. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5699. break 2
  5700. fi
  5701. done
  5702. done
  5703. IFS=$as_save_IFS
  5704. fi
  5705. fi
  5706. OBJDUMP=$ac_cv_prog_OBJDUMP
  5707. if test -n "$OBJDUMP"; then
  5708. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  5709. $as_echo "$OBJDUMP" >&6; }
  5710. else
  5711. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5712. $as_echo "no" >&6; }
  5713. fi
  5714. fi
  5715. if test -z "$ac_cv_prog_OBJDUMP"; then
  5716. ac_ct_OBJDUMP=$OBJDUMP
  5717. # Extract the first word of "objdump", so it can be a program name with args.
  5718. set dummy objdump; ac_word=$2
  5719. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5720. $as_echo_n "checking for $ac_word... " >&6; }
  5721. if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
  5722. $as_echo_n "(cached) " >&6
  5723. else
  5724. if test -n "$ac_ct_OBJDUMP"; then
  5725. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  5726. else
  5727. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5728. for as_dir in $PATH
  5729. do
  5730. IFS=$as_save_IFS
  5731. test -z "$as_dir" && as_dir=.
  5732. for ac_exec_ext in '' $ac_executable_extensions; do
  5733. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5734. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  5735. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5736. break 2
  5737. fi
  5738. done
  5739. done
  5740. IFS=$as_save_IFS
  5741. fi
  5742. fi
  5743. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  5744. if test -n "$ac_ct_OBJDUMP"; then
  5745. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  5746. $as_echo "$ac_ct_OBJDUMP" >&6; }
  5747. else
  5748. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5749. $as_echo "no" >&6; }
  5750. fi
  5751. if test "x$ac_ct_OBJDUMP" = x; then
  5752. OBJDUMP="false"
  5753. else
  5754. case $cross_compiling:$ac_tool_warned in
  5755. yes:)
  5756. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5757. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5758. ac_tool_warned=yes ;;
  5759. esac
  5760. OBJDUMP=$ac_ct_OBJDUMP
  5761. fi
  5762. else
  5763. OBJDUMP="$ac_cv_prog_OBJDUMP"
  5764. fi
  5765. test -z "$OBJDUMP" && OBJDUMP=objdump
  5766. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
  5767. $as_echo_n "checking how to recognize dependent libraries... " >&6; }
  5768. if ${lt_cv_deplibs_check_method+:} false; then :
  5769. $as_echo_n "(cached) " >&6
  5770. else
  5771. lt_cv_file_magic_cmd='$MAGIC_CMD'
  5772. lt_cv_file_magic_test_file=
  5773. lt_cv_deplibs_check_method='unknown'
  5774. # Need to set the preceding variable on all platforms that support
  5775. # interlibrary dependencies.
  5776. # 'none' -- dependencies not supported.
  5777. # `unknown' -- same as none, but documents that we really don't know.
  5778. # 'pass_all' -- all dependencies passed with no checks.
  5779. # 'test_compile' -- check by making test program.
  5780. # 'file_magic [[regex]]' -- check by looking for files in library path
  5781. # which responds to the $file_magic_cmd with a given extended regex.
  5782. # If you have `file' or equivalent on your system and you're not sure
  5783. # whether `pass_all' will *always* work, you probably want this one.
  5784. case $host_os in
  5785. aix[4-9]*)
  5786. lt_cv_deplibs_check_method=pass_all
  5787. ;;
  5788. beos*)
  5789. lt_cv_deplibs_check_method=pass_all
  5790. ;;
  5791. bsdi[45]*)
  5792. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  5793. lt_cv_file_magic_cmd='/usr/bin/file -L'
  5794. lt_cv_file_magic_test_file=/shlib/libc.so
  5795. ;;
  5796. cygwin*)
  5797. # func_win32_libid is a shell function defined in ltmain.sh
  5798. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  5799. lt_cv_file_magic_cmd='func_win32_libid'
  5800. ;;
  5801. mingw* | pw32*)
  5802. # Base MSYS/MinGW do not provide the 'file' command needed by
  5803. # func_win32_libid shell function, so use a weaker test based on 'objdump',
  5804. # unless we find 'file', for example because we are cross-compiling.
  5805. if ( file / ) >/dev/null 2>&1; then
  5806. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  5807. lt_cv_file_magic_cmd='func_win32_libid'
  5808. else
  5809. lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
  5810. lt_cv_file_magic_cmd='$OBJDUMP -f'
  5811. fi
  5812. ;;
  5813. cegcc)
  5814. # use the weaker test based on 'objdump'. See mingw*.
  5815. lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
  5816. lt_cv_file_magic_cmd='$OBJDUMP -f'
  5817. ;;
  5818. darwin* | rhapsody*)
  5819. lt_cv_deplibs_check_method=pass_all
  5820. ;;
  5821. freebsd* | dragonfly*)
  5822. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  5823. case $host_cpu in
  5824. i*86 )
  5825. # Not sure whether the presence of OpenBSD here was a mistake.
  5826. # Let's accept both of them until this is cleared up.
  5827. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
  5828. lt_cv_file_magic_cmd=/usr/bin/file
  5829. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  5830. ;;
  5831. esac
  5832. else
  5833. lt_cv_deplibs_check_method=pass_all
  5834. fi
  5835. ;;
  5836. gnu*)
  5837. lt_cv_deplibs_check_method=pass_all
  5838. ;;
  5839. hpux10.20* | hpux11*)
  5840. lt_cv_file_magic_cmd=/usr/bin/file
  5841. case $host_cpu in
  5842. ia64*)
  5843. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  5844. lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  5845. ;;
  5846. hppa*64*)
  5847. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
  5848. lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  5849. ;;
  5850. *)
  5851. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
  5852. lt_cv_file_magic_test_file=/usr/lib/libc.sl
  5853. ;;
  5854. esac
  5855. ;;
  5856. interix[3-9]*)
  5857. # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  5858. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
  5859. ;;
  5860. irix5* | irix6* | nonstopux*)
  5861. case $LD in
  5862. *-32|*"-32 ") libmagic=32-bit;;
  5863. *-n32|*"-n32 ") libmagic=N32;;
  5864. *-64|*"-64 ") libmagic=64-bit;;
  5865. *) libmagic=never-match;;
  5866. esac
  5867. lt_cv_deplibs_check_method=pass_all
  5868. ;;
  5869. # This must be Linux ELF.
  5870. linux* | k*bsd*-gnu)
  5871. lt_cv_deplibs_check_method=pass_all
  5872. ;;
  5873. netbsd*)
  5874. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  5875. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  5876. else
  5877. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  5878. fi
  5879. ;;
  5880. newos6*)
  5881. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  5882. lt_cv_file_magic_cmd=/usr/bin/file
  5883. lt_cv_file_magic_test_file=/usr/lib/libnls.so
  5884. ;;
  5885. *nto* | *qnx*)
  5886. lt_cv_deplibs_check_method=pass_all
  5887. ;;
  5888. openbsd*)
  5889. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  5890. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  5891. else
  5892. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  5893. fi
  5894. ;;
  5895. osf3* | osf4* | osf5*)
  5896. lt_cv_deplibs_check_method=pass_all
  5897. ;;
  5898. rdos*)
  5899. lt_cv_deplibs_check_method=pass_all
  5900. ;;
  5901. solaris*)
  5902. lt_cv_deplibs_check_method=pass_all
  5903. ;;
  5904. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  5905. lt_cv_deplibs_check_method=pass_all
  5906. ;;
  5907. sysv4 | sysv4.3*)
  5908. case $host_vendor in
  5909. motorola)
  5910. 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]'
  5911. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  5912. ;;
  5913. ncr)
  5914. lt_cv_deplibs_check_method=pass_all
  5915. ;;
  5916. sequent)
  5917. lt_cv_file_magic_cmd='/bin/file'
  5918. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  5919. ;;
  5920. sni)
  5921. lt_cv_file_magic_cmd='/bin/file'
  5922. lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  5923. lt_cv_file_magic_test_file=/lib/libc.so
  5924. ;;
  5925. siemens)
  5926. lt_cv_deplibs_check_method=pass_all
  5927. ;;
  5928. pc)
  5929. lt_cv_deplibs_check_method=pass_all
  5930. ;;
  5931. esac
  5932. ;;
  5933. tpf*)
  5934. lt_cv_deplibs_check_method=pass_all
  5935. ;;
  5936. esac
  5937. fi
  5938. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
  5939. $as_echo "$lt_cv_deplibs_check_method" >&6; }
  5940. file_magic_cmd=$lt_cv_file_magic_cmd
  5941. deplibs_check_method=$lt_cv_deplibs_check_method
  5942. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  5943. if test -n "$ac_tool_prefix"; then
  5944. # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
  5945. set dummy ${ac_tool_prefix}ar; ac_word=$2
  5946. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5947. $as_echo_n "checking for $ac_word... " >&6; }
  5948. if ${ac_cv_prog_AR+:} false; then :
  5949. $as_echo_n "(cached) " >&6
  5950. else
  5951. if test -n "$AR"; then
  5952. ac_cv_prog_AR="$AR" # Let the user override the test.
  5953. else
  5954. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5955. for as_dir in $PATH
  5956. do
  5957. IFS=$as_save_IFS
  5958. test -z "$as_dir" && as_dir=.
  5959. for ac_exec_ext in '' $ac_executable_extensions; do
  5960. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5961. ac_cv_prog_AR="${ac_tool_prefix}ar"
  5962. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5963. break 2
  5964. fi
  5965. done
  5966. done
  5967. IFS=$as_save_IFS
  5968. fi
  5969. fi
  5970. AR=$ac_cv_prog_AR
  5971. if test -n "$AR"; then
  5972. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  5973. $as_echo "$AR" >&6; }
  5974. else
  5975. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5976. $as_echo "no" >&6; }
  5977. fi
  5978. fi
  5979. if test -z "$ac_cv_prog_AR"; then
  5980. ac_ct_AR=$AR
  5981. # Extract the first word of "ar", so it can be a program name with args.
  5982. set dummy ar; 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_ac_ct_AR+:} false; then :
  5986. $as_echo_n "(cached) " >&6
  5987. else
  5988. if test -n "$ac_ct_AR"; then
  5989. ac_cv_prog_ac_ct_AR="$ac_ct_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 { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5998. ac_cv_prog_ac_ct_AR="ar"
  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. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  6008. if test -n "$ac_ct_AR"; then
  6009. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
  6010. $as_echo "$ac_ct_AR" >&6; }
  6011. else
  6012. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6013. $as_echo "no" >&6; }
  6014. fi
  6015. if test "x$ac_ct_AR" = x; then
  6016. AR="false"
  6017. else
  6018. case $cross_compiling:$ac_tool_warned in
  6019. yes:)
  6020. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6021. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6022. ac_tool_warned=yes ;;
  6023. esac
  6024. AR=$ac_ct_AR
  6025. fi
  6026. else
  6027. AR="$ac_cv_prog_AR"
  6028. fi
  6029. test -z "$AR" && AR=ar
  6030. test -z "$AR_FLAGS" && AR_FLAGS=cru
  6031. if test -n "$ac_tool_prefix"; then
  6032. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  6033. set dummy ${ac_tool_prefix}strip; ac_word=$2
  6034. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6035. $as_echo_n "checking for $ac_word... " >&6; }
  6036. if ${ac_cv_prog_STRIP+:} false; then :
  6037. $as_echo_n "(cached) " >&6
  6038. else
  6039. if test -n "$STRIP"; then
  6040. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  6041. else
  6042. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6043. for as_dir in $PATH
  6044. do
  6045. IFS=$as_save_IFS
  6046. test -z "$as_dir" && as_dir=.
  6047. for ac_exec_ext in '' $ac_executable_extensions; do
  6048. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6049. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  6050. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6051. break 2
  6052. fi
  6053. done
  6054. done
  6055. IFS=$as_save_IFS
  6056. fi
  6057. fi
  6058. STRIP=$ac_cv_prog_STRIP
  6059. if test -n "$STRIP"; then
  6060. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  6061. $as_echo "$STRIP" >&6; }
  6062. else
  6063. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6064. $as_echo "no" >&6; }
  6065. fi
  6066. fi
  6067. if test -z "$ac_cv_prog_STRIP"; then
  6068. ac_ct_STRIP=$STRIP
  6069. # Extract the first word of "strip", so it can be a program name with args.
  6070. set dummy strip; ac_word=$2
  6071. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6072. $as_echo_n "checking for $ac_word... " >&6; }
  6073. if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
  6074. $as_echo_n "(cached) " >&6
  6075. else
  6076. if test -n "$ac_ct_STRIP"; then
  6077. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  6078. else
  6079. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6080. for as_dir in $PATH
  6081. do
  6082. IFS=$as_save_IFS
  6083. test -z "$as_dir" && as_dir=.
  6084. for ac_exec_ext in '' $ac_executable_extensions; do
  6085. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6086. ac_cv_prog_ac_ct_STRIP="strip"
  6087. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6088. break 2
  6089. fi
  6090. done
  6091. done
  6092. IFS=$as_save_IFS
  6093. fi
  6094. fi
  6095. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  6096. if test -n "$ac_ct_STRIP"; then
  6097. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  6098. $as_echo "$ac_ct_STRIP" >&6; }
  6099. else
  6100. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6101. $as_echo "no" >&6; }
  6102. fi
  6103. if test "x$ac_ct_STRIP" = x; then
  6104. STRIP=":"
  6105. else
  6106. case $cross_compiling:$ac_tool_warned in
  6107. yes:)
  6108. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6109. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6110. ac_tool_warned=yes ;;
  6111. esac
  6112. STRIP=$ac_ct_STRIP
  6113. fi
  6114. else
  6115. STRIP="$ac_cv_prog_STRIP"
  6116. fi
  6117. test -z "$STRIP" && STRIP=:
  6118. if test -n "$ac_tool_prefix"; then
  6119. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  6120. set dummy ${ac_tool_prefix}ranlib; 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_RANLIB+:} false; then :
  6124. $as_echo_n "(cached) " >&6
  6125. else
  6126. if test -n "$RANLIB"; then
  6127. ac_cv_prog_RANLIB="$RANLIB" # 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 { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6136. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  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. RANLIB=$ac_cv_prog_RANLIB
  6146. if test -n "$RANLIB"; then
  6147. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  6148. $as_echo "$RANLIB" >&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_RANLIB"; then
  6155. ac_ct_RANLIB=$RANLIB
  6156. # Extract the first word of "ranlib", so it can be a program name with args.
  6157. set dummy ranlib; 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_RANLIB+:} false; then :
  6161. $as_echo_n "(cached) " >&6
  6162. else
  6163. if test -n "$ac_ct_RANLIB"; then
  6164. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # 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 { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6173. ac_cv_prog_ac_ct_RANLIB="ranlib"
  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_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  6183. if test -n "$ac_ct_RANLIB"; then
  6184. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  6185. $as_echo "$ac_ct_RANLIB" >&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_RANLIB" = x; then
  6191. RANLIB=":"
  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. RANLIB=$ac_ct_RANLIB
  6200. fi
  6201. else
  6202. RANLIB="$ac_cv_prog_RANLIB"
  6203. fi
  6204. test -z "$RANLIB" && RANLIB=:
  6205. # Determine commands to create old-style static archives.
  6206. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  6207. old_postinstall_cmds='chmod 644 $oldlib'
  6208. old_postuninstall_cmds=
  6209. if test -n "$RANLIB"; then
  6210. case $host_os in
  6211. openbsd*)
  6212. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
  6213. ;;
  6214. *)
  6215. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
  6216. ;;
  6217. esac
  6218. old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
  6219. fi
  6220. # If no C compiler was specified, use CC.
  6221. LTCC=${LTCC-"$CC"}
  6222. # If no C compiler flags were specified, use CFLAGS.
  6223. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  6224. # Allow CC to be a program name with arguments.
  6225. compiler=$CC
  6226. # Check for command to grab the raw symbol name followed by C symbol from nm.
  6227. { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
  6228. $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
  6229. if ${lt_cv_sys_global_symbol_pipe+:} false; then :
  6230. $as_echo_n "(cached) " >&6
  6231. else
  6232. # These are sane defaults that work on at least a few old systems.
  6233. # [They come from Ultrix. What could be older than Ultrix?!! ;)]
  6234. # Character class describing NM global symbol codes.
  6235. symcode='[BCDEGRST]'
  6236. # Regexp to match symbols that can be accessed directly from C.
  6237. sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  6238. # Define system-specific variables.
  6239. case $host_os in
  6240. aix*)
  6241. symcode='[BCDT]'
  6242. ;;
  6243. cygwin* | mingw* | pw32* | cegcc*)
  6244. symcode='[ABCDGISTW]'
  6245. ;;
  6246. hpux*)
  6247. if test "$host_cpu" = ia64; then
  6248. symcode='[ABCDEGRST]'
  6249. fi
  6250. ;;
  6251. irix* | nonstopux*)
  6252. symcode='[BCDEGRST]'
  6253. ;;
  6254. osf*)
  6255. symcode='[BCDEGQRST]'
  6256. ;;
  6257. solaris*)
  6258. symcode='[BDRT]'
  6259. ;;
  6260. sco3.2v5*)
  6261. symcode='[DT]'
  6262. ;;
  6263. sysv4.2uw2*)
  6264. symcode='[DT]'
  6265. ;;
  6266. sysv5* | sco5v6* | unixware* | OpenUNIX*)
  6267. symcode='[ABDT]'
  6268. ;;
  6269. sysv4)
  6270. symcode='[DFNSTU]'
  6271. ;;
  6272. esac
  6273. # If we're using GNU nm, then use its standard symbol codes.
  6274. case `$NM -V 2>&1` in
  6275. *GNU* | *'with BFD'*)
  6276. symcode='[ABCDGIRSTW]' ;;
  6277. esac
  6278. # Transform an extracted symbol line into a proper C declaration.
  6279. # Some systems (esp. on ia64) link data and code symbols differently,
  6280. # so use this general approach.
  6281. lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  6282. # Transform an extracted symbol line into symbol name and symbol address
  6283. lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
  6284. 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'"
  6285. # Handle CRLF in mingw tool chain
  6286. opt_cr=
  6287. case $build_os in
  6288. mingw*)
  6289. opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  6290. ;;
  6291. esac
  6292. # Try without a prefix underscore, then with it.
  6293. for ac_symprfx in "" "_"; do
  6294. # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  6295. symxfrm="\\1 $ac_symprfx\\2 \\2"
  6296. # Write the raw and C identifiers.
  6297. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  6298. # Fake it for dumpbin and say T for any non-static function
  6299. # and D for any global variable.
  6300. # Also find C++ and __fastcall symbols from MSVC++,
  6301. # which start with @ or ?.
  6302. lt_cv_sys_global_symbol_pipe="$AWK '"\
  6303. " {last_section=section; section=\$ 3};"\
  6304. " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
  6305. " \$ 0!~/External *\|/{next};"\
  6306. " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
  6307. " {if(hide[section]) next};"\
  6308. " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
  6309. " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
  6310. " s[1]~/^[@?]/{print s[1], s[1]; next};"\
  6311. " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
  6312. " ' prfx=^$ac_symprfx"
  6313. else
  6314. lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  6315. fi
  6316. # Check to see that the pipe works correctly.
  6317. pipe_works=no
  6318. rm -f conftest*
  6319. cat > conftest.$ac_ext <<_LT_EOF
  6320. #ifdef __cplusplus
  6321. extern "C" {
  6322. #endif
  6323. char nm_test_var;
  6324. void nm_test_func(void);
  6325. void nm_test_func(void){}
  6326. #ifdef __cplusplus
  6327. }
  6328. #endif
  6329. int main(){nm_test_var='a';nm_test_func();return(0);}
  6330. _LT_EOF
  6331. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6332. (eval $ac_compile) 2>&5
  6333. ac_status=$?
  6334. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6335. test $ac_status = 0; }; then
  6336. # Now try to grab the symbols.
  6337. nlist=conftest.nm
  6338. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
  6339. (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
  6340. ac_status=$?
  6341. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6342. test $ac_status = 0; } && test -s "$nlist"; then
  6343. # Try sorting and uniquifying the output.
  6344. if sort "$nlist" | uniq > "$nlist"T; then
  6345. mv -f "$nlist"T "$nlist"
  6346. else
  6347. rm -f "$nlist"T
  6348. fi
  6349. # Make sure that we snagged all the symbols we need.
  6350. if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
  6351. if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
  6352. cat <<_LT_EOF > conftest.$ac_ext
  6353. #ifdef __cplusplus
  6354. extern "C" {
  6355. #endif
  6356. _LT_EOF
  6357. # Now generate the symbol file.
  6358. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
  6359. cat <<_LT_EOF >> conftest.$ac_ext
  6360. /* The mapping between symbol names and symbols. */
  6361. const struct {
  6362. const char *name;
  6363. void *address;
  6364. }
  6365. lt__PROGRAM__LTX_preloaded_symbols[] =
  6366. {
  6367. { "@PROGRAM@", (void *) 0 },
  6368. _LT_EOF
  6369. $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
  6370. cat <<\_LT_EOF >> conftest.$ac_ext
  6371. {0, (void *) 0}
  6372. };
  6373. /* This works around a problem in FreeBSD linker */
  6374. #ifdef FREEBSD_WORKAROUND
  6375. static const void *lt_preloaded_setup() {
  6376. return lt__PROGRAM__LTX_preloaded_symbols;
  6377. }
  6378. #endif
  6379. #ifdef __cplusplus
  6380. }
  6381. #endif
  6382. _LT_EOF
  6383. # Now try linking the two files.
  6384. mv conftest.$ac_objext conftstm.$ac_objext
  6385. lt_save_LIBS="$LIBS"
  6386. lt_save_CFLAGS="$CFLAGS"
  6387. LIBS="conftstm.$ac_objext"
  6388. CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
  6389. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  6390. (eval $ac_link) 2>&5
  6391. ac_status=$?
  6392. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6393. test $ac_status = 0; } && test -s conftest${ac_exeext}; then
  6394. pipe_works=yes
  6395. fi
  6396. LIBS="$lt_save_LIBS"
  6397. CFLAGS="$lt_save_CFLAGS"
  6398. else
  6399. echo "cannot find nm_test_func in $nlist" >&5
  6400. fi
  6401. else
  6402. echo "cannot find nm_test_var in $nlist" >&5
  6403. fi
  6404. else
  6405. echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
  6406. fi
  6407. else
  6408. echo "$progname: failed program was:" >&5
  6409. cat conftest.$ac_ext >&5
  6410. fi
  6411. rm -rf conftest* conftst*
  6412. # Do not use the global_symbol_pipe unless it works.
  6413. if test "$pipe_works" = yes; then
  6414. break
  6415. else
  6416. lt_cv_sys_global_symbol_pipe=
  6417. fi
  6418. done
  6419. fi
  6420. if test -z "$lt_cv_sys_global_symbol_pipe"; then
  6421. lt_cv_sys_global_symbol_to_cdecl=
  6422. fi
  6423. if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  6424. { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
  6425. $as_echo "failed" >&6; }
  6426. else
  6427. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
  6428. $as_echo "ok" >&6; }
  6429. fi
  6430. # Check whether --enable-libtool-lock was given.
  6431. if test "${enable_libtool_lock+set}" = set; then :
  6432. enableval=$enable_libtool_lock;
  6433. fi
  6434. test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  6435. # Some flags need to be propagated to the compiler or linker for good
  6436. # libtool support.
  6437. case $host in
  6438. ia64-*-hpux*)
  6439. # Find out which ABI we are using.
  6440. echo 'int i;' > conftest.$ac_ext
  6441. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6442. (eval $ac_compile) 2>&5
  6443. ac_status=$?
  6444. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6445. test $ac_status = 0; }; then
  6446. case `/usr/bin/file conftest.$ac_objext` in
  6447. *ELF-32*)
  6448. HPUX_IA64_MODE="32"
  6449. ;;
  6450. *ELF-64*)
  6451. HPUX_IA64_MODE="64"
  6452. ;;
  6453. esac
  6454. fi
  6455. rm -rf conftest*
  6456. ;;
  6457. *-*-irix6*)
  6458. # Find out which ABI we are using.
  6459. echo '#line 7295 "configure"' > conftest.$ac_ext
  6460. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6461. (eval $ac_compile) 2>&5
  6462. ac_status=$?
  6463. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6464. test $ac_status = 0; }; then
  6465. if test "$lt_cv_prog_gnu_ld" = yes; then
  6466. case `/usr/bin/file conftest.$ac_objext` in
  6467. *32-bit*)
  6468. LD="${LD-ld} -melf32bsmip"
  6469. ;;
  6470. *N32*)
  6471. LD="${LD-ld} -melf32bmipn32"
  6472. ;;
  6473. *64-bit*)
  6474. LD="${LD-ld} -melf64bmip"
  6475. ;;
  6476. esac
  6477. else
  6478. case `/usr/bin/file conftest.$ac_objext` in
  6479. *32-bit*)
  6480. LD="${LD-ld} -32"
  6481. ;;
  6482. *N32*)
  6483. LD="${LD-ld} -n32"
  6484. ;;
  6485. *64-bit*)
  6486. LD="${LD-ld} -64"
  6487. ;;
  6488. esac
  6489. fi
  6490. fi
  6491. rm -rf conftest*
  6492. ;;
  6493. x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
  6494. s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
  6495. # Find out which ABI we are using.
  6496. echo 'int i;' > conftest.$ac_ext
  6497. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6498. (eval $ac_compile) 2>&5
  6499. ac_status=$?
  6500. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6501. test $ac_status = 0; }; then
  6502. case `/usr/bin/file conftest.o` in
  6503. *32-bit*)
  6504. case $host in
  6505. x86_64-*kfreebsd*-gnu)
  6506. LD="${LD-ld} -m elf_i386_fbsd"
  6507. ;;
  6508. x86_64-*linux*)
  6509. LD="${LD-ld} -m elf_i386"
  6510. ;;
  6511. ppc64-*linux*|powerpc64-*linux*)
  6512. LD="${LD-ld} -m elf32ppclinux"
  6513. ;;
  6514. s390x-*linux*)
  6515. LD="${LD-ld} -m elf_s390"
  6516. ;;
  6517. sparc64-*linux*)
  6518. LD="${LD-ld} -m elf32_sparc"
  6519. ;;
  6520. esac
  6521. ;;
  6522. *64-bit*)
  6523. case $host in
  6524. x86_64-*kfreebsd*-gnu)
  6525. LD="${LD-ld} -m elf_x86_64_fbsd"
  6526. ;;
  6527. x86_64-*linux*)
  6528. LD="${LD-ld} -m elf_x86_64"
  6529. ;;
  6530. ppc*-*linux*|powerpc*-*linux*)
  6531. LD="${LD-ld} -m elf64ppc"
  6532. ;;
  6533. s390*-*linux*|s390*-*tpf*)
  6534. LD="${LD-ld} -m elf64_s390"
  6535. ;;
  6536. sparc*-*linux*)
  6537. LD="${LD-ld} -m elf64_sparc"
  6538. ;;
  6539. esac
  6540. ;;
  6541. esac
  6542. fi
  6543. rm -rf conftest*
  6544. ;;
  6545. *-*-sco3.2v5*)
  6546. # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  6547. SAVE_CFLAGS="$CFLAGS"
  6548. CFLAGS="$CFLAGS -belf"
  6549. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
  6550. $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
  6551. if ${lt_cv_cc_needs_belf+:} false; then :
  6552. $as_echo_n "(cached) " >&6
  6553. else
  6554. ac_ext=c
  6555. ac_cpp='$CPP $CPPFLAGS'
  6556. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6557. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6558. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6559. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6560. /* end confdefs.h. */
  6561. int
  6562. main ()
  6563. {
  6564. ;
  6565. return 0;
  6566. }
  6567. _ACEOF
  6568. if ac_fn_c_try_link "$LINENO"; then :
  6569. lt_cv_cc_needs_belf=yes
  6570. else
  6571. lt_cv_cc_needs_belf=no
  6572. fi
  6573. rm -f core conftest.err conftest.$ac_objext \
  6574. conftest$ac_exeext conftest.$ac_ext
  6575. ac_ext=c
  6576. ac_cpp='$CPP $CPPFLAGS'
  6577. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6578. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6579. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6580. fi
  6581. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
  6582. $as_echo "$lt_cv_cc_needs_belf" >&6; }
  6583. if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  6584. # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  6585. CFLAGS="$SAVE_CFLAGS"
  6586. fi
  6587. ;;
  6588. sparc*-*solaris*)
  6589. # Find out which ABI we are using.
  6590. echo 'int i;' > conftest.$ac_ext
  6591. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6592. (eval $ac_compile) 2>&5
  6593. ac_status=$?
  6594. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6595. test $ac_status = 0; }; then
  6596. case `/usr/bin/file conftest.o` in
  6597. *64-bit*)
  6598. case $lt_cv_prog_gnu_ld in
  6599. yes*) LD="${LD-ld} -m elf64_sparc" ;;
  6600. *)
  6601. if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  6602. LD="${LD-ld} -64"
  6603. fi
  6604. ;;
  6605. esac
  6606. ;;
  6607. esac
  6608. fi
  6609. rm -rf conftest*
  6610. ;;
  6611. esac
  6612. need_locks="$enable_libtool_lock"
  6613. case $host_os in
  6614. rhapsody* | darwin*)
  6615. if test -n "$ac_tool_prefix"; then
  6616. # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
  6617. set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
  6618. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6619. $as_echo_n "checking for $ac_word... " >&6; }
  6620. if ${ac_cv_prog_DSYMUTIL+:} false; then :
  6621. $as_echo_n "(cached) " >&6
  6622. else
  6623. if test -n "$DSYMUTIL"; then
  6624. ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
  6625. else
  6626. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6627. for as_dir in $PATH
  6628. do
  6629. IFS=$as_save_IFS
  6630. test -z "$as_dir" && as_dir=.
  6631. for ac_exec_ext in '' $ac_executable_extensions; do
  6632. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6633. ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
  6634. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6635. break 2
  6636. fi
  6637. done
  6638. done
  6639. IFS=$as_save_IFS
  6640. fi
  6641. fi
  6642. DSYMUTIL=$ac_cv_prog_DSYMUTIL
  6643. if test -n "$DSYMUTIL"; then
  6644. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
  6645. $as_echo "$DSYMUTIL" >&6; }
  6646. else
  6647. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6648. $as_echo "no" >&6; }
  6649. fi
  6650. fi
  6651. if test -z "$ac_cv_prog_DSYMUTIL"; then
  6652. ac_ct_DSYMUTIL=$DSYMUTIL
  6653. # Extract the first word of "dsymutil", so it can be a program name with args.
  6654. set dummy dsymutil; ac_word=$2
  6655. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6656. $as_echo_n "checking for $ac_word... " >&6; }
  6657. if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
  6658. $as_echo_n "(cached) " >&6
  6659. else
  6660. if test -n "$ac_ct_DSYMUTIL"; then
  6661. ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
  6662. else
  6663. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6664. for as_dir in $PATH
  6665. do
  6666. IFS=$as_save_IFS
  6667. test -z "$as_dir" && as_dir=.
  6668. for ac_exec_ext in '' $ac_executable_extensions; do
  6669. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6670. ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
  6671. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6672. break 2
  6673. fi
  6674. done
  6675. done
  6676. IFS=$as_save_IFS
  6677. fi
  6678. fi
  6679. ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
  6680. if test -n "$ac_ct_DSYMUTIL"; then
  6681. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
  6682. $as_echo "$ac_ct_DSYMUTIL" >&6; }
  6683. else
  6684. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6685. $as_echo "no" >&6; }
  6686. fi
  6687. if test "x$ac_ct_DSYMUTIL" = x; then
  6688. DSYMUTIL=":"
  6689. else
  6690. case $cross_compiling:$ac_tool_warned in
  6691. yes:)
  6692. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6693. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6694. ac_tool_warned=yes ;;
  6695. esac
  6696. DSYMUTIL=$ac_ct_DSYMUTIL
  6697. fi
  6698. else
  6699. DSYMUTIL="$ac_cv_prog_DSYMUTIL"
  6700. fi
  6701. if test -n "$ac_tool_prefix"; then
  6702. # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
  6703. set dummy ${ac_tool_prefix}nmedit; ac_word=$2
  6704. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6705. $as_echo_n "checking for $ac_word... " >&6; }
  6706. if ${ac_cv_prog_NMEDIT+:} false; then :
  6707. $as_echo_n "(cached) " >&6
  6708. else
  6709. if test -n "$NMEDIT"; then
  6710. ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
  6711. else
  6712. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6713. for as_dir in $PATH
  6714. do
  6715. IFS=$as_save_IFS
  6716. test -z "$as_dir" && as_dir=.
  6717. for ac_exec_ext in '' $ac_executable_extensions; do
  6718. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6719. ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
  6720. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6721. break 2
  6722. fi
  6723. done
  6724. done
  6725. IFS=$as_save_IFS
  6726. fi
  6727. fi
  6728. NMEDIT=$ac_cv_prog_NMEDIT
  6729. if test -n "$NMEDIT"; then
  6730. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
  6731. $as_echo "$NMEDIT" >&6; }
  6732. else
  6733. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6734. $as_echo "no" >&6; }
  6735. fi
  6736. fi
  6737. if test -z "$ac_cv_prog_NMEDIT"; then
  6738. ac_ct_NMEDIT=$NMEDIT
  6739. # Extract the first word of "nmedit", so it can be a program name with args.
  6740. set dummy nmedit; ac_word=$2
  6741. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6742. $as_echo_n "checking for $ac_word... " >&6; }
  6743. if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
  6744. $as_echo_n "(cached) " >&6
  6745. else
  6746. if test -n "$ac_ct_NMEDIT"; then
  6747. ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
  6748. else
  6749. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6750. for as_dir in $PATH
  6751. do
  6752. IFS=$as_save_IFS
  6753. test -z "$as_dir" && as_dir=.
  6754. for ac_exec_ext in '' $ac_executable_extensions; do
  6755. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6756. ac_cv_prog_ac_ct_NMEDIT="nmedit"
  6757. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6758. break 2
  6759. fi
  6760. done
  6761. done
  6762. IFS=$as_save_IFS
  6763. fi
  6764. fi
  6765. ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
  6766. if test -n "$ac_ct_NMEDIT"; then
  6767. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
  6768. $as_echo "$ac_ct_NMEDIT" >&6; }
  6769. else
  6770. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6771. $as_echo "no" >&6; }
  6772. fi
  6773. if test "x$ac_ct_NMEDIT" = x; then
  6774. NMEDIT=":"
  6775. else
  6776. case $cross_compiling:$ac_tool_warned in
  6777. yes:)
  6778. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6779. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6780. ac_tool_warned=yes ;;
  6781. esac
  6782. NMEDIT=$ac_ct_NMEDIT
  6783. fi
  6784. else
  6785. NMEDIT="$ac_cv_prog_NMEDIT"
  6786. fi
  6787. if test -n "$ac_tool_prefix"; then
  6788. # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
  6789. set dummy ${ac_tool_prefix}lipo; ac_word=$2
  6790. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6791. $as_echo_n "checking for $ac_word... " >&6; }
  6792. if ${ac_cv_prog_LIPO+:} false; then :
  6793. $as_echo_n "(cached) " >&6
  6794. else
  6795. if test -n "$LIPO"; then
  6796. ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
  6797. else
  6798. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6799. for as_dir in $PATH
  6800. do
  6801. IFS=$as_save_IFS
  6802. test -z "$as_dir" && as_dir=.
  6803. for ac_exec_ext in '' $ac_executable_extensions; do
  6804. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6805. ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
  6806. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6807. break 2
  6808. fi
  6809. done
  6810. done
  6811. IFS=$as_save_IFS
  6812. fi
  6813. fi
  6814. LIPO=$ac_cv_prog_LIPO
  6815. if test -n "$LIPO"; then
  6816. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
  6817. $as_echo "$LIPO" >&6; }
  6818. else
  6819. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6820. $as_echo "no" >&6; }
  6821. fi
  6822. fi
  6823. if test -z "$ac_cv_prog_LIPO"; then
  6824. ac_ct_LIPO=$LIPO
  6825. # Extract the first word of "lipo", so it can be a program name with args.
  6826. set dummy lipo; ac_word=$2
  6827. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6828. $as_echo_n "checking for $ac_word... " >&6; }
  6829. if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
  6830. $as_echo_n "(cached) " >&6
  6831. else
  6832. if test -n "$ac_ct_LIPO"; then
  6833. ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
  6834. else
  6835. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6836. for as_dir in $PATH
  6837. do
  6838. IFS=$as_save_IFS
  6839. test -z "$as_dir" && as_dir=.
  6840. for ac_exec_ext in '' $ac_executable_extensions; do
  6841. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6842. ac_cv_prog_ac_ct_LIPO="lipo"
  6843. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6844. break 2
  6845. fi
  6846. done
  6847. done
  6848. IFS=$as_save_IFS
  6849. fi
  6850. fi
  6851. ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
  6852. if test -n "$ac_ct_LIPO"; then
  6853. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
  6854. $as_echo "$ac_ct_LIPO" >&6; }
  6855. else
  6856. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6857. $as_echo "no" >&6; }
  6858. fi
  6859. if test "x$ac_ct_LIPO" = x; then
  6860. LIPO=":"
  6861. else
  6862. case $cross_compiling:$ac_tool_warned in
  6863. yes:)
  6864. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6865. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6866. ac_tool_warned=yes ;;
  6867. esac
  6868. LIPO=$ac_ct_LIPO
  6869. fi
  6870. else
  6871. LIPO="$ac_cv_prog_LIPO"
  6872. fi
  6873. if test -n "$ac_tool_prefix"; then
  6874. # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
  6875. set dummy ${ac_tool_prefix}otool; ac_word=$2
  6876. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6877. $as_echo_n "checking for $ac_word... " >&6; }
  6878. if ${ac_cv_prog_OTOOL+:} false; then :
  6879. $as_echo_n "(cached) " >&6
  6880. else
  6881. if test -n "$OTOOL"; then
  6882. ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
  6883. else
  6884. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6885. for as_dir in $PATH
  6886. do
  6887. IFS=$as_save_IFS
  6888. test -z "$as_dir" && as_dir=.
  6889. for ac_exec_ext in '' $ac_executable_extensions; do
  6890. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6891. ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
  6892. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6893. break 2
  6894. fi
  6895. done
  6896. done
  6897. IFS=$as_save_IFS
  6898. fi
  6899. fi
  6900. OTOOL=$ac_cv_prog_OTOOL
  6901. if test -n "$OTOOL"; then
  6902. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
  6903. $as_echo "$OTOOL" >&6; }
  6904. else
  6905. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6906. $as_echo "no" >&6; }
  6907. fi
  6908. fi
  6909. if test -z "$ac_cv_prog_OTOOL"; then
  6910. ac_ct_OTOOL=$OTOOL
  6911. # Extract the first word of "otool", so it can be a program name with args.
  6912. set dummy otool; ac_word=$2
  6913. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6914. $as_echo_n "checking for $ac_word... " >&6; }
  6915. if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
  6916. $as_echo_n "(cached) " >&6
  6917. else
  6918. if test -n "$ac_ct_OTOOL"; then
  6919. ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
  6920. else
  6921. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6922. for as_dir in $PATH
  6923. do
  6924. IFS=$as_save_IFS
  6925. test -z "$as_dir" && as_dir=.
  6926. for ac_exec_ext in '' $ac_executable_extensions; do
  6927. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6928. ac_cv_prog_ac_ct_OTOOL="otool"
  6929. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6930. break 2
  6931. fi
  6932. done
  6933. done
  6934. IFS=$as_save_IFS
  6935. fi
  6936. fi
  6937. ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
  6938. if test -n "$ac_ct_OTOOL"; then
  6939. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
  6940. $as_echo "$ac_ct_OTOOL" >&6; }
  6941. else
  6942. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6943. $as_echo "no" >&6; }
  6944. fi
  6945. if test "x$ac_ct_OTOOL" = x; then
  6946. OTOOL=":"
  6947. else
  6948. case $cross_compiling:$ac_tool_warned in
  6949. yes:)
  6950. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6951. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6952. ac_tool_warned=yes ;;
  6953. esac
  6954. OTOOL=$ac_ct_OTOOL
  6955. fi
  6956. else
  6957. OTOOL="$ac_cv_prog_OTOOL"
  6958. fi
  6959. if test -n "$ac_tool_prefix"; then
  6960. # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
  6961. set dummy ${ac_tool_prefix}otool64; ac_word=$2
  6962. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6963. $as_echo_n "checking for $ac_word... " >&6; }
  6964. if ${ac_cv_prog_OTOOL64+:} false; then :
  6965. $as_echo_n "(cached) " >&6
  6966. else
  6967. if test -n "$OTOOL64"; then
  6968. ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
  6969. else
  6970. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6971. for as_dir in $PATH
  6972. do
  6973. IFS=$as_save_IFS
  6974. test -z "$as_dir" && as_dir=.
  6975. for ac_exec_ext in '' $ac_executable_extensions; do
  6976. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6977. ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
  6978. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6979. break 2
  6980. fi
  6981. done
  6982. done
  6983. IFS=$as_save_IFS
  6984. fi
  6985. fi
  6986. OTOOL64=$ac_cv_prog_OTOOL64
  6987. if test -n "$OTOOL64"; then
  6988. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
  6989. $as_echo "$OTOOL64" >&6; }
  6990. else
  6991. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6992. $as_echo "no" >&6; }
  6993. fi
  6994. fi
  6995. if test -z "$ac_cv_prog_OTOOL64"; then
  6996. ac_ct_OTOOL64=$OTOOL64
  6997. # Extract the first word of "otool64", so it can be a program name with args.
  6998. set dummy otool64; ac_word=$2
  6999. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7000. $as_echo_n "checking for $ac_word... " >&6; }
  7001. if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
  7002. $as_echo_n "(cached) " >&6
  7003. else
  7004. if test -n "$ac_ct_OTOOL64"; then
  7005. ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
  7006. else
  7007. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7008. for as_dir in $PATH
  7009. do
  7010. IFS=$as_save_IFS
  7011. test -z "$as_dir" && as_dir=.
  7012. for ac_exec_ext in '' $ac_executable_extensions; do
  7013. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  7014. ac_cv_prog_ac_ct_OTOOL64="otool64"
  7015. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7016. break 2
  7017. fi
  7018. done
  7019. done
  7020. IFS=$as_save_IFS
  7021. fi
  7022. fi
  7023. ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
  7024. if test -n "$ac_ct_OTOOL64"; then
  7025. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
  7026. $as_echo "$ac_ct_OTOOL64" >&6; }
  7027. else
  7028. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7029. $as_echo "no" >&6; }
  7030. fi
  7031. if test "x$ac_ct_OTOOL64" = x; then
  7032. OTOOL64=":"
  7033. else
  7034. case $cross_compiling:$ac_tool_warned in
  7035. yes:)
  7036. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7037. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7038. ac_tool_warned=yes ;;
  7039. esac
  7040. OTOOL64=$ac_ct_OTOOL64
  7041. fi
  7042. else
  7043. OTOOL64="$ac_cv_prog_OTOOL64"
  7044. fi
  7045. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
  7046. $as_echo_n "checking for -single_module linker flag... " >&6; }
  7047. if ${lt_cv_apple_cc_single_mod+:} false; then :
  7048. $as_echo_n "(cached) " >&6
  7049. else
  7050. lt_cv_apple_cc_single_mod=no
  7051. if test -z "${LT_MULTI_MODULE}"; then
  7052. # By default we will add the -single_module flag. You can override
  7053. # by either setting the environment variable LT_MULTI_MODULE
  7054. # non-empty at configure time, or by adding -multi_module to the
  7055. # link flags.
  7056. rm -rf libconftest.dylib*
  7057. echo "int foo(void){return 1;}" > conftest.c
  7058. echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  7059. -dynamiclib -Wl,-single_module conftest.c" >&5
  7060. $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  7061. -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
  7062. _lt_result=$?
  7063. if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
  7064. lt_cv_apple_cc_single_mod=yes
  7065. else
  7066. cat conftest.err >&5
  7067. fi
  7068. rm -rf libconftest.dylib*
  7069. rm -f conftest.*
  7070. fi
  7071. fi
  7072. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
  7073. $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
  7074. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
  7075. $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
  7076. if ${lt_cv_ld_exported_symbols_list+:} false; then :
  7077. $as_echo_n "(cached) " >&6
  7078. else
  7079. lt_cv_ld_exported_symbols_list=no
  7080. save_LDFLAGS=$LDFLAGS
  7081. echo "_main" > conftest.sym
  7082. LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  7083. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7084. /* end confdefs.h. */
  7085. int
  7086. main ()
  7087. {
  7088. ;
  7089. return 0;
  7090. }
  7091. _ACEOF
  7092. if ac_fn_c_try_link "$LINENO"; then :
  7093. lt_cv_ld_exported_symbols_list=yes
  7094. else
  7095. lt_cv_ld_exported_symbols_list=no
  7096. fi
  7097. rm -f core conftest.err conftest.$ac_objext \
  7098. conftest$ac_exeext conftest.$ac_ext
  7099. LDFLAGS="$save_LDFLAGS"
  7100. fi
  7101. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
  7102. $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
  7103. case $host_os in
  7104. rhapsody* | darwin1.[012])
  7105. _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
  7106. darwin1.*)
  7107. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  7108. darwin*) # darwin 5.x on
  7109. # if running on 10.5 or later, the deployment target defaults
  7110. # to the OS version, if on x86, and 10.4, the deployment
  7111. # target defaults to 10.4. Don't you love it?
  7112. case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
  7113. 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
  7114. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  7115. 10.[012]*)
  7116. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  7117. 10.*)
  7118. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  7119. esac
  7120. ;;
  7121. esac
  7122. if test "$lt_cv_apple_cc_single_mod" = "yes"; then
  7123. _lt_dar_single_mod='$single_module'
  7124. fi
  7125. if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
  7126. _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
  7127. else
  7128. _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
  7129. fi
  7130. if test "$DSYMUTIL" != ":"; then
  7131. _lt_dsymutil='~$DSYMUTIL $lib || :'
  7132. else
  7133. _lt_dsymutil=
  7134. fi
  7135. ;;
  7136. esac
  7137. for ac_header in dlfcn.h
  7138. do :
  7139. ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
  7140. "
  7141. if test "x$ac_cv_header_dlfcn_h" = xyes; then :
  7142. cat >>confdefs.h <<_ACEOF
  7143. #define HAVE_DLFCN_H 1
  7144. _ACEOF
  7145. fi
  7146. done
  7147. # Set options
  7148. enable_dlopen=no
  7149. enable_win32_dll=no
  7150. # Check whether --enable-shared was given.
  7151. if test "${enable_shared+set}" = set; then :
  7152. enableval=$enable_shared; p=${PACKAGE-default}
  7153. case $enableval in
  7154. yes) enable_shared=yes ;;
  7155. no) enable_shared=no ;;
  7156. *)
  7157. enable_shared=no
  7158. # Look at the argument we got. We use all the common list separators.
  7159. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  7160. for pkg in $enableval; do
  7161. IFS="$lt_save_ifs"
  7162. if test "X$pkg" = "X$p"; then
  7163. enable_shared=yes
  7164. fi
  7165. done
  7166. IFS="$lt_save_ifs"
  7167. ;;
  7168. esac
  7169. else
  7170. enable_shared=yes
  7171. fi
  7172. # Check whether --enable-static was given.
  7173. if test "${enable_static+set}" = set; then :
  7174. enableval=$enable_static; p=${PACKAGE-default}
  7175. case $enableval in
  7176. yes) enable_static=yes ;;
  7177. no) enable_static=no ;;
  7178. *)
  7179. enable_static=no
  7180. # Look at the argument we got. We use all the common list separators.
  7181. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  7182. for pkg in $enableval; do
  7183. IFS="$lt_save_ifs"
  7184. if test "X$pkg" = "X$p"; then
  7185. enable_static=yes
  7186. fi
  7187. done
  7188. IFS="$lt_save_ifs"
  7189. ;;
  7190. esac
  7191. else
  7192. enable_static=yes
  7193. fi
  7194. # Check whether --with-pic was given.
  7195. if test "${with_pic+set}" = set; then :
  7196. withval=$with_pic; pic_mode="$withval"
  7197. else
  7198. pic_mode=default
  7199. fi
  7200. test -z "$pic_mode" && pic_mode=default
  7201. # Check whether --enable-fast-install was given.
  7202. if test "${enable_fast_install+set}" = set; then :
  7203. enableval=$enable_fast_install; p=${PACKAGE-default}
  7204. case $enableval in
  7205. yes) enable_fast_install=yes ;;
  7206. no) enable_fast_install=no ;;
  7207. *)
  7208. enable_fast_install=no
  7209. # Look at the argument we got. We use all the common list separators.
  7210. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  7211. for pkg in $enableval; do
  7212. IFS="$lt_save_ifs"
  7213. if test "X$pkg" = "X$p"; then
  7214. enable_fast_install=yes
  7215. fi
  7216. done
  7217. IFS="$lt_save_ifs"
  7218. ;;
  7219. esac
  7220. else
  7221. enable_fast_install=yes
  7222. fi
  7223. # This can be used to rebuild libtool when needed
  7224. LIBTOOL_DEPS="$ltmain"
  7225. # Always use our own libtool.
  7226. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  7227. test -z "$LN_S" && LN_S="ln -s"
  7228. if test -n "${ZSH_VERSION+set}" ; then
  7229. setopt NO_GLOB_SUBST
  7230. fi
  7231. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
  7232. $as_echo_n "checking for objdir... " >&6; }
  7233. if ${lt_cv_objdir+:} false; then :
  7234. $as_echo_n "(cached) " >&6
  7235. else
  7236. rm -f .libs 2>/dev/null
  7237. mkdir .libs 2>/dev/null
  7238. if test -d .libs; then
  7239. lt_cv_objdir=.libs
  7240. else
  7241. # MS-DOS does not allow filenames that begin with a dot.
  7242. lt_cv_objdir=_libs
  7243. fi
  7244. rmdir .libs 2>/dev/null
  7245. fi
  7246. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
  7247. $as_echo "$lt_cv_objdir" >&6; }
  7248. objdir=$lt_cv_objdir
  7249. cat >>confdefs.h <<_ACEOF
  7250. #define LT_OBJDIR "$lt_cv_objdir/"
  7251. _ACEOF
  7252. case $host_os in
  7253. aix3*)
  7254. # AIX sometimes has problems with the GCC collect2 program. For some
  7255. # reason, if we set the COLLECT_NAMES environment variable, the problems
  7256. # vanish in a puff of smoke.
  7257. if test "X${COLLECT_NAMES+set}" != Xset; then
  7258. COLLECT_NAMES=
  7259. export COLLECT_NAMES
  7260. fi
  7261. ;;
  7262. esac
  7263. # Sed substitution that helps us do robust quoting. It backslashifies
  7264. # metacharacters that are still active within double-quoted strings.
  7265. sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
  7266. # Same as above, but do not quote variable references.
  7267. double_quote_subst='s/\(["`\\]\)/\\\1/g'
  7268. # Sed substitution to delay expansion of an escaped shell variable in a
  7269. # double_quote_subst'ed string.
  7270. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  7271. # Sed substitution to delay expansion of an escaped single quote.
  7272. delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
  7273. # Sed substitution to avoid accidental globbing in evaled expressions
  7274. no_glob_subst='s/\*/\\\*/g'
  7275. # Global variables:
  7276. ofile=libtool
  7277. can_build_shared=yes
  7278. # All known linkers require a `.a' archive for static linking (except MSVC,
  7279. # which needs '.lib').
  7280. libext=a
  7281. with_gnu_ld="$lt_cv_prog_gnu_ld"
  7282. old_CC="$CC"
  7283. old_CFLAGS="$CFLAGS"
  7284. # Set sane defaults for various variables
  7285. test -z "$CC" && CC=cc
  7286. test -z "$LTCC" && LTCC=$CC
  7287. test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  7288. test -z "$LD" && LD=ld
  7289. test -z "$ac_objext" && ac_objext=o
  7290. for cc_temp in $compiler""; do
  7291. case $cc_temp in
  7292. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  7293. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  7294. \-*) ;;
  7295. *) break;;
  7296. esac
  7297. done
  7298. cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  7299. # Only perform the check for file, if the check method requires it
  7300. test -z "$MAGIC_CMD" && MAGIC_CMD=file
  7301. case $deplibs_check_method in
  7302. file_magic*)
  7303. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  7304. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
  7305. $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
  7306. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  7307. $as_echo_n "(cached) " >&6
  7308. else
  7309. case $MAGIC_CMD in
  7310. [\\/*] | ?:[\\/]*)
  7311. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  7312. ;;
  7313. *)
  7314. lt_save_MAGIC_CMD="$MAGIC_CMD"
  7315. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  7316. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  7317. for ac_dir in $ac_dummy; do
  7318. IFS="$lt_save_ifs"
  7319. test -z "$ac_dir" && ac_dir=.
  7320. if test -f $ac_dir/${ac_tool_prefix}file; then
  7321. lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
  7322. if test -n "$file_magic_test_file"; then
  7323. case $deplibs_check_method in
  7324. "file_magic "*)
  7325. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  7326. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  7327. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  7328. $EGREP "$file_magic_regex" > /dev/null; then
  7329. :
  7330. else
  7331. cat <<_LT_EOF 1>&2
  7332. *** Warning: the command libtool uses to detect shared libraries,
  7333. *** $file_magic_cmd, produces output that libtool cannot recognize.
  7334. *** The result is that libtool may fail to recognize shared libraries
  7335. *** as such. This will affect the creation of libtool libraries that
  7336. *** depend on shared libraries, but programs linked with such libtool
  7337. *** libraries will work regardless of this problem. Nevertheless, you
  7338. *** may want to report the problem to your system manager and/or to
  7339. *** bug-libtool@gnu.org
  7340. _LT_EOF
  7341. fi ;;
  7342. esac
  7343. fi
  7344. break
  7345. fi
  7346. done
  7347. IFS="$lt_save_ifs"
  7348. MAGIC_CMD="$lt_save_MAGIC_CMD"
  7349. ;;
  7350. esac
  7351. fi
  7352. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  7353. if test -n "$MAGIC_CMD"; then
  7354. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  7355. $as_echo "$MAGIC_CMD" >&6; }
  7356. else
  7357. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7358. $as_echo "no" >&6; }
  7359. fi
  7360. if test -z "$lt_cv_path_MAGIC_CMD"; then
  7361. if test -n "$ac_tool_prefix"; then
  7362. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
  7363. $as_echo_n "checking for file... " >&6; }
  7364. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  7365. $as_echo_n "(cached) " >&6
  7366. else
  7367. case $MAGIC_CMD in
  7368. [\\/*] | ?:[\\/]*)
  7369. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  7370. ;;
  7371. *)
  7372. lt_save_MAGIC_CMD="$MAGIC_CMD"
  7373. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  7374. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  7375. for ac_dir in $ac_dummy; do
  7376. IFS="$lt_save_ifs"
  7377. test -z "$ac_dir" && ac_dir=.
  7378. if test -f $ac_dir/file; then
  7379. lt_cv_path_MAGIC_CMD="$ac_dir/file"
  7380. if test -n "$file_magic_test_file"; then
  7381. case $deplibs_check_method in
  7382. "file_magic "*)
  7383. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  7384. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  7385. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  7386. $EGREP "$file_magic_regex" > /dev/null; then
  7387. :
  7388. else
  7389. cat <<_LT_EOF 1>&2
  7390. *** Warning: the command libtool uses to detect shared libraries,
  7391. *** $file_magic_cmd, produces output that libtool cannot recognize.
  7392. *** The result is that libtool may fail to recognize shared libraries
  7393. *** as such. This will affect the creation of libtool libraries that
  7394. *** depend on shared libraries, but programs linked with such libtool
  7395. *** libraries will work regardless of this problem. Nevertheless, you
  7396. *** may want to report the problem to your system manager and/or to
  7397. *** bug-libtool@gnu.org
  7398. _LT_EOF
  7399. fi ;;
  7400. esac
  7401. fi
  7402. break
  7403. fi
  7404. done
  7405. IFS="$lt_save_ifs"
  7406. MAGIC_CMD="$lt_save_MAGIC_CMD"
  7407. ;;
  7408. esac
  7409. fi
  7410. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  7411. if test -n "$MAGIC_CMD"; then
  7412. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  7413. $as_echo "$MAGIC_CMD" >&6; }
  7414. else
  7415. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7416. $as_echo "no" >&6; }
  7417. fi
  7418. else
  7419. MAGIC_CMD=:
  7420. fi
  7421. fi
  7422. fi
  7423. ;;
  7424. esac
  7425. # Use C for the default configuration in the libtool script
  7426. lt_save_CC="$CC"
  7427. ac_ext=c
  7428. ac_cpp='$CPP $CPPFLAGS'
  7429. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7430. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7431. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  7432. # Source file extension for C test sources.
  7433. ac_ext=c
  7434. # Object file extension for compiled C test sources.
  7435. objext=o
  7436. objext=$objext
  7437. # Code to be used in simple compile tests
  7438. lt_simple_compile_test_code="int some_variable = 0;"
  7439. # Code to be used in simple link tests
  7440. lt_simple_link_test_code='int main(){return(0);}'
  7441. # If no C compiler was specified, use CC.
  7442. LTCC=${LTCC-"$CC"}
  7443. # If no C compiler flags were specified, use CFLAGS.
  7444. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  7445. # Allow CC to be a program name with arguments.
  7446. compiler=$CC
  7447. # Save the default compiler, since it gets overwritten when the other
  7448. # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
  7449. compiler_DEFAULT=$CC
  7450. # save warnings/boilerplate of simple test code
  7451. ac_outfile=conftest.$ac_objext
  7452. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  7453. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  7454. _lt_compiler_boilerplate=`cat conftest.err`
  7455. $RM conftest*
  7456. ac_outfile=conftest.$ac_objext
  7457. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  7458. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  7459. _lt_linker_boilerplate=`cat conftest.err`
  7460. $RM -r conftest*
  7461. ## CAVEAT EMPTOR:
  7462. ## There is no encapsulation within the following macros, do not change
  7463. ## the running order or otherwise move them around unless you know exactly
  7464. ## what you are doing...
  7465. if test -n "$compiler"; then
  7466. lt_prog_compiler_no_builtin_flag=
  7467. if test "$GCC" = yes; then
  7468. lt_prog_compiler_no_builtin_flag=' -fno-builtin'
  7469. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  7470. $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
  7471. if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
  7472. $as_echo_n "(cached) " >&6
  7473. else
  7474. lt_cv_prog_compiler_rtti_exceptions=no
  7475. ac_outfile=conftest.$ac_objext
  7476. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7477. lt_compiler_flag="-fno-rtti -fno-exceptions"
  7478. # Insert the option either (1) after the last *FLAGS variable, or
  7479. # (2) before a word containing "conftest.", or (3) at the end.
  7480. # Note that $ac_compile itself does not contain backslashes and begins
  7481. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7482. # The option is referenced via a variable to avoid confusing sed.
  7483. lt_compile=`echo "$ac_compile" | $SED \
  7484. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7485. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7486. -e 's:$: $lt_compiler_flag:'`
  7487. (eval echo "\"\$as_me:8557: $lt_compile\"" >&5)
  7488. (eval "$lt_compile" 2>conftest.err)
  7489. ac_status=$?
  7490. cat conftest.err >&5
  7491. echo "$as_me:8561: \$? = $ac_status" >&5
  7492. if (exit $ac_status) && test -s "$ac_outfile"; then
  7493. # The compiler can only warn and ignore the option if not recognized
  7494. # So say no if there are warnings other than the usual output.
  7495. $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  7496. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7497. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  7498. lt_cv_prog_compiler_rtti_exceptions=yes
  7499. fi
  7500. fi
  7501. $RM conftest*
  7502. fi
  7503. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  7504. $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  7505. if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
  7506. lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  7507. else
  7508. :
  7509. fi
  7510. fi
  7511. lt_prog_compiler_wl=
  7512. lt_prog_compiler_pic=
  7513. lt_prog_compiler_static=
  7514. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  7515. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  7516. if test "$GCC" = yes; then
  7517. lt_prog_compiler_wl='-Wl,'
  7518. lt_prog_compiler_static='-static'
  7519. case $host_os in
  7520. aix*)
  7521. # All AIX code is PIC.
  7522. if test "$host_cpu" = ia64; then
  7523. # AIX 5 now supports IA64 processor
  7524. lt_prog_compiler_static='-Bstatic'
  7525. fi
  7526. ;;
  7527. amigaos*)
  7528. case $host_cpu in
  7529. powerpc)
  7530. # see comment about AmigaOS4 .so support
  7531. lt_prog_compiler_pic='-fPIC'
  7532. ;;
  7533. m68k)
  7534. # FIXME: we need at least 68020 code to build shared libraries, but
  7535. # adding the `-m68020' flag to GCC prevents building anything better,
  7536. # like `-m68040'.
  7537. lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  7538. ;;
  7539. esac
  7540. ;;
  7541. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  7542. # PIC is the default for these OSes.
  7543. ;;
  7544. mingw* | cygwin* | pw32* | os2* | cegcc*)
  7545. # This hack is so that the source file can tell whether it is being
  7546. # built for inclusion in a dll (and should export symbols for example).
  7547. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  7548. # (--disable-auto-import) libraries
  7549. lt_prog_compiler_pic='-DDLL_EXPORT'
  7550. ;;
  7551. darwin* | rhapsody*)
  7552. # PIC is the default on this platform
  7553. # Common symbols not allowed in MH_DYLIB files
  7554. lt_prog_compiler_pic='-fno-common'
  7555. ;;
  7556. hpux*)
  7557. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  7558. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  7559. # sets the default TLS model and affects inlining.
  7560. case $host_cpu in
  7561. hppa*64*)
  7562. # +Z the default
  7563. ;;
  7564. *)
  7565. lt_prog_compiler_pic='-fPIC'
  7566. ;;
  7567. esac
  7568. ;;
  7569. interix[3-9]*)
  7570. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  7571. # Instead, we relocate shared libraries at runtime.
  7572. ;;
  7573. msdosdjgpp*)
  7574. # Just because we use GCC doesn't mean we suddenly get shared libraries
  7575. # on systems that don't support them.
  7576. lt_prog_compiler_can_build_shared=no
  7577. enable_shared=no
  7578. ;;
  7579. *nto* | *qnx*)
  7580. # QNX uses GNU C++, but need to define -shared option too, otherwise
  7581. # it will coredump.
  7582. lt_prog_compiler_pic='-fPIC -shared'
  7583. ;;
  7584. sysv4*MP*)
  7585. if test -d /usr/nec; then
  7586. lt_prog_compiler_pic=-Kconform_pic
  7587. fi
  7588. ;;
  7589. *)
  7590. lt_prog_compiler_pic='-fPIC'
  7591. ;;
  7592. esac
  7593. else
  7594. # PORTME Check for flag to pass linker flags through the system compiler.
  7595. case $host_os in
  7596. aix*)
  7597. lt_prog_compiler_wl='-Wl,'
  7598. if test "$host_cpu" = ia64; then
  7599. # AIX 5 now supports IA64 processor
  7600. lt_prog_compiler_static='-Bstatic'
  7601. else
  7602. lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  7603. fi
  7604. ;;
  7605. mingw* | cygwin* | pw32* | os2* | cegcc*)
  7606. # This hack is so that the source file can tell whether it is being
  7607. # built for inclusion in a dll (and should export symbols for example).
  7608. lt_prog_compiler_pic='-DDLL_EXPORT'
  7609. ;;
  7610. hpux9* | hpux10* | hpux11*)
  7611. lt_prog_compiler_wl='-Wl,'
  7612. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  7613. # not for PA HP-UX.
  7614. case $host_cpu in
  7615. hppa*64*|ia64*)
  7616. # +Z the default
  7617. ;;
  7618. *)
  7619. lt_prog_compiler_pic='+Z'
  7620. ;;
  7621. esac
  7622. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  7623. lt_prog_compiler_static='${wl}-a ${wl}archive'
  7624. ;;
  7625. irix5* | irix6* | nonstopux*)
  7626. lt_prog_compiler_wl='-Wl,'
  7627. # PIC (with -KPIC) is the default.
  7628. lt_prog_compiler_static='-non_shared'
  7629. ;;
  7630. linux* | k*bsd*-gnu)
  7631. case $cc_basename in
  7632. # old Intel for x86_64 which still supported -KPIC.
  7633. ecc*)
  7634. lt_prog_compiler_wl='-Wl,'
  7635. lt_prog_compiler_pic='-KPIC'
  7636. lt_prog_compiler_static='-static'
  7637. ;;
  7638. # icc used to be incompatible with GCC.
  7639. # ICC 10 doesn't accept -KPIC any more.
  7640. icc* | ifort*)
  7641. lt_prog_compiler_wl='-Wl,'
  7642. lt_prog_compiler_pic='-fPIC'
  7643. lt_prog_compiler_static='-static'
  7644. ;;
  7645. # Lahey Fortran 8.1.
  7646. lf95*)
  7647. lt_prog_compiler_wl='-Wl,'
  7648. lt_prog_compiler_pic='--shared'
  7649. lt_prog_compiler_static='--static'
  7650. ;;
  7651. pgcc* | pgf77* | pgf90* | pgf95*)
  7652. # Portland Group compilers (*not* the Pentium gcc compiler,
  7653. # which looks to be a dead project)
  7654. lt_prog_compiler_wl='-Wl,'
  7655. lt_prog_compiler_pic='-fpic'
  7656. lt_prog_compiler_static='-Bstatic'
  7657. ;;
  7658. ccc*)
  7659. lt_prog_compiler_wl='-Wl,'
  7660. # All Alpha code is PIC.
  7661. lt_prog_compiler_static='-non_shared'
  7662. ;;
  7663. xl*)
  7664. # IBM XL C 8.0/Fortran 10.1 on PPC
  7665. lt_prog_compiler_wl='-Wl,'
  7666. lt_prog_compiler_pic='-qpic'
  7667. lt_prog_compiler_static='-qstaticlink'
  7668. ;;
  7669. *)
  7670. case `$CC -V 2>&1 | sed 5q` in
  7671. *Sun\ C*)
  7672. # Sun C 5.9
  7673. lt_prog_compiler_pic='-KPIC'
  7674. lt_prog_compiler_static='-Bstatic'
  7675. lt_prog_compiler_wl='-Wl,'
  7676. ;;
  7677. *Sun\ F*)
  7678. # Sun Fortran 8.3 passes all unrecognized flags to the linker
  7679. lt_prog_compiler_pic='-KPIC'
  7680. lt_prog_compiler_static='-Bstatic'
  7681. lt_prog_compiler_wl=''
  7682. ;;
  7683. esac
  7684. ;;
  7685. esac
  7686. ;;
  7687. newsos6)
  7688. lt_prog_compiler_pic='-KPIC'
  7689. lt_prog_compiler_static='-Bstatic'
  7690. ;;
  7691. *nto* | *qnx*)
  7692. # QNX uses GNU C++, but need to define -shared option too, otherwise
  7693. # it will coredump.
  7694. lt_prog_compiler_pic='-fPIC -shared'
  7695. ;;
  7696. osf3* | osf4* | osf5*)
  7697. lt_prog_compiler_wl='-Wl,'
  7698. # All OSF/1 code is PIC.
  7699. lt_prog_compiler_static='-non_shared'
  7700. ;;
  7701. rdos*)
  7702. lt_prog_compiler_static='-non_shared'
  7703. ;;
  7704. solaris*)
  7705. lt_prog_compiler_pic='-KPIC'
  7706. lt_prog_compiler_static='-Bstatic'
  7707. case $cc_basename in
  7708. f77* | f90* | f95*)
  7709. lt_prog_compiler_wl='-Qoption ld ';;
  7710. *)
  7711. lt_prog_compiler_wl='-Wl,';;
  7712. esac
  7713. ;;
  7714. sunos4*)
  7715. lt_prog_compiler_wl='-Qoption ld '
  7716. lt_prog_compiler_pic='-PIC'
  7717. lt_prog_compiler_static='-Bstatic'
  7718. ;;
  7719. sysv4 | sysv4.2uw2* | sysv4.3*)
  7720. lt_prog_compiler_wl='-Wl,'
  7721. lt_prog_compiler_pic='-KPIC'
  7722. lt_prog_compiler_static='-Bstatic'
  7723. ;;
  7724. sysv4*MP*)
  7725. if test -d /usr/nec ;then
  7726. lt_prog_compiler_pic='-Kconform_pic'
  7727. lt_prog_compiler_static='-Bstatic'
  7728. fi
  7729. ;;
  7730. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  7731. lt_prog_compiler_wl='-Wl,'
  7732. lt_prog_compiler_pic='-KPIC'
  7733. lt_prog_compiler_static='-Bstatic'
  7734. ;;
  7735. unicos*)
  7736. lt_prog_compiler_wl='-Wl,'
  7737. lt_prog_compiler_can_build_shared=no
  7738. ;;
  7739. uts4*)
  7740. lt_prog_compiler_pic='-pic'
  7741. lt_prog_compiler_static='-Bstatic'
  7742. ;;
  7743. *)
  7744. lt_prog_compiler_can_build_shared=no
  7745. ;;
  7746. esac
  7747. fi
  7748. case $host_os in
  7749. # For platforms which do not support PIC, -DPIC is meaningless:
  7750. *djgpp*)
  7751. lt_prog_compiler_pic=
  7752. ;;
  7753. *)
  7754. lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  7755. ;;
  7756. esac
  7757. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
  7758. $as_echo "$lt_prog_compiler_pic" >&6; }
  7759. #
  7760. # Check to make sure the PIC flag actually works.
  7761. #
  7762. if test -n "$lt_prog_compiler_pic"; then
  7763. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  7764. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
  7765. if ${lt_cv_prog_compiler_pic_works+:} false; then :
  7766. $as_echo_n "(cached) " >&6
  7767. else
  7768. lt_cv_prog_compiler_pic_works=no
  7769. ac_outfile=conftest.$ac_objext
  7770. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7771. lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
  7772. # Insert the option either (1) after the last *FLAGS variable, or
  7773. # (2) before a word containing "conftest.", or (3) at the end.
  7774. # Note that $ac_compile itself does not contain backslashes and begins
  7775. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7776. # The option is referenced via a variable to avoid confusing sed.
  7777. lt_compile=`echo "$ac_compile" | $SED \
  7778. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7779. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7780. -e 's:$: $lt_compiler_flag:'`
  7781. (eval echo "\"\$as_me:8896: $lt_compile\"" >&5)
  7782. (eval "$lt_compile" 2>conftest.err)
  7783. ac_status=$?
  7784. cat conftest.err >&5
  7785. echo "$as_me:8900: \$? = $ac_status" >&5
  7786. if (exit $ac_status) && test -s "$ac_outfile"; then
  7787. # The compiler can only warn and ignore the option if not recognized
  7788. # So say no if there are warnings other than the usual output.
  7789. $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  7790. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7791. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  7792. lt_cv_prog_compiler_pic_works=yes
  7793. fi
  7794. fi
  7795. $RM conftest*
  7796. fi
  7797. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
  7798. $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
  7799. if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
  7800. case $lt_prog_compiler_pic in
  7801. "" | " "*) ;;
  7802. *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  7803. esac
  7804. else
  7805. lt_prog_compiler_pic=
  7806. lt_prog_compiler_can_build_shared=no
  7807. fi
  7808. fi
  7809. #
  7810. # Check to make sure the static flag actually works.
  7811. #
  7812. wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
  7813. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  7814. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  7815. if ${lt_cv_prog_compiler_static_works+:} false; then :
  7816. $as_echo_n "(cached) " >&6
  7817. else
  7818. lt_cv_prog_compiler_static_works=no
  7819. save_LDFLAGS="$LDFLAGS"
  7820. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  7821. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  7822. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  7823. # The linker can only warn and ignore the option if not recognized
  7824. # So say no if there are warnings
  7825. if test -s conftest.err; then
  7826. # Append any errors to the config.log.
  7827. cat conftest.err 1>&5
  7828. $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
  7829. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7830. if diff conftest.exp conftest.er2 >/dev/null; then
  7831. lt_cv_prog_compiler_static_works=yes
  7832. fi
  7833. else
  7834. lt_cv_prog_compiler_static_works=yes
  7835. fi
  7836. fi
  7837. $RM -r conftest*
  7838. LDFLAGS="$save_LDFLAGS"
  7839. fi
  7840. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
  7841. $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
  7842. if test x"$lt_cv_prog_compiler_static_works" = xyes; then
  7843. :
  7844. else
  7845. lt_prog_compiler_static=
  7846. fi
  7847. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  7848. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  7849. if ${lt_cv_prog_compiler_c_o+:} false; then :
  7850. $as_echo_n "(cached) " >&6
  7851. else
  7852. lt_cv_prog_compiler_c_o=no
  7853. $RM -r conftest 2>/dev/null
  7854. mkdir conftest
  7855. cd conftest
  7856. mkdir out
  7857. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7858. lt_compiler_flag="-o out/conftest2.$ac_objext"
  7859. # Insert the option either (1) after the last *FLAGS variable, or
  7860. # (2) before a word containing "conftest.", or (3) at the end.
  7861. # Note that $ac_compile itself does not contain backslashes and begins
  7862. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7863. lt_compile=`echo "$ac_compile" | $SED \
  7864. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7865. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7866. -e 's:$: $lt_compiler_flag:'`
  7867. (eval echo "\"\$as_me:9001: $lt_compile\"" >&5)
  7868. (eval "$lt_compile" 2>out/conftest.err)
  7869. ac_status=$?
  7870. cat out/conftest.err >&5
  7871. echo "$as_me:9005: \$? = $ac_status" >&5
  7872. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  7873. then
  7874. # The compiler can only warn and ignore the option if not recognized
  7875. # So say no if there are warnings
  7876. $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  7877. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  7878. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  7879. lt_cv_prog_compiler_c_o=yes
  7880. fi
  7881. fi
  7882. chmod u+w . 2>&5
  7883. $RM conftest*
  7884. # SGI C++ compiler will create directory out/ii_files/ for
  7885. # template instantiation
  7886. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  7887. $RM out/* && rmdir out
  7888. cd ..
  7889. $RM -r conftest
  7890. $RM conftest*
  7891. fi
  7892. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  7893. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  7894. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  7895. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  7896. if ${lt_cv_prog_compiler_c_o+:} false; then :
  7897. $as_echo_n "(cached) " >&6
  7898. else
  7899. lt_cv_prog_compiler_c_o=no
  7900. $RM -r conftest 2>/dev/null
  7901. mkdir conftest
  7902. cd conftest
  7903. mkdir out
  7904. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7905. lt_compiler_flag="-o out/conftest2.$ac_objext"
  7906. # Insert the option either (1) after the last *FLAGS variable, or
  7907. # (2) before a word containing "conftest.", or (3) at the end.
  7908. # Note that $ac_compile itself does not contain backslashes and begins
  7909. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7910. lt_compile=`echo "$ac_compile" | $SED \
  7911. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7912. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7913. -e 's:$: $lt_compiler_flag:'`
  7914. (eval echo "\"\$as_me:9056: $lt_compile\"" >&5)
  7915. (eval "$lt_compile" 2>out/conftest.err)
  7916. ac_status=$?
  7917. cat out/conftest.err >&5
  7918. echo "$as_me:9060: \$? = $ac_status" >&5
  7919. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  7920. then
  7921. # The compiler can only warn and ignore the option if not recognized
  7922. # So say no if there are warnings
  7923. $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  7924. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  7925. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  7926. lt_cv_prog_compiler_c_o=yes
  7927. fi
  7928. fi
  7929. chmod u+w . 2>&5
  7930. $RM conftest*
  7931. # SGI C++ compiler will create directory out/ii_files/ for
  7932. # template instantiation
  7933. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  7934. $RM out/* && rmdir out
  7935. cd ..
  7936. $RM -r conftest
  7937. $RM conftest*
  7938. fi
  7939. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  7940. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  7941. hard_links="nottested"
  7942. if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
  7943. # do not overwrite the value of need_locks provided by the user
  7944. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  7945. $as_echo_n "checking if we can lock with hard links... " >&6; }
  7946. hard_links=yes
  7947. $RM conftest*
  7948. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  7949. touch conftest.a
  7950. ln conftest.a conftest.b 2>&5 || hard_links=no
  7951. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  7952. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  7953. $as_echo "$hard_links" >&6; }
  7954. if test "$hard_links" = no; then
  7955. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  7956. $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  7957. need_locks=warn
  7958. fi
  7959. else
  7960. need_locks=no
  7961. fi
  7962. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  7963. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  7964. runpath_var=
  7965. allow_undefined_flag=
  7966. always_export_symbols=no
  7967. archive_cmds=
  7968. archive_expsym_cmds=
  7969. compiler_needs_object=no
  7970. enable_shared_with_static_runtimes=no
  7971. export_dynamic_flag_spec=
  7972. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  7973. hardcode_automatic=no
  7974. hardcode_direct=no
  7975. hardcode_direct_absolute=no
  7976. hardcode_libdir_flag_spec=
  7977. hardcode_libdir_flag_spec_ld=
  7978. hardcode_libdir_separator=
  7979. hardcode_minus_L=no
  7980. hardcode_shlibpath_var=unsupported
  7981. inherit_rpath=no
  7982. link_all_deplibs=unknown
  7983. module_cmds=
  7984. module_expsym_cmds=
  7985. old_archive_from_new_cmds=
  7986. old_archive_from_expsyms_cmds=
  7987. thread_safe_flag_spec=
  7988. whole_archive_flag_spec=
  7989. # include_expsyms should be a list of space-separated symbols to be *always*
  7990. # included in the symbol list
  7991. include_expsyms=
  7992. # exclude_expsyms can be an extended regexp of symbols to exclude
  7993. # it will be wrapped by ` (' and `)$', so one must not match beginning or
  7994. # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  7995. # as well as any symbol that contains `d'.
  7996. exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  7997. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  7998. # platforms (ab)use it in PIC code, but their linkers get confused if
  7999. # the symbol is explicitly referenced. Since portable code cannot
  8000. # rely on this symbol name, it's probably fine to never include it in
  8001. # preloaded symbol tables.
  8002. # Exclude shared library initialization/finalization symbols.
  8003. extract_expsyms_cmds=
  8004. case $host_os in
  8005. cygwin* | mingw* | pw32* | cegcc*)
  8006. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  8007. # When not using gcc, we currently assume that we are using
  8008. # Microsoft Visual C++.
  8009. if test "$GCC" != yes; then
  8010. with_gnu_ld=no
  8011. fi
  8012. ;;
  8013. interix*)
  8014. # we just hope/assume this is gcc and not c89 (= MSVC++)
  8015. with_gnu_ld=yes
  8016. ;;
  8017. openbsd*)
  8018. with_gnu_ld=no
  8019. ;;
  8020. esac
  8021. ld_shlibs=yes
  8022. if test "$with_gnu_ld" = yes; then
  8023. # If archive_cmds runs LD, not CC, wlarc should be empty
  8024. wlarc='${wl}'
  8025. # Set some defaults for GNU ld with shared library support. These
  8026. # are reset later if shared libraries are not supported. Putting them
  8027. # here allows them to be overridden if necessary.
  8028. runpath_var=LD_RUN_PATH
  8029. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8030. export_dynamic_flag_spec='${wl}--export-dynamic'
  8031. # ancient GNU ld didn't support --whole-archive et. al.
  8032. if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
  8033. whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  8034. else
  8035. whole_archive_flag_spec=
  8036. fi
  8037. supports_anon_versioning=no
  8038. case `$LD -v 2>&1` in
  8039. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  8040. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  8041. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  8042. *\ 2.11.*) ;; # other 2.11 versions
  8043. *) supports_anon_versioning=yes ;;
  8044. esac
  8045. # See if GNU ld supports shared libraries.
  8046. case $host_os in
  8047. aix[3-9]*)
  8048. # On AIX/PPC, the GNU linker is very broken
  8049. if test "$host_cpu" != ia64; then
  8050. ld_shlibs=no
  8051. cat <<_LT_EOF 1>&2
  8052. *** Warning: the GNU linker, at least up to release 2.9.1, is reported
  8053. *** to be unable to reliably create shared libraries on AIX.
  8054. *** Therefore, libtool is disabling shared libraries support. If you
  8055. *** really care for shared libraries, you may want to modify your PATH
  8056. *** so that a non-GNU linker is found, and then restart.
  8057. _LT_EOF
  8058. fi
  8059. ;;
  8060. amigaos*)
  8061. case $host_cpu in
  8062. powerpc)
  8063. # see comment about AmigaOS4 .so support
  8064. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8065. archive_expsym_cmds=''
  8066. ;;
  8067. m68k)
  8068. 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)'
  8069. hardcode_libdir_flag_spec='-L$libdir'
  8070. hardcode_minus_L=yes
  8071. ;;
  8072. esac
  8073. ;;
  8074. beos*)
  8075. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8076. allow_undefined_flag=unsupported
  8077. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  8078. # support --undefined. This deserves some investigation. FIXME
  8079. archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8080. else
  8081. ld_shlibs=no
  8082. fi
  8083. ;;
  8084. cygwin* | mingw* | pw32* | cegcc*)
  8085. # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  8086. # as there is no search path for DLLs.
  8087. hardcode_libdir_flag_spec='-L$libdir'
  8088. allow_undefined_flag=unsupported
  8089. always_export_symbols=no
  8090. enable_shared_with_static_runtimes=yes
  8091. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  8092. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  8093. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  8094. # If the export-symbols file already is a .def file (1st line
  8095. # is EXPORTS), use it as is; otherwise, prepend...
  8096. archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  8097. cp $export_symbols $output_objdir/$soname.def;
  8098. else
  8099. echo EXPORTS > $output_objdir/$soname.def;
  8100. cat $export_symbols >> $output_objdir/$soname.def;
  8101. fi~
  8102. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  8103. else
  8104. ld_shlibs=no
  8105. fi
  8106. ;;
  8107. interix[3-9]*)
  8108. hardcode_direct=no
  8109. hardcode_shlibpath_var=no
  8110. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  8111. export_dynamic_flag_spec='${wl}-E'
  8112. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  8113. # Instead, shared libraries are loaded at an image base (0x10000000 by
  8114. # default) and relocated if they conflict, which is a slow very memory
  8115. # consuming and fragmenting process. To avoid this, we pick a random,
  8116. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  8117. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  8118. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  8119. 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'
  8120. ;;
  8121. gnu* | linux* | tpf* | k*bsd*-gnu)
  8122. tmp_diet=no
  8123. if test "$host_os" = linux-dietlibc; then
  8124. case $cc_basename in
  8125. diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
  8126. esac
  8127. fi
  8128. if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
  8129. && test "$tmp_diet" = no
  8130. then
  8131. tmp_addflag=
  8132. tmp_sharedflag='-shared'
  8133. case $cc_basename,$host_cpu in
  8134. pgcc*) # Portland Group C compiler
  8135. whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
  8136. tmp_addflag=' $pic_flag'
  8137. ;;
  8138. pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
  8139. whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
  8140. tmp_addflag=' $pic_flag -Mnomain' ;;
  8141. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  8142. tmp_addflag=' -i_dynamic' ;;
  8143. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  8144. tmp_addflag=' -i_dynamic -nofor_main' ;;
  8145. ifc* | ifort*) # Intel Fortran compiler
  8146. tmp_addflag=' -nofor_main' ;;
  8147. lf95*) # Lahey Fortran 8.1
  8148. whole_archive_flag_spec=
  8149. tmp_sharedflag='--shared' ;;
  8150. xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
  8151. tmp_sharedflag='-qmkshrobj'
  8152. tmp_addflag= ;;
  8153. esac
  8154. case `$CC -V 2>&1 | sed 5q` in
  8155. *Sun\ C*) # Sun C 5.9
  8156. whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
  8157. compiler_needs_object=yes
  8158. tmp_sharedflag='-G' ;;
  8159. *Sun\ F*) # Sun Fortran 8.3
  8160. tmp_sharedflag='-G' ;;
  8161. esac
  8162. archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8163. if test "x$supports_anon_versioning" = xyes; then
  8164. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  8165. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  8166. echo "local: *; };" >> $output_objdir/$libname.ver~
  8167. $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  8168. fi
  8169. case $cc_basename in
  8170. xlf*)
  8171. # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
  8172. whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
  8173. hardcode_libdir_flag_spec=
  8174. hardcode_libdir_flag_spec_ld='-rpath $libdir'
  8175. archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
  8176. if test "x$supports_anon_versioning" = xyes; then
  8177. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  8178. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  8179. echo "local: *; };" >> $output_objdir/$libname.ver~
  8180. $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
  8181. fi
  8182. ;;
  8183. esac
  8184. else
  8185. ld_shlibs=no
  8186. fi
  8187. ;;
  8188. netbsd*)
  8189. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  8190. archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  8191. wlarc=
  8192. else
  8193. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8194. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  8195. fi
  8196. ;;
  8197. solaris*)
  8198. if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
  8199. ld_shlibs=no
  8200. cat <<_LT_EOF 1>&2
  8201. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  8202. *** create shared libraries on Solaris systems. Therefore, libtool
  8203. *** is disabling shared libraries support. We urge you to upgrade GNU
  8204. *** binutils to release 2.9.1 or newer. Another option is to modify
  8205. *** your PATH or compiler configuration so that the native linker is
  8206. *** used, and then restart.
  8207. _LT_EOF
  8208. elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8209. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8210. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  8211. else
  8212. ld_shlibs=no
  8213. fi
  8214. ;;
  8215. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  8216. case `$LD -v 2>&1` in
  8217. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  8218. ld_shlibs=no
  8219. cat <<_LT_EOF 1>&2
  8220. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  8221. *** reliably create shared libraries on SCO systems. Therefore, libtool
  8222. *** is disabling shared libraries support. We urge you to upgrade GNU
  8223. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  8224. *** your PATH or compiler configuration so that the native linker is
  8225. *** used, and then restart.
  8226. _LT_EOF
  8227. ;;
  8228. *)
  8229. # For security reasons, it is highly recommended that you always
  8230. # use absolute paths for naming shared libraries, and exclude the
  8231. # DT_RUNPATH tag from executables and libraries. But doing so
  8232. # requires that you compile everything twice, which is a pain.
  8233. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8234. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8235. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8236. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  8237. else
  8238. ld_shlibs=no
  8239. fi
  8240. ;;
  8241. esac
  8242. ;;
  8243. sunos4*)
  8244. archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8245. wlarc=
  8246. hardcode_direct=yes
  8247. hardcode_shlibpath_var=no
  8248. ;;
  8249. *)
  8250. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8251. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8252. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  8253. else
  8254. ld_shlibs=no
  8255. fi
  8256. ;;
  8257. esac
  8258. if test "$ld_shlibs" = no; then
  8259. runpath_var=
  8260. hardcode_libdir_flag_spec=
  8261. export_dynamic_flag_spec=
  8262. whole_archive_flag_spec=
  8263. fi
  8264. else
  8265. # PORTME fill in a description of your system's linker (not GNU ld)
  8266. case $host_os in
  8267. aix3*)
  8268. allow_undefined_flag=unsupported
  8269. always_export_symbols=yes
  8270. 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'
  8271. # Note: this linker hardcodes the directories in LIBPATH if there
  8272. # are no directories specified by -L.
  8273. hardcode_minus_L=yes
  8274. if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  8275. # Neither direct hardcoding nor static linking is supported with a
  8276. # broken collect2.
  8277. hardcode_direct=unsupported
  8278. fi
  8279. ;;
  8280. aix[4-9]*)
  8281. if test "$host_cpu" = ia64; then
  8282. # On IA64, the linker does run time linking by default, so we don't
  8283. # have to do anything special.
  8284. aix_use_runtimelinking=no
  8285. exp_sym_flag='-Bexport'
  8286. no_entry_flag=""
  8287. else
  8288. # If we're using GNU nm, then we don't want the "-C" option.
  8289. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  8290. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  8291. export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
  8292. else
  8293. 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'
  8294. fi
  8295. aix_use_runtimelinking=no
  8296. # Test if we are trying to use run time linking or normal
  8297. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  8298. # need to do runtime linking.
  8299. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  8300. for ld_flag in $LDFLAGS; do
  8301. if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  8302. aix_use_runtimelinking=yes
  8303. break
  8304. fi
  8305. done
  8306. ;;
  8307. esac
  8308. exp_sym_flag='-bexport'
  8309. no_entry_flag='-bnoentry'
  8310. fi
  8311. # When large executables or shared objects are built, AIX ld can
  8312. # have problems creating the table of contents. If linking a library
  8313. # or program results in "error TOC overflow" add -mminimal-toc to
  8314. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  8315. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  8316. archive_cmds=''
  8317. hardcode_direct=yes
  8318. hardcode_direct_absolute=yes
  8319. hardcode_libdir_separator=':'
  8320. link_all_deplibs=yes
  8321. file_list_spec='${wl}-f,'
  8322. if test "$GCC" = yes; then
  8323. case $host_os in aix4.[012]|aix4.[012].*)
  8324. # We only want to do this on AIX 4.2 and lower, the check
  8325. # below for broken collect2 doesn't work under 4.3+
  8326. collect2name=`${CC} -print-prog-name=collect2`
  8327. if test -f "$collect2name" &&
  8328. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  8329. then
  8330. # We have reworked collect2
  8331. :
  8332. else
  8333. # We have old collect2
  8334. hardcode_direct=unsupported
  8335. # It fails to find uninstalled libraries when the uninstalled
  8336. # path is not listed in the libpath. Setting hardcode_minus_L
  8337. # to unsupported forces relinking
  8338. hardcode_minus_L=yes
  8339. hardcode_libdir_flag_spec='-L$libdir'
  8340. hardcode_libdir_separator=
  8341. fi
  8342. ;;
  8343. esac
  8344. shared_flag='-shared'
  8345. if test "$aix_use_runtimelinking" = yes; then
  8346. shared_flag="$shared_flag "'${wl}-G'
  8347. fi
  8348. else
  8349. # not using gcc
  8350. if test "$host_cpu" = ia64; then
  8351. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  8352. # chokes on -Wl,-G. The following line is correct:
  8353. shared_flag='-G'
  8354. else
  8355. if test "$aix_use_runtimelinking" = yes; then
  8356. shared_flag='${wl}-G'
  8357. else
  8358. shared_flag='${wl}-bM:SRE'
  8359. fi
  8360. fi
  8361. fi
  8362. export_dynamic_flag_spec='${wl}-bexpall'
  8363. # It seems that -bexpall does not export symbols beginning with
  8364. # underscore (_), so it is better to generate a list of symbols to export.
  8365. always_export_symbols=yes
  8366. if test "$aix_use_runtimelinking" = yes; then
  8367. # Warning - without using the other runtime loading flags (-brtl),
  8368. # -berok will link without error, but may produce a broken library.
  8369. allow_undefined_flag='-berok'
  8370. # Determine the default libpath from the value encoded in an
  8371. # empty executable.
  8372. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8373. /* end confdefs.h. */
  8374. int
  8375. main ()
  8376. {
  8377. ;
  8378. return 0;
  8379. }
  8380. _ACEOF
  8381. if ac_fn_c_try_link "$LINENO"; then :
  8382. lt_aix_libpath_sed='
  8383. /Import File Strings/,/^$/ {
  8384. /^0/ {
  8385. s/^0 *\(.*\)$/\1/
  8386. p
  8387. }
  8388. }'
  8389. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8390. # Check for a 64-bit object if we didn't find anything.
  8391. if test -z "$aix_libpath"; then
  8392. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8393. fi
  8394. fi
  8395. rm -f core conftest.err conftest.$ac_objext \
  8396. conftest$ac_exeext conftest.$ac_ext
  8397. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  8398. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  8399. archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
  8400. else
  8401. if test "$host_cpu" = ia64; then
  8402. hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
  8403. allow_undefined_flag="-z nodefs"
  8404. 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"
  8405. else
  8406. # Determine the default libpath from the value encoded in an
  8407. # empty executable.
  8408. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8409. /* end confdefs.h. */
  8410. int
  8411. main ()
  8412. {
  8413. ;
  8414. return 0;
  8415. }
  8416. _ACEOF
  8417. if ac_fn_c_try_link "$LINENO"; then :
  8418. lt_aix_libpath_sed='
  8419. /Import File Strings/,/^$/ {
  8420. /^0/ {
  8421. s/^0 *\(.*\)$/\1/
  8422. p
  8423. }
  8424. }'
  8425. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8426. # Check for a 64-bit object if we didn't find anything.
  8427. if test -z "$aix_libpath"; then
  8428. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8429. fi
  8430. fi
  8431. rm -f core conftest.err conftest.$ac_objext \
  8432. conftest$ac_exeext conftest.$ac_ext
  8433. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  8434. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  8435. # Warning - without using the other run time loading flags,
  8436. # -berok will link without error, but may produce a broken library.
  8437. no_undefined_flag=' ${wl}-bernotok'
  8438. allow_undefined_flag=' ${wl}-berok'
  8439. # Exported symbols can be pulled into shared objects from archives
  8440. whole_archive_flag_spec='$convenience'
  8441. archive_cmds_need_lc=yes
  8442. # This is similar to how AIX traditionally builds its shared libraries.
  8443. 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'
  8444. fi
  8445. fi
  8446. ;;
  8447. amigaos*)
  8448. case $host_cpu in
  8449. powerpc)
  8450. # see comment about AmigaOS4 .so support
  8451. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8452. archive_expsym_cmds=''
  8453. ;;
  8454. m68k)
  8455. 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)'
  8456. hardcode_libdir_flag_spec='-L$libdir'
  8457. hardcode_minus_L=yes
  8458. ;;
  8459. esac
  8460. ;;
  8461. bsdi[45]*)
  8462. export_dynamic_flag_spec=-rdynamic
  8463. ;;
  8464. cygwin* | mingw* | pw32* | cegcc*)
  8465. # When not using gcc, we currently assume that we are using
  8466. # Microsoft Visual C++.
  8467. # hardcode_libdir_flag_spec is actually meaningless, as there is
  8468. # no search path for DLLs.
  8469. hardcode_libdir_flag_spec=' '
  8470. allow_undefined_flag=unsupported
  8471. # Tell ltmain to make .lib files, not .a files.
  8472. libext=lib
  8473. # Tell ltmain to make .dll files, not .so files.
  8474. shrext_cmds=".dll"
  8475. # FIXME: Setting linknames here is a bad hack.
  8476. archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
  8477. # The linker will automatically build a .lib file if we build a DLL.
  8478. old_archive_from_new_cmds='true'
  8479. # FIXME: Should let the user specify the lib program.
  8480. old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
  8481. fix_srcfile_path='`cygpath -w "$srcfile"`'
  8482. enable_shared_with_static_runtimes=yes
  8483. ;;
  8484. darwin* | rhapsody*)
  8485. archive_cmds_need_lc=no
  8486. hardcode_direct=no
  8487. hardcode_automatic=yes
  8488. hardcode_shlibpath_var=unsupported
  8489. whole_archive_flag_spec=''
  8490. link_all_deplibs=yes
  8491. allow_undefined_flag="$_lt_dar_allow_undefined"
  8492. case $cc_basename in
  8493. ifort*) _lt_dar_can_shared=yes ;;
  8494. *) _lt_dar_can_shared=$GCC ;;
  8495. esac
  8496. if test "$_lt_dar_can_shared" = "yes"; then
  8497. output_verbose_link_cmd=echo
  8498. archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
  8499. module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  8500. 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}"
  8501. 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}"
  8502. else
  8503. ld_shlibs=no
  8504. fi
  8505. ;;
  8506. dgux*)
  8507. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8508. hardcode_libdir_flag_spec='-L$libdir'
  8509. hardcode_shlibpath_var=no
  8510. ;;
  8511. freebsd1*)
  8512. ld_shlibs=no
  8513. ;;
  8514. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  8515. # support. Future versions do this automatically, but an explicit c++rt0.o
  8516. # does not break anything, and helps significantly (at the cost of a little
  8517. # extra space).
  8518. freebsd2.2*)
  8519. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  8520. hardcode_libdir_flag_spec='-R$libdir'
  8521. hardcode_direct=yes
  8522. hardcode_shlibpath_var=no
  8523. ;;
  8524. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  8525. freebsd2*)
  8526. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8527. hardcode_direct=yes
  8528. hardcode_minus_L=yes
  8529. hardcode_shlibpath_var=no
  8530. ;;
  8531. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  8532. freebsd* | dragonfly*)
  8533. archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  8534. hardcode_libdir_flag_spec='-R$libdir'
  8535. hardcode_direct=yes
  8536. hardcode_shlibpath_var=no
  8537. ;;
  8538. hpux9*)
  8539. if test "$GCC" = yes; then
  8540. archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  8541. else
  8542. 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'
  8543. fi
  8544. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8545. hardcode_libdir_separator=:
  8546. hardcode_direct=yes
  8547. # hardcode_minus_L: Not really in the search PATH,
  8548. # but as the default location of the library.
  8549. hardcode_minus_L=yes
  8550. export_dynamic_flag_spec='${wl}-E'
  8551. ;;
  8552. hpux10*)
  8553. if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  8554. archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8555. else
  8556. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  8557. fi
  8558. if test "$with_gnu_ld" = no; then
  8559. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8560. hardcode_libdir_flag_spec_ld='+b $libdir'
  8561. hardcode_libdir_separator=:
  8562. hardcode_direct=yes
  8563. hardcode_direct_absolute=yes
  8564. export_dynamic_flag_spec='${wl}-E'
  8565. # hardcode_minus_L: Not really in the search PATH,
  8566. # but as the default location of the library.
  8567. hardcode_minus_L=yes
  8568. fi
  8569. ;;
  8570. hpux11*)
  8571. if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  8572. case $host_cpu in
  8573. hppa*64*)
  8574. archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8575. ;;
  8576. ia64*)
  8577. archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  8578. ;;
  8579. *)
  8580. archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8581. ;;
  8582. esac
  8583. else
  8584. case $host_cpu in
  8585. hppa*64*)
  8586. archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8587. ;;
  8588. ia64*)
  8589. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  8590. ;;
  8591. *)
  8592. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8593. ;;
  8594. esac
  8595. fi
  8596. if test "$with_gnu_ld" = no; then
  8597. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8598. hardcode_libdir_separator=:
  8599. case $host_cpu in
  8600. hppa*64*|ia64*)
  8601. hardcode_direct=no
  8602. hardcode_shlibpath_var=no
  8603. ;;
  8604. *)
  8605. hardcode_direct=yes
  8606. hardcode_direct_absolute=yes
  8607. export_dynamic_flag_spec='${wl}-E'
  8608. # hardcode_minus_L: Not really in the search PATH,
  8609. # but as the default location of the library.
  8610. hardcode_minus_L=yes
  8611. ;;
  8612. esac
  8613. fi
  8614. ;;
  8615. irix5* | irix6* | nonstopux*)
  8616. if test "$GCC" = yes; then
  8617. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  8618. # Try to use the -exported_symbol ld option, if it does not
  8619. # work, assume that -exports_file does not work either and
  8620. # implicitly export all symbols.
  8621. save_LDFLAGS="$LDFLAGS"
  8622. LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
  8623. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8624. /* end confdefs.h. */
  8625. int foo(void) {}
  8626. _ACEOF
  8627. if ac_fn_c_try_link "$LINENO"; then :
  8628. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
  8629. fi
  8630. rm -f core conftest.err conftest.$ac_objext \
  8631. conftest$ac_exeext conftest.$ac_ext
  8632. LDFLAGS="$save_LDFLAGS"
  8633. else
  8634. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
  8635. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
  8636. fi
  8637. archive_cmds_need_lc='no'
  8638. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8639. hardcode_libdir_separator=:
  8640. inherit_rpath=yes
  8641. link_all_deplibs=yes
  8642. ;;
  8643. netbsd*)
  8644. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  8645. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  8646. else
  8647. archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  8648. fi
  8649. hardcode_libdir_flag_spec='-R$libdir'
  8650. hardcode_direct=yes
  8651. hardcode_shlibpath_var=no
  8652. ;;
  8653. newsos6)
  8654. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8655. hardcode_direct=yes
  8656. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8657. hardcode_libdir_separator=:
  8658. hardcode_shlibpath_var=no
  8659. ;;
  8660. *nto* | *qnx*)
  8661. ;;
  8662. openbsd*)
  8663. if test -f /usr/libexec/ld.so; then
  8664. hardcode_direct=yes
  8665. hardcode_shlibpath_var=no
  8666. hardcode_direct_absolute=yes
  8667. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  8668. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8669. archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  8670. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  8671. export_dynamic_flag_spec='${wl}-E'
  8672. else
  8673. case $host_os in
  8674. openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  8675. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8676. hardcode_libdir_flag_spec='-R$libdir'
  8677. ;;
  8678. *)
  8679. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8680. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  8681. ;;
  8682. esac
  8683. fi
  8684. else
  8685. ld_shlibs=no
  8686. fi
  8687. ;;
  8688. os2*)
  8689. hardcode_libdir_flag_spec='-L$libdir'
  8690. hardcode_minus_L=yes
  8691. allow_undefined_flag=unsupported
  8692. 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'
  8693. old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  8694. ;;
  8695. osf3*)
  8696. if test "$GCC" = yes; then
  8697. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  8698. archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  8699. else
  8700. allow_undefined_flag=' -expect_unresolved \*'
  8701. archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
  8702. fi
  8703. archive_cmds_need_lc='no'
  8704. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8705. hardcode_libdir_separator=:
  8706. ;;
  8707. osf4* | osf5*) # as osf3* with the addition of -msym flag
  8708. if test "$GCC" = yes; then
  8709. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  8710. archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  8711. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8712. else
  8713. allow_undefined_flag=' -expect_unresolved \*'
  8714. archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
  8715. 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~
  8716. $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
  8717. # Both c and cxx compiler support -rpath directly
  8718. hardcode_libdir_flag_spec='-rpath $libdir'
  8719. fi
  8720. archive_cmds_need_lc='no'
  8721. hardcode_libdir_separator=:
  8722. ;;
  8723. solaris*)
  8724. no_undefined_flag=' -z defs'
  8725. if test "$GCC" = yes; then
  8726. wlarc='${wl}'
  8727. archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8728. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8729. $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  8730. else
  8731. case `$CC -V 2>&1` in
  8732. *"Compilers 5.0"*)
  8733. wlarc=''
  8734. archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8735. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8736. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
  8737. ;;
  8738. *)
  8739. wlarc='${wl}'
  8740. archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
  8741. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8742. $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  8743. ;;
  8744. esac
  8745. fi
  8746. hardcode_libdir_flag_spec='-R$libdir'
  8747. hardcode_shlibpath_var=no
  8748. case $host_os in
  8749. solaris2.[0-5] | solaris2.[0-5].*) ;;
  8750. *)
  8751. # The compiler driver will combine and reorder linker options,
  8752. # but understands `-z linker_flag'. GCC discards it without `$wl',
  8753. # but is careful enough not to reorder.
  8754. # Supported since Solaris 2.6 (maybe 2.5.1?)
  8755. if test "$GCC" = yes; then
  8756. whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  8757. else
  8758. whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
  8759. fi
  8760. ;;
  8761. esac
  8762. link_all_deplibs=yes
  8763. ;;
  8764. sunos4*)
  8765. if test "x$host_vendor" = xsequent; then
  8766. # Use $CC to link under sequent, because it throws in some extra .o
  8767. # files that make .init and .fini sections work.
  8768. archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  8769. else
  8770. archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  8771. fi
  8772. hardcode_libdir_flag_spec='-L$libdir'
  8773. hardcode_direct=yes
  8774. hardcode_minus_L=yes
  8775. hardcode_shlibpath_var=no
  8776. ;;
  8777. sysv4)
  8778. case $host_vendor in
  8779. sni)
  8780. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8781. hardcode_direct=yes # is this really true???
  8782. ;;
  8783. siemens)
  8784. ## LD is ld it makes a PLAMLIB
  8785. ## CC just makes a GrossModule.
  8786. archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  8787. reload_cmds='$CC -r -o $output$reload_objs'
  8788. hardcode_direct=no
  8789. ;;
  8790. motorola)
  8791. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8792. hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  8793. ;;
  8794. esac
  8795. runpath_var='LD_RUN_PATH'
  8796. hardcode_shlibpath_var=no
  8797. ;;
  8798. sysv4.3*)
  8799. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8800. hardcode_shlibpath_var=no
  8801. export_dynamic_flag_spec='-Bexport'
  8802. ;;
  8803. sysv4*MP*)
  8804. if test -d /usr/nec; then
  8805. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8806. hardcode_shlibpath_var=no
  8807. runpath_var=LD_RUN_PATH
  8808. hardcode_runpath_var=yes
  8809. ld_shlibs=yes
  8810. fi
  8811. ;;
  8812. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  8813. no_undefined_flag='${wl}-z,text'
  8814. archive_cmds_need_lc=no
  8815. hardcode_shlibpath_var=no
  8816. runpath_var='LD_RUN_PATH'
  8817. if test "$GCC" = yes; then
  8818. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8819. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8820. else
  8821. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8822. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8823. fi
  8824. ;;
  8825. sysv5* | sco3.2v5* | sco5v6*)
  8826. # Note: We can NOT use -z defs as we might desire, because we do not
  8827. # link with -lc, and that would cause any symbols used from libc to
  8828. # always be unresolved, which means just about no library would
  8829. # ever link correctly. If we're not using GNU ld we use -z text
  8830. # though, which does catch some bad symbols but isn't as heavy-handed
  8831. # as -z defs.
  8832. no_undefined_flag='${wl}-z,text'
  8833. allow_undefined_flag='${wl}-z,nodefs'
  8834. archive_cmds_need_lc=no
  8835. hardcode_shlibpath_var=no
  8836. hardcode_libdir_flag_spec='${wl}-R,$libdir'
  8837. hardcode_libdir_separator=':'
  8838. link_all_deplibs=yes
  8839. export_dynamic_flag_spec='${wl}-Bexport'
  8840. runpath_var='LD_RUN_PATH'
  8841. if test "$GCC" = yes; then
  8842. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8843. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8844. else
  8845. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8846. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8847. fi
  8848. ;;
  8849. uts4*)
  8850. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8851. hardcode_libdir_flag_spec='-L$libdir'
  8852. hardcode_shlibpath_var=no
  8853. ;;
  8854. *)
  8855. ld_shlibs=no
  8856. ;;
  8857. esac
  8858. if test x$host_vendor = xsni; then
  8859. case $host in
  8860. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  8861. export_dynamic_flag_spec='${wl}-Blargedynsym'
  8862. ;;
  8863. esac
  8864. fi
  8865. fi
  8866. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
  8867. $as_echo "$ld_shlibs" >&6; }
  8868. test "$ld_shlibs" = no && can_build_shared=no
  8869. with_gnu_ld=$with_gnu_ld
  8870. #
  8871. # Do we need to explicitly link libc?
  8872. #
  8873. case "x$archive_cmds_need_lc" in
  8874. x|xyes)
  8875. # Assume -lc should be added
  8876. archive_cmds_need_lc=yes
  8877. if test "$enable_shared" = yes && test "$GCC" = yes; then
  8878. case $archive_cmds in
  8879. *'~'*)
  8880. # FIXME: we may have to deal with multi-command sequences.
  8881. ;;
  8882. '$CC '*)
  8883. # Test whether the compiler implicitly links with -lc since on some
  8884. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  8885. # to ld, don't add -lc before -lgcc.
  8886. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  8887. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  8888. $RM conftest*
  8889. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8890. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  8891. (eval $ac_compile) 2>&5
  8892. ac_status=$?
  8893. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8894. test $ac_status = 0; } 2>conftest.err; then
  8895. soname=conftest
  8896. lib=conftest
  8897. libobjs=conftest.$ac_objext
  8898. deplibs=
  8899. wl=$lt_prog_compiler_wl
  8900. pic_flag=$lt_prog_compiler_pic
  8901. compiler_flags=-v
  8902. linker_flags=-v
  8903. verstring=
  8904. output_objdir=.
  8905. libname=conftest
  8906. lt_save_allow_undefined_flag=$allow_undefined_flag
  8907. allow_undefined_flag=
  8908. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  8909. (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  8910. ac_status=$?
  8911. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8912. test $ac_status = 0; }
  8913. then
  8914. archive_cmds_need_lc=no
  8915. else
  8916. archive_cmds_need_lc=yes
  8917. fi
  8918. allow_undefined_flag=$lt_save_allow_undefined_flag
  8919. else
  8920. cat conftest.err 1>&5
  8921. fi
  8922. $RM conftest*
  8923. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
  8924. $as_echo "$archive_cmds_need_lc" >&6; }
  8925. ;;
  8926. esac
  8927. fi
  8928. ;;
  8929. esac
  8930. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  8931. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  8932. if test "$GCC" = yes; then
  8933. case $host_os in
  8934. darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
  8935. *) lt_awk_arg="/^libraries:/" ;;
  8936. esac
  8937. lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  8938. if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
  8939. # if the path contains ";" then we assume it to be the separator
  8940. # otherwise default to the standard path separator (i.e. ":") - it is
  8941. # assumed that no part of a normal pathname contains ";" but that should
  8942. # okay in the real world where ";" in dirpaths is itself problematic.
  8943. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
  8944. else
  8945. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  8946. fi
  8947. # Ok, now we have the path, separated by spaces, we can step through it
  8948. # and add multilib dir if necessary.
  8949. lt_tmp_lt_search_path_spec=
  8950. lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  8951. for lt_sys_path in $lt_search_path_spec; do
  8952. if test -d "$lt_sys_path/$lt_multi_os_dir"; then
  8953. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
  8954. else
  8955. test -d "$lt_sys_path" && \
  8956. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  8957. fi
  8958. done
  8959. lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
  8960. BEGIN {RS=" "; FS="/|\n";} {
  8961. lt_foo="";
  8962. lt_count=0;
  8963. for (lt_i = NF; lt_i > 0; lt_i--) {
  8964. if ($lt_i != "" && $lt_i != ".") {
  8965. if ($lt_i == "..") {
  8966. lt_count++;
  8967. } else {
  8968. if (lt_count == 0) {
  8969. lt_foo="/" $lt_i lt_foo;
  8970. } else {
  8971. lt_count--;
  8972. }
  8973. }
  8974. }
  8975. }
  8976. if (lt_foo != "") { lt_freq[lt_foo]++; }
  8977. if (lt_freq[lt_foo] == 1) { print lt_foo; }
  8978. }'`
  8979. sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
  8980. else
  8981. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  8982. fi
  8983. library_names_spec=
  8984. libname_spec='lib$name'
  8985. soname_spec=
  8986. shrext_cmds=".so"
  8987. postinstall_cmds=
  8988. postuninstall_cmds=
  8989. finish_cmds=
  8990. finish_eval=
  8991. shlibpath_var=
  8992. shlibpath_overrides_runpath=unknown
  8993. version_type=none
  8994. dynamic_linker="$host_os ld.so"
  8995. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  8996. need_lib_prefix=unknown
  8997. hardcode_into_libs=no
  8998. # when you set need_version to no, make sure it does not cause -set_version
  8999. # flags to be left without arguments
  9000. need_version=unknown
  9001. case $host_os in
  9002. aix3*)
  9003. version_type=linux
  9004. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  9005. shlibpath_var=LIBPATH
  9006. # AIX 3 has no versioning support, so we append a major version to the name.
  9007. soname_spec='${libname}${release}${shared_ext}$major'
  9008. ;;
  9009. aix[4-9]*)
  9010. version_type=linux
  9011. need_lib_prefix=no
  9012. need_version=no
  9013. hardcode_into_libs=yes
  9014. if test "$host_cpu" = ia64; then
  9015. # AIX 5 supports IA64
  9016. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  9017. shlibpath_var=LD_LIBRARY_PATH
  9018. else
  9019. # With GCC up to 2.95.x, collect2 would create an import file
  9020. # for dependence libraries. The import file would start with
  9021. # the line `#! .'. This would cause the generated library to
  9022. # depend on `.', always an invalid library. This was fixed in
  9023. # development snapshots of GCC prior to 3.0.
  9024. case $host_os in
  9025. aix4 | aix4.[01] | aix4.[01].*)
  9026. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  9027. echo ' yes '
  9028. echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  9029. :
  9030. else
  9031. can_build_shared=no
  9032. fi
  9033. ;;
  9034. esac
  9035. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  9036. # soname into executable. Probably we can add versioning support to
  9037. # collect2, so additional links can be useful in future.
  9038. if test "$aix_use_runtimelinking" = yes; then
  9039. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  9040. # instead of lib<name>.a to let people know that these are not
  9041. # typical AIX shared libraries.
  9042. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9043. else
  9044. # We preserve .a as extension for shared libraries through AIX4.2
  9045. # and later when we are not doing run time linking.
  9046. library_names_spec='${libname}${release}.a $libname.a'
  9047. soname_spec='${libname}${release}${shared_ext}$major'
  9048. fi
  9049. shlibpath_var=LIBPATH
  9050. fi
  9051. ;;
  9052. amigaos*)
  9053. case $host_cpu in
  9054. powerpc)
  9055. # Since July 2007 AmigaOS4 officially supports .so libraries.
  9056. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  9057. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9058. ;;
  9059. m68k)
  9060. library_names_spec='$libname.ixlibrary $libname.a'
  9061. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  9062. finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''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'
  9063. ;;
  9064. esac
  9065. ;;
  9066. beos*)
  9067. library_names_spec='${libname}${shared_ext}'
  9068. dynamic_linker="$host_os ld.so"
  9069. shlibpath_var=LIBRARY_PATH
  9070. ;;
  9071. bsdi[45]*)
  9072. version_type=linux
  9073. need_version=no
  9074. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9075. soname_spec='${libname}${release}${shared_ext}$major'
  9076. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  9077. shlibpath_var=LD_LIBRARY_PATH
  9078. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  9079. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  9080. # the default ld.so.conf also contains /usr/contrib/lib and
  9081. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  9082. # libtool to hard-code these into programs
  9083. ;;
  9084. cygwin* | mingw* | pw32* | cegcc*)
  9085. version_type=windows
  9086. shrext_cmds=".dll"
  9087. need_version=no
  9088. need_lib_prefix=no
  9089. case $GCC,$host_os in
  9090. yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
  9091. library_names_spec='$libname.dll.a'
  9092. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  9093. postinstall_cmds='base_file=`basename \${file}`~
  9094. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  9095. dldir=$destdir/`dirname \$dlpath`~
  9096. test -d \$dldir || mkdir -p \$dldir~
  9097. $install_prog $dir/$dlname \$dldir/$dlname~
  9098. chmod a+x \$dldir/$dlname~
  9099. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  9100. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  9101. fi'
  9102. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  9103. dlpath=$dir/\$dldll~
  9104. $RM \$dlpath'
  9105. shlibpath_overrides_runpath=yes
  9106. case $host_os in
  9107. cygwin*)
  9108. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  9109. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  9110. sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
  9111. ;;
  9112. mingw* | cegcc*)
  9113. # MinGW DLLs use traditional 'lib' prefix
  9114. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  9115. sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  9116. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  9117. # It is most probably a Windows format PATH printed by
  9118. # mingw gcc, but we are running on Cygwin. Gcc prints its search
  9119. # path with ; separators, and with drive letters. We can handle the
  9120. # drive letters (cygwin fileutils understands them), so leave them,
  9121. # especially as we might pass files found there to a mingw objdump,
  9122. # which wouldn't understand a cygwinified path. Ahh.
  9123. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  9124. else
  9125. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  9126. fi
  9127. ;;
  9128. pw32*)
  9129. # pw32 DLLs use 'pw' prefix rather than 'lib'
  9130. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  9131. ;;
  9132. esac
  9133. ;;
  9134. *)
  9135. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  9136. ;;
  9137. esac
  9138. dynamic_linker='Win32 ld.exe'
  9139. # FIXME: first we should search . and the directory the executable is in
  9140. shlibpath_var=PATH
  9141. ;;
  9142. darwin* | rhapsody*)
  9143. dynamic_linker="$host_os dyld"
  9144. version_type=darwin
  9145. need_lib_prefix=no
  9146. need_version=no
  9147. library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  9148. soname_spec='${libname}${release}${major}$shared_ext'
  9149. shlibpath_overrides_runpath=yes
  9150. shlibpath_var=DYLD_LIBRARY_PATH
  9151. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  9152. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
  9153. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  9154. ;;
  9155. dgux*)
  9156. version_type=linux
  9157. need_lib_prefix=no
  9158. need_version=no
  9159. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  9160. soname_spec='${libname}${release}${shared_ext}$major'
  9161. shlibpath_var=LD_LIBRARY_PATH
  9162. ;;
  9163. freebsd1*)
  9164. dynamic_linker=no
  9165. ;;
  9166. freebsd* | dragonfly*)
  9167. # DragonFly does not have aout. When/if they implement a new
  9168. # versioning mechanism, adjust this.
  9169. if test -x /usr/bin/objformat; then
  9170. objformat=`/usr/bin/objformat`
  9171. else
  9172. case $host_os in
  9173. freebsd[123]*) objformat=aout ;;
  9174. *) objformat=elf ;;
  9175. esac
  9176. fi
  9177. version_type=freebsd-$objformat
  9178. case $version_type in
  9179. freebsd-elf*)
  9180. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  9181. need_version=no
  9182. need_lib_prefix=no
  9183. ;;
  9184. freebsd-*)
  9185. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  9186. need_version=yes
  9187. ;;
  9188. esac
  9189. shlibpath_var=LD_LIBRARY_PATH
  9190. case $host_os in
  9191. freebsd2*)
  9192. shlibpath_overrides_runpath=yes
  9193. ;;
  9194. freebsd3.[01]* | freebsdelf3.[01]*)
  9195. shlibpath_overrides_runpath=yes
  9196. hardcode_into_libs=yes
  9197. ;;
  9198. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  9199. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  9200. shlibpath_overrides_runpath=no
  9201. hardcode_into_libs=yes
  9202. ;;
  9203. *) # from 4.6 on, and DragonFly
  9204. shlibpath_overrides_runpath=yes
  9205. hardcode_into_libs=yes
  9206. ;;
  9207. esac
  9208. ;;
  9209. gnu*)
  9210. version_type=linux
  9211. need_lib_prefix=no
  9212. need_version=no
  9213. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  9214. soname_spec='${libname}${release}${shared_ext}$major'
  9215. shlibpath_var=LD_LIBRARY_PATH
  9216. hardcode_into_libs=yes
  9217. ;;
  9218. hpux9* | hpux10* | hpux11*)
  9219. # Give a soname corresponding to the major version so that dld.sl refuses to
  9220. # link against other versions.
  9221. version_type=sunos
  9222. need_lib_prefix=no
  9223. need_version=no
  9224. case $host_cpu in
  9225. ia64*)
  9226. shrext_cmds='.so'
  9227. hardcode_into_libs=yes
  9228. dynamic_linker="$host_os dld.so"
  9229. shlibpath_var=LD_LIBRARY_PATH
  9230. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  9231. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9232. soname_spec='${libname}${release}${shared_ext}$major'
  9233. if test "X$HPUX_IA64_MODE" = X32; then
  9234. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  9235. else
  9236. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  9237. fi
  9238. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  9239. ;;
  9240. hppa*64*)
  9241. shrext_cmds='.sl'
  9242. hardcode_into_libs=yes
  9243. dynamic_linker="$host_os dld.sl"
  9244. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  9245. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  9246. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9247. soname_spec='${libname}${release}${shared_ext}$major'
  9248. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  9249. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  9250. ;;
  9251. *)
  9252. shrext_cmds='.sl'
  9253. dynamic_linker="$host_os dld.sl"
  9254. shlibpath_var=SHLIB_PATH
  9255. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  9256. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9257. soname_spec='${libname}${release}${shared_ext}$major'
  9258. ;;
  9259. esac
  9260. # HP-UX runs *really* slowly unless shared libraries are mode 555.
  9261. postinstall_cmds='chmod 555 $lib'
  9262. ;;
  9263. interix[3-9]*)
  9264. version_type=linux
  9265. need_lib_prefix=no
  9266. need_version=no
  9267. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  9268. soname_spec='${libname}${release}${shared_ext}$major'
  9269. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  9270. shlibpath_var=LD_LIBRARY_PATH
  9271. shlibpath_overrides_runpath=no
  9272. hardcode_into_libs=yes
  9273. ;;
  9274. irix5* | irix6* | nonstopux*)
  9275. case $host_os in
  9276. nonstopux*) version_type=nonstopux ;;
  9277. *)
  9278. if test "$lt_cv_prog_gnu_ld" = yes; then
  9279. version_type=linux
  9280. else
  9281. version_type=irix
  9282. fi ;;
  9283. esac
  9284. need_lib_prefix=no
  9285. need_version=no
  9286. soname_spec='${libname}${release}${shared_ext}$major'
  9287. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  9288. case $host_os in
  9289. irix5* | nonstopux*)
  9290. libsuff= shlibsuff=
  9291. ;;
  9292. *)
  9293. case $LD in # libtool.m4 will add one of these switches to LD
  9294. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  9295. libsuff= shlibsuff= libmagic=32-bit;;
  9296. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  9297. libsuff=32 shlibsuff=N32 libmagic=N32;;
  9298. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  9299. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  9300. *) libsuff= shlibsuff= libmagic=never-match;;
  9301. esac
  9302. ;;
  9303. esac
  9304. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  9305. shlibpath_overrides_runpath=no
  9306. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  9307. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  9308. hardcode_into_libs=yes
  9309. ;;
  9310. # No shared lib support for Linux oldld, aout, or coff.
  9311. linux*oldld* | linux*aout* | linux*coff*)
  9312. dynamic_linker=no
  9313. ;;
  9314. # This must be Linux ELF.
  9315. linux* | k*bsd*-gnu)
  9316. version_type=linux
  9317. need_lib_prefix=no
  9318. need_version=no
  9319. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9320. soname_spec='${libname}${release}${shared_ext}$major'
  9321. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  9322. shlibpath_var=LD_LIBRARY_PATH
  9323. shlibpath_overrides_runpath=no
  9324. # Some binutils ld are patched to set DT_RUNPATH
  9325. save_LDFLAGS=$LDFLAGS
  9326. save_libdir=$libdir
  9327. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
  9328. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
  9329. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9330. /* end confdefs.h. */
  9331. int
  9332. main ()
  9333. {
  9334. ;
  9335. return 0;
  9336. }
  9337. _ACEOF
  9338. if ac_fn_c_try_link "$LINENO"; then :
  9339. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  9340. shlibpath_overrides_runpath=yes
  9341. fi
  9342. fi
  9343. rm -f core conftest.err conftest.$ac_objext \
  9344. conftest$ac_exeext conftest.$ac_ext
  9345. LDFLAGS=$save_LDFLAGS
  9346. libdir=$save_libdir
  9347. # This implies no fast_install, which is unacceptable.
  9348. # Some rework will be needed to allow for fast_install
  9349. # before this can be enabled.
  9350. hardcode_into_libs=yes
  9351. # Append ld.so.conf contents to the search path
  9352. if test -f /etc/ld.so.conf; then
  9353. 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;/^$/d' | tr '\n' ' '`
  9354. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  9355. fi
  9356. # We used to test for /lib/ld.so.1 and disable shared libraries on
  9357. # powerpc, because MkLinux only supported shared libraries with the
  9358. # GNU dynamic linker. Since this was broken with cross compilers,
  9359. # most powerpc-linux boxes support dynamic linking these days and
  9360. # people can always --disable-shared, the test was removed, and we
  9361. # assume the GNU/Linux dynamic linker is in use.
  9362. dynamic_linker='GNU/Linux ld.so'
  9363. ;;
  9364. netbsd*)
  9365. version_type=sunos
  9366. need_lib_prefix=no
  9367. need_version=no
  9368. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  9369. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9370. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  9371. dynamic_linker='NetBSD (a.out) ld.so'
  9372. else
  9373. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  9374. soname_spec='${libname}${release}${shared_ext}$major'
  9375. dynamic_linker='NetBSD ld.elf_so'
  9376. fi
  9377. shlibpath_var=LD_LIBRARY_PATH
  9378. shlibpath_overrides_runpath=yes
  9379. hardcode_into_libs=yes
  9380. ;;
  9381. newsos6)
  9382. version_type=linux
  9383. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9384. shlibpath_var=LD_LIBRARY_PATH
  9385. shlibpath_overrides_runpath=yes
  9386. ;;
  9387. *nto* | *qnx*)
  9388. version_type=qnx
  9389. need_lib_prefix=no
  9390. need_version=no
  9391. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9392. soname_spec='${libname}${release}${shared_ext}$major'
  9393. shlibpath_var=LD_LIBRARY_PATH
  9394. shlibpath_overrides_runpath=no
  9395. hardcode_into_libs=yes
  9396. dynamic_linker='ldqnx.so'
  9397. ;;
  9398. openbsd*)
  9399. version_type=sunos
  9400. sys_lib_dlsearch_path_spec="/usr/lib"
  9401. need_lib_prefix=no
  9402. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  9403. case $host_os in
  9404. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  9405. *) need_version=no ;;
  9406. esac
  9407. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9408. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  9409. shlibpath_var=LD_LIBRARY_PATH
  9410. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  9411. case $host_os in
  9412. openbsd2.[89] | openbsd2.[89].*)
  9413. shlibpath_overrides_runpath=no
  9414. ;;
  9415. *)
  9416. shlibpath_overrides_runpath=yes
  9417. ;;
  9418. esac
  9419. else
  9420. shlibpath_overrides_runpath=yes
  9421. fi
  9422. ;;
  9423. os2*)
  9424. libname_spec='$name'
  9425. shrext_cmds=".dll"
  9426. need_lib_prefix=no
  9427. library_names_spec='$libname${shared_ext} $libname.a'
  9428. dynamic_linker='OS/2 ld.exe'
  9429. shlibpath_var=LIBPATH
  9430. ;;
  9431. osf3* | osf4* | osf5*)
  9432. version_type=osf
  9433. need_lib_prefix=no
  9434. need_version=no
  9435. soname_spec='${libname}${release}${shared_ext}$major'
  9436. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9437. shlibpath_var=LD_LIBRARY_PATH
  9438. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  9439. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  9440. ;;
  9441. rdos*)
  9442. dynamic_linker=no
  9443. ;;
  9444. solaris*)
  9445. version_type=linux
  9446. need_lib_prefix=no
  9447. need_version=no
  9448. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9449. soname_spec='${libname}${release}${shared_ext}$major'
  9450. shlibpath_var=LD_LIBRARY_PATH
  9451. shlibpath_overrides_runpath=yes
  9452. hardcode_into_libs=yes
  9453. # ldd complains unless libraries are executable
  9454. postinstall_cmds='chmod +x $lib'
  9455. ;;
  9456. sunos4*)
  9457. version_type=sunos
  9458. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9459. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  9460. shlibpath_var=LD_LIBRARY_PATH
  9461. shlibpath_overrides_runpath=yes
  9462. if test "$with_gnu_ld" = yes; then
  9463. need_lib_prefix=no
  9464. fi
  9465. need_version=yes
  9466. ;;
  9467. sysv4 | sysv4.3*)
  9468. version_type=linux
  9469. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9470. soname_spec='${libname}${release}${shared_ext}$major'
  9471. shlibpath_var=LD_LIBRARY_PATH
  9472. case $host_vendor in
  9473. sni)
  9474. shlibpath_overrides_runpath=no
  9475. need_lib_prefix=no
  9476. runpath_var=LD_RUN_PATH
  9477. ;;
  9478. siemens)
  9479. need_lib_prefix=no
  9480. ;;
  9481. motorola)
  9482. need_lib_prefix=no
  9483. need_version=no
  9484. shlibpath_overrides_runpath=no
  9485. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  9486. ;;
  9487. esac
  9488. ;;
  9489. sysv4*MP*)
  9490. if test -d /usr/nec ;then
  9491. version_type=linux
  9492. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  9493. soname_spec='$libname${shared_ext}.$major'
  9494. shlibpath_var=LD_LIBRARY_PATH
  9495. fi
  9496. ;;
  9497. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  9498. version_type=freebsd-elf
  9499. need_lib_prefix=no
  9500. need_version=no
  9501. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  9502. soname_spec='${libname}${release}${shared_ext}$major'
  9503. shlibpath_var=LD_LIBRARY_PATH
  9504. shlibpath_overrides_runpath=yes
  9505. hardcode_into_libs=yes
  9506. if test "$with_gnu_ld" = yes; then
  9507. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  9508. else
  9509. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  9510. case $host_os in
  9511. sco3.2v5*)
  9512. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  9513. ;;
  9514. esac
  9515. fi
  9516. sys_lib_dlsearch_path_spec='/usr/lib'
  9517. ;;
  9518. tpf*)
  9519. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  9520. version_type=linux
  9521. need_lib_prefix=no
  9522. need_version=no
  9523. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9524. shlibpath_var=LD_LIBRARY_PATH
  9525. shlibpath_overrides_runpath=no
  9526. hardcode_into_libs=yes
  9527. ;;
  9528. uts4*)
  9529. version_type=linux
  9530. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9531. soname_spec='${libname}${release}${shared_ext}$major'
  9532. shlibpath_var=LD_LIBRARY_PATH
  9533. ;;
  9534. *)
  9535. dynamic_linker=no
  9536. ;;
  9537. esac
  9538. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  9539. $as_echo "$dynamic_linker" >&6; }
  9540. test "$dynamic_linker" = no && can_build_shared=no
  9541. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  9542. if test "$GCC" = yes; then
  9543. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  9544. fi
  9545. if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  9546. sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  9547. fi
  9548. if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  9549. sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  9550. fi
  9551. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  9552. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  9553. hardcode_action=
  9554. if test -n "$hardcode_libdir_flag_spec" ||
  9555. test -n "$runpath_var" ||
  9556. test "X$hardcode_automatic" = "Xyes" ; then
  9557. # We can hardcode non-existent directories.
  9558. if test "$hardcode_direct" != no &&
  9559. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  9560. # have to relink, otherwise we might link with an installed library
  9561. # when we should be linking with a yet-to-be-installed one
  9562. ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
  9563. test "$hardcode_minus_L" != no; then
  9564. # Linking always hardcodes the temporary library directory.
  9565. hardcode_action=relink
  9566. else
  9567. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  9568. hardcode_action=immediate
  9569. fi
  9570. else
  9571. # We cannot hardcode anything, or else we can only hardcode existing
  9572. # directories.
  9573. hardcode_action=unsupported
  9574. fi
  9575. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
  9576. $as_echo "$hardcode_action" >&6; }
  9577. if test "$hardcode_action" = relink ||
  9578. test "$inherit_rpath" = yes; then
  9579. # Fast installation is not supported
  9580. enable_fast_install=no
  9581. elif test "$shlibpath_overrides_runpath" = yes ||
  9582. test "$enable_shared" = no; then
  9583. # Fast installation is not necessary
  9584. enable_fast_install=needless
  9585. fi
  9586. if test "x$enable_dlopen" != xyes; then
  9587. enable_dlopen=unknown
  9588. enable_dlopen_self=unknown
  9589. enable_dlopen_self_static=unknown
  9590. else
  9591. lt_cv_dlopen=no
  9592. lt_cv_dlopen_libs=
  9593. case $host_os in
  9594. beos*)
  9595. lt_cv_dlopen="load_add_on"
  9596. lt_cv_dlopen_libs=
  9597. lt_cv_dlopen_self=yes
  9598. ;;
  9599. mingw* | pw32* | cegcc*)
  9600. lt_cv_dlopen="LoadLibrary"
  9601. lt_cv_dlopen_libs=
  9602. ;;
  9603. cygwin*)
  9604. lt_cv_dlopen="dlopen"
  9605. lt_cv_dlopen_libs=
  9606. ;;
  9607. darwin*)
  9608. # if libdl is installed we need to link against it
  9609. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  9610. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  9611. if ${ac_cv_lib_dl_dlopen+:} false; then :
  9612. $as_echo_n "(cached) " >&6
  9613. else
  9614. ac_check_lib_save_LIBS=$LIBS
  9615. LIBS="-ldl $LIBS"
  9616. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9617. /* end confdefs.h. */
  9618. /* Override any GCC internal prototype to avoid an error.
  9619. Use char because int might match the return type of a GCC
  9620. builtin and then its argument prototype would still apply. */
  9621. #ifdef __cplusplus
  9622. extern "C"
  9623. #endif
  9624. char dlopen ();
  9625. int
  9626. main ()
  9627. {
  9628. return dlopen ();
  9629. ;
  9630. return 0;
  9631. }
  9632. _ACEOF
  9633. if ac_fn_c_try_link "$LINENO"; then :
  9634. ac_cv_lib_dl_dlopen=yes
  9635. else
  9636. ac_cv_lib_dl_dlopen=no
  9637. fi
  9638. rm -f core conftest.err conftest.$ac_objext \
  9639. conftest$ac_exeext conftest.$ac_ext
  9640. LIBS=$ac_check_lib_save_LIBS
  9641. fi
  9642. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  9643. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  9644. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  9645. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  9646. else
  9647. lt_cv_dlopen="dyld"
  9648. lt_cv_dlopen_libs=
  9649. lt_cv_dlopen_self=yes
  9650. fi
  9651. ;;
  9652. *)
  9653. ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
  9654. if test "x$ac_cv_func_shl_load" = xyes; then :
  9655. lt_cv_dlopen="shl_load"
  9656. else
  9657. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
  9658. $as_echo_n "checking for shl_load in -ldld... " >&6; }
  9659. if ${ac_cv_lib_dld_shl_load+:} false; then :
  9660. $as_echo_n "(cached) " >&6
  9661. else
  9662. ac_check_lib_save_LIBS=$LIBS
  9663. LIBS="-ldld $LIBS"
  9664. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9665. /* end confdefs.h. */
  9666. /* Override any GCC internal prototype to avoid an error.
  9667. Use char because int might match the return type of a GCC
  9668. builtin and then its argument prototype would still apply. */
  9669. #ifdef __cplusplus
  9670. extern "C"
  9671. #endif
  9672. char shl_load ();
  9673. int
  9674. main ()
  9675. {
  9676. return shl_load ();
  9677. ;
  9678. return 0;
  9679. }
  9680. _ACEOF
  9681. if ac_fn_c_try_link "$LINENO"; then :
  9682. ac_cv_lib_dld_shl_load=yes
  9683. else
  9684. ac_cv_lib_dld_shl_load=no
  9685. fi
  9686. rm -f core conftest.err conftest.$ac_objext \
  9687. conftest$ac_exeext conftest.$ac_ext
  9688. LIBS=$ac_check_lib_save_LIBS
  9689. fi
  9690. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
  9691. $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
  9692. if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
  9693. lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
  9694. else
  9695. ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
  9696. if test "x$ac_cv_func_dlopen" = xyes; then :
  9697. lt_cv_dlopen="dlopen"
  9698. else
  9699. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  9700. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  9701. if ${ac_cv_lib_dl_dlopen+:} false; then :
  9702. $as_echo_n "(cached) " >&6
  9703. else
  9704. ac_check_lib_save_LIBS=$LIBS
  9705. LIBS="-ldl $LIBS"
  9706. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9707. /* end confdefs.h. */
  9708. /* Override any GCC internal prototype to avoid an error.
  9709. Use char because int might match the return type of a GCC
  9710. builtin and then its argument prototype would still apply. */
  9711. #ifdef __cplusplus
  9712. extern "C"
  9713. #endif
  9714. char dlopen ();
  9715. int
  9716. main ()
  9717. {
  9718. return dlopen ();
  9719. ;
  9720. return 0;
  9721. }
  9722. _ACEOF
  9723. if ac_fn_c_try_link "$LINENO"; then :
  9724. ac_cv_lib_dl_dlopen=yes
  9725. else
  9726. ac_cv_lib_dl_dlopen=no
  9727. fi
  9728. rm -f core conftest.err conftest.$ac_objext \
  9729. conftest$ac_exeext conftest.$ac_ext
  9730. LIBS=$ac_check_lib_save_LIBS
  9731. fi
  9732. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  9733. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  9734. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  9735. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  9736. else
  9737. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
  9738. $as_echo_n "checking for dlopen in -lsvld... " >&6; }
  9739. if ${ac_cv_lib_svld_dlopen+:} false; then :
  9740. $as_echo_n "(cached) " >&6
  9741. else
  9742. ac_check_lib_save_LIBS=$LIBS
  9743. LIBS="-lsvld $LIBS"
  9744. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9745. /* end confdefs.h. */
  9746. /* Override any GCC internal prototype to avoid an error.
  9747. Use char because int might match the return type of a GCC
  9748. builtin and then its argument prototype would still apply. */
  9749. #ifdef __cplusplus
  9750. extern "C"
  9751. #endif
  9752. char dlopen ();
  9753. int
  9754. main ()
  9755. {
  9756. return dlopen ();
  9757. ;
  9758. return 0;
  9759. }
  9760. _ACEOF
  9761. if ac_fn_c_try_link "$LINENO"; then :
  9762. ac_cv_lib_svld_dlopen=yes
  9763. else
  9764. ac_cv_lib_svld_dlopen=no
  9765. fi
  9766. rm -f core conftest.err conftest.$ac_objext \
  9767. conftest$ac_exeext conftest.$ac_ext
  9768. LIBS=$ac_check_lib_save_LIBS
  9769. fi
  9770. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
  9771. $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
  9772. if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
  9773. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
  9774. else
  9775. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
  9776. $as_echo_n "checking for dld_link in -ldld... " >&6; }
  9777. if ${ac_cv_lib_dld_dld_link+:} false; then :
  9778. $as_echo_n "(cached) " >&6
  9779. else
  9780. ac_check_lib_save_LIBS=$LIBS
  9781. LIBS="-ldld $LIBS"
  9782. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9783. /* end confdefs.h. */
  9784. /* Override any GCC internal prototype to avoid an error.
  9785. Use char because int might match the return type of a GCC
  9786. builtin and then its argument prototype would still apply. */
  9787. #ifdef __cplusplus
  9788. extern "C"
  9789. #endif
  9790. char dld_link ();
  9791. int
  9792. main ()
  9793. {
  9794. return dld_link ();
  9795. ;
  9796. return 0;
  9797. }
  9798. _ACEOF
  9799. if ac_fn_c_try_link "$LINENO"; then :
  9800. ac_cv_lib_dld_dld_link=yes
  9801. else
  9802. ac_cv_lib_dld_dld_link=no
  9803. fi
  9804. rm -f core conftest.err conftest.$ac_objext \
  9805. conftest$ac_exeext conftest.$ac_ext
  9806. LIBS=$ac_check_lib_save_LIBS
  9807. fi
  9808. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
  9809. $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
  9810. if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
  9811. lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
  9812. fi
  9813. fi
  9814. fi
  9815. fi
  9816. fi
  9817. fi
  9818. ;;
  9819. esac
  9820. if test "x$lt_cv_dlopen" != xno; then
  9821. enable_dlopen=yes
  9822. else
  9823. enable_dlopen=no
  9824. fi
  9825. case $lt_cv_dlopen in
  9826. dlopen)
  9827. save_CPPFLAGS="$CPPFLAGS"
  9828. test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  9829. save_LDFLAGS="$LDFLAGS"
  9830. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  9831. save_LIBS="$LIBS"
  9832. LIBS="$lt_cv_dlopen_libs $LIBS"
  9833. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
  9834. $as_echo_n "checking whether a program can dlopen itself... " >&6; }
  9835. if ${lt_cv_dlopen_self+:} false; then :
  9836. $as_echo_n "(cached) " >&6
  9837. else
  9838. if test "$cross_compiling" = yes; then :
  9839. lt_cv_dlopen_self=cross
  9840. else
  9841. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  9842. lt_status=$lt_dlunknown
  9843. cat > conftest.$ac_ext <<_LT_EOF
  9844. #line 11423 "configure"
  9845. #include "confdefs.h"
  9846. #if HAVE_DLFCN_H
  9847. #include <dlfcn.h>
  9848. #endif
  9849. #include <stdio.h>
  9850. #ifdef RTLD_GLOBAL
  9851. # define LT_DLGLOBAL RTLD_GLOBAL
  9852. #else
  9853. # ifdef DL_GLOBAL
  9854. # define LT_DLGLOBAL DL_GLOBAL
  9855. # else
  9856. # define LT_DLGLOBAL 0
  9857. # endif
  9858. #endif
  9859. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  9860. find out it does not work in some platform. */
  9861. #ifndef LT_DLLAZY_OR_NOW
  9862. # ifdef RTLD_LAZY
  9863. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  9864. # else
  9865. # ifdef DL_LAZY
  9866. # define LT_DLLAZY_OR_NOW DL_LAZY
  9867. # else
  9868. # ifdef RTLD_NOW
  9869. # define LT_DLLAZY_OR_NOW RTLD_NOW
  9870. # else
  9871. # ifdef DL_NOW
  9872. # define LT_DLLAZY_OR_NOW DL_NOW
  9873. # else
  9874. # define LT_DLLAZY_OR_NOW 0
  9875. # endif
  9876. # endif
  9877. # endif
  9878. # endif
  9879. #endif
  9880. void fnord() { int i=42;}
  9881. int main ()
  9882. {
  9883. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  9884. int status = $lt_dlunknown;
  9885. if (self)
  9886. {
  9887. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  9888. else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  9889. /* dlclose (self); */
  9890. }
  9891. else
  9892. puts (dlerror ());
  9893. return status;
  9894. }
  9895. _LT_EOF
  9896. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  9897. (eval $ac_link) 2>&5
  9898. ac_status=$?
  9899. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9900. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  9901. (./conftest; exit; ) >&5 2>/dev/null
  9902. lt_status=$?
  9903. case x$lt_status in
  9904. x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  9905. x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  9906. x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
  9907. esac
  9908. else :
  9909. # compilation failed
  9910. lt_cv_dlopen_self=no
  9911. fi
  9912. fi
  9913. rm -fr conftest*
  9914. fi
  9915. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
  9916. $as_echo "$lt_cv_dlopen_self" >&6; }
  9917. if test "x$lt_cv_dlopen_self" = xyes; then
  9918. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  9919. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
  9920. $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
  9921. if ${lt_cv_dlopen_self_static+:} false; then :
  9922. $as_echo_n "(cached) " >&6
  9923. else
  9924. if test "$cross_compiling" = yes; then :
  9925. lt_cv_dlopen_self_static=cross
  9926. else
  9927. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  9928. lt_status=$lt_dlunknown
  9929. cat > conftest.$ac_ext <<_LT_EOF
  9930. #line 11519 "configure"
  9931. #include "confdefs.h"
  9932. #if HAVE_DLFCN_H
  9933. #include <dlfcn.h>
  9934. #endif
  9935. #include <stdio.h>
  9936. #ifdef RTLD_GLOBAL
  9937. # define LT_DLGLOBAL RTLD_GLOBAL
  9938. #else
  9939. # ifdef DL_GLOBAL
  9940. # define LT_DLGLOBAL DL_GLOBAL
  9941. # else
  9942. # define LT_DLGLOBAL 0
  9943. # endif
  9944. #endif
  9945. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  9946. find out it does not work in some platform. */
  9947. #ifndef LT_DLLAZY_OR_NOW
  9948. # ifdef RTLD_LAZY
  9949. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  9950. # else
  9951. # ifdef DL_LAZY
  9952. # define LT_DLLAZY_OR_NOW DL_LAZY
  9953. # else
  9954. # ifdef RTLD_NOW
  9955. # define LT_DLLAZY_OR_NOW RTLD_NOW
  9956. # else
  9957. # ifdef DL_NOW
  9958. # define LT_DLLAZY_OR_NOW DL_NOW
  9959. # else
  9960. # define LT_DLLAZY_OR_NOW 0
  9961. # endif
  9962. # endif
  9963. # endif
  9964. # endif
  9965. #endif
  9966. void fnord() { int i=42;}
  9967. int main ()
  9968. {
  9969. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  9970. int status = $lt_dlunknown;
  9971. if (self)
  9972. {
  9973. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  9974. else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  9975. /* dlclose (self); */
  9976. }
  9977. else
  9978. puts (dlerror ());
  9979. return status;
  9980. }
  9981. _LT_EOF
  9982. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  9983. (eval $ac_link) 2>&5
  9984. ac_status=$?
  9985. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9986. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  9987. (./conftest; exit; ) >&5 2>/dev/null
  9988. lt_status=$?
  9989. case x$lt_status in
  9990. x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  9991. x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  9992. x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
  9993. esac
  9994. else :
  9995. # compilation failed
  9996. lt_cv_dlopen_self_static=no
  9997. fi
  9998. fi
  9999. rm -fr conftest*
  10000. fi
  10001. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
  10002. $as_echo "$lt_cv_dlopen_self_static" >&6; }
  10003. fi
  10004. CPPFLAGS="$save_CPPFLAGS"
  10005. LDFLAGS="$save_LDFLAGS"
  10006. LIBS="$save_LIBS"
  10007. ;;
  10008. esac
  10009. case $lt_cv_dlopen_self in
  10010. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  10011. *) enable_dlopen_self=unknown ;;
  10012. esac
  10013. case $lt_cv_dlopen_self_static in
  10014. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  10015. *) enable_dlopen_self_static=unknown ;;
  10016. esac
  10017. fi
  10018. striplib=
  10019. old_striplib=
  10020. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
  10021. $as_echo_n "checking whether stripping libraries is possible... " >&6; }
  10022. if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  10023. test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  10024. test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  10025. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  10026. $as_echo "yes" >&6; }
  10027. else
  10028. # FIXME - insert some real tests, host_os isn't really good enough
  10029. case $host_os in
  10030. darwin*)
  10031. if test -n "$STRIP" ; then
  10032. striplib="$STRIP -x"
  10033. old_striplib="$STRIP -S"
  10034. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  10035. $as_echo "yes" >&6; }
  10036. else
  10037. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10038. $as_echo "no" >&6; }
  10039. fi
  10040. ;;
  10041. *)
  10042. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10043. $as_echo "no" >&6; }
  10044. ;;
  10045. esac
  10046. fi
  10047. # Report which library types will actually be built
  10048. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
  10049. $as_echo_n "checking if libtool supports shared libraries... " >&6; }
  10050. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
  10051. $as_echo "$can_build_shared" >&6; }
  10052. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
  10053. $as_echo_n "checking whether to build shared libraries... " >&6; }
  10054. test "$can_build_shared" = "no" && enable_shared=no
  10055. # On AIX, shared libraries and static libraries use the same namespace, and
  10056. # are all built from PIC.
  10057. case $host_os in
  10058. aix3*)
  10059. test "$enable_shared" = yes && enable_static=no
  10060. if test -n "$RANLIB"; then
  10061. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  10062. postinstall_cmds='$RANLIB $lib'
  10063. fi
  10064. ;;
  10065. aix[4-9]*)
  10066. if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  10067. test "$enable_shared" = yes && enable_static=no
  10068. fi
  10069. ;;
  10070. esac
  10071. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
  10072. $as_echo "$enable_shared" >&6; }
  10073. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
  10074. $as_echo_n "checking whether to build static libraries... " >&6; }
  10075. # Make sure either enable_shared or enable_static is yes.
  10076. test "$enable_shared" = yes || enable_static=yes
  10077. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
  10078. $as_echo "$enable_static" >&6; }
  10079. fi
  10080. ac_ext=c
  10081. ac_cpp='$CPP $CPPFLAGS'
  10082. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10083. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10084. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  10085. CC="$lt_save_CC"
  10086. ac_config_commands="$ac_config_commands libtool"
  10087. # Only expand once:
  10088. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  10089. $as_echo_n "checking for ANSI C header files... " >&6; }
  10090. if ${ac_cv_header_stdc+:} false; then :
  10091. $as_echo_n "(cached) " >&6
  10092. else
  10093. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10094. /* end confdefs.h. */
  10095. #include <stdlib.h>
  10096. #include <stdarg.h>
  10097. #include <string.h>
  10098. #include <float.h>
  10099. int
  10100. main ()
  10101. {
  10102. ;
  10103. return 0;
  10104. }
  10105. _ACEOF
  10106. if ac_fn_c_try_compile "$LINENO"; then :
  10107. ac_cv_header_stdc=yes
  10108. else
  10109. ac_cv_header_stdc=no
  10110. fi
  10111. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10112. if test $ac_cv_header_stdc = yes; then
  10113. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  10114. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10115. /* end confdefs.h. */
  10116. #include <string.h>
  10117. _ACEOF
  10118. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  10119. $EGREP "memchr" >/dev/null 2>&1; then :
  10120. else
  10121. ac_cv_header_stdc=no
  10122. fi
  10123. rm -f conftest*
  10124. fi
  10125. if test $ac_cv_header_stdc = yes; then
  10126. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  10127. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10128. /* end confdefs.h. */
  10129. #include <stdlib.h>
  10130. _ACEOF
  10131. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  10132. $EGREP "free" >/dev/null 2>&1; then :
  10133. else
  10134. ac_cv_header_stdc=no
  10135. fi
  10136. rm -f conftest*
  10137. fi
  10138. if test $ac_cv_header_stdc = yes; then
  10139. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  10140. if test "$cross_compiling" = yes; then :
  10141. :
  10142. else
  10143. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10144. /* end confdefs.h. */
  10145. #include <ctype.h>
  10146. #include <stdlib.h>
  10147. #if ((' ' & 0x0FF) == 0x020)
  10148. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  10149. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  10150. #else
  10151. # define ISLOWER(c) \
  10152. (('a' <= (c) && (c) <= 'i') \
  10153. || ('j' <= (c) && (c) <= 'r') \
  10154. || ('s' <= (c) && (c) <= 'z'))
  10155. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  10156. #endif
  10157. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  10158. int
  10159. main ()
  10160. {
  10161. int i;
  10162. for (i = 0; i < 256; i++)
  10163. if (XOR (islower (i), ISLOWER (i))
  10164. || toupper (i) != TOUPPER (i))
  10165. return 2;
  10166. return 0;
  10167. }
  10168. _ACEOF
  10169. if ac_fn_c_try_run "$LINENO"; then :
  10170. else
  10171. ac_cv_header_stdc=no
  10172. fi
  10173. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  10174. conftest.$ac_objext conftest.beam conftest.$ac_ext
  10175. fi
  10176. fi
  10177. fi
  10178. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  10179. $as_echo "$ac_cv_header_stdc" >&6; }
  10180. if test $ac_cv_header_stdc = yes; then
  10181. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  10182. fi
  10183. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/types.h defines makedev" >&5
  10184. $as_echo_n "checking whether sys/types.h defines makedev... " >&6; }
  10185. if ${ac_cv_header_sys_types_h_makedev+:} false; then :
  10186. $as_echo_n "(cached) " >&6
  10187. else
  10188. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10189. /* end confdefs.h. */
  10190. #include <sys/types.h>
  10191. int
  10192. main ()
  10193. {
  10194. return makedev(0, 0);
  10195. ;
  10196. return 0;
  10197. }
  10198. _ACEOF
  10199. if ac_fn_c_try_link "$LINENO"; then :
  10200. ac_cv_header_sys_types_h_makedev=yes
  10201. else
  10202. ac_cv_header_sys_types_h_makedev=no
  10203. fi
  10204. rm -f core conftest.err conftest.$ac_objext \
  10205. conftest$ac_exeext conftest.$ac_ext
  10206. fi
  10207. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_types_h_makedev" >&5
  10208. $as_echo "$ac_cv_header_sys_types_h_makedev" >&6; }
  10209. if test $ac_cv_header_sys_types_h_makedev = no; then
  10210. ac_fn_c_check_header_mongrel "$LINENO" "sys/mkdev.h" "ac_cv_header_sys_mkdev_h" "$ac_includes_default"
  10211. if test "x$ac_cv_header_sys_mkdev_h" = xyes; then :
  10212. $as_echo "#define MAJOR_IN_MKDEV 1" >>confdefs.h
  10213. fi
  10214. if test $ac_cv_header_sys_mkdev_h = no; then
  10215. ac_fn_c_check_header_mongrel "$LINENO" "sys/sysmacros.h" "ac_cv_header_sys_sysmacros_h" "$ac_includes_default"
  10216. if test "x$ac_cv_header_sys_sysmacros_h" = xyes; then :
  10217. $as_echo "#define MAJOR_IN_SYSMACROS 1" >>confdefs.h
  10218. fi
  10219. fi
  10220. fi
  10221. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
  10222. $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
  10223. if ${ac_cv_header_sys_wait_h+:} false; then :
  10224. $as_echo_n "(cached) " >&6
  10225. else
  10226. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10227. /* end confdefs.h. */
  10228. #include <sys/types.h>
  10229. #include <sys/wait.h>
  10230. #ifndef WEXITSTATUS
  10231. # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
  10232. #endif
  10233. #ifndef WIFEXITED
  10234. # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
  10235. #endif
  10236. int
  10237. main ()
  10238. {
  10239. int s;
  10240. wait (&s);
  10241. s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
  10242. ;
  10243. return 0;
  10244. }
  10245. _ACEOF
  10246. if ac_fn_c_try_compile "$LINENO"; then :
  10247. ac_cv_header_sys_wait_h=yes
  10248. else
  10249. ac_cv_header_sys_wait_h=no
  10250. fi
  10251. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10252. fi
  10253. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
  10254. $as_echo "$ac_cv_header_sys_wait_h" >&6; }
  10255. if test $ac_cv_header_sys_wait_h = yes; then
  10256. $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
  10257. fi
  10258. for ac_header in stdint.h fcntl.h locale.h stdint.h inttypes.h unistd.h
  10259. do :
  10260. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  10261. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  10262. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  10263. cat >>confdefs.h <<_ACEOF
  10264. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  10265. _ACEOF
  10266. fi
  10267. done
  10268. for ac_header in utime.h wchar.h wctype.h limits.h
  10269. do :
  10270. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  10271. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  10272. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  10273. cat >>confdefs.h <<_ACEOF
  10274. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  10275. _ACEOF
  10276. fi
  10277. done
  10278. for ac_header in getopt.h err.h
  10279. do :
  10280. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  10281. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  10282. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  10283. cat >>confdefs.h <<_ACEOF
  10284. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  10285. _ACEOF
  10286. fi
  10287. done
  10288. for ac_header in sys/mman.h sys/stat.h sys/types.h sys/utime.h sys/time.h
  10289. do :
  10290. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  10291. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  10292. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  10293. cat >>confdefs.h <<_ACEOF
  10294. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  10295. _ACEOF
  10296. fi
  10297. done
  10298. for ac_header in zlib.h
  10299. do :
  10300. ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
  10301. if test "x$ac_cv_header_zlib_h" = xyes; then :
  10302. cat >>confdefs.h <<_ACEOF
  10303. #define HAVE_ZLIB_H 1
  10304. _ACEOF
  10305. fi
  10306. done
  10307. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
  10308. $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
  10309. if ${ac_cv_c_const+:} false; then :
  10310. $as_echo_n "(cached) " >&6
  10311. else
  10312. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10313. /* end confdefs.h. */
  10314. int
  10315. main ()
  10316. {
  10317. /* FIXME: Include the comments suggested by Paul. */
  10318. #ifndef __cplusplus
  10319. /* Ultrix mips cc rejects this. */
  10320. typedef int charset[2];
  10321. const charset cs;
  10322. /* SunOS 4.1.1 cc rejects this. */
  10323. char const *const *pcpcc;
  10324. char **ppc;
  10325. /* NEC SVR4.0.2 mips cc rejects this. */
  10326. struct point {int x, y;};
  10327. static struct point const zero = {0,0};
  10328. /* AIX XL C 1.02.0.0 rejects this.
  10329. It does not let you subtract one const X* pointer from another in
  10330. an arm of an if-expression whose if-part is not a constant
  10331. expression */
  10332. const char *g = "string";
  10333. pcpcc = &g + (g ? g-g : 0);
  10334. /* HPUX 7.0 cc rejects these. */
  10335. ++pcpcc;
  10336. ppc = (char**) pcpcc;
  10337. pcpcc = (char const *const *) ppc;
  10338. { /* SCO 3.2v4 cc rejects this. */
  10339. char *t;
  10340. char const *s = 0 ? (char *) 0 : (char const *) 0;
  10341. *t++ = 0;
  10342. if (s) return 0;
  10343. }
  10344. { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
  10345. int x[] = {25, 17};
  10346. const int *foo = &x[0];
  10347. ++foo;
  10348. }
  10349. { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  10350. typedef const int *iptr;
  10351. iptr p = 0;
  10352. ++p;
  10353. }
  10354. { /* AIX XL C 1.02.0.0 rejects this saying
  10355. "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  10356. struct s { int j; const int *ap[3]; };
  10357. struct s *b; b->j = 5;
  10358. }
  10359. { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  10360. const int foo = 10;
  10361. if (!foo) return 0;
  10362. }
  10363. return !cs[0] && !zero.x;
  10364. #endif
  10365. ;
  10366. return 0;
  10367. }
  10368. _ACEOF
  10369. if ac_fn_c_try_compile "$LINENO"; then :
  10370. ac_cv_c_const=yes
  10371. else
  10372. ac_cv_c_const=no
  10373. fi
  10374. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10375. fi
  10376. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
  10377. $as_echo "$ac_cv_c_const" >&6; }
  10378. if test $ac_cv_c_const = no; then
  10379. $as_echo "#define const /**/" >>confdefs.h
  10380. fi
  10381. ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
  10382. if test "x$ac_cv_type_off_t" = xyes; then :
  10383. else
  10384. cat >>confdefs.h <<_ACEOF
  10385. #define off_t long int
  10386. _ACEOF
  10387. fi
  10388. ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
  10389. if test "x$ac_cv_type_size_t" = xyes; then :
  10390. else
  10391. cat >>confdefs.h <<_ACEOF
  10392. #define size_t unsigned int
  10393. _ACEOF
  10394. fi
  10395. ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default"
  10396. if test "x$ac_cv_member_struct_stat_st_rdev" = xyes; then :
  10397. cat >>confdefs.h <<_ACEOF
  10398. #define HAVE_STRUCT_STAT_ST_RDEV 1
  10399. _ACEOF
  10400. fi
  10401. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
  10402. $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
  10403. if ${ac_cv_struct_tm+:} false; then :
  10404. $as_echo_n "(cached) " >&6
  10405. else
  10406. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10407. /* end confdefs.h. */
  10408. #include <sys/types.h>
  10409. #include <time.h>
  10410. int
  10411. main ()
  10412. {
  10413. struct tm tm;
  10414. int *p = &tm.tm_sec;
  10415. return !p;
  10416. ;
  10417. return 0;
  10418. }
  10419. _ACEOF
  10420. if ac_fn_c_try_compile "$LINENO"; then :
  10421. ac_cv_struct_tm=time.h
  10422. else
  10423. ac_cv_struct_tm=sys/time.h
  10424. fi
  10425. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10426. fi
  10427. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
  10428. $as_echo "$ac_cv_struct_tm" >&6; }
  10429. if test $ac_cv_struct_tm = sys/time.h; then
  10430. $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
  10431. fi
  10432. ac_fn_c_check_member "$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "$ac_includes_default"
  10433. if test "x$ac_cv_member_struct_tm_tm_gmtoff" = xyes; then :
  10434. cat >>confdefs.h <<_ACEOF
  10435. #define HAVE_STRUCT_TM_TM_GMTOFF 1
  10436. _ACEOF
  10437. fi
  10438. ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "$ac_includes_default"
  10439. if test "x$ac_cv_member_struct_tm_tm_zone" = xyes; then :
  10440. cat >>confdefs.h <<_ACEOF
  10441. #define HAVE_STRUCT_TM_TM_ZONE 1
  10442. _ACEOF
  10443. fi
  10444. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tm_zone in struct tm" >&5
  10445. $as_echo_n "checking for tm_zone in struct tm... " >&6; }
  10446. if ${ac_cv_struct_tm_zone+:} false; then :
  10447. $as_echo_n "(cached) " >&6
  10448. else
  10449. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10450. /* end confdefs.h. */
  10451. #include <sys/types.h>
  10452. #include <$ac_cv_struct_tm>
  10453. int
  10454. main ()
  10455. {
  10456. struct tm tm; tm.tm_zone;
  10457. ;
  10458. return 0;
  10459. }
  10460. _ACEOF
  10461. if ac_fn_c_try_compile "$LINENO"; then :
  10462. ac_cv_struct_tm_zone=yes
  10463. else
  10464. ac_cv_struct_tm_zone=no
  10465. fi
  10466. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10467. fi
  10468. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm_zone" >&5
  10469. $as_echo "$ac_cv_struct_tm_zone" >&6; }
  10470. if test "$ac_cv_struct_tm_zone" = yes; then
  10471. $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
  10472. fi
  10473. # On SGI, apparently tzname is a #define, but that's ok, AC_CHECK_DECL will
  10474. # consider it declared and we won't give our own extern.
  10475. ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
  10476. "
  10477. if test "x$ac_cv_have_decl_tzname" = xyes; then :
  10478. ac_have_decl=1
  10479. else
  10480. ac_have_decl=0
  10481. fi
  10482. cat >>confdefs.h <<_ACEOF
  10483. #define HAVE_DECL_TZNAME $ac_have_decl
  10484. _ACEOF
  10485. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
  10486. $as_echo_n "checking for tzname... " >&6; }
  10487. if ${ac_cv_var_tzname+:} false; then :
  10488. $as_echo_n "(cached) " >&6
  10489. else
  10490. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10491. /* end confdefs.h. */
  10492. #include <time.h>
  10493. #if !HAVE_DECL_TZNAME
  10494. extern char *tzname[];
  10495. #endif
  10496. int
  10497. main ()
  10498. {
  10499. return tzname[0][0];
  10500. ;
  10501. return 0;
  10502. }
  10503. _ACEOF
  10504. if ac_fn_c_try_link "$LINENO"; then :
  10505. ac_cv_var_tzname=yes
  10506. else
  10507. ac_cv_var_tzname=no
  10508. fi
  10509. rm -f core conftest.err conftest.$ac_objext \
  10510. conftest$ac_exeext conftest.$ac_ext
  10511. fi
  10512. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
  10513. $as_echo "$ac_cv_var_tzname" >&6; }
  10514. if test $ac_cv_var_tzname = yes; then
  10515. $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
  10516. fi
  10517. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tm_isdst in struct tm" >&5
  10518. $as_echo_n "checking for tm_isdst in struct tm... " >&6; }
  10519. if ${ac_cv_struct_tm_isdst+:} false; then :
  10520. $as_echo_n "(cached) " >&6
  10521. else
  10522. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10523. /* end confdefs.h. */
  10524. #include <sys/types.h>
  10525. #include <$ac_cv_struct_tm>
  10526. int
  10527. main ()
  10528. {
  10529. struct tm tm; tm.tm_isdst;
  10530. ;
  10531. return 0;
  10532. }
  10533. _ACEOF
  10534. if ac_fn_c_try_compile "$LINENO"; then :
  10535. ac_cv_struct_tm_isdst=yes
  10536. else
  10537. ac_cv_struct_tm_isdst=no
  10538. fi
  10539. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10540. fi
  10541. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm_isdst" >&5
  10542. $as_echo "$ac_cv_struct_tm_isdst" >&6; }
  10543. if test "$ac_cv_struct_tm_isdst" = yes; then
  10544. $as_echo "#define HAVE_TM_ISDST 1" >>confdefs.h
  10545. fi
  10546. ac_fn_c_check_decl "$LINENO" "daylight" "ac_cv_have_decl_daylight" "#include <time.h>
  10547. "
  10548. if test "x$ac_cv_have_decl_daylight" = xyes; then :
  10549. ac_have_decl=1
  10550. else
  10551. ac_have_decl=0
  10552. fi
  10553. cat >>confdefs.h <<_ACEOF
  10554. #define HAVE_DECL_DAYLIGHT $ac_have_decl
  10555. _ACEOF
  10556. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for daylight" >&5
  10557. $as_echo_n "checking for daylight... " >&6; }
  10558. if ${ac_cv_var_daylight+:} false; then :
  10559. $as_echo_n "(cached) " >&6
  10560. else
  10561. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10562. /* end confdefs.h. */
  10563. #include <time.h>
  10564. #if !HAVE_DECL_DAYLIGHT
  10565. extern int daylight;
  10566. #endif
  10567. int
  10568. main ()
  10569. {
  10570. atoi(daylight);
  10571. ;
  10572. return 0;
  10573. }
  10574. _ACEOF
  10575. if ac_fn_c_try_link "$LINENO"; then :
  10576. ac_cv_var_daylight=yes
  10577. else
  10578. ac_cv_var_daylight=no
  10579. fi
  10580. rm -f core conftest.err conftest.$ac_objext \
  10581. conftest$ac_exeext conftest.$ac_ext
  10582. fi
  10583. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_daylight" >&5
  10584. $as_echo "$ac_cv_var_daylight" >&6; }
  10585. if test $ac_cv_var_daylight = yes; then
  10586. $as_echo "#define HAVE_DAYLIGHT 1" >>confdefs.h
  10587. fi
  10588. # Check whether --enable-largefile was given.
  10589. if test "${enable_largefile+set}" = set; then :
  10590. enableval=$enable_largefile;
  10591. fi
  10592. if test "$enable_largefile" != no; then
  10593. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
  10594. $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
  10595. if ${ac_cv_sys_largefile_CC+:} false; then :
  10596. $as_echo_n "(cached) " >&6
  10597. else
  10598. ac_cv_sys_largefile_CC=no
  10599. if test "$GCC" != yes; then
  10600. ac_save_CC=$CC
  10601. while :; do
  10602. # IRIX 6.2 and later do not support large files by default,
  10603. # so use the C compiler's -n32 option if that helps.
  10604. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10605. /* end confdefs.h. */
  10606. #include <sys/types.h>
  10607. /* Check that off_t can represent 2**63 - 1 correctly.
  10608. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  10609. since some C++ compilers masquerading as C compilers
  10610. incorrectly reject 9223372036854775807. */
  10611. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  10612. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  10613. && LARGE_OFF_T % 2147483647 == 1)
  10614. ? 1 : -1];
  10615. int
  10616. main ()
  10617. {
  10618. ;
  10619. return 0;
  10620. }
  10621. _ACEOF
  10622. if ac_fn_c_try_compile "$LINENO"; then :
  10623. break
  10624. fi
  10625. rm -f core conftest.err conftest.$ac_objext
  10626. CC="$CC -n32"
  10627. if ac_fn_c_try_compile "$LINENO"; then :
  10628. ac_cv_sys_largefile_CC=' -n32'; break
  10629. fi
  10630. rm -f core conftest.err conftest.$ac_objext
  10631. break
  10632. done
  10633. CC=$ac_save_CC
  10634. rm -f conftest.$ac_ext
  10635. fi
  10636. fi
  10637. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
  10638. $as_echo "$ac_cv_sys_largefile_CC" >&6; }
  10639. if test "$ac_cv_sys_largefile_CC" != no; then
  10640. CC=$CC$ac_cv_sys_largefile_CC
  10641. fi
  10642. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
  10643. $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
  10644. if ${ac_cv_sys_file_offset_bits+:} false; then :
  10645. $as_echo_n "(cached) " >&6
  10646. else
  10647. while :; do
  10648. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10649. /* end confdefs.h. */
  10650. #include <sys/types.h>
  10651. /* Check that off_t can represent 2**63 - 1 correctly.
  10652. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  10653. since some C++ compilers masquerading as C compilers
  10654. incorrectly reject 9223372036854775807. */
  10655. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  10656. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  10657. && LARGE_OFF_T % 2147483647 == 1)
  10658. ? 1 : -1];
  10659. int
  10660. main ()
  10661. {
  10662. ;
  10663. return 0;
  10664. }
  10665. _ACEOF
  10666. if ac_fn_c_try_compile "$LINENO"; then :
  10667. ac_cv_sys_file_offset_bits=no; break
  10668. fi
  10669. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10670. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10671. /* end confdefs.h. */
  10672. #define _FILE_OFFSET_BITS 64
  10673. #include <sys/types.h>
  10674. /* Check that off_t can represent 2**63 - 1 correctly.
  10675. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  10676. since some C++ compilers masquerading as C compilers
  10677. incorrectly reject 9223372036854775807. */
  10678. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  10679. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  10680. && LARGE_OFF_T % 2147483647 == 1)
  10681. ? 1 : -1];
  10682. int
  10683. main ()
  10684. {
  10685. ;
  10686. return 0;
  10687. }
  10688. _ACEOF
  10689. if ac_fn_c_try_compile "$LINENO"; then :
  10690. ac_cv_sys_file_offset_bits=64; break
  10691. fi
  10692. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10693. ac_cv_sys_file_offset_bits=unknown
  10694. break
  10695. done
  10696. fi
  10697. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
  10698. $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
  10699. case $ac_cv_sys_file_offset_bits in #(
  10700. no | unknown) ;;
  10701. *)
  10702. cat >>confdefs.h <<_ACEOF
  10703. #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
  10704. _ACEOF
  10705. ;;
  10706. esac
  10707. rm -rf conftest*
  10708. if test $ac_cv_sys_file_offset_bits = unknown; then
  10709. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
  10710. $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
  10711. if ${ac_cv_sys_large_files+:} false; then :
  10712. $as_echo_n "(cached) " >&6
  10713. else
  10714. while :; do
  10715. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10716. /* end confdefs.h. */
  10717. #include <sys/types.h>
  10718. /* Check that off_t can represent 2**63 - 1 correctly.
  10719. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  10720. since some C++ compilers masquerading as C compilers
  10721. incorrectly reject 9223372036854775807. */
  10722. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  10723. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  10724. && LARGE_OFF_T % 2147483647 == 1)
  10725. ? 1 : -1];
  10726. int
  10727. main ()
  10728. {
  10729. ;
  10730. return 0;
  10731. }
  10732. _ACEOF
  10733. if ac_fn_c_try_compile "$LINENO"; then :
  10734. ac_cv_sys_large_files=no; break
  10735. fi
  10736. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10737. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10738. /* end confdefs.h. */
  10739. #define _LARGE_FILES 1
  10740. #include <sys/types.h>
  10741. /* Check that off_t can represent 2**63 - 1 correctly.
  10742. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  10743. since some C++ compilers masquerading as C compilers
  10744. incorrectly reject 9223372036854775807. */
  10745. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  10746. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  10747. && LARGE_OFF_T % 2147483647 == 1)
  10748. ? 1 : -1];
  10749. int
  10750. main ()
  10751. {
  10752. ;
  10753. return 0;
  10754. }
  10755. _ACEOF
  10756. if ac_fn_c_try_compile "$LINENO"; then :
  10757. ac_cv_sys_large_files=1; break
  10758. fi
  10759. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10760. ac_cv_sys_large_files=unknown
  10761. break
  10762. done
  10763. fi
  10764. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
  10765. $as_echo "$ac_cv_sys_large_files" >&6; }
  10766. case $ac_cv_sys_large_files in #(
  10767. no | unknown) ;;
  10768. *)
  10769. cat >>confdefs.h <<_ACEOF
  10770. #define _LARGE_FILES $ac_cv_sys_large_files
  10771. _ACEOF
  10772. ;;
  10773. esac
  10774. rm -rf conftest*
  10775. fi
  10776. fi
  10777. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
  10778. $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
  10779. if ${ac_cv_sys_largefile_source+:} false; then :
  10780. $as_echo_n "(cached) " >&6
  10781. else
  10782. while :; do
  10783. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10784. /* end confdefs.h. */
  10785. #include <sys/types.h> /* for off_t */
  10786. #include <stdio.h>
  10787. int
  10788. main ()
  10789. {
  10790. int (*fp) (FILE *, off_t, int) = fseeko;
  10791. return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
  10792. ;
  10793. return 0;
  10794. }
  10795. _ACEOF
  10796. if ac_fn_c_try_link "$LINENO"; then :
  10797. ac_cv_sys_largefile_source=no; break
  10798. fi
  10799. rm -f core conftest.err conftest.$ac_objext \
  10800. conftest$ac_exeext conftest.$ac_ext
  10801. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10802. /* end confdefs.h. */
  10803. #define _LARGEFILE_SOURCE 1
  10804. #include <sys/types.h> /* for off_t */
  10805. #include <stdio.h>
  10806. int
  10807. main ()
  10808. {
  10809. int (*fp) (FILE *, off_t, int) = fseeko;
  10810. return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
  10811. ;
  10812. return 0;
  10813. }
  10814. _ACEOF
  10815. if ac_fn_c_try_link "$LINENO"; then :
  10816. ac_cv_sys_largefile_source=1; break
  10817. fi
  10818. rm -f core conftest.err conftest.$ac_objext \
  10819. conftest$ac_exeext conftest.$ac_ext
  10820. ac_cv_sys_largefile_source=unknown
  10821. break
  10822. done
  10823. fi
  10824. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
  10825. $as_echo "$ac_cv_sys_largefile_source" >&6; }
  10826. case $ac_cv_sys_largefile_source in #(
  10827. no | unknown) ;;
  10828. *)
  10829. cat >>confdefs.h <<_ACEOF
  10830. #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
  10831. _ACEOF
  10832. ;;
  10833. esac
  10834. rm -rf conftest*
  10835. # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
  10836. # in glibc 2.1.3, but that breaks too many other things.
  10837. # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
  10838. if test $ac_cv_sys_largefile_source != unknown; then
  10839. $as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
  10840. fi
  10841. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
  10842. $as_echo_n "checking for mbstate_t... " >&6; }
  10843. if ${ac_cv_type_mbstate_t+:} false; then :
  10844. $as_echo_n "(cached) " >&6
  10845. else
  10846. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10847. /* end confdefs.h. */
  10848. $ac_includes_default
  10849. # include <wchar.h>
  10850. int
  10851. main ()
  10852. {
  10853. mbstate_t x; return sizeof x;
  10854. ;
  10855. return 0;
  10856. }
  10857. _ACEOF
  10858. if ac_fn_c_try_compile "$LINENO"; then :
  10859. ac_cv_type_mbstate_t=yes
  10860. else
  10861. ac_cv_type_mbstate_t=no
  10862. fi
  10863. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10864. fi
  10865. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5
  10866. $as_echo "$ac_cv_type_mbstate_t" >&6; }
  10867. if test $ac_cv_type_mbstate_t = yes; then
  10868. $as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
  10869. else
  10870. $as_echo "#define mbstate_t int" >>confdefs.h
  10871. fi
  10872. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct option in getopt" >&5
  10873. $as_echo_n "checking for struct option in getopt... " >&6; }
  10874. if ${ac_cv_struct_option_getopt_h+:} false; then :
  10875. $as_echo_n "(cached) " >&6
  10876. else
  10877. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10878. /* end confdefs.h. */
  10879. #include <getopt.h>
  10880. int
  10881. main ()
  10882. {
  10883. struct option op; op.name;
  10884. ;
  10885. return 0;
  10886. }
  10887. _ACEOF
  10888. if ac_fn_c_try_compile "$LINENO"; then :
  10889. ac_cv_struct_option_getopt_h=yes
  10890. else
  10891. ac_cv_struct_option_getopt_h=no
  10892. fi
  10893. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10894. fi
  10895. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_option_getopt_h" >&5
  10896. $as_echo "$ac_cv_struct_option_getopt_h" >&6; }
  10897. if test "$ac_cv_struct_option_getopt_h" = yes; then
  10898. $as_echo "#define HAVE_STRUCT_OPTION 1" >>confdefs.h
  10899. fi
  10900. ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
  10901. if test "x$ac_cv_type_pid_t" = xyes; then :
  10902. cat >>confdefs.h <<_ACEOF
  10903. #define HAVE_PID_T 1
  10904. _ACEOF
  10905. fi
  10906. ac_fn_c_check_type "$LINENO" "uint8_t" "ac_cv_type_uint8_t" "$ac_includes_default"
  10907. if test "x$ac_cv_type_uint8_t" = xyes; then :
  10908. cat >>confdefs.h <<_ACEOF
  10909. #define HAVE_UINT8_T 1
  10910. _ACEOF
  10911. fi
  10912. ac_fn_c_check_type "$LINENO" "uint16_t" "ac_cv_type_uint16_t" "$ac_includes_default"
  10913. if test "x$ac_cv_type_uint16_t" = xyes; then :
  10914. cat >>confdefs.h <<_ACEOF
  10915. #define HAVE_UINT16_T 1
  10916. _ACEOF
  10917. fi
  10918. ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "$ac_includes_default"
  10919. if test "x$ac_cv_type_uint32_t" = xyes; then :
  10920. cat >>confdefs.h <<_ACEOF
  10921. #define HAVE_UINT32_T 1
  10922. _ACEOF
  10923. fi
  10924. ac_fn_c_check_type "$LINENO" "int32_t" "ac_cv_type_int32_t" "$ac_includes_default"
  10925. if test "x$ac_cv_type_int32_t" = xyes; then :
  10926. cat >>confdefs.h <<_ACEOF
  10927. #define HAVE_INT32_T 1
  10928. _ACEOF
  10929. fi
  10930. ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "$ac_includes_default"
  10931. if test "x$ac_cv_type_uint64_t" = xyes; then :
  10932. cat >>confdefs.h <<_ACEOF
  10933. #define HAVE_UINT64_T 1
  10934. _ACEOF
  10935. fi
  10936. ac_fn_c_check_type "$LINENO" "int64_t" "ac_cv_type_int64_t" "$ac_includes_default"
  10937. if test "x$ac_cv_type_int64_t" = xyes; then :
  10938. cat >>confdefs.h <<_ACEOF
  10939. #define HAVE_INT64_T 1
  10940. _ACEOF
  10941. fi
  10942. # The cast to long int works around a bug in the HP C Compiler
  10943. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  10944. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  10945. # This bug is HP SR number 8606223364.
  10946. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
  10947. $as_echo_n "checking size of long long... " >&6; }
  10948. if ${ac_cv_sizeof_long_long+:} false; then :
  10949. $as_echo_n "(cached) " >&6
  10950. else
  10951. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
  10952. else
  10953. if test "$ac_cv_type_long_long" = yes; then
  10954. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  10955. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  10956. as_fn_error 77 "cannot compute sizeof (long long)
  10957. See \`config.log' for more details" "$LINENO" 5; }
  10958. else
  10959. ac_cv_sizeof_long_long=0
  10960. fi
  10961. fi
  10962. fi
  10963. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
  10964. $as_echo "$ac_cv_sizeof_long_long" >&6; }
  10965. cat >>confdefs.h <<_ACEOF
  10966. #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
  10967. _ACEOF
  10968. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc compiler warnings" >&5
  10969. $as_echo_n "checking for gcc compiler warnings... " >&6; }
  10970. # Check whether --enable-warnings was given.
  10971. if test "${enable_warnings+set}" = set; then :
  10972. enableval=$enable_warnings; if test "${enableval}" = no -o "$GCC" = no; then
  10973. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10974. $as_echo "no" >&6; }
  10975. WARNINGS=
  10976. else
  10977. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  10978. $as_echo "yes" >&6; }
  10979. WARNINGS="-Wall -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith \
  10980. -Wmissing-declarations -Wredundant-decls -Wnested-externs \
  10981. -Wsign-compare -Wreturn-type -Wswitch -Wshadow \
  10982. -Wcast-qual -Wwrite-strings -Wextra -Wunused-parameter -Wformat=2"
  10983. fi
  10984. else
  10985. if test "$GCC" = yes; then
  10986. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  10987. $as_echo "yes" >&6; }
  10988. WARNINGS="-Wall -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith \
  10989. -Wmissing-declarations -Wredundant-decls -Wnested-externs \
  10990. -Wsign-compare -Wreturn-type -Wswitch -Wshadow \
  10991. -Wcast-qual -Wwrite-strings -Wextra -Wunused-parameter -Wformat=2"
  10992. else
  10993. WARNINGS=
  10994. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10995. $as_echo "no" >&6; }
  10996. fi
  10997. fi
  10998. for ac_func in mmap strerror strndup strtoul mbrtowc mkstemp utimes utime wcwidth strtof fork
  10999. do :
  11000. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  11001. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  11002. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  11003. cat >>confdefs.h <<_ACEOF
  11004. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  11005. _ACEOF
  11006. fi
  11007. done
  11008. ac_fn_c_check_func "$LINENO" "getopt_long" "ac_cv_func_getopt_long"
  11009. if test "x$ac_cv_func_getopt_long" = xyes; then :
  11010. $as_echo "#define HAVE_GETOPT_LONG 1" >>confdefs.h
  11011. else
  11012. case " $LIBOBJS " in
  11013. *" getopt_long.$ac_objext "* ) ;;
  11014. *) LIBOBJS="$LIBOBJS getopt_long.$ac_objext"
  11015. ;;
  11016. esac
  11017. fi
  11018. ac_fn_c_check_func "$LINENO" "asprintf" "ac_cv_func_asprintf"
  11019. if test "x$ac_cv_func_asprintf" = xyes; then :
  11020. $as_echo "#define HAVE_ASPRINTF 1" >>confdefs.h
  11021. else
  11022. case " $LIBOBJS " in
  11023. *" asprintf.$ac_objext "* ) ;;
  11024. *) LIBOBJS="$LIBOBJS asprintf.$ac_objext"
  11025. ;;
  11026. esac
  11027. fi
  11028. ac_fn_c_check_func "$LINENO" "vasprintf" "ac_cv_func_vasprintf"
  11029. if test "x$ac_cv_func_vasprintf" = xyes; then :
  11030. $as_echo "#define HAVE_VASPRINTF 1" >>confdefs.h
  11031. else
  11032. case " $LIBOBJS " in
  11033. *" vasprintf.$ac_objext "* ) ;;
  11034. *) LIBOBJS="$LIBOBJS vasprintf.$ac_objext"
  11035. ;;
  11036. esac
  11037. fi
  11038. ac_fn_c_check_func "$LINENO" "strlcpy" "ac_cv_func_strlcpy"
  11039. if test "x$ac_cv_func_strlcpy" = xyes; then :
  11040. $as_echo "#define HAVE_STRLCPY 1" >>confdefs.h
  11041. else
  11042. case " $LIBOBJS " in
  11043. *" strlcpy.$ac_objext "* ) ;;
  11044. *) LIBOBJS="$LIBOBJS strlcpy.$ac_objext"
  11045. ;;
  11046. esac
  11047. fi
  11048. ac_fn_c_check_func "$LINENO" "strlcat" "ac_cv_func_strlcat"
  11049. if test "x$ac_cv_func_strlcat" = xyes; then :
  11050. $as_echo "#define HAVE_STRLCAT 1" >>confdefs.h
  11051. else
  11052. case " $LIBOBJS " in
  11053. *" strlcat.$ac_objext "* ) ;;
  11054. *) LIBOBJS="$LIBOBJS strlcat.$ac_objext"
  11055. ;;
  11056. esac
  11057. fi
  11058. ac_fn_c_check_func "$LINENO" "getline" "ac_cv_func_getline"
  11059. if test "x$ac_cv_func_getline" = xyes; then :
  11060. $as_echo "#define HAVE_GETLINE 1" >>confdefs.h
  11061. else
  11062. case " $LIBOBJS " in
  11063. *" getline.$ac_objext "* ) ;;
  11064. *) LIBOBJS="$LIBOBJS getline.$ac_objext"
  11065. ;;
  11066. esac
  11067. fi
  11068. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gzopen in -lz" >&5
  11069. $as_echo_n "checking for gzopen in -lz... " >&6; }
  11070. if ${ac_cv_lib_z_gzopen+:} false; then :
  11071. $as_echo_n "(cached) " >&6
  11072. else
  11073. ac_check_lib_save_LIBS=$LIBS
  11074. LIBS="-lz $LIBS"
  11075. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11076. /* end confdefs.h. */
  11077. /* Override any GCC internal prototype to avoid an error.
  11078. Use char because int might match the return type of a GCC
  11079. builtin and then its argument prototype would still apply. */
  11080. #ifdef __cplusplus
  11081. extern "C"
  11082. #endif
  11083. char gzopen ();
  11084. int
  11085. main ()
  11086. {
  11087. return gzopen ();
  11088. ;
  11089. return 0;
  11090. }
  11091. _ACEOF
  11092. if ac_fn_c_try_link "$LINENO"; then :
  11093. ac_cv_lib_z_gzopen=yes
  11094. else
  11095. ac_cv_lib_z_gzopen=no
  11096. fi
  11097. rm -f core conftest.err conftest.$ac_objext \
  11098. conftest$ac_exeext conftest.$ac_ext
  11099. LIBS=$ac_check_lib_save_LIBS
  11100. fi
  11101. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gzopen" >&5
  11102. $as_echo "$ac_cv_lib_z_gzopen" >&6; }
  11103. if test "x$ac_cv_lib_z_gzopen" = xyes; then :
  11104. cat >>confdefs.h <<_ACEOF
  11105. #define HAVE_LIBZ 1
  11106. _ACEOF
  11107. LIBS="-lz $LIBS"
  11108. fi
  11109. if test "$MINGW" = 1; then
  11110. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for regexec in -lgnurx" >&5
  11111. $as_echo_n "checking for regexec in -lgnurx... " >&6; }
  11112. if ${ac_cv_lib_gnurx_regexec+:} false; then :
  11113. $as_echo_n "(cached) " >&6
  11114. else
  11115. ac_check_lib_save_LIBS=$LIBS
  11116. LIBS="-lgnurx $LIBS"
  11117. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11118. /* end confdefs.h. */
  11119. /* Override any GCC internal prototype to avoid an error.
  11120. Use char because int might match the return type of a GCC
  11121. builtin and then its argument prototype would still apply. */
  11122. #ifdef __cplusplus
  11123. extern "C"
  11124. #endif
  11125. char regexec ();
  11126. int
  11127. main ()
  11128. {
  11129. return regexec ();
  11130. ;
  11131. return 0;
  11132. }
  11133. _ACEOF
  11134. if ac_fn_c_try_link "$LINENO"; then :
  11135. ac_cv_lib_gnurx_regexec=yes
  11136. else
  11137. ac_cv_lib_gnurx_regexec=no
  11138. fi
  11139. rm -f core conftest.err conftest.$ac_objext \
  11140. conftest$ac_exeext conftest.$ac_ext
  11141. LIBS=$ac_check_lib_save_LIBS
  11142. fi
  11143. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gnurx_regexec" >&5
  11144. $as_echo "$ac_cv_lib_gnurx_regexec" >&6; }
  11145. if test "x$ac_cv_lib_gnurx_regexec" = xyes; then :
  11146. cat >>confdefs.h <<_ACEOF
  11147. #define HAVE_LIBGNURX 1
  11148. _ACEOF
  11149. LIBS="-lgnurx $LIBS"
  11150. else
  11151. as_fn_error $? "libgnurx is required to build file(1) with MinGW" "$LINENO" 5
  11152. fi
  11153. fi
  11154. if test "$cross_compiling" = yes; then
  11155. IS_CROSS_COMPILE_TRUE=
  11156. IS_CROSS_COMPILE_FALSE='#'
  11157. else
  11158. IS_CROSS_COMPILE_TRUE='#'
  11159. IS_CROSS_COMPILE_FALSE=
  11160. fi
  11161. ac_config_files="$ac_config_files Makefile src/Makefile magic/Makefile tests/Makefile doc/Makefile python/Makefile"
  11162. cat >confcache <<\_ACEOF
  11163. # This file is a shell script that caches the results of configure
  11164. # tests run on this system so they can be shared between configure
  11165. # scripts and configure runs, see configure's option --config-cache.
  11166. # It is not useful on other systems. If it contains results you don't
  11167. # want to keep, you may remove or edit it.
  11168. #
  11169. # config.status only pays attention to the cache file if you give it
  11170. # the --recheck option to rerun configure.
  11171. #
  11172. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  11173. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  11174. # following values.
  11175. _ACEOF
  11176. # The following way of writing the cache mishandles newlines in values,
  11177. # but we know of no workaround that is simple, portable, and efficient.
  11178. # So, we kill variables containing newlines.
  11179. # Ultrix sh set writes to stderr and can't be redirected directly,
  11180. # and sets the high bit in the cache file unless we assign to the vars.
  11181. (
  11182. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  11183. eval ac_val=\$$ac_var
  11184. case $ac_val in #(
  11185. *${as_nl}*)
  11186. case $ac_var in #(
  11187. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  11188. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  11189. esac
  11190. case $ac_var in #(
  11191. _ | IFS | as_nl) ;; #(
  11192. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  11193. *) { eval $ac_var=; unset $ac_var;} ;;
  11194. esac ;;
  11195. esac
  11196. done
  11197. (set) 2>&1 |
  11198. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  11199. *${as_nl}ac_space=\ *)
  11200. # `set' does not quote correctly, so add quotes: double-quote
  11201. # substitution turns \\\\ into \\, and sed turns \\ into \.
  11202. sed -n \
  11203. "s/'/'\\\\''/g;
  11204. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  11205. ;; #(
  11206. *)
  11207. # `set' quotes correctly as required by POSIX, so do not add quotes.
  11208. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  11209. ;;
  11210. esac |
  11211. sort
  11212. ) |
  11213. sed '
  11214. /^ac_cv_env_/b end
  11215. t clear
  11216. :clear
  11217. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  11218. t end
  11219. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  11220. :end' >>confcache
  11221. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  11222. if test -w "$cache_file"; then
  11223. if test "x$cache_file" != "x/dev/null"; then
  11224. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  11225. $as_echo "$as_me: updating cache $cache_file" >&6;}
  11226. if test ! -f "$cache_file" || test -h "$cache_file"; then
  11227. cat confcache >"$cache_file"
  11228. else
  11229. case $cache_file in #(
  11230. */* | ?:*)
  11231. mv -f confcache "$cache_file"$$ &&
  11232. mv -f "$cache_file"$$ "$cache_file" ;; #(
  11233. *)
  11234. mv -f confcache "$cache_file" ;;
  11235. esac
  11236. fi
  11237. fi
  11238. else
  11239. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  11240. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  11241. fi
  11242. fi
  11243. rm -f confcache
  11244. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  11245. # Let make expand exec_prefix.
  11246. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  11247. DEFS=-DHAVE_CONFIG_H
  11248. ac_libobjs=
  11249. ac_ltlibobjs=
  11250. U=
  11251. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  11252. # 1. Remove the extension, and $U if already installed.
  11253. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  11254. ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  11255. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  11256. # will be set to the directory where LIBOBJS objects are built.
  11257. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  11258. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  11259. done
  11260. LIBOBJS=$ac_libobjs
  11261. LTLIBOBJS=$ac_ltlibobjs
  11262. if test -n "$EXEEXT"; then
  11263. am__EXEEXT_TRUE=
  11264. am__EXEEXT_FALSE='#'
  11265. else
  11266. am__EXEEXT_TRUE='#'
  11267. am__EXEEXT_FALSE=
  11268. fi
  11269. if test -z "${MINGW_TRUE}" && test -z "${MINGW_FALSE}"; then
  11270. as_fn_error $? "conditional \"MINGW\" was never defined.
  11271. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  11272. fi
  11273. if test -z "${FSECT5_TRUE}" && test -z "${FSECT5_FALSE}"; then
  11274. as_fn_error $? "conditional \"FSECT5\" was never defined.
  11275. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  11276. fi
  11277. if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
  11278. as_fn_error $? "conditional \"AMDEP\" was never defined.
  11279. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  11280. fi
  11281. if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  11282. as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
  11283. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  11284. fi
  11285. if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  11286. as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
  11287. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  11288. fi
  11289. if test -z "${IS_CROSS_COMPILE_TRUE}" && test -z "${IS_CROSS_COMPILE_FALSE}"; then
  11290. as_fn_error $? "conditional \"IS_CROSS_COMPILE\" was never defined.
  11291. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  11292. fi
  11293. : "${CONFIG_STATUS=./config.status}"
  11294. ac_write_fail=0
  11295. ac_clean_files_save=$ac_clean_files
  11296. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  11297. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  11298. $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  11299. as_write_fail=0
  11300. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  11301. #! $SHELL
  11302. # Generated by $as_me.
  11303. # Run this file to recreate the current configuration.
  11304. # Compiler output produced by configure, useful for debugging
  11305. # configure, is in config.log if it exists.
  11306. debug=false
  11307. ac_cs_recheck=false
  11308. ac_cs_silent=false
  11309. SHELL=\${CONFIG_SHELL-$SHELL}
  11310. export SHELL
  11311. _ASEOF
  11312. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  11313. ## -------------------- ##
  11314. ## M4sh Initialization. ##
  11315. ## -------------------- ##
  11316. # Be more Bourne compatible
  11317. DUALCASE=1; export DUALCASE # for MKS sh
  11318. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  11319. emulate sh
  11320. NULLCMD=:
  11321. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  11322. # is contrary to our usage. Disable this feature.
  11323. alias -g '${1+"$@"}'='"$@"'
  11324. setopt NO_GLOB_SUBST
  11325. else
  11326. case `(set -o) 2>/dev/null` in #(
  11327. *posix*) :
  11328. set -o posix ;; #(
  11329. *) :
  11330. ;;
  11331. esac
  11332. fi
  11333. as_nl='
  11334. '
  11335. export as_nl
  11336. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  11337. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  11338. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  11339. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  11340. # Prefer a ksh shell builtin over an external printf program on Solaris,
  11341. # but without wasting forks for bash or zsh.
  11342. if test -z "$BASH_VERSION$ZSH_VERSION" \
  11343. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  11344. as_echo='print -r --'
  11345. as_echo_n='print -rn --'
  11346. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  11347. as_echo='printf %s\n'
  11348. as_echo_n='printf %s'
  11349. else
  11350. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  11351. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  11352. as_echo_n='/usr/ucb/echo -n'
  11353. else
  11354. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  11355. as_echo_n_body='eval
  11356. arg=$1;
  11357. case $arg in #(
  11358. *"$as_nl"*)
  11359. expr "X$arg" : "X\\(.*\\)$as_nl";
  11360. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  11361. esac;
  11362. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  11363. '
  11364. export as_echo_n_body
  11365. as_echo_n='sh -c $as_echo_n_body as_echo'
  11366. fi
  11367. export as_echo_body
  11368. as_echo='sh -c $as_echo_body as_echo'
  11369. fi
  11370. # The user is always right.
  11371. if test "${PATH_SEPARATOR+set}" != set; then
  11372. PATH_SEPARATOR=:
  11373. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  11374. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  11375. PATH_SEPARATOR=';'
  11376. }
  11377. fi
  11378. # IFS
  11379. # We need space, tab and new line, in precisely that order. Quoting is
  11380. # there to prevent editors from complaining about space-tab.
  11381. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  11382. # splitting by setting IFS to empty value.)
  11383. IFS=" "" $as_nl"
  11384. # Find who we are. Look in the path if we contain no directory separator.
  11385. as_myself=
  11386. case $0 in #((
  11387. *[\\/]* ) as_myself=$0 ;;
  11388. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11389. for as_dir in $PATH
  11390. do
  11391. IFS=$as_save_IFS
  11392. test -z "$as_dir" && as_dir=.
  11393. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  11394. done
  11395. IFS=$as_save_IFS
  11396. ;;
  11397. esac
  11398. # We did not find ourselves, most probably we were run as `sh COMMAND'
  11399. # in which case we are not to be found in the path.
  11400. if test "x$as_myself" = x; then
  11401. as_myself=$0
  11402. fi
  11403. if test ! -f "$as_myself"; then
  11404. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  11405. exit 1
  11406. fi
  11407. # Unset variables that we do not need and which cause bugs (e.g. in
  11408. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  11409. # suppresses any "Segmentation fault" message there. '((' could
  11410. # trigger a bug in pdksh 5.2.14.
  11411. for as_var in BASH_ENV ENV MAIL MAILPATH
  11412. do eval test x\${$as_var+set} = xset \
  11413. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  11414. done
  11415. PS1='$ '
  11416. PS2='> '
  11417. PS4='+ '
  11418. # NLS nuisances.
  11419. LC_ALL=C
  11420. export LC_ALL
  11421. LANGUAGE=C
  11422. export LANGUAGE
  11423. # CDPATH.
  11424. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  11425. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  11426. # ----------------------------------------
  11427. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  11428. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  11429. # script with STATUS, using 1 if that was 0.
  11430. as_fn_error ()
  11431. {
  11432. as_status=$1; test $as_status -eq 0 && as_status=1
  11433. if test "$4"; then
  11434. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  11435. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  11436. fi
  11437. $as_echo "$as_me: error: $2" >&2
  11438. as_fn_exit $as_status
  11439. } # as_fn_error
  11440. # as_fn_set_status STATUS
  11441. # -----------------------
  11442. # Set $? to STATUS, without forking.
  11443. as_fn_set_status ()
  11444. {
  11445. return $1
  11446. } # as_fn_set_status
  11447. # as_fn_exit STATUS
  11448. # -----------------
  11449. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  11450. as_fn_exit ()
  11451. {
  11452. set +e
  11453. as_fn_set_status $1
  11454. exit $1
  11455. } # as_fn_exit
  11456. # as_fn_unset VAR
  11457. # ---------------
  11458. # Portably unset VAR.
  11459. as_fn_unset ()
  11460. {
  11461. { eval $1=; unset $1;}
  11462. }
  11463. as_unset=as_fn_unset
  11464. # as_fn_append VAR VALUE
  11465. # ----------------------
  11466. # Append the text in VALUE to the end of the definition contained in VAR. Take
  11467. # advantage of any shell optimizations that allow amortized linear growth over
  11468. # repeated appends, instead of the typical quadratic growth present in naive
  11469. # implementations.
  11470. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  11471. eval 'as_fn_append ()
  11472. {
  11473. eval $1+=\$2
  11474. }'
  11475. else
  11476. as_fn_append ()
  11477. {
  11478. eval $1=\$$1\$2
  11479. }
  11480. fi # as_fn_append
  11481. # as_fn_arith ARG...
  11482. # ------------------
  11483. # Perform arithmetic evaluation on the ARGs, and store the result in the
  11484. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  11485. # must be portable across $(()) and expr.
  11486. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  11487. eval 'as_fn_arith ()
  11488. {
  11489. as_val=$(( $* ))
  11490. }'
  11491. else
  11492. as_fn_arith ()
  11493. {
  11494. as_val=`expr "$@" || test $? -eq 1`
  11495. }
  11496. fi # as_fn_arith
  11497. if expr a : '\(a\)' >/dev/null 2>&1 &&
  11498. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  11499. as_expr=expr
  11500. else
  11501. as_expr=false
  11502. fi
  11503. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  11504. as_basename=basename
  11505. else
  11506. as_basename=false
  11507. fi
  11508. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  11509. as_dirname=dirname
  11510. else
  11511. as_dirname=false
  11512. fi
  11513. as_me=`$as_basename -- "$0" ||
  11514. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  11515. X"$0" : 'X\(//\)$' \| \
  11516. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  11517. $as_echo X/"$0" |
  11518. sed '/^.*\/\([^/][^/]*\)\/*$/{
  11519. s//\1/
  11520. q
  11521. }
  11522. /^X\/\(\/\/\)$/{
  11523. s//\1/
  11524. q
  11525. }
  11526. /^X\/\(\/\).*/{
  11527. s//\1/
  11528. q
  11529. }
  11530. s/.*/./; q'`
  11531. # Avoid depending upon Character Ranges.
  11532. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  11533. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  11534. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  11535. as_cr_digits='0123456789'
  11536. as_cr_alnum=$as_cr_Letters$as_cr_digits
  11537. ECHO_C= ECHO_N= ECHO_T=
  11538. case `echo -n x` in #(((((
  11539. -n*)
  11540. case `echo 'xy\c'` in
  11541. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  11542. xy) ECHO_C='\c';;
  11543. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  11544. ECHO_T=' ';;
  11545. esac;;
  11546. *)
  11547. ECHO_N='-n';;
  11548. esac
  11549. rm -f conf$$ conf$$.exe conf$$.file
  11550. if test -d conf$$.dir; then
  11551. rm -f conf$$.dir/conf$$.file
  11552. else
  11553. rm -f conf$$.dir
  11554. mkdir conf$$.dir 2>/dev/null
  11555. fi
  11556. if (echo >conf$$.file) 2>/dev/null; then
  11557. if ln -s conf$$.file conf$$ 2>/dev/null; then
  11558. as_ln_s='ln -s'
  11559. # ... but there are two gotchas:
  11560. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  11561. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  11562. # In both cases, we have to default to `cp -p'.
  11563. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  11564. as_ln_s='cp -p'
  11565. elif ln conf$$.file conf$$ 2>/dev/null; then
  11566. as_ln_s=ln
  11567. else
  11568. as_ln_s='cp -p'
  11569. fi
  11570. else
  11571. as_ln_s='cp -p'
  11572. fi
  11573. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  11574. rmdir conf$$.dir 2>/dev/null
  11575. # as_fn_mkdir_p
  11576. # -------------
  11577. # Create "$as_dir" as a directory, including parents if necessary.
  11578. as_fn_mkdir_p ()
  11579. {
  11580. case $as_dir in #(
  11581. -*) as_dir=./$as_dir;;
  11582. esac
  11583. test -d "$as_dir" || eval $as_mkdir_p || {
  11584. as_dirs=
  11585. while :; do
  11586. case $as_dir in #(
  11587. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  11588. *) as_qdir=$as_dir;;
  11589. esac
  11590. as_dirs="'$as_qdir' $as_dirs"
  11591. as_dir=`$as_dirname -- "$as_dir" ||
  11592. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  11593. X"$as_dir" : 'X\(//\)[^/]' \| \
  11594. X"$as_dir" : 'X\(//\)$' \| \
  11595. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  11596. $as_echo X"$as_dir" |
  11597. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  11598. s//\1/
  11599. q
  11600. }
  11601. /^X\(\/\/\)[^/].*/{
  11602. s//\1/
  11603. q
  11604. }
  11605. /^X\(\/\/\)$/{
  11606. s//\1/
  11607. q
  11608. }
  11609. /^X\(\/\).*/{
  11610. s//\1/
  11611. q
  11612. }
  11613. s/.*/./; q'`
  11614. test -d "$as_dir" && break
  11615. done
  11616. test -z "$as_dirs" || eval "mkdir $as_dirs"
  11617. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  11618. } # as_fn_mkdir_p
  11619. if mkdir -p . 2>/dev/null; then
  11620. as_mkdir_p='mkdir -p "$as_dir"'
  11621. else
  11622. test -d ./-p && rmdir ./-p
  11623. as_mkdir_p=false
  11624. fi
  11625. if test -x / >/dev/null 2>&1; then
  11626. as_test_x='test -x'
  11627. else
  11628. if ls -dL / >/dev/null 2>&1; then
  11629. as_ls_L_option=L
  11630. else
  11631. as_ls_L_option=
  11632. fi
  11633. as_test_x='
  11634. eval sh -c '\''
  11635. if test -d "$1"; then
  11636. test -d "$1/.";
  11637. else
  11638. case $1 in #(
  11639. -*)set "./$1";;
  11640. esac;
  11641. case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
  11642. ???[sx]*):;;*)false;;esac;fi
  11643. '\'' sh
  11644. '
  11645. fi
  11646. as_executable_p=$as_test_x
  11647. # Sed expression to map a string onto a valid CPP name.
  11648. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  11649. # Sed expression to map a string onto a valid variable name.
  11650. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  11651. exec 6>&1
  11652. ## ----------------------------------- ##
  11653. ## Main body of $CONFIG_STATUS script. ##
  11654. ## ----------------------------------- ##
  11655. _ASEOF
  11656. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  11657. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  11658. # Save the log message, to keep $0 and so on meaningful, and to
  11659. # report actual input values of CONFIG_FILES etc. instead of their
  11660. # values after options handling.
  11661. ac_log="
  11662. This file was extended by file $as_me 5.09, which was
  11663. generated by GNU Autoconf 2.68. Invocation command line was
  11664. CONFIG_FILES = $CONFIG_FILES
  11665. CONFIG_HEADERS = $CONFIG_HEADERS
  11666. CONFIG_LINKS = $CONFIG_LINKS
  11667. CONFIG_COMMANDS = $CONFIG_COMMANDS
  11668. $ $0 $@
  11669. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  11670. "
  11671. _ACEOF
  11672. case $ac_config_files in *"
  11673. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  11674. esac
  11675. case $ac_config_headers in *"
  11676. "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  11677. esac
  11678. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  11679. # Files that config.status was made for.
  11680. config_files="$ac_config_files"
  11681. config_headers="$ac_config_headers"
  11682. config_commands="$ac_config_commands"
  11683. _ACEOF
  11684. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  11685. ac_cs_usage="\
  11686. \`$as_me' instantiates files and other configuration actions
  11687. from templates according to the current configuration. Unless the files
  11688. and actions are specified as TAGs, all are instantiated by default.
  11689. Usage: $0 [OPTION]... [TAG]...
  11690. -h, --help print this help, then exit
  11691. -V, --version print version number and configuration settings, then exit
  11692. --config print configuration, then exit
  11693. -q, --quiet, --silent
  11694. do not print progress messages
  11695. -d, --debug don't remove temporary files
  11696. --recheck update $as_me by reconfiguring in the same conditions
  11697. --file=FILE[:TEMPLATE]
  11698. instantiate the configuration file FILE
  11699. --header=FILE[:TEMPLATE]
  11700. instantiate the configuration header FILE
  11701. Configuration files:
  11702. $config_files
  11703. Configuration headers:
  11704. $config_headers
  11705. Configuration commands:
  11706. $config_commands
  11707. Report bugs to <christos@astron.com>."
  11708. _ACEOF
  11709. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  11710. ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
  11711. ac_cs_version="\\
  11712. file config.status 5.09
  11713. configured by $0, generated by GNU Autoconf 2.68,
  11714. with options \\"\$ac_cs_config\\"
  11715. Copyright (C) 2010 Free Software Foundation, Inc.
  11716. This config.status script is free software; the Free Software Foundation
  11717. gives unlimited permission to copy, distribute and modify it."
  11718. ac_pwd='$ac_pwd'
  11719. srcdir='$srcdir'
  11720. INSTALL='$INSTALL'
  11721. MKDIR_P='$MKDIR_P'
  11722. AWK='$AWK'
  11723. test -n "\$AWK" || AWK=awk
  11724. _ACEOF
  11725. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  11726. # The default lists apply if the user does not specify any file.
  11727. ac_need_defaults=:
  11728. while test $# != 0
  11729. do
  11730. case $1 in
  11731. --*=?*)
  11732. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  11733. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  11734. ac_shift=:
  11735. ;;
  11736. --*=)
  11737. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  11738. ac_optarg=
  11739. ac_shift=:
  11740. ;;
  11741. *)
  11742. ac_option=$1
  11743. ac_optarg=$2
  11744. ac_shift=shift
  11745. ;;
  11746. esac
  11747. case $ac_option in
  11748. # Handling of the options.
  11749. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  11750. ac_cs_recheck=: ;;
  11751. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  11752. $as_echo "$ac_cs_version"; exit ;;
  11753. --config | --confi | --conf | --con | --co | --c )
  11754. $as_echo "$ac_cs_config"; exit ;;
  11755. --debug | --debu | --deb | --de | --d | -d )
  11756. debug=: ;;
  11757. --file | --fil | --fi | --f )
  11758. $ac_shift
  11759. case $ac_optarg in
  11760. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  11761. '') as_fn_error $? "missing file argument" ;;
  11762. esac
  11763. as_fn_append CONFIG_FILES " '$ac_optarg'"
  11764. ac_need_defaults=false;;
  11765. --header | --heade | --head | --hea )
  11766. $ac_shift
  11767. case $ac_optarg in
  11768. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  11769. esac
  11770. as_fn_append CONFIG_HEADERS " '$ac_optarg'"
  11771. ac_need_defaults=false;;
  11772. --he | --h)
  11773. # Conflict between --help and --header
  11774. as_fn_error $? "ambiguous option: \`$1'
  11775. Try \`$0 --help' for more information.";;
  11776. --help | --hel | -h )
  11777. $as_echo "$ac_cs_usage"; exit ;;
  11778. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  11779. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  11780. ac_cs_silent=: ;;
  11781. # This is an error.
  11782. -*) as_fn_error $? "unrecognized option: \`$1'
  11783. Try \`$0 --help' for more information." ;;
  11784. *) as_fn_append ac_config_targets " $1"
  11785. ac_need_defaults=false ;;
  11786. esac
  11787. shift
  11788. done
  11789. ac_configure_extra_args=
  11790. if $ac_cs_silent; then
  11791. exec 6>/dev/null
  11792. ac_configure_extra_args="$ac_configure_extra_args --silent"
  11793. fi
  11794. _ACEOF
  11795. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  11796. if \$ac_cs_recheck; then
  11797. set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  11798. shift
  11799. \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  11800. CONFIG_SHELL='$SHELL'
  11801. export CONFIG_SHELL
  11802. exec "\$@"
  11803. fi
  11804. _ACEOF
  11805. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  11806. exec 5>>config.log
  11807. {
  11808. echo
  11809. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  11810. ## Running $as_me. ##
  11811. _ASBOX
  11812. $as_echo "$ac_log"
  11813. } >&5
  11814. _ACEOF
  11815. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  11816. #
  11817. # INIT-COMMANDS
  11818. #
  11819. AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
  11820. # The HP-UX ksh and POSIX shell print the target directory to stdout
  11821. # if CDPATH is set.
  11822. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  11823. sed_quote_subst='$sed_quote_subst'
  11824. double_quote_subst='$double_quote_subst'
  11825. delay_variable_subst='$delay_variable_subst'
  11826. macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
  11827. macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
  11828. enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
  11829. enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
  11830. pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
  11831. enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
  11832. host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
  11833. host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
  11834. host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
  11835. build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
  11836. build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
  11837. build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
  11838. SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
  11839. Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
  11840. GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
  11841. EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
  11842. FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
  11843. LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
  11844. NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
  11845. LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
  11846. max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
  11847. ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
  11848. exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
  11849. lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
  11850. lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
  11851. lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
  11852. reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
  11853. reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  11854. OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
  11855. deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
  11856. file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
  11857. AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
  11858. AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
  11859. STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
  11860. RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
  11861. old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  11862. old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  11863. old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  11864. CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
  11865. CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
  11866. compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
  11867. GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
  11868. lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
  11869. lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
  11870. lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address" | $Xsed -e "$delay_single_quote_subst"`'
  11871. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
  11872. objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
  11873. SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
  11874. ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
  11875. MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
  11876. lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
  11877. lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
  11878. lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
  11879. lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
  11880. lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
  11881. need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
  11882. DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
  11883. NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
  11884. LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
  11885. OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
  11886. OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
  11887. libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
  11888. shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  11889. extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  11890. archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
  11891. enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
  11892. export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
  11893. whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
  11894. compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
  11895. old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  11896. old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  11897. archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  11898. archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  11899. module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  11900. module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  11901. with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
  11902. allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
  11903. no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
  11904. hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
  11905. hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
  11906. hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
  11907. hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
  11908. hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
  11909. hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
  11910. hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
  11911. hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
  11912. inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
  11913. link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
  11914. fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
  11915. always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
  11916. export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  11917. exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
  11918. include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
  11919. prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  11920. file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
  11921. variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
  11922. need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
  11923. need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
  11924. version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
  11925. runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
  11926. shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
  11927. shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
  11928. libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
  11929. library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
  11930. soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
  11931. postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  11932. postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  11933. finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  11934. finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
  11935. hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
  11936. sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
  11937. sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
  11938. hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
  11939. enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
  11940. enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
  11941. enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
  11942. old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
  11943. striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
  11944. LTCC='$LTCC'
  11945. LTCFLAGS='$LTCFLAGS'
  11946. compiler='$compiler_DEFAULT'
  11947. # Quote evaled strings.
  11948. for var in SED \
  11949. GREP \
  11950. EGREP \
  11951. FGREP \
  11952. LD \
  11953. NM \
  11954. LN_S \
  11955. lt_SP2NL \
  11956. lt_NL2SP \
  11957. reload_flag \
  11958. OBJDUMP \
  11959. deplibs_check_method \
  11960. file_magic_cmd \
  11961. AR \
  11962. AR_FLAGS \
  11963. STRIP \
  11964. RANLIB \
  11965. CC \
  11966. CFLAGS \
  11967. compiler \
  11968. lt_cv_sys_global_symbol_pipe \
  11969. lt_cv_sys_global_symbol_to_cdecl \
  11970. lt_cv_sys_global_symbol_to_c_name_address \
  11971. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
  11972. SHELL \
  11973. ECHO \
  11974. lt_prog_compiler_no_builtin_flag \
  11975. lt_prog_compiler_wl \
  11976. lt_prog_compiler_pic \
  11977. lt_prog_compiler_static \
  11978. lt_cv_prog_compiler_c_o \
  11979. need_locks \
  11980. DSYMUTIL \
  11981. NMEDIT \
  11982. LIPO \
  11983. OTOOL \
  11984. OTOOL64 \
  11985. shrext_cmds \
  11986. export_dynamic_flag_spec \
  11987. whole_archive_flag_spec \
  11988. compiler_needs_object \
  11989. with_gnu_ld \
  11990. allow_undefined_flag \
  11991. no_undefined_flag \
  11992. hardcode_libdir_flag_spec \
  11993. hardcode_libdir_flag_spec_ld \
  11994. hardcode_libdir_separator \
  11995. fix_srcfile_path \
  11996. exclude_expsyms \
  11997. include_expsyms \
  11998. file_list_spec \
  11999. variables_saved_for_relink \
  12000. libname_spec \
  12001. library_names_spec \
  12002. soname_spec \
  12003. finish_eval \
  12004. old_striplib \
  12005. striplib; do
  12006. case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
  12007. *[\\\\\\\`\\"\\\$]*)
  12008. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
  12009. ;;
  12010. *)
  12011. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  12012. ;;
  12013. esac
  12014. done
  12015. # Double-quote double-evaled strings.
  12016. for var in reload_cmds \
  12017. old_postinstall_cmds \
  12018. old_postuninstall_cmds \
  12019. old_archive_cmds \
  12020. extract_expsyms_cmds \
  12021. old_archive_from_new_cmds \
  12022. old_archive_from_expsyms_cmds \
  12023. archive_cmds \
  12024. archive_expsym_cmds \
  12025. module_cmds \
  12026. module_expsym_cmds \
  12027. export_symbols_cmds \
  12028. prelink_cmds \
  12029. postinstall_cmds \
  12030. postuninstall_cmds \
  12031. finish_cmds \
  12032. sys_lib_search_path_spec \
  12033. sys_lib_dlsearch_path_spec; do
  12034. case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
  12035. *[\\\\\\\`\\"\\\$]*)
  12036. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
  12037. ;;
  12038. *)
  12039. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  12040. ;;
  12041. esac
  12042. done
  12043. # Fix-up fallback echo if it was mangled by the above quoting rules.
  12044. case \$lt_ECHO in
  12045. *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
  12046. ;;
  12047. esac
  12048. ac_aux_dir='$ac_aux_dir'
  12049. xsi_shell='$xsi_shell'
  12050. lt_shell_append='$lt_shell_append'
  12051. # See if we are running on zsh, and set the options which allow our
  12052. # commands through without removal of \ escapes INIT.
  12053. if test -n "\${ZSH_VERSION+set}" ; then
  12054. setopt NO_GLOB_SUBST
  12055. fi
  12056. PACKAGE='$PACKAGE'
  12057. VERSION='$VERSION'
  12058. TIMESTAMP='$TIMESTAMP'
  12059. RM='$RM'
  12060. ofile='$ofile'
  12061. _ACEOF
  12062. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  12063. # Handling of arguments.
  12064. for ac_config_target in $ac_config_targets
  12065. do
  12066. case $ac_config_target in
  12067. "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
  12068. "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
  12069. "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
  12070. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  12071. "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
  12072. "magic/Makefile") CONFIG_FILES="$CONFIG_FILES magic/Makefile" ;;
  12073. "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
  12074. "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
  12075. "python/Makefile") CONFIG_FILES="$CONFIG_FILES python/Makefile" ;;
  12076. *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  12077. esac
  12078. done
  12079. # If the user did not use the arguments to specify the items to instantiate,
  12080. # then the envvar interface is used. Set only those that are not.
  12081. # We use the long form for the default assignment because of an extremely
  12082. # bizarre bug on SunOS 4.1.3.
  12083. if $ac_need_defaults; then
  12084. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  12085. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  12086. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  12087. fi
  12088. # Have a temporary directory for convenience. Make it in the build tree
  12089. # simply because there is no reason against having it here, and in addition,
  12090. # creating and moving files from /tmp can sometimes cause problems.
  12091. # Hook for its removal unless debugging.
  12092. # Note that there is a small window in which the directory will not be cleaned:
  12093. # after its creation but before its name has been assigned to `$tmp'.
  12094. $debug ||
  12095. {
  12096. tmp= ac_tmp=
  12097. trap 'exit_status=$?
  12098. : "${ac_tmp:=$tmp}"
  12099. { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
  12100. ' 0
  12101. trap 'as_fn_exit 1' 1 2 13 15
  12102. }
  12103. # Create a (secure) tmp directory for tmp files.
  12104. {
  12105. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  12106. test -d "$tmp"
  12107. } ||
  12108. {
  12109. tmp=./conf$$-$RANDOM
  12110. (umask 077 && mkdir "$tmp")
  12111. } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
  12112. ac_tmp=$tmp
  12113. # Set up the scripts for CONFIG_FILES section.
  12114. # No need to generate them if there are no CONFIG_FILES.
  12115. # This happens for instance with `./config.status config.h'.
  12116. if test -n "$CONFIG_FILES"; then
  12117. ac_cr=`echo X | tr X '\015'`
  12118. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  12119. # But we know of no other shell where ac_cr would be empty at this
  12120. # point, so we can use a bashism as a fallback.
  12121. if test "x$ac_cr" = x; then
  12122. eval ac_cr=\$\'\\r\'
  12123. fi
  12124. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  12125. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  12126. ac_cs_awk_cr='\\r'
  12127. else
  12128. ac_cs_awk_cr=$ac_cr
  12129. fi
  12130. echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
  12131. _ACEOF
  12132. {
  12133. echo "cat >conf$$subs.awk <<_ACEOF" &&
  12134. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  12135. echo "_ACEOF"
  12136. } >conf$$subs.sh ||
  12137. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  12138. ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
  12139. ac_delim='%!_!# '
  12140. for ac_last_try in false false false false false :; do
  12141. . ./conf$$subs.sh ||
  12142. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  12143. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  12144. if test $ac_delim_n = $ac_delim_num; then
  12145. break
  12146. elif $ac_last_try; then
  12147. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  12148. else
  12149. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  12150. fi
  12151. done
  12152. rm -f conf$$subs.sh
  12153. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  12154. cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
  12155. _ACEOF
  12156. sed -n '
  12157. h
  12158. s/^/S["/; s/!.*/"]=/
  12159. p
  12160. g
  12161. s/^[^!]*!//
  12162. :repl
  12163. t repl
  12164. s/'"$ac_delim"'$//
  12165. t delim
  12166. :nl
  12167. h
  12168. s/\(.\{148\}\)..*/\1/
  12169. t more1
  12170. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  12171. p
  12172. n
  12173. b repl
  12174. :more1
  12175. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  12176. p
  12177. g
  12178. s/.\{148\}//
  12179. t nl
  12180. :delim
  12181. h
  12182. s/\(.\{148\}\)..*/\1/
  12183. t more2
  12184. s/["\\]/\\&/g; s/^/"/; s/$/"/
  12185. p
  12186. b
  12187. :more2
  12188. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  12189. p
  12190. g
  12191. s/.\{148\}//
  12192. t delim
  12193. ' <conf$$subs.awk | sed '
  12194. /^[^""]/{
  12195. N
  12196. s/\n//
  12197. }
  12198. ' >>$CONFIG_STATUS || ac_write_fail=1
  12199. rm -f conf$$subs.awk
  12200. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  12201. _ACAWK
  12202. cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
  12203. for (key in S) S_is_set[key] = 1
  12204. FS = ""
  12205. }
  12206. {
  12207. line = $ 0
  12208. nfields = split(line, field, "@")
  12209. substed = 0
  12210. len = length(field[1])
  12211. for (i = 2; i < nfields; i++) {
  12212. key = field[i]
  12213. keylen = length(key)
  12214. if (S_is_set[key]) {
  12215. value = S[key]
  12216. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  12217. len += length(value) + length(field[++i])
  12218. substed = 1
  12219. } else
  12220. len += 1 + keylen
  12221. }
  12222. print line
  12223. }
  12224. _ACAWK
  12225. _ACEOF
  12226. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  12227. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  12228. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  12229. else
  12230. cat
  12231. fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
  12232. || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
  12233. _ACEOF
  12234. # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
  12235. # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
  12236. # trailing colons and then remove the whole line if VPATH becomes empty
  12237. # (actually we leave an empty line to preserve line numbers).
  12238. if test "x$srcdir" = x.; then
  12239. ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
  12240. h
  12241. s///
  12242. s/^/:/
  12243. s/[ ]*$/:/
  12244. s/:\$(srcdir):/:/g
  12245. s/:\${srcdir}:/:/g
  12246. s/:@srcdir@:/:/g
  12247. s/^:*//
  12248. s/:*$//
  12249. x
  12250. s/\(=[ ]*\).*/\1/
  12251. G
  12252. s/\n//
  12253. s/^[^=]*=[ ]*$//
  12254. }'
  12255. fi
  12256. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  12257. fi # test -n "$CONFIG_FILES"
  12258. # Set up the scripts for CONFIG_HEADERS section.
  12259. # No need to generate them if there are no CONFIG_HEADERS.
  12260. # This happens for instance with `./config.status Makefile'.
  12261. if test -n "$CONFIG_HEADERS"; then
  12262. cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
  12263. BEGIN {
  12264. _ACEOF
  12265. # Transform confdefs.h into an awk script `defines.awk', embedded as
  12266. # here-document in config.status, that substitutes the proper values into
  12267. # config.h.in to produce config.h.
  12268. # Create a delimiter string that does not exist in confdefs.h, to ease
  12269. # handling of long lines.
  12270. ac_delim='%!_!# '
  12271. for ac_last_try in false false :; do
  12272. ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
  12273. if test -z "$ac_tt"; then
  12274. break
  12275. elif $ac_last_try; then
  12276. as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
  12277. else
  12278. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  12279. fi
  12280. done
  12281. # For the awk script, D is an array of macro values keyed by name,
  12282. # likewise P contains macro parameters if any. Preserve backslash
  12283. # newline sequences.
  12284. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  12285. sed -n '
  12286. s/.\{148\}/&'"$ac_delim"'/g
  12287. t rset
  12288. :rset
  12289. s/^[ ]*#[ ]*define[ ][ ]*/ /
  12290. t def
  12291. d
  12292. :def
  12293. s/\\$//
  12294. t bsnl
  12295. s/["\\]/\\&/g
  12296. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  12297. D["\1"]=" \3"/p
  12298. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  12299. d
  12300. :bsnl
  12301. s/["\\]/\\&/g
  12302. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  12303. D["\1"]=" \3\\\\\\n"\\/p
  12304. t cont
  12305. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  12306. t cont
  12307. d
  12308. :cont
  12309. n
  12310. s/.\{148\}/&'"$ac_delim"'/g
  12311. t clear
  12312. :clear
  12313. s/\\$//
  12314. t bsnlc
  12315. s/["\\]/\\&/g; s/^/"/; s/$/"/p
  12316. d
  12317. :bsnlc
  12318. s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  12319. b cont
  12320. ' <confdefs.h | sed '
  12321. s/'"$ac_delim"'/"\\\
  12322. "/g' >>$CONFIG_STATUS || ac_write_fail=1
  12323. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  12324. for (key in D) D_is_set[key] = 1
  12325. FS = ""
  12326. }
  12327. /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  12328. line = \$ 0
  12329. split(line, arg, " ")
  12330. if (arg[1] == "#") {
  12331. defundef = arg[2]
  12332. mac1 = arg[3]
  12333. } else {
  12334. defundef = substr(arg[1], 2)
  12335. mac1 = arg[2]
  12336. }
  12337. split(mac1, mac2, "(") #)
  12338. macro = mac2[1]
  12339. prefix = substr(line, 1, index(line, defundef) - 1)
  12340. if (D_is_set[macro]) {
  12341. # Preserve the white space surrounding the "#".
  12342. print prefix "define", macro P[macro] D[macro]
  12343. next
  12344. } else {
  12345. # Replace #undef with comments. This is necessary, for example,
  12346. # in the case of _POSIX_SOURCE, which is predefined and required
  12347. # on some systems where configure will not decide to define it.
  12348. if (defundef == "undef") {
  12349. print "/*", prefix defundef, macro, "*/"
  12350. next
  12351. }
  12352. }
  12353. }
  12354. { print }
  12355. _ACAWK
  12356. _ACEOF
  12357. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  12358. as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
  12359. fi # test -n "$CONFIG_HEADERS"
  12360. eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
  12361. shift
  12362. for ac_tag
  12363. do
  12364. case $ac_tag in
  12365. :[FHLC]) ac_mode=$ac_tag; continue;;
  12366. esac
  12367. case $ac_mode$ac_tag in
  12368. :[FHL]*:*);;
  12369. :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
  12370. :[FH]-) ac_tag=-:-;;
  12371. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  12372. esac
  12373. ac_save_IFS=$IFS
  12374. IFS=:
  12375. set x $ac_tag
  12376. IFS=$ac_save_IFS
  12377. shift
  12378. ac_file=$1
  12379. shift
  12380. case $ac_mode in
  12381. :L) ac_source=$1;;
  12382. :[FH])
  12383. ac_file_inputs=
  12384. for ac_f
  12385. do
  12386. case $ac_f in
  12387. -) ac_f="$ac_tmp/stdin";;
  12388. *) # Look for the file first in the build tree, then in the source tree
  12389. # (if the path is not absolute). The absolute path cannot be DOS-style,
  12390. # because $ac_f cannot contain `:'.
  12391. test -f "$ac_f" ||
  12392. case $ac_f in
  12393. [\\/$]*) false;;
  12394. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  12395. esac ||
  12396. as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  12397. esac
  12398. case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  12399. as_fn_append ac_file_inputs " '$ac_f'"
  12400. done
  12401. # Let's still pretend it is `configure' which instantiates (i.e., don't
  12402. # use $as_me), people would be surprised to read:
  12403. # /* config.h. Generated by config.status. */
  12404. configure_input='Generated from '`
  12405. $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  12406. `' by configure.'
  12407. if test x"$ac_file" != x-; then
  12408. configure_input="$ac_file. $configure_input"
  12409. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  12410. $as_echo "$as_me: creating $ac_file" >&6;}
  12411. fi
  12412. # Neutralize special characters interpreted by sed in replacement strings.
  12413. case $configure_input in #(
  12414. *\&* | *\|* | *\\* )
  12415. ac_sed_conf_input=`$as_echo "$configure_input" |
  12416. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  12417. *) ac_sed_conf_input=$configure_input;;
  12418. esac
  12419. case $ac_tag in
  12420. *:-:* | *:-) cat >"$ac_tmp/stdin" \
  12421. || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
  12422. esac
  12423. ;;
  12424. esac
  12425. ac_dir=`$as_dirname -- "$ac_file" ||
  12426. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  12427. X"$ac_file" : 'X\(//\)[^/]' \| \
  12428. X"$ac_file" : 'X\(//\)$' \| \
  12429. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  12430. $as_echo X"$ac_file" |
  12431. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  12432. s//\1/
  12433. q
  12434. }
  12435. /^X\(\/\/\)[^/].*/{
  12436. s//\1/
  12437. q
  12438. }
  12439. /^X\(\/\/\)$/{
  12440. s//\1/
  12441. q
  12442. }
  12443. /^X\(\/\).*/{
  12444. s//\1/
  12445. q
  12446. }
  12447. s/.*/./; q'`
  12448. as_dir="$ac_dir"; as_fn_mkdir_p
  12449. ac_builddir=.
  12450. case "$ac_dir" in
  12451. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  12452. *)
  12453. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  12454. # A ".." for each directory in $ac_dir_suffix.
  12455. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  12456. case $ac_top_builddir_sub in
  12457. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  12458. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  12459. esac ;;
  12460. esac
  12461. ac_abs_top_builddir=$ac_pwd
  12462. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  12463. # for backward compatibility:
  12464. ac_top_builddir=$ac_top_build_prefix
  12465. case $srcdir in
  12466. .) # We are building in place.
  12467. ac_srcdir=.
  12468. ac_top_srcdir=$ac_top_builddir_sub
  12469. ac_abs_top_srcdir=$ac_pwd ;;
  12470. [\\/]* | ?:[\\/]* ) # Absolute name.
  12471. ac_srcdir=$srcdir$ac_dir_suffix;
  12472. ac_top_srcdir=$srcdir
  12473. ac_abs_top_srcdir=$srcdir ;;
  12474. *) # Relative name.
  12475. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  12476. ac_top_srcdir=$ac_top_build_prefix$srcdir
  12477. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  12478. esac
  12479. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  12480. case $ac_mode in
  12481. :F)
  12482. #
  12483. # CONFIG_FILE
  12484. #
  12485. case $INSTALL in
  12486. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  12487. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  12488. esac
  12489. ac_MKDIR_P=$MKDIR_P
  12490. case $MKDIR_P in
  12491. [\\/$]* | ?:[\\/]* ) ;;
  12492. */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
  12493. esac
  12494. _ACEOF
  12495. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  12496. # If the template does not know about datarootdir, expand it.
  12497. # FIXME: This hack should be removed a few years after 2.60.
  12498. ac_datarootdir_hack=; ac_datarootdir_seen=
  12499. ac_sed_dataroot='
  12500. /datarootdir/ {
  12501. p
  12502. q
  12503. }
  12504. /@datadir@/p
  12505. /@docdir@/p
  12506. /@infodir@/p
  12507. /@localedir@/p
  12508. /@mandir@/p'
  12509. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  12510. *datarootdir*) ac_datarootdir_seen=yes;;
  12511. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  12512. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  12513. $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  12514. _ACEOF
  12515. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  12516. ac_datarootdir_hack='
  12517. s&@datadir@&$datadir&g
  12518. s&@docdir@&$docdir&g
  12519. s&@infodir@&$infodir&g
  12520. s&@localedir@&$localedir&g
  12521. s&@mandir@&$mandir&g
  12522. s&\\\${datarootdir}&$datarootdir&g' ;;
  12523. esac
  12524. _ACEOF
  12525. # Neutralize VPATH when `$srcdir' = `.'.
  12526. # Shell code in configure.ac might set extrasub.
  12527. # FIXME: do we really want to maintain this feature?
  12528. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  12529. ac_sed_extra="$ac_vpsub
  12530. $extrasub
  12531. _ACEOF
  12532. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  12533. :t
  12534. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  12535. s|@configure_input@|$ac_sed_conf_input|;t t
  12536. s&@top_builddir@&$ac_top_builddir_sub&;t t
  12537. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  12538. s&@srcdir@&$ac_srcdir&;t t
  12539. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  12540. s&@top_srcdir@&$ac_top_srcdir&;t t
  12541. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  12542. s&@builddir@&$ac_builddir&;t t
  12543. s&@abs_builddir@&$ac_abs_builddir&;t t
  12544. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  12545. s&@INSTALL@&$ac_INSTALL&;t t
  12546. s&@MKDIR_P@&$ac_MKDIR_P&;t t
  12547. $ac_datarootdir_hack
  12548. "
  12549. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
  12550. >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  12551. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  12552. { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
  12553. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
  12554. "$ac_tmp/out"`; test -z "$ac_out"; } &&
  12555. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  12556. which seems to be undefined. Please make sure it is defined" >&5
  12557. $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  12558. which seems to be undefined. Please make sure it is defined" >&2;}
  12559. rm -f "$ac_tmp/stdin"
  12560. case $ac_file in
  12561. -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
  12562. *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
  12563. esac \
  12564. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  12565. ;;
  12566. :H)
  12567. #
  12568. # CONFIG_HEADER
  12569. #
  12570. if test x"$ac_file" != x-; then
  12571. {
  12572. $as_echo "/* $configure_input */" \
  12573. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
  12574. } >"$ac_tmp/config.h" \
  12575. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  12576. if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
  12577. { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
  12578. $as_echo "$as_me: $ac_file is unchanged" >&6;}
  12579. else
  12580. rm -f "$ac_file"
  12581. mv "$ac_tmp/config.h" "$ac_file" \
  12582. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  12583. fi
  12584. else
  12585. $as_echo "/* $configure_input */" \
  12586. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
  12587. || as_fn_error $? "could not create -" "$LINENO" 5
  12588. fi
  12589. # Compute "$ac_file"'s index in $config_headers.
  12590. _am_arg="$ac_file"
  12591. _am_stamp_count=1
  12592. for _am_header in $config_headers :; do
  12593. case $_am_header in
  12594. $_am_arg | $_am_arg:* )
  12595. break ;;
  12596. * )
  12597. _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  12598. esac
  12599. done
  12600. echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
  12601. $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  12602. X"$_am_arg" : 'X\(//\)[^/]' \| \
  12603. X"$_am_arg" : 'X\(//\)$' \| \
  12604. X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
  12605. $as_echo X"$_am_arg" |
  12606. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  12607. s//\1/
  12608. q
  12609. }
  12610. /^X\(\/\/\)[^/].*/{
  12611. s//\1/
  12612. q
  12613. }
  12614. /^X\(\/\/\)$/{
  12615. s//\1/
  12616. q
  12617. }
  12618. /^X\(\/\).*/{
  12619. s//\1/
  12620. q
  12621. }
  12622. s/.*/./; q'`/stamp-h$_am_stamp_count
  12623. ;;
  12624. :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
  12625. $as_echo "$as_me: executing $ac_file commands" >&6;}
  12626. ;;
  12627. esac
  12628. case $ac_file$ac_mode in
  12629. "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
  12630. # Autoconf 2.62 quotes --file arguments for eval, but not when files
  12631. # are listed without --file. Let's play safe and only enable the eval
  12632. # if we detect the quoting.
  12633. case $CONFIG_FILES in
  12634. *\'*) eval set x "$CONFIG_FILES" ;;
  12635. *) set x $CONFIG_FILES ;;
  12636. esac
  12637. shift
  12638. for mf
  12639. do
  12640. # Strip MF so we end up with the name of the file.
  12641. mf=`echo "$mf" | sed -e 's/:.*$//'`
  12642. # Check whether this is an Automake generated Makefile or not.
  12643. # We used to match only the files named `Makefile.in', but
  12644. # some people rename them; so instead we look at the file content.
  12645. # Grep'ing the first line is not enough: some people post-process
  12646. # each Makefile.in and add a new line on top of each file to say so.
  12647. # Grep'ing the whole file is not good either: AIX grep has a line
  12648. # limit of 2048, but all sed's we know have understand at least 4000.
  12649. if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
  12650. dirpart=`$as_dirname -- "$mf" ||
  12651. $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  12652. X"$mf" : 'X\(//\)[^/]' \| \
  12653. X"$mf" : 'X\(//\)$' \| \
  12654. X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
  12655. $as_echo X"$mf" |
  12656. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  12657. s//\1/
  12658. q
  12659. }
  12660. /^X\(\/\/\)[^/].*/{
  12661. s//\1/
  12662. q
  12663. }
  12664. /^X\(\/\/\)$/{
  12665. s//\1/
  12666. q
  12667. }
  12668. /^X\(\/\).*/{
  12669. s//\1/
  12670. q
  12671. }
  12672. s/.*/./; q'`
  12673. else
  12674. continue
  12675. fi
  12676. # Extract the definition of DEPDIR, am__include, and am__quote
  12677. # from the Makefile without running `make'.
  12678. DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  12679. test -z "$DEPDIR" && continue
  12680. am__include=`sed -n 's/^am__include = //p' < "$mf"`
  12681. test -z "am__include" && continue
  12682. am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
  12683. # When using ansi2knr, U may be empty or an underscore; expand it
  12684. U=`sed -n 's/^U = //p' < "$mf"`
  12685. # Find all dependency output files, they are included files with
  12686. # $(DEPDIR) in their names. We invoke sed twice because it is the
  12687. # simplest approach to changing $(DEPDIR) to its actual value in the
  12688. # expansion.
  12689. for file in `sed -n "
  12690. s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
  12691. sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
  12692. # Make sure the directory exists.
  12693. test -f "$dirpart/$file" && continue
  12694. fdir=`$as_dirname -- "$file" ||
  12695. $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  12696. X"$file" : 'X\(//\)[^/]' \| \
  12697. X"$file" : 'X\(//\)$' \| \
  12698. X"$file" : 'X\(/\)' \| . 2>/dev/null ||
  12699. $as_echo X"$file" |
  12700. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  12701. s//\1/
  12702. q
  12703. }
  12704. /^X\(\/\/\)[^/].*/{
  12705. s//\1/
  12706. q
  12707. }
  12708. /^X\(\/\/\)$/{
  12709. s//\1/
  12710. q
  12711. }
  12712. /^X\(\/\).*/{
  12713. s//\1/
  12714. q
  12715. }
  12716. s/.*/./; q'`
  12717. as_dir=$dirpart/$fdir; as_fn_mkdir_p
  12718. # echo "creating $dirpart/$file"
  12719. echo '# dummy' > "$dirpart/$file"
  12720. done
  12721. done
  12722. }
  12723. ;;
  12724. "libtool":C)
  12725. # See if we are running on zsh, and set the options which allow our
  12726. # commands through without removal of \ escapes.
  12727. if test -n "${ZSH_VERSION+set}" ; then
  12728. setopt NO_GLOB_SUBST
  12729. fi
  12730. cfgfile="${ofile}T"
  12731. trap "$RM \"$cfgfile\"; exit 1" 1 2 15
  12732. $RM "$cfgfile"
  12733. cat <<_LT_EOF >> "$cfgfile"
  12734. #! $SHELL
  12735. # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
  12736. # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
  12737. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  12738. # NOTE: Changes made to this file will be lost: look at ltmain.sh.
  12739. #
  12740. # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
  12741. # 2006, 2007, 2008 Free Software Foundation, Inc.
  12742. # Written by Gordon Matzigkeit, 1996
  12743. #
  12744. # This file is part of GNU Libtool.
  12745. #
  12746. # GNU Libtool is free software; you can redistribute it and/or
  12747. # modify it under the terms of the GNU General Public License as
  12748. # published by the Free Software Foundation; either version 2 of
  12749. # the License, or (at your option) any later version.
  12750. #
  12751. # As a special exception to the GNU General Public License,
  12752. # if you distribute this file as part of a program or library that
  12753. # is built using GNU Libtool, you may include this file under the
  12754. # same distribution terms that you use for the rest of that program.
  12755. #
  12756. # GNU Libtool is distributed in the hope that it will be useful,
  12757. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  12758. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  12759. # GNU General Public License for more details.
  12760. #
  12761. # You should have received a copy of the GNU General Public License
  12762. # along with GNU Libtool; see the file COPYING. If not, a copy
  12763. # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
  12764. # obtained by writing to the Free Software Foundation, Inc.,
  12765. # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  12766. # The names of the tagged configurations supported by this script.
  12767. available_tags=""
  12768. # ### BEGIN LIBTOOL CONFIG
  12769. # Which release of libtool.m4 was used?
  12770. macro_version=$macro_version
  12771. macro_revision=$macro_revision
  12772. # Whether or not to build shared libraries.
  12773. build_libtool_libs=$enable_shared
  12774. # Whether or not to build static libraries.
  12775. build_old_libs=$enable_static
  12776. # What type of objects to build.
  12777. pic_mode=$pic_mode
  12778. # Whether or not to optimize for fast installation.
  12779. fast_install=$enable_fast_install
  12780. # The host system.
  12781. host_alias=$host_alias
  12782. host=$host
  12783. host_os=$host_os
  12784. # The build system.
  12785. build_alias=$build_alias
  12786. build=$build
  12787. build_os=$build_os
  12788. # A sed program that does not truncate output.
  12789. SED=$lt_SED
  12790. # Sed that helps us avoid accidentally triggering echo(1) options like -n.
  12791. Xsed="\$SED -e 1s/^X//"
  12792. # A grep program that handles long lines.
  12793. GREP=$lt_GREP
  12794. # An ERE matcher.
  12795. EGREP=$lt_EGREP
  12796. # A literal string matcher.
  12797. FGREP=$lt_FGREP
  12798. # A BSD- or MS-compatible name lister.
  12799. NM=$lt_NM
  12800. # Whether we need soft or hard links.
  12801. LN_S=$lt_LN_S
  12802. # What is the maximum length of a command?
  12803. max_cmd_len=$max_cmd_len
  12804. # Object file suffix (normally "o").
  12805. objext=$ac_objext
  12806. # Executable file suffix (normally "").
  12807. exeext=$exeext
  12808. # whether the shell understands "unset".
  12809. lt_unset=$lt_unset
  12810. # turn spaces into newlines.
  12811. SP2NL=$lt_lt_SP2NL
  12812. # turn newlines into spaces.
  12813. NL2SP=$lt_lt_NL2SP
  12814. # How to create reloadable object files.
  12815. reload_flag=$lt_reload_flag
  12816. reload_cmds=$lt_reload_cmds
  12817. # An object symbol dumper.
  12818. OBJDUMP=$lt_OBJDUMP
  12819. # Method to check whether dependent libraries are shared objects.
  12820. deplibs_check_method=$lt_deplibs_check_method
  12821. # Command to use when deplibs_check_method == "file_magic".
  12822. file_magic_cmd=$lt_file_magic_cmd
  12823. # The archiver.
  12824. AR=$lt_AR
  12825. AR_FLAGS=$lt_AR_FLAGS
  12826. # A symbol stripping program.
  12827. STRIP=$lt_STRIP
  12828. # Commands used to install an old-style archive.
  12829. RANLIB=$lt_RANLIB
  12830. old_postinstall_cmds=$lt_old_postinstall_cmds
  12831. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  12832. # A C compiler.
  12833. LTCC=$lt_CC
  12834. # LTCC compiler flags.
  12835. LTCFLAGS=$lt_CFLAGS
  12836. # Take the output of nm and produce a listing of raw symbols and C names.
  12837. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  12838. # Transform the output of nm in a proper C declaration.
  12839. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  12840. # Transform the output of nm in a C name address pair.
  12841. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  12842. # Transform the output of nm in a C name address pair when lib prefix is needed.
  12843. global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
  12844. # The name of the directory that contains temporary libtool files.
  12845. objdir=$objdir
  12846. # Shell to use when invoking shell scripts.
  12847. SHELL=$lt_SHELL
  12848. # An echo program that does not interpret backslashes.
  12849. ECHO=$lt_ECHO
  12850. # Used to examine libraries when file_magic_cmd begins with "file".
  12851. MAGIC_CMD=$MAGIC_CMD
  12852. # Must we lock files when doing compilation?
  12853. need_locks=$lt_need_locks
  12854. # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
  12855. DSYMUTIL=$lt_DSYMUTIL
  12856. # Tool to change global to local symbols on Mac OS X.
  12857. NMEDIT=$lt_NMEDIT
  12858. # Tool to manipulate fat objects and archives on Mac OS X.
  12859. LIPO=$lt_LIPO
  12860. # ldd/readelf like tool for Mach-O binaries on Mac OS X.
  12861. OTOOL=$lt_OTOOL
  12862. # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
  12863. OTOOL64=$lt_OTOOL64
  12864. # Old archive suffix (normally "a").
  12865. libext=$libext
  12866. # Shared library suffix (normally ".so").
  12867. shrext_cmds=$lt_shrext_cmds
  12868. # The commands to extract the exported symbol list from a shared archive.
  12869. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  12870. # Variables whose values should be saved in libtool wrapper scripts and
  12871. # restored at link time.
  12872. variables_saved_for_relink=$lt_variables_saved_for_relink
  12873. # Do we need the "lib" prefix for modules?
  12874. need_lib_prefix=$need_lib_prefix
  12875. # Do we need a version for libraries?
  12876. need_version=$need_version
  12877. # Library versioning type.
  12878. version_type=$version_type
  12879. # Shared library runtime path variable.
  12880. runpath_var=$runpath_var
  12881. # Shared library path variable.
  12882. shlibpath_var=$shlibpath_var
  12883. # Is shlibpath searched before the hard-coded library search path?
  12884. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  12885. # Format of library name prefix.
  12886. libname_spec=$lt_libname_spec
  12887. # List of archive names. First name is the real one, the rest are links.
  12888. # The last name is the one that the linker finds with -lNAME
  12889. library_names_spec=$lt_library_names_spec
  12890. # The coded name of the library, if different from the real name.
  12891. soname_spec=$lt_soname_spec
  12892. # Command to use after installation of a shared archive.
  12893. postinstall_cmds=$lt_postinstall_cmds
  12894. # Command to use after uninstallation of a shared archive.
  12895. postuninstall_cmds=$lt_postuninstall_cmds
  12896. # Commands used to finish a libtool library installation in a directory.
  12897. finish_cmds=$lt_finish_cmds
  12898. # As "finish_cmds", except a single script fragment to be evaled but
  12899. # not shown.
  12900. finish_eval=$lt_finish_eval
  12901. # Whether we should hardcode library paths into libraries.
  12902. hardcode_into_libs=$hardcode_into_libs
  12903. # Compile-time system search path for libraries.
  12904. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  12905. # Run-time system search path for libraries.
  12906. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  12907. # Whether dlopen is supported.
  12908. dlopen_support=$enable_dlopen
  12909. # Whether dlopen of programs is supported.
  12910. dlopen_self=$enable_dlopen_self
  12911. # Whether dlopen of statically linked programs is supported.
  12912. dlopen_self_static=$enable_dlopen_self_static
  12913. # Commands to strip libraries.
  12914. old_striplib=$lt_old_striplib
  12915. striplib=$lt_striplib
  12916. # The linker used to build libraries.
  12917. LD=$lt_LD
  12918. # Commands used to build an old-style archive.
  12919. old_archive_cmds=$lt_old_archive_cmds
  12920. # A language specific compiler.
  12921. CC=$lt_compiler
  12922. # Is the compiler the GNU compiler?
  12923. with_gcc=$GCC
  12924. # Compiler flag to turn off builtin functions.
  12925. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  12926. # How to pass a linker flag through the compiler.
  12927. wl=$lt_lt_prog_compiler_wl
  12928. # Additional compiler flags for building library objects.
  12929. pic_flag=$lt_lt_prog_compiler_pic
  12930. # Compiler flag to prevent dynamic linking.
  12931. link_static_flag=$lt_lt_prog_compiler_static
  12932. # Does compiler simultaneously support -c and -o options?
  12933. compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  12934. # Whether or not to add -lc for building shared libraries.
  12935. build_libtool_need_lc=$archive_cmds_need_lc
  12936. # Whether or not to disallow shared libs when runtime libs are static.
  12937. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  12938. # Compiler flag to allow reflexive dlopens.
  12939. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  12940. # Compiler flag to generate shared objects directly from archives.
  12941. whole_archive_flag_spec=$lt_whole_archive_flag_spec
  12942. # Whether the compiler copes with passing no objects directly.
  12943. compiler_needs_object=$lt_compiler_needs_object
  12944. # Create an old-style archive from a shared archive.
  12945. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  12946. # Create a temporary old-style archive to link instead of a shared archive.
  12947. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  12948. # Commands used to build a shared archive.
  12949. archive_cmds=$lt_archive_cmds
  12950. archive_expsym_cmds=$lt_archive_expsym_cmds
  12951. # Commands used to build a loadable module if different from building
  12952. # a shared archive.
  12953. module_cmds=$lt_module_cmds
  12954. module_expsym_cmds=$lt_module_expsym_cmds
  12955. # Whether we are building with GNU ld or not.
  12956. with_gnu_ld=$lt_with_gnu_ld
  12957. # Flag that allows shared libraries with undefined symbols to be built.
  12958. allow_undefined_flag=$lt_allow_undefined_flag
  12959. # Flag that enforces no undefined symbols.
  12960. no_undefined_flag=$lt_no_undefined_flag
  12961. # Flag to hardcode \$libdir into a binary during linking.
  12962. # This must work even if \$libdir does not exist
  12963. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  12964. # If ld is used when linking, flag to hardcode \$libdir into a binary
  12965. # during linking. This must work even if \$libdir does not exist.
  12966. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
  12967. # Whether we need a single "-rpath" flag with a separated argument.
  12968. hardcode_libdir_separator=$lt_hardcode_libdir_separator
  12969. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  12970. # DIR into the resulting binary.
  12971. hardcode_direct=$hardcode_direct
  12972. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  12973. # DIR into the resulting binary and the resulting library dependency is
  12974. # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
  12975. # library is relocated.
  12976. hardcode_direct_absolute=$hardcode_direct_absolute
  12977. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  12978. # into the resulting binary.
  12979. hardcode_minus_L=$hardcode_minus_L
  12980. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  12981. # into the resulting binary.
  12982. hardcode_shlibpath_var=$hardcode_shlibpath_var
  12983. # Set to "yes" if building a shared library automatically hardcodes DIR
  12984. # into the library and all subsequent libraries and executables linked
  12985. # against it.
  12986. hardcode_automatic=$hardcode_automatic
  12987. # Set to yes if linker adds runtime paths of dependent libraries
  12988. # to runtime path list.
  12989. inherit_rpath=$inherit_rpath
  12990. # Whether libtool must link a program against all its dependency libraries.
  12991. link_all_deplibs=$link_all_deplibs
  12992. # Fix the shell variable \$srcfile for the compiler.
  12993. fix_srcfile_path=$lt_fix_srcfile_path
  12994. # Set to "yes" if exported symbols are required.
  12995. always_export_symbols=$always_export_symbols
  12996. # The commands to list exported symbols.
  12997. export_symbols_cmds=$lt_export_symbols_cmds
  12998. # Symbols that should not be listed in the preloaded symbols.
  12999. exclude_expsyms=$lt_exclude_expsyms
  13000. # Symbols that must always be exported.
  13001. include_expsyms=$lt_include_expsyms
  13002. # Commands necessary for linking programs (against libraries) with templates.
  13003. prelink_cmds=$lt_prelink_cmds
  13004. # Specify filename containing input files.
  13005. file_list_spec=$lt_file_list_spec
  13006. # How to hardcode a shared library path into an executable.
  13007. hardcode_action=$hardcode_action
  13008. # ### END LIBTOOL CONFIG
  13009. _LT_EOF
  13010. case $host_os in
  13011. aix3*)
  13012. cat <<\_LT_EOF >> "$cfgfile"
  13013. # AIX sometimes has problems with the GCC collect2 program. For some
  13014. # reason, if we set the COLLECT_NAMES environment variable, the problems
  13015. # vanish in a puff of smoke.
  13016. if test "X${COLLECT_NAMES+set}" != Xset; then
  13017. COLLECT_NAMES=
  13018. export COLLECT_NAMES
  13019. fi
  13020. _LT_EOF
  13021. ;;
  13022. esac
  13023. ltmain="$ac_aux_dir/ltmain.sh"
  13024. # We use sed instead of cat because bash on DJGPP gets confused if
  13025. # if finds mixed CR/LF and LF-only lines. Since sed operates in
  13026. # text mode, it properly converts lines to CR/LF. This bash problem
  13027. # is reportedly fixed, but why not run on old versions too?
  13028. sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
  13029. || (rm -f "$cfgfile"; exit 1)
  13030. case $xsi_shell in
  13031. yes)
  13032. cat << \_LT_EOF >> "$cfgfile"
  13033. # func_dirname file append nondir_replacement
  13034. # Compute the dirname of FILE. If nonempty, add APPEND to the result,
  13035. # otherwise set result to NONDIR_REPLACEMENT.
  13036. func_dirname ()
  13037. {
  13038. case ${1} in
  13039. */*) func_dirname_result="${1%/*}${2}" ;;
  13040. * ) func_dirname_result="${3}" ;;
  13041. esac
  13042. }
  13043. # func_basename file
  13044. func_basename ()
  13045. {
  13046. func_basename_result="${1##*/}"
  13047. }
  13048. # func_dirname_and_basename file append nondir_replacement
  13049. # perform func_basename and func_dirname in a single function
  13050. # call:
  13051. # dirname: Compute the dirname of FILE. If nonempty,
  13052. # add APPEND to the result, otherwise set result
  13053. # to NONDIR_REPLACEMENT.
  13054. # value returned in "$func_dirname_result"
  13055. # basename: Compute filename of FILE.
  13056. # value retuned in "$func_basename_result"
  13057. # Implementation must be kept synchronized with func_dirname
  13058. # and func_basename. For efficiency, we do not delegate to
  13059. # those functions but instead duplicate the functionality here.
  13060. func_dirname_and_basename ()
  13061. {
  13062. case ${1} in
  13063. */*) func_dirname_result="${1%/*}${2}" ;;
  13064. * ) func_dirname_result="${3}" ;;
  13065. esac
  13066. func_basename_result="${1##*/}"
  13067. }
  13068. # func_stripname prefix suffix name
  13069. # strip PREFIX and SUFFIX off of NAME.
  13070. # PREFIX and SUFFIX must not contain globbing or regex special
  13071. # characters, hashes, percent signs, but SUFFIX may contain a leading
  13072. # dot (in which case that matches only a dot).
  13073. func_stripname ()
  13074. {
  13075. # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
  13076. # positional parameters, so assign one to ordinary parameter first.
  13077. func_stripname_result=${3}
  13078. func_stripname_result=${func_stripname_result#"${1}"}
  13079. func_stripname_result=${func_stripname_result%"${2}"}
  13080. }
  13081. # func_opt_split
  13082. func_opt_split ()
  13083. {
  13084. func_opt_split_opt=${1%%=*}
  13085. func_opt_split_arg=${1#*=}
  13086. }
  13087. # func_lo2o object
  13088. func_lo2o ()
  13089. {
  13090. case ${1} in
  13091. *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
  13092. *) func_lo2o_result=${1} ;;
  13093. esac
  13094. }
  13095. # func_xform libobj-or-source
  13096. func_xform ()
  13097. {
  13098. func_xform_result=${1%.*}.lo
  13099. }
  13100. # func_arith arithmetic-term...
  13101. func_arith ()
  13102. {
  13103. func_arith_result=$(( $* ))
  13104. }
  13105. # func_len string
  13106. # STRING may not start with a hyphen.
  13107. func_len ()
  13108. {
  13109. func_len_result=${#1}
  13110. }
  13111. _LT_EOF
  13112. ;;
  13113. *) # Bourne compatible functions.
  13114. cat << \_LT_EOF >> "$cfgfile"
  13115. # func_dirname file append nondir_replacement
  13116. # Compute the dirname of FILE. If nonempty, add APPEND to the result,
  13117. # otherwise set result to NONDIR_REPLACEMENT.
  13118. func_dirname ()
  13119. {
  13120. # Extract subdirectory from the argument.
  13121. func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
  13122. if test "X$func_dirname_result" = "X${1}"; then
  13123. func_dirname_result="${3}"
  13124. else
  13125. func_dirname_result="$func_dirname_result${2}"
  13126. fi
  13127. }
  13128. # func_basename file
  13129. func_basename ()
  13130. {
  13131. func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
  13132. }
  13133. # func_stripname prefix suffix name
  13134. # strip PREFIX and SUFFIX off of NAME.
  13135. # PREFIX and SUFFIX must not contain globbing or regex special
  13136. # characters, hashes, percent signs, but SUFFIX may contain a leading
  13137. # dot (in which case that matches only a dot).
  13138. # func_strip_suffix prefix name
  13139. func_stripname ()
  13140. {
  13141. case ${2} in
  13142. .*) func_stripname_result=`$ECHO "X${3}" \
  13143. | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
  13144. *) func_stripname_result=`$ECHO "X${3}" \
  13145. | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
  13146. esac
  13147. }
  13148. # sed scripts:
  13149. my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
  13150. my_sed_long_arg='1s/^-[^=]*=//'
  13151. # func_opt_split
  13152. func_opt_split ()
  13153. {
  13154. func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
  13155. func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
  13156. }
  13157. # func_lo2o object
  13158. func_lo2o ()
  13159. {
  13160. func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
  13161. }
  13162. # func_xform libobj-or-source
  13163. func_xform ()
  13164. {
  13165. func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
  13166. }
  13167. # func_arith arithmetic-term...
  13168. func_arith ()
  13169. {
  13170. func_arith_result=`expr "$@"`
  13171. }
  13172. # func_len string
  13173. # STRING may not start with a hyphen.
  13174. func_len ()
  13175. {
  13176. func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
  13177. }
  13178. _LT_EOF
  13179. esac
  13180. case $lt_shell_append in
  13181. yes)
  13182. cat << \_LT_EOF >> "$cfgfile"
  13183. # func_append var value
  13184. # Append VALUE to the end of shell variable VAR.
  13185. func_append ()
  13186. {
  13187. eval "$1+=\$2"
  13188. }
  13189. _LT_EOF
  13190. ;;
  13191. *)
  13192. cat << \_LT_EOF >> "$cfgfile"
  13193. # func_append var value
  13194. # Append VALUE to the end of shell variable VAR.
  13195. func_append ()
  13196. {
  13197. eval "$1=\$$1\$2"
  13198. }
  13199. _LT_EOF
  13200. ;;
  13201. esac
  13202. sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
  13203. || (rm -f "$cfgfile"; exit 1)
  13204. mv -f "$cfgfile" "$ofile" ||
  13205. (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  13206. chmod +x "$ofile"
  13207. ;;
  13208. esac
  13209. done # for ac_tag
  13210. as_fn_exit 0
  13211. _ACEOF
  13212. ac_clean_files=$ac_clean_files_save
  13213. test $ac_write_fail = 0 ||
  13214. as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
  13215. # configure is writing to config.log, and then calls config.status.
  13216. # config.status does its own redirection, appending to config.log.
  13217. # Unfortunately, on DOS this fails, as config.log is still kept open
  13218. # by configure, so config.status won't be able to write to it; its
  13219. # output is simply discarded. So we exec the FD to /dev/null,
  13220. # effectively closing config.log, so it can be properly (re)opened and
  13221. # appended to by config.status. When coming back to configure, we
  13222. # need to make the FD available again.
  13223. if test "$no_create" != yes; then
  13224. ac_cs_success=:
  13225. ac_config_status_args=
  13226. test "$silent" = yes &&
  13227. ac_config_status_args="$ac_config_status_args --quiet"
  13228. exec 5>/dev/null
  13229. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  13230. exec 5>>config.log
  13231. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  13232. # would make configure fail if this is the last instruction.
  13233. $ac_cs_success || as_fn_exit 1
  13234. fi
  13235. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  13236. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  13237. $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  13238. fi