configure 447 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166131671316813169131701317113172131731317413175131761317713178131791318013181131821318313184131851318613187131881318913190131911319213193131941319513196131971319813199132001320113202132031320413205132061320713208132091321013211132121321313214132151321613217132181321913220132211322213223132241322513226132271322813229132301323113232132331323413235132361323713238132391324013241132421324313244132451324613247132481324913250132511325213253132541325513256132571325813259132601326113262132631326413265132661326713268132691327013271132721327313274132751327613277132781327913280132811328213283132841328513286132871328813289132901329113292132931329413295132961329713298132991330013301133021330313304133051330613307133081330913310133111331213313133141331513316133171331813319133201332113322133231332413325133261332713328133291333013331133321333313334133351333613337133381333913340133411334213343133441334513346133471334813349133501335113352133531335413355133561335713358133591336013361133621336313364133651336613367133681336913370133711337213373133741337513376133771337813379133801338113382133831338413385133861338713388133891339013391133921339313394133951339613397133981339913400134011340213403134041340513406134071340813409134101341113412134131341413415134161341713418134191342013421134221342313424134251342613427134281342913430134311343213433134341343513436134371343813439134401344113442134431344413445134461344713448134491345013451134521345313454134551345613457134581345913460134611346213463134641346513466134671346813469134701347113472134731347413475134761347713478134791348013481134821348313484134851348613487134881348913490134911349213493134941349513496134971349813499135001350113502135031350413505135061350713508135091351013511135121351313514135151351613517135181351913520135211352213523135241352513526135271352813529135301353113532135331353413535135361353713538135391354013541135421354313544135451354613547135481354913550135511355213553135541355513556135571355813559135601356113562135631356413565135661356713568135691357013571135721357313574135751357613577135781357913580135811358213583135841358513586135871358813589135901359113592135931359413595135961359713598135991360013601136021360313604136051360613607136081360913610136111361213613136141361513616136171361813619136201362113622136231362413625136261362713628136291363013631136321363313634136351363613637136381363913640136411364213643136441364513646136471364813649136501365113652136531365413655136561365713658136591366013661136621366313664136651366613667136681366913670136711367213673136741367513676136771367813679136801368113682136831368413685136861368713688136891369013691136921369313694136951369613697136981369913700137011370213703137041370513706137071370813709137101371113712137131371413715137161371713718137191372013721137221372313724137251372613727137281372913730137311373213733137341373513736137371373813739137401374113742137431374413745137461374713748137491375013751137521375313754137551375613757137581375913760137611376213763137641376513766137671376813769137701377113772137731377413775137761377713778137791378013781137821378313784137851378613787137881378913790137911379213793137941379513796137971379813799138001380113802138031380413805138061380713808138091381013811138121381313814138151381613817138181381913820138211382213823138241382513826138271382813829138301383113832138331383413835138361383713838138391384013841138421384313844138451384613847138481384913850138511385213853138541385513856138571385813859138601386113862138631386413865138661386713868138691387013871138721387313874138751387613877138781387913880138811388213883138841388513886138871388813889138901389113892138931389413895138961389713898138991390013901139021390313904139051390613907139081390913910139111391213913139141391513916139171391813919139201392113922139231392413925139261392713928139291393013931139321393313934139351393613937139381393913940139411394213943139441394513946139471394813949139501395113952139531395413955139561395713958139591396013961139621396313964139651396613967139681396913970139711397213973139741397513976139771397813979139801398113982139831398413985139861398713988139891399013991139921399313994139951399613997139981399914000140011400214003140041400514006140071400814009140101401114012140131401414015140161401714018140191402014021140221402314024140251402614027140281402914030140311403214033140341403514036140371403814039140401404114042140431404414045140461404714048140491405014051140521405314054140551405614057140581405914060140611406214063140641406514066140671406814069140701407114072140731407414075140761407714078140791408014081140821408314084140851408614087140881408914090140911409214093140941409514096140971409814099141001410114102141031410414105141061410714108141091411014111141121411314114141151411614117141181411914120141211412214123141241412514126141271412814129141301413114132141331413414135141361413714138141391414014141141421414314144141451414614147141481414914150141511415214153141541415514156141571415814159141601416114162141631416414165141661416714168141691417014171141721417314174141751417614177141781417914180141811418214183141841418514186141871418814189141901419114192141931419414195141961419714198141991420014201142021420314204142051420614207142081420914210142111421214213142141421514216142171421814219142201422114222142231422414225142261422714228142291423014231142321423314234142351423614237142381423914240142411424214243142441424514246142471424814249142501425114252142531425414255142561425714258142591426014261142621426314264142651426614267142681426914270142711427214273142741427514276142771427814279142801428114282142831428414285142861428714288142891429014291142921429314294142951429614297142981429914300143011430214303143041430514306143071430814309143101431114312143131431414315143161431714318143191432014321143221432314324143251432614327143281432914330143311433214333143341433514336143371433814339143401434114342143431434414345143461434714348143491435014351143521435314354143551435614357143581435914360143611436214363143641436514366143671436814369143701437114372143731437414375143761437714378143791438014381143821438314384143851438614387143881438914390143911439214393143941439514396143971439814399144001440114402144031440414405144061440714408144091441014411144121441314414144151441614417144181441914420144211442214423144241442514426144271442814429144301443114432144331443414435144361443714438144391444014441144421444314444144451444614447144481444914450144511445214453144541445514456144571445814459144601446114462144631446414465144661446714468144691447014471144721447314474144751447614477144781447914480144811448214483144841448514486144871448814489144901449114492144931449414495144961449714498144991450014501145021450314504145051450614507145081450914510145111451214513145141451514516145171451814519145201452114522145231452414525145261452714528145291453014531145321453314534145351453614537145381453914540145411454214543145441454514546145471454814549145501455114552145531455414555145561455714558145591456014561145621456314564145651456614567145681456914570145711457214573145741457514576145771457814579145801458114582145831458414585145861458714588145891459014591145921459314594145951459614597145981459914600146011460214603146041460514606146071460814609146101461114612146131461414615146161461714618146191462014621146221462314624146251462614627146281462914630146311463214633146341463514636146371463814639146401464114642146431464414645146461464714648146491465014651146521465314654146551465614657146581465914660146611466214663146641466514666146671466814669146701467114672146731467414675146761467714678146791468014681146821468314684146851468614687146881468914690146911469214693146941469514696146971469814699147001470114702147031470414705147061470714708147091471014711147121471314714147151471614717147181471914720147211472214723147241472514726147271472814729147301473114732147331473414735147361473714738147391474014741147421474314744147451474614747147481474914750147511475214753147541475514756147571475814759147601476114762147631476414765147661476714768147691477014771147721477314774147751477614777147781477914780147811478214783147841478514786147871478814789147901479114792147931479414795147961479714798147991480014801148021480314804148051480614807148081480914810148111481214813148141481514816148171481814819148201482114822148231482414825148261482714828148291483014831148321483314834148351483614837148381483914840148411484214843148441484514846148471484814849148501485114852148531485414855148561485714858148591486014861148621486314864148651486614867148681486914870148711487214873148741487514876148771487814879148801488114882148831488414885148861488714888148891489014891148921489314894148951489614897148981489914900149011490214903149041490514906149071490814909149101491114912149131491414915149161491714918149191492014921149221492314924149251492614927149281492914930149311493214933149341493514936149371493814939149401494114942149431494414945149461494714948149491495014951149521495314954149551495614957149581495914960149611496214963149641496514966149671496814969149701497114972149731497414975149761497714978149791498014981149821498314984149851498614987149881498914990149911499214993149941499514996149971499814999150001500115002150031500415005150061500715008150091501015011150121501315014150151501615017150181501915020150211502215023150241502515026150271502815029150301503115032150331503415035150361503715038150391504015041150421504315044150451504615047150481504915050150511505215053150541505515056150571505815059150601506115062150631506415065150661506715068150691507015071150721507315074150751507615077150781507915080150811508215083150841508515086150871508815089150901509115092150931509415095150961509715098150991510015101151021510315104151051510615107151081510915110151111511215113151141511515116151171511815119151201512115122151231512415125151261512715128151291513015131151321513315134151351513615137151381513915140151411514215143151441514515146151471514815149151501515115152151531515415155151561515715158151591516015161151621516315164151651516615167151681516915170151711517215173151741517515176151771517815179151801518115182151831518415185151861518715188151891519015191151921519315194151951519615197151981519915200152011520215203152041520515206152071520815209152101521115212152131521415215152161521715218152191522015221152221522315224152251522615227152281522915230152311523215233152341523515236152371523815239152401524115242152431524415245152461524715248152491525015251152521525315254152551525615257152581525915260152611526215263152641526515266152671526815269152701527115272152731527415275152761527715278152791528015281152821528315284152851528615287152881528915290152911529215293152941529515296152971529815299153001530115302153031530415305153061530715308153091531015311153121531315314153151531615317153181531915320153211532215323153241532515326153271532815329153301533115332153331533415335153361533715338153391534015341153421534315344153451534615347153481534915350153511535215353153541535515356153571535815359153601536115362153631536415365153661536715368153691537015371153721537315374153751537615377153781537915380153811538215383153841538515386153871538815389153901539115392153931539415395153961539715398153991540015401154021540315404154051540615407154081540915410154111541215413154141541515416154171541815419154201542115422154231542415425154261542715428154291543015431154321543315434154351543615437154381543915440154411544215443154441544515446154471544815449154501545115452154531545415455154561545715458154591546015461154621546315464154651546615467154681546915470154711547215473154741547515476154771547815479154801548115482154831548415485154861548715488154891549015491154921549315494154951549615497154981549915500155011550215503155041550515506155071550815509155101551115512155131551415515155161551715518155191552015521155221552315524155251552615527155281552915530155311553215533155341553515536155371553815539155401554115542155431554415545155461554715548155491555015551155521555315554155551555615557155581555915560155611556215563155641556515566155671556815569155701557115572155731557415575155761557715578155791558015581155821558315584155851558615587155881558915590155911559215593155941559515596155971559815599156001560115602156031560415605156061560715608156091561015611156121561315614156151561615617156181561915620156211562215623156241562515626156271562815629156301563115632156331563415635156361563715638156391564015641156421564315644156451564615647156481564915650156511565215653156541565515656156571565815659156601566115662156631566415665156661566715668156691567015671156721567315674156751567615677156781567915680156811568215683156841568515686156871568815689156901569115692156931569415695156961569715698156991570015701157021570315704157051570615707157081570915710157111571215713157141571515716157171571815719157201572115722157231572415725157261572715728157291573015731157321573315734157351573615737157381573915740157411574215743157441574515746157471574815749157501575115752157531575415755157561575715758157591576015761157621576315764157651576615767157681576915770157711577215773157741577515776157771577815779157801578115782157831578415785157861578715788157891579015791157921579315794157951579615797157981579915800158011580215803158041580515806158071580815809158101581115812158131581415815158161581715818158191582015821158221582315824158251582615827158281582915830158311583215833158341583515836158371583815839158401584115842158431584415845158461584715848158491585015851158521585315854158551585615857158581585915860158611586215863
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.69 for file 5.14.
  4. #
  5. # Report bugs to <christos@astron.com>.
  6. #
  7. #
  8. # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
  9. #
  10. #
  11. # This configure script is free software; the Free Software Foundation
  12. # gives unlimited permission to copy, distribute and modify it.
  13. ## -------------------- ##
  14. ## M4sh Initialization. ##
  15. ## -------------------- ##
  16. # Be more Bourne compatible
  17. DUALCASE=1; export DUALCASE # for MKS sh
  18. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  19. emulate sh
  20. NULLCMD=:
  21. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  22. # is contrary to our usage. Disable this feature.
  23. alias -g '${1+"$@"}'='"$@"'
  24. setopt NO_GLOB_SUBST
  25. else
  26. case `(set -o) 2>/dev/null` in #(
  27. *posix*) :
  28. set -o posix ;; #(
  29. *) :
  30. ;;
  31. esac
  32. fi
  33. as_nl='
  34. '
  35. export as_nl
  36. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  37. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  38. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  39. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  40. # Prefer a ksh shell builtin over an external printf program on Solaris,
  41. # but without wasting forks for bash or zsh.
  42. if test -z "$BASH_VERSION$ZSH_VERSION" \
  43. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  44. as_echo='print -r --'
  45. as_echo_n='print -rn --'
  46. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  47. as_echo='printf %s\n'
  48. as_echo_n='printf %s'
  49. else
  50. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  51. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  52. as_echo_n='/usr/ucb/echo -n'
  53. else
  54. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  55. as_echo_n_body='eval
  56. arg=$1;
  57. case $arg in #(
  58. *"$as_nl"*)
  59. expr "X$arg" : "X\\(.*\\)$as_nl";
  60. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  61. esac;
  62. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  63. '
  64. export as_echo_n_body
  65. as_echo_n='sh -c $as_echo_n_body as_echo'
  66. fi
  67. export as_echo_body
  68. as_echo='sh -c $as_echo_body as_echo'
  69. fi
  70. # The user is always right.
  71. if test "${PATH_SEPARATOR+set}" != set; then
  72. PATH_SEPARATOR=:
  73. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  74. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  75. PATH_SEPARATOR=';'
  76. }
  77. fi
  78. # IFS
  79. # We need space, tab and new line, in precisely that order. Quoting is
  80. # there to prevent editors from complaining about space-tab.
  81. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  82. # splitting by setting IFS to empty value.)
  83. IFS=" "" $as_nl"
  84. # Find who we are. Look in the path if we contain no directory separator.
  85. as_myself=
  86. case $0 in #((
  87. *[\\/]* ) as_myself=$0 ;;
  88. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  89. for as_dir in $PATH
  90. do
  91. IFS=$as_save_IFS
  92. test -z "$as_dir" && as_dir=.
  93. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  94. done
  95. IFS=$as_save_IFS
  96. ;;
  97. esac
  98. # We did not find ourselves, most probably we were run as `sh COMMAND'
  99. # in which case we are not to be found in the path.
  100. if test "x$as_myself" = x; then
  101. as_myself=$0
  102. fi
  103. if test ! -f "$as_myself"; then
  104. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  105. exit 1
  106. fi
  107. # Unset variables that we do not need and which cause bugs (e.g. in
  108. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  109. # suppresses any "Segmentation fault" message there. '((' could
  110. # trigger a bug in pdksh 5.2.14.
  111. for as_var in BASH_ENV ENV MAIL MAILPATH
  112. do eval test x\${$as_var+set} = xset \
  113. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  114. done
  115. PS1='$ '
  116. PS2='> '
  117. PS4='+ '
  118. # NLS nuisances.
  119. LC_ALL=C
  120. export LC_ALL
  121. LANGUAGE=C
  122. export LANGUAGE
  123. # CDPATH.
  124. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  125. # Use a proper internal environment variable to ensure we don't fall
  126. # into an infinite loop, continuously re-executing ourselves.
  127. if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
  128. _as_can_reexec=no; export _as_can_reexec;
  129. # We cannot yet assume a decent shell, so we have to provide a
  130. # neutralization value for shells without unset; and this also
  131. # works around shells that cannot unset nonexistent variables.
  132. # Preserve -v and -x to the replacement shell.
  133. BASH_ENV=/dev/null
  134. ENV=/dev/null
  135. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  136. case $- in # ((((
  137. *v*x* | *x*v* ) as_opts=-vx ;;
  138. *v* ) as_opts=-v ;;
  139. *x* ) as_opts=-x ;;
  140. * ) as_opts= ;;
  141. esac
  142. exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
  143. # Admittedly, this is quite paranoid, since all the known shells bail
  144. # out after a failed `exec'.
  145. $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
  146. as_fn_exit 255
  147. fi
  148. # We don't want this to propagate to other subprocesses.
  149. { _as_can_reexec=; unset _as_can_reexec;}
  150. if test "x$CONFIG_SHELL" = x; then
  151. as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
  152. emulate sh
  153. NULLCMD=:
  154. # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
  155. # is contrary to our usage. Disable this feature.
  156. alias -g '\${1+\"\$@\"}'='\"\$@\"'
  157. setopt NO_GLOB_SUBST
  158. else
  159. case \`(set -o) 2>/dev/null\` in #(
  160. *posix*) :
  161. set -o posix ;; #(
  162. *) :
  163. ;;
  164. esac
  165. fi
  166. "
  167. as_required="as_fn_return () { (exit \$1); }
  168. as_fn_success () { as_fn_return 0; }
  169. as_fn_failure () { as_fn_return 1; }
  170. as_fn_ret_success () { return 0; }
  171. as_fn_ret_failure () { return 1; }
  172. exitcode=0
  173. as_fn_success || { exitcode=1; echo as_fn_success failed.; }
  174. as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
  175. as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
  176. as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
  177. if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
  178. else
  179. exitcode=1; echo positional parameters were not saved.
  180. fi
  181. test x\$exitcode = x0 || exit 1
  182. test -x / || exit 1"
  183. as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
  184. as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
  185. eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
  186. test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
  187. test \$(( 1 + 1 )) = 2 || exit 1"
  188. if (eval "$as_required") 2>/dev/null; then :
  189. as_have_required=yes
  190. else
  191. as_have_required=no
  192. fi
  193. if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
  194. else
  195. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  196. as_found=false
  197. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  198. do
  199. IFS=$as_save_IFS
  200. test -z "$as_dir" && as_dir=.
  201. as_found=:
  202. case $as_dir in #(
  203. /*)
  204. for as_base in sh bash ksh sh5; do
  205. # Try only shells that exist, to save several forks.
  206. as_shell=$as_dir/$as_base
  207. if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  208. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
  209. CONFIG_SHELL=$as_shell as_have_required=yes
  210. if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
  211. break 2
  212. fi
  213. fi
  214. done;;
  215. esac
  216. as_found=false
  217. done
  218. $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
  219. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
  220. CONFIG_SHELL=$SHELL as_have_required=yes
  221. fi; }
  222. IFS=$as_save_IFS
  223. if test "x$CONFIG_SHELL" != x; then :
  224. export CONFIG_SHELL
  225. # We cannot yet assume a decent shell, so we have to provide a
  226. # neutralization value for shells without unset; and this also
  227. # works around shells that cannot unset nonexistent variables.
  228. # Preserve -v and -x to the replacement shell.
  229. BASH_ENV=/dev/null
  230. ENV=/dev/null
  231. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  232. case $- in # ((((
  233. *v*x* | *x*v* ) as_opts=-vx ;;
  234. *v* ) as_opts=-v ;;
  235. *x* ) as_opts=-x ;;
  236. * ) as_opts= ;;
  237. esac
  238. exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
  239. # Admittedly, this is quite paranoid, since all the known shells bail
  240. # out after a failed `exec'.
  241. $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
  242. exit 255
  243. fi
  244. if test x$as_have_required = xno; then :
  245. $as_echo "$0: This script requires a shell more modern than all"
  246. $as_echo "$0: the shells that I found on your system."
  247. if test x${ZSH_VERSION+set} = xset ; then
  248. $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
  249. $as_echo "$0: be upgraded to zsh 4.3.4 or later."
  250. else
  251. $as_echo "$0: Please tell bug-autoconf@gnu.org and
  252. $0: christos@astron.com about your system, including any
  253. $0: error possibly output before this message. Then install
  254. $0: a modern shell, or manually run the script under such a
  255. $0: shell if you do have one."
  256. fi
  257. exit 1
  258. fi
  259. fi
  260. fi
  261. SHELL=${CONFIG_SHELL-/bin/sh}
  262. export SHELL
  263. # Unset more variables known to interfere with behavior of common tools.
  264. CLICOLOR_FORCE= GREP_OPTIONS=
  265. unset CLICOLOR_FORCE GREP_OPTIONS
  266. ## --------------------- ##
  267. ## M4sh Shell Functions. ##
  268. ## --------------------- ##
  269. # as_fn_unset VAR
  270. # ---------------
  271. # Portably unset VAR.
  272. as_fn_unset ()
  273. {
  274. { eval $1=; unset $1;}
  275. }
  276. as_unset=as_fn_unset
  277. # as_fn_set_status STATUS
  278. # -----------------------
  279. # Set $? to STATUS, without forking.
  280. as_fn_set_status ()
  281. {
  282. return $1
  283. } # as_fn_set_status
  284. # as_fn_exit STATUS
  285. # -----------------
  286. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  287. as_fn_exit ()
  288. {
  289. set +e
  290. as_fn_set_status $1
  291. exit $1
  292. } # as_fn_exit
  293. # as_fn_mkdir_p
  294. # -------------
  295. # Create "$as_dir" as a directory, including parents if necessary.
  296. as_fn_mkdir_p ()
  297. {
  298. case $as_dir in #(
  299. -*) as_dir=./$as_dir;;
  300. esac
  301. test -d "$as_dir" || eval $as_mkdir_p || {
  302. as_dirs=
  303. while :; do
  304. case $as_dir in #(
  305. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  306. *) as_qdir=$as_dir;;
  307. esac
  308. as_dirs="'$as_qdir' $as_dirs"
  309. as_dir=`$as_dirname -- "$as_dir" ||
  310. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  311. X"$as_dir" : 'X\(//\)[^/]' \| \
  312. X"$as_dir" : 'X\(//\)$' \| \
  313. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  314. $as_echo X"$as_dir" |
  315. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  316. s//\1/
  317. q
  318. }
  319. /^X\(\/\/\)[^/].*/{
  320. s//\1/
  321. q
  322. }
  323. /^X\(\/\/\)$/{
  324. s//\1/
  325. q
  326. }
  327. /^X\(\/\).*/{
  328. s//\1/
  329. q
  330. }
  331. s/.*/./; q'`
  332. test -d "$as_dir" && break
  333. done
  334. test -z "$as_dirs" || eval "mkdir $as_dirs"
  335. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  336. } # as_fn_mkdir_p
  337. # as_fn_executable_p FILE
  338. # -----------------------
  339. # Test if FILE is an executable regular file.
  340. as_fn_executable_p ()
  341. {
  342. test -f "$1" && test -x "$1"
  343. } # as_fn_executable_p
  344. # as_fn_append VAR VALUE
  345. # ----------------------
  346. # Append the text in VALUE to the end of the definition contained in VAR. Take
  347. # advantage of any shell optimizations that allow amortized linear growth over
  348. # repeated appends, instead of the typical quadratic growth present in naive
  349. # implementations.
  350. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  351. eval 'as_fn_append ()
  352. {
  353. eval $1+=\$2
  354. }'
  355. else
  356. as_fn_append ()
  357. {
  358. eval $1=\$$1\$2
  359. }
  360. fi # as_fn_append
  361. # as_fn_arith ARG...
  362. # ------------------
  363. # Perform arithmetic evaluation on the ARGs, and store the result in the
  364. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  365. # must be portable across $(()) and expr.
  366. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  367. eval 'as_fn_arith ()
  368. {
  369. as_val=$(( $* ))
  370. }'
  371. else
  372. as_fn_arith ()
  373. {
  374. as_val=`expr "$@" || test $? -eq 1`
  375. }
  376. fi # as_fn_arith
  377. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  378. # ----------------------------------------
  379. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  380. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  381. # script with STATUS, using 1 if that was 0.
  382. as_fn_error ()
  383. {
  384. as_status=$1; test $as_status -eq 0 && as_status=1
  385. if test "$4"; then
  386. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  387. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  388. fi
  389. $as_echo "$as_me: error: $2" >&2
  390. as_fn_exit $as_status
  391. } # as_fn_error
  392. if expr a : '\(a\)' >/dev/null 2>&1 &&
  393. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  394. as_expr=expr
  395. else
  396. as_expr=false
  397. fi
  398. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  399. as_basename=basename
  400. else
  401. as_basename=false
  402. fi
  403. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  404. as_dirname=dirname
  405. else
  406. as_dirname=false
  407. fi
  408. as_me=`$as_basename -- "$0" ||
  409. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  410. X"$0" : 'X\(//\)$' \| \
  411. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  412. $as_echo X/"$0" |
  413. sed '/^.*\/\([^/][^/]*\)\/*$/{
  414. s//\1/
  415. q
  416. }
  417. /^X\/\(\/\/\)$/{
  418. s//\1/
  419. q
  420. }
  421. /^X\/\(\/\).*/{
  422. s//\1/
  423. q
  424. }
  425. s/.*/./; q'`
  426. # Avoid depending upon Character Ranges.
  427. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  428. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  429. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  430. as_cr_digits='0123456789'
  431. as_cr_alnum=$as_cr_Letters$as_cr_digits
  432. as_lineno_1=$LINENO as_lineno_1a=$LINENO
  433. as_lineno_2=$LINENO as_lineno_2a=$LINENO
  434. eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
  435. test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
  436. # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
  437. sed -n '
  438. p
  439. /[$]LINENO/=
  440. ' <$as_myself |
  441. sed '
  442. s/[$]LINENO.*/&-/
  443. t lineno
  444. b
  445. :lineno
  446. N
  447. :loop
  448. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  449. t loop
  450. s/-\n.*//
  451. ' >$as_me.lineno &&
  452. chmod +x "$as_me.lineno" ||
  453. { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
  454. # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
  455. # already done that, so ensure we don't try to do so again and fall
  456. # in an infinite loop. This has already happened in practice.
  457. _as_can_reexec=no; export _as_can_reexec
  458. # Don't try to exec as it changes $[0], causing all sort of problems
  459. # (the dirname of $[0] is not the place where we might find the
  460. # original and so on. Autoconf is especially sensitive to this).
  461. . "./$as_me.lineno"
  462. # Exit status is that of the last command.
  463. exit
  464. }
  465. ECHO_C= ECHO_N= ECHO_T=
  466. case `echo -n x` in #(((((
  467. -n*)
  468. case `echo 'xy\c'` in
  469. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  470. xy) ECHO_C='\c';;
  471. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  472. ECHO_T=' ';;
  473. esac;;
  474. *)
  475. ECHO_N='-n';;
  476. esac
  477. rm -f conf$$ conf$$.exe conf$$.file
  478. if test -d conf$$.dir; then
  479. rm -f conf$$.dir/conf$$.file
  480. else
  481. rm -f conf$$.dir
  482. mkdir conf$$.dir 2>/dev/null
  483. fi
  484. if (echo >conf$$.file) 2>/dev/null; then
  485. if ln -s conf$$.file conf$$ 2>/dev/null; then
  486. as_ln_s='ln -s'
  487. # ... but there are two gotchas:
  488. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  489. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  490. # In both cases, we have to default to `cp -pR'.
  491. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  492. as_ln_s='cp -pR'
  493. elif ln conf$$.file conf$$ 2>/dev/null; then
  494. as_ln_s=ln
  495. else
  496. as_ln_s='cp -pR'
  497. fi
  498. else
  499. as_ln_s='cp -pR'
  500. fi
  501. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  502. rmdir conf$$.dir 2>/dev/null
  503. if mkdir -p . 2>/dev/null; then
  504. as_mkdir_p='mkdir -p "$as_dir"'
  505. else
  506. test -d ./-p && rmdir ./-p
  507. as_mkdir_p=false
  508. fi
  509. as_test_x='test -x'
  510. as_executable_p=as_fn_executable_p
  511. # Sed expression to map a string onto a valid CPP name.
  512. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  513. # Sed expression to map a string onto a valid variable name.
  514. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  515. # Check that we are running under the correct shell.
  516. SHELL=${CONFIG_SHELL-/bin/sh}
  517. case X$lt_ECHO in
  518. X*--fallback-echo)
  519. # Remove one level of quotation (which was required for Make).
  520. ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
  521. ;;
  522. esac
  523. ECHO=${lt_ECHO-echo}
  524. if test "X$1" = X--no-reexec; then
  525. # Discard the --no-reexec flag, and continue.
  526. shift
  527. elif test "X$1" = X--fallback-echo; then
  528. # Avoid inline document here, it may be left over
  529. :
  530. elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
  531. # Yippee, $ECHO works!
  532. :
  533. else
  534. # Restart under the correct shell.
  535. exec $SHELL "$0" --no-reexec ${1+"$@"}
  536. fi
  537. if test "X$1" = X--fallback-echo; then
  538. # used as fallback echo
  539. shift
  540. cat <<_LT_EOF
  541. $*
  542. _LT_EOF
  543. exit 0
  544. fi
  545. # The HP-UX ksh and POSIX shell print the target directory to stdout
  546. # if CDPATH is set.
  547. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  548. if test -z "$lt_ECHO"; then
  549. if test "X${echo_test_string+set}" != Xset; then
  550. # find a string as large as possible, as long as the shell can cope with it
  551. for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
  552. # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
  553. if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
  554. { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
  555. then
  556. break
  557. fi
  558. done
  559. fi
  560. if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
  561. echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
  562. test "X$echo_testing_string" = "X$echo_test_string"; then
  563. :
  564. else
  565. # The Solaris, AIX, and Digital Unix default echo programs unquote
  566. # backslashes. This makes it impossible to quote backslashes using
  567. # echo "$something" | sed 's/\\/\\\\/g'
  568. #
  569. # So, first we look for a working echo in the user's PATH.
  570. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  571. for dir in $PATH /usr/ucb; do
  572. IFS="$lt_save_ifs"
  573. if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
  574. test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
  575. echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
  576. test "X$echo_testing_string" = "X$echo_test_string"; then
  577. ECHO="$dir/echo"
  578. break
  579. fi
  580. done
  581. IFS="$lt_save_ifs"
  582. if test "X$ECHO" = Xecho; then
  583. # We didn't find a better echo, so look for alternatives.
  584. if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
  585. echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
  586. test "X$echo_testing_string" = "X$echo_test_string"; then
  587. # This shell has a builtin print -r that does the trick.
  588. ECHO='print -r'
  589. elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
  590. test "X$CONFIG_SHELL" != X/bin/ksh; then
  591. # If we have ksh, try running configure again with it.
  592. ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
  593. export ORIGINAL_CONFIG_SHELL
  594. CONFIG_SHELL=/bin/ksh
  595. export CONFIG_SHELL
  596. exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
  597. else
  598. # Try using printf.
  599. ECHO='printf %s\n'
  600. if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
  601. echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
  602. test "X$echo_testing_string" = "X$echo_test_string"; then
  603. # Cool, printf works
  604. :
  605. elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
  606. test "X$echo_testing_string" = 'X\t' &&
  607. echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
  608. test "X$echo_testing_string" = "X$echo_test_string"; then
  609. CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
  610. export CONFIG_SHELL
  611. SHELL="$CONFIG_SHELL"
  612. export SHELL
  613. ECHO="$CONFIG_SHELL $0 --fallback-echo"
  614. elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
  615. test "X$echo_testing_string" = 'X\t' &&
  616. echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
  617. test "X$echo_testing_string" = "X$echo_test_string"; then
  618. ECHO="$CONFIG_SHELL $0 --fallback-echo"
  619. else
  620. # maybe with a smaller string...
  621. prev=:
  622. for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
  623. if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
  624. then
  625. break
  626. fi
  627. prev="$cmd"
  628. done
  629. if test "$prev" != 'sed 50q "$0"'; then
  630. echo_test_string=`eval $prev`
  631. export echo_test_string
  632. exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
  633. else
  634. # Oops. We lost completely, so just stick with echo.
  635. ECHO=echo
  636. fi
  637. fi
  638. fi
  639. fi
  640. fi
  641. fi
  642. # Copy echo and quote the copy suitably for passing to libtool from
  643. # the Makefile, instead of quoting the original, which is used later.
  644. lt_ECHO=$ECHO
  645. if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
  646. lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
  647. fi
  648. test -n "$DJDIR" || exec 7<&0 </dev/null
  649. exec 6>&1
  650. # Name of the host.
  651. # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
  652. # so uname gets run too.
  653. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  654. #
  655. # Initializations.
  656. #
  657. ac_default_prefix=/usr/local
  658. ac_clean_files=
  659. ac_config_libobj_dir=.
  660. LIBOBJS=
  661. cross_compiling=no
  662. subdirs=
  663. MFLAGS=
  664. MAKEFLAGS=
  665. # Identity of this package.
  666. PACKAGE_NAME='file'
  667. PACKAGE_TARNAME='file'
  668. PACKAGE_VERSION='5.14'
  669. PACKAGE_STRING='file 5.14'
  670. PACKAGE_BUGREPORT='christos@astron.com'
  671. PACKAGE_URL=''
  672. # Factoring default headers for most tests.
  673. ac_includes_default="\
  674. #include <stdio.h>
  675. #ifdef HAVE_SYS_TYPES_H
  676. # include <sys/types.h>
  677. #endif
  678. #ifdef HAVE_SYS_STAT_H
  679. # include <sys/stat.h>
  680. #endif
  681. #ifdef STDC_HEADERS
  682. # include <stdlib.h>
  683. # include <stddef.h>
  684. #else
  685. # ifdef HAVE_STDLIB_H
  686. # include <stdlib.h>
  687. # endif
  688. #endif
  689. #ifdef HAVE_STRING_H
  690. # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
  691. # include <memory.h>
  692. # endif
  693. # include <string.h>
  694. #endif
  695. #ifdef HAVE_STRINGS_H
  696. # include <strings.h>
  697. #endif
  698. #ifdef HAVE_INTTYPES_H
  699. # include <inttypes.h>
  700. #endif
  701. #ifdef HAVE_STDINT_H
  702. # include <stdint.h>
  703. #endif
  704. #ifdef HAVE_UNISTD_H
  705. # include <unistd.h>
  706. #endif"
  707. ac_header_list=
  708. ac_subst_vars='am__EXEEXT_FALSE
  709. am__EXEEXT_TRUE
  710. LTLIBOBJS
  711. IS_CROSS_COMPILE_FALSE
  712. IS_CROSS_COMPILE_TRUE
  713. LIBOBJS
  714. HAVE_VISIBILITY
  715. CFLAG_VISIBILITY
  716. OTOOL64
  717. OTOOL
  718. LIPO
  719. NMEDIT
  720. DSYMUTIL
  721. lt_ECHO
  722. RANLIB
  723. AR
  724. OBJDUMP
  725. NM
  726. ac_ct_DUMPBIN
  727. DUMPBIN
  728. LD
  729. FGREP
  730. SED
  731. LIBTOOL
  732. LN_S
  733. EGREP
  734. GREP
  735. CPP
  736. am__fastdepCC_FALSE
  737. am__fastdepCC_TRUE
  738. CCDEPMODE
  739. am__nodep
  740. AMDEPBACKSLASH
  741. AMDEP_FALSE
  742. AMDEP_TRUE
  743. am__quote
  744. am__include
  745. DEPDIR
  746. OBJEXT
  747. EXEEXT
  748. ac_ct_CC
  749. CPPFLAGS
  750. LDFLAGS
  751. CFLAGS
  752. CC
  753. WARNINGS
  754. FSECT5_FALSE
  755. FSECT5_TRUE
  756. fsect
  757. pkgdatadir
  758. MINGW_FALSE
  759. MINGW_TRUE
  760. MINGW
  761. host_os
  762. host_vendor
  763. host_cpu
  764. host
  765. build_os
  766. build_vendor
  767. build_cpu
  768. build
  769. AM_BACKSLASH
  770. AM_DEFAULT_VERBOSITY
  771. AM_DEFAULT_V
  772. AM_V
  773. am__untar
  774. am__tar
  775. AMTAR
  776. am__leading_dot
  777. SET_MAKE
  778. AWK
  779. mkdir_p
  780. MKDIR_P
  781. INSTALL_STRIP_PROGRAM
  782. STRIP
  783. install_sh
  784. MAKEINFO
  785. AUTOHEADER
  786. AUTOMAKE
  787. AUTOCONF
  788. ACLOCAL
  789. VERSION
  790. PACKAGE
  791. CYGPATH_W
  792. am__isrc
  793. INSTALL_DATA
  794. INSTALL_SCRIPT
  795. INSTALL_PROGRAM
  796. target_alias
  797. host_alias
  798. build_alias
  799. LIBS
  800. ECHO_T
  801. ECHO_N
  802. ECHO_C
  803. DEFS
  804. mandir
  805. localedir
  806. libdir
  807. psdir
  808. pdfdir
  809. dvidir
  810. htmldir
  811. infodir
  812. docdir
  813. oldincludedir
  814. includedir
  815. localstatedir
  816. sharedstatedir
  817. sysconfdir
  818. datadir
  819. datarootdir
  820. libexecdir
  821. sbindir
  822. bindir
  823. program_transform_name
  824. prefix
  825. exec_prefix
  826. PACKAGE_URL
  827. PACKAGE_BUGREPORT
  828. PACKAGE_STRING
  829. PACKAGE_VERSION
  830. PACKAGE_TARNAME
  831. PACKAGE_NAME
  832. PATH_SEPARATOR
  833. SHELL'
  834. ac_subst_files=''
  835. ac_user_opts='
  836. enable_option_checking
  837. enable_silent_rules
  838. enable_elf
  839. enable_elf_core
  840. enable_fsect_man5
  841. enable_dependency_tracking
  842. enable_static
  843. with_pic
  844. enable_shared
  845. enable_fast_install
  846. with_gnu_ld
  847. enable_libtool_lock
  848. enable_largefile
  849. enable_warnings
  850. '
  851. ac_precious_vars='build_alias
  852. host_alias
  853. target_alias
  854. CC
  855. CFLAGS
  856. LDFLAGS
  857. LIBS
  858. CPPFLAGS
  859. CPP'
  860. # Initialize some variables set by options.
  861. ac_init_help=
  862. ac_init_version=false
  863. ac_unrecognized_opts=
  864. ac_unrecognized_sep=
  865. # The variables have the same names as the options, with
  866. # dashes changed to underlines.
  867. cache_file=/dev/null
  868. exec_prefix=NONE
  869. no_create=
  870. no_recursion=
  871. prefix=NONE
  872. program_prefix=NONE
  873. program_suffix=NONE
  874. program_transform_name=s,x,x,
  875. silent=
  876. site=
  877. srcdir=
  878. verbose=
  879. x_includes=NONE
  880. x_libraries=NONE
  881. # Installation directory options.
  882. # These are left unexpanded so users can "make install exec_prefix=/foo"
  883. # and all the variables that are supposed to be based on exec_prefix
  884. # by default will actually change.
  885. # Use braces instead of parens because sh, perl, etc. also accept them.
  886. # (The list follows the same order as the GNU Coding Standards.)
  887. bindir='${exec_prefix}/bin'
  888. sbindir='${exec_prefix}/sbin'
  889. libexecdir='${exec_prefix}/libexec'
  890. datarootdir='${prefix}/share'
  891. datadir='${datarootdir}'
  892. sysconfdir='${prefix}/etc'
  893. sharedstatedir='${prefix}/com'
  894. localstatedir='${prefix}/var'
  895. includedir='${prefix}/include'
  896. oldincludedir='/usr/include'
  897. docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
  898. infodir='${datarootdir}/info'
  899. htmldir='${docdir}'
  900. dvidir='${docdir}'
  901. pdfdir='${docdir}'
  902. psdir='${docdir}'
  903. libdir='${exec_prefix}/lib'
  904. localedir='${datarootdir}/locale'
  905. mandir='${datarootdir}/man'
  906. ac_prev=
  907. ac_dashdash=
  908. for ac_option
  909. do
  910. # If the previous option needs an argument, assign it.
  911. if test -n "$ac_prev"; then
  912. eval $ac_prev=\$ac_option
  913. ac_prev=
  914. continue
  915. fi
  916. case $ac_option in
  917. *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  918. *=) ac_optarg= ;;
  919. *) ac_optarg=yes ;;
  920. esac
  921. # Accept the important Cygnus configure options, so we can diagnose typos.
  922. case $ac_dashdash$ac_option in
  923. --)
  924. ac_dashdash=yes ;;
  925. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  926. ac_prev=bindir ;;
  927. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  928. bindir=$ac_optarg ;;
  929. -build | --build | --buil | --bui | --bu)
  930. ac_prev=build_alias ;;
  931. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  932. build_alias=$ac_optarg ;;
  933. -cache-file | --cache-file | --cache-fil | --cache-fi \
  934. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  935. ac_prev=cache_file ;;
  936. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  937. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  938. cache_file=$ac_optarg ;;
  939. --config-cache | -C)
  940. cache_file=config.cache ;;
  941. -datadir | --datadir | --datadi | --datad)
  942. ac_prev=datadir ;;
  943. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  944. datadir=$ac_optarg ;;
  945. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  946. | --dataroo | --dataro | --datar)
  947. ac_prev=datarootdir ;;
  948. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  949. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  950. datarootdir=$ac_optarg ;;
  951. -disable-* | --disable-*)
  952. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  953. # Reject names that are not valid shell variable names.
  954. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  955. as_fn_error $? "invalid feature name: $ac_useropt"
  956. ac_useropt_orig=$ac_useropt
  957. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  958. case $ac_user_opts in
  959. *"
  960. "enable_$ac_useropt"
  961. "*) ;;
  962. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  963. ac_unrecognized_sep=', ';;
  964. esac
  965. eval enable_$ac_useropt=no ;;
  966. -docdir | --docdir | --docdi | --doc | --do)
  967. ac_prev=docdir ;;
  968. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  969. docdir=$ac_optarg ;;
  970. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  971. ac_prev=dvidir ;;
  972. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  973. dvidir=$ac_optarg ;;
  974. -enable-* | --enable-*)
  975. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  976. # Reject names that are not valid shell variable names.
  977. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  978. as_fn_error $? "invalid feature name: $ac_useropt"
  979. ac_useropt_orig=$ac_useropt
  980. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  981. case $ac_user_opts in
  982. *"
  983. "enable_$ac_useropt"
  984. "*) ;;
  985. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  986. ac_unrecognized_sep=', ';;
  987. esac
  988. eval enable_$ac_useropt=\$ac_optarg ;;
  989. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  990. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  991. | --exec | --exe | --ex)
  992. ac_prev=exec_prefix ;;
  993. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  994. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  995. | --exec=* | --exe=* | --ex=*)
  996. exec_prefix=$ac_optarg ;;
  997. -gas | --gas | --ga | --g)
  998. # Obsolete; use --with-gas.
  999. with_gas=yes ;;
  1000. -help | --help | --hel | --he | -h)
  1001. ac_init_help=long ;;
  1002. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  1003. ac_init_help=recursive ;;
  1004. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  1005. ac_init_help=short ;;
  1006. -host | --host | --hos | --ho)
  1007. ac_prev=host_alias ;;
  1008. -host=* | --host=* | --hos=* | --ho=*)
  1009. host_alias=$ac_optarg ;;
  1010. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  1011. ac_prev=htmldir ;;
  1012. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  1013. | --ht=*)
  1014. htmldir=$ac_optarg ;;
  1015. -includedir | --includedir | --includedi | --included | --include \
  1016. | --includ | --inclu | --incl | --inc)
  1017. ac_prev=includedir ;;
  1018. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  1019. | --includ=* | --inclu=* | --incl=* | --inc=*)
  1020. includedir=$ac_optarg ;;
  1021. -infodir | --infodir | --infodi | --infod | --info | --inf)
  1022. ac_prev=infodir ;;
  1023. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  1024. infodir=$ac_optarg ;;
  1025. -libdir | --libdir | --libdi | --libd)
  1026. ac_prev=libdir ;;
  1027. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  1028. libdir=$ac_optarg ;;
  1029. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  1030. | --libexe | --libex | --libe)
  1031. ac_prev=libexecdir ;;
  1032. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  1033. | --libexe=* | --libex=* | --libe=*)
  1034. libexecdir=$ac_optarg ;;
  1035. -localedir | --localedir | --localedi | --localed | --locale)
  1036. ac_prev=localedir ;;
  1037. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  1038. localedir=$ac_optarg ;;
  1039. -localstatedir | --localstatedir | --localstatedi | --localstated \
  1040. | --localstate | --localstat | --localsta | --localst | --locals)
  1041. ac_prev=localstatedir ;;
  1042. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  1043. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  1044. localstatedir=$ac_optarg ;;
  1045. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  1046. ac_prev=mandir ;;
  1047. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  1048. mandir=$ac_optarg ;;
  1049. -nfp | --nfp | --nf)
  1050. # Obsolete; use --without-fp.
  1051. with_fp=no ;;
  1052. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  1053. | --no-cr | --no-c | -n)
  1054. no_create=yes ;;
  1055. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  1056. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  1057. no_recursion=yes ;;
  1058. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  1059. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  1060. | --oldin | --oldi | --old | --ol | --o)
  1061. ac_prev=oldincludedir ;;
  1062. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  1063. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  1064. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  1065. oldincludedir=$ac_optarg ;;
  1066. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  1067. ac_prev=prefix ;;
  1068. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  1069. prefix=$ac_optarg ;;
  1070. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  1071. | --program-pre | --program-pr | --program-p)
  1072. ac_prev=program_prefix ;;
  1073. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  1074. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  1075. program_prefix=$ac_optarg ;;
  1076. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  1077. | --program-suf | --program-su | --program-s)
  1078. ac_prev=program_suffix ;;
  1079. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  1080. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  1081. program_suffix=$ac_optarg ;;
  1082. -program-transform-name | --program-transform-name \
  1083. | --program-transform-nam | --program-transform-na \
  1084. | --program-transform-n | --program-transform- \
  1085. | --program-transform | --program-transfor \
  1086. | --program-transfo | --program-transf \
  1087. | --program-trans | --program-tran \
  1088. | --progr-tra | --program-tr | --program-t)
  1089. ac_prev=program_transform_name ;;
  1090. -program-transform-name=* | --program-transform-name=* \
  1091. | --program-transform-nam=* | --program-transform-na=* \
  1092. | --program-transform-n=* | --program-transform-=* \
  1093. | --program-transform=* | --program-transfor=* \
  1094. | --program-transfo=* | --program-transf=* \
  1095. | --program-trans=* | --program-tran=* \
  1096. | --progr-tra=* | --program-tr=* | --program-t=*)
  1097. program_transform_name=$ac_optarg ;;
  1098. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  1099. ac_prev=pdfdir ;;
  1100. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  1101. pdfdir=$ac_optarg ;;
  1102. -psdir | --psdir | --psdi | --psd | --ps)
  1103. ac_prev=psdir ;;
  1104. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  1105. psdir=$ac_optarg ;;
  1106. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1107. | -silent | --silent | --silen | --sile | --sil)
  1108. silent=yes ;;
  1109. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  1110. ac_prev=sbindir ;;
  1111. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  1112. | --sbi=* | --sb=*)
  1113. sbindir=$ac_optarg ;;
  1114. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  1115. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  1116. | --sharedst | --shareds | --shared | --share | --shar \
  1117. | --sha | --sh)
  1118. ac_prev=sharedstatedir ;;
  1119. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  1120. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  1121. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  1122. | --sha=* | --sh=*)
  1123. sharedstatedir=$ac_optarg ;;
  1124. -site | --site | --sit)
  1125. ac_prev=site ;;
  1126. -site=* | --site=* | --sit=*)
  1127. site=$ac_optarg ;;
  1128. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1129. ac_prev=srcdir ;;
  1130. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1131. srcdir=$ac_optarg ;;
  1132. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  1133. | --syscon | --sysco | --sysc | --sys | --sy)
  1134. ac_prev=sysconfdir ;;
  1135. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1136. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1137. sysconfdir=$ac_optarg ;;
  1138. -target | --target | --targe | --targ | --tar | --ta | --t)
  1139. ac_prev=target_alias ;;
  1140. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1141. target_alias=$ac_optarg ;;
  1142. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1143. verbose=yes ;;
  1144. -version | --version | --versio | --versi | --vers | -V)
  1145. ac_init_version=: ;;
  1146. -with-* | --with-*)
  1147. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1148. # Reject names that are not valid shell variable names.
  1149. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1150. as_fn_error $? "invalid package name: $ac_useropt"
  1151. ac_useropt_orig=$ac_useropt
  1152. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1153. case $ac_user_opts in
  1154. *"
  1155. "with_$ac_useropt"
  1156. "*) ;;
  1157. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  1158. ac_unrecognized_sep=', ';;
  1159. esac
  1160. eval with_$ac_useropt=\$ac_optarg ;;
  1161. -without-* | --without-*)
  1162. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1163. # Reject names that are not valid shell variable names.
  1164. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1165. as_fn_error $? "invalid package name: $ac_useropt"
  1166. ac_useropt_orig=$ac_useropt
  1167. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1168. case $ac_user_opts in
  1169. *"
  1170. "with_$ac_useropt"
  1171. "*) ;;
  1172. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1173. ac_unrecognized_sep=', ';;
  1174. esac
  1175. eval with_$ac_useropt=no ;;
  1176. --x)
  1177. # Obsolete; use --with-x.
  1178. with_x=yes ;;
  1179. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1180. | --x-incl | --x-inc | --x-in | --x-i)
  1181. ac_prev=x_includes ;;
  1182. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1183. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1184. x_includes=$ac_optarg ;;
  1185. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1186. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1187. ac_prev=x_libraries ;;
  1188. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1189. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1190. x_libraries=$ac_optarg ;;
  1191. -*) as_fn_error $? "unrecognized option: \`$ac_option'
  1192. Try \`$0 --help' for more information"
  1193. ;;
  1194. *=*)
  1195. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1196. # Reject names that are not valid shell variable names.
  1197. case $ac_envvar in #(
  1198. '' | [0-9]* | *[!_$as_cr_alnum]* )
  1199. as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
  1200. esac
  1201. eval $ac_envvar=\$ac_optarg
  1202. export $ac_envvar ;;
  1203. *)
  1204. # FIXME: should be removed in autoconf 3.0.
  1205. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1206. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1207. $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1208. : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
  1209. ;;
  1210. esac
  1211. done
  1212. if test -n "$ac_prev"; then
  1213. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1214. as_fn_error $? "missing argument to $ac_option"
  1215. fi
  1216. if test -n "$ac_unrecognized_opts"; then
  1217. case $enable_option_checking in
  1218. no) ;;
  1219. fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
  1220. *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1221. esac
  1222. fi
  1223. # Check all directory arguments for consistency.
  1224. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1225. datadir sysconfdir sharedstatedir localstatedir includedir \
  1226. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1227. libdir localedir mandir
  1228. do
  1229. eval ac_val=\$$ac_var
  1230. # Remove trailing slashes.
  1231. case $ac_val in
  1232. */ )
  1233. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1234. eval $ac_var=\$ac_val;;
  1235. esac
  1236. # Be sure to have absolute directory names.
  1237. case $ac_val in
  1238. [\\/$]* | ?:[\\/]* ) continue;;
  1239. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1240. esac
  1241. as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
  1242. done
  1243. # There might be people who depend on the old broken behavior: `$host'
  1244. # used to hold the argument of --host etc.
  1245. # FIXME: To remove some day.
  1246. build=$build_alias
  1247. host=$host_alias
  1248. target=$target_alias
  1249. # FIXME: To remove some day.
  1250. if test "x$host_alias" != x; then
  1251. if test "x$build_alias" = x; then
  1252. cross_compiling=maybe
  1253. elif test "x$build_alias" != "x$host_alias"; then
  1254. cross_compiling=yes
  1255. fi
  1256. fi
  1257. ac_tool_prefix=
  1258. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1259. test "$silent" = yes && exec 6>/dev/null
  1260. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1261. ac_ls_di=`ls -di .` &&
  1262. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1263. as_fn_error $? "working directory cannot be determined"
  1264. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1265. as_fn_error $? "pwd does not report name of working directory"
  1266. # Find the source files, if location was not specified.
  1267. if test -z "$srcdir"; then
  1268. ac_srcdir_defaulted=yes
  1269. # Try the directory containing this script, then the parent directory.
  1270. ac_confdir=`$as_dirname -- "$as_myself" ||
  1271. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1272. X"$as_myself" : 'X\(//\)[^/]' \| \
  1273. X"$as_myself" : 'X\(//\)$' \| \
  1274. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1275. $as_echo X"$as_myself" |
  1276. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1277. s//\1/
  1278. q
  1279. }
  1280. /^X\(\/\/\)[^/].*/{
  1281. s//\1/
  1282. q
  1283. }
  1284. /^X\(\/\/\)$/{
  1285. s//\1/
  1286. q
  1287. }
  1288. /^X\(\/\).*/{
  1289. s//\1/
  1290. q
  1291. }
  1292. s/.*/./; q'`
  1293. srcdir=$ac_confdir
  1294. if test ! -r "$srcdir/$ac_unique_file"; then
  1295. srcdir=..
  1296. fi
  1297. else
  1298. ac_srcdir_defaulted=no
  1299. fi
  1300. if test ! -r "$srcdir/$ac_unique_file"; then
  1301. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1302. as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
  1303. fi
  1304. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1305. ac_abs_confdir=`(
  1306. cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
  1307. pwd)`
  1308. # When building in place, set srcdir=.
  1309. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1310. srcdir=.
  1311. fi
  1312. # Remove unnecessary trailing slashes from srcdir.
  1313. # Double slashes in file names in object file debugging info
  1314. # mess up M-x gdb in Emacs.
  1315. case $srcdir in
  1316. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1317. esac
  1318. for ac_var in $ac_precious_vars; do
  1319. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1320. eval ac_env_${ac_var}_value=\$${ac_var}
  1321. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1322. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1323. done
  1324. #
  1325. # Report the --help message.
  1326. #
  1327. if test "$ac_init_help" = "long"; then
  1328. # Omit some internal or obsolete options to make the list less imposing.
  1329. # This message is too long to be a string in the A/UX 3.1 sh.
  1330. cat <<_ACEOF
  1331. \`configure' configures file 5.14 to adapt to many kinds of systems.
  1332. Usage: $0 [OPTION]... [VAR=VALUE]...
  1333. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1334. VAR=VALUE. See below for descriptions of some of the useful variables.
  1335. Defaults for the options are specified in brackets.
  1336. Configuration:
  1337. -h, --help display this help and exit
  1338. --help=short display options specific to this package
  1339. --help=recursive display the short help of all the included packages
  1340. -V, --version display version information and exit
  1341. -q, --quiet, --silent do not print \`checking ...' messages
  1342. --cache-file=FILE cache test results in FILE [disabled]
  1343. -C, --config-cache alias for \`--cache-file=config.cache'
  1344. -n, --no-create do not create output files
  1345. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1346. Installation directories:
  1347. --prefix=PREFIX install architecture-independent files in PREFIX
  1348. [$ac_default_prefix]
  1349. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1350. [PREFIX]
  1351. By default, \`make install' will install all the files in
  1352. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1353. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1354. for instance \`--prefix=\$HOME'.
  1355. For better control, use the options below.
  1356. Fine tuning of the installation directories:
  1357. --bindir=DIR user executables [EPREFIX/bin]
  1358. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1359. --libexecdir=DIR program executables [EPREFIX/libexec]
  1360. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1361. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1362. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1363. --libdir=DIR object code libraries [EPREFIX/lib]
  1364. --includedir=DIR C header files [PREFIX/include]
  1365. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1366. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1367. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1368. --infodir=DIR info documentation [DATAROOTDIR/info]
  1369. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1370. --mandir=DIR man documentation [DATAROOTDIR/man]
  1371. --docdir=DIR documentation root [DATAROOTDIR/doc/file]
  1372. --htmldir=DIR html documentation [DOCDIR]
  1373. --dvidir=DIR dvi documentation [DOCDIR]
  1374. --pdfdir=DIR pdf documentation [DOCDIR]
  1375. --psdir=DIR ps documentation [DOCDIR]
  1376. _ACEOF
  1377. cat <<\_ACEOF
  1378. Program names:
  1379. --program-prefix=PREFIX prepend PREFIX to installed program names
  1380. --program-suffix=SUFFIX append SUFFIX to installed program names
  1381. --program-transform-name=PROGRAM run sed PROGRAM on installed program names
  1382. System types:
  1383. --build=BUILD configure for building on BUILD [guessed]
  1384. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1385. _ACEOF
  1386. fi
  1387. if test -n "$ac_init_help"; then
  1388. case $ac_init_help in
  1389. short | recursive ) echo "Configuration of file 5.14:";;
  1390. esac
  1391. cat <<\_ACEOF
  1392. Optional Features:
  1393. --disable-option-checking ignore unrecognized --enable/--with options
  1394. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1395. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1396. --enable-silent-rules less verbose build output (undo: "make V=1")
  1397. --disable-silent-rules verbose build output (undo: "make V=0")
  1398. --disable-elf disable builtin ELF support
  1399. --disable-elf-core disable ELF core file support
  1400. --enable-fsect-man5 enable file formats in man section 5
  1401. --enable-dependency-tracking
  1402. do not reject slow dependency extractors
  1403. --disable-dependency-tracking
  1404. speeds up one-time build
  1405. --enable-static[=PKGS] build static libraries [default=no]
  1406. --enable-shared[=PKGS] build shared libraries [default=yes]
  1407. --enable-fast-install[=PKGS]
  1408. optimize for fast installation [default=yes]
  1409. --disable-libtool-lock avoid locking (might break parallel builds)
  1410. --disable-largefile omit support for large files
  1411. --disable-warnings disable compiler warnings
  1412. Optional Packages:
  1413. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1414. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1415. --with-pic try to use only PIC/non-PIC objects [default=use
  1416. both]
  1417. --with-gnu-ld assume the C compiler uses GNU ld [default=no]
  1418. Some influential environment variables:
  1419. CC C compiler command
  1420. CFLAGS C compiler flags
  1421. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1422. nonstandard directory <lib dir>
  1423. LIBS libraries to pass to the linker, e.g. -l<library>
  1424. CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
  1425. you have headers in a nonstandard directory <include dir>
  1426. CPP C preprocessor
  1427. Use these variables to override the choices made by `configure' or to help
  1428. it to find libraries and programs with nonstandard names/locations.
  1429. Report bugs to <christos@astron.com>.
  1430. _ACEOF
  1431. ac_status=$?
  1432. fi
  1433. if test "$ac_init_help" = "recursive"; then
  1434. # If there are subdirs, report their specific --help.
  1435. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1436. test -d "$ac_dir" ||
  1437. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1438. continue
  1439. ac_builddir=.
  1440. case "$ac_dir" in
  1441. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1442. *)
  1443. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  1444. # A ".." for each directory in $ac_dir_suffix.
  1445. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1446. case $ac_top_builddir_sub in
  1447. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1448. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1449. esac ;;
  1450. esac
  1451. ac_abs_top_builddir=$ac_pwd
  1452. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1453. # for backward compatibility:
  1454. ac_top_builddir=$ac_top_build_prefix
  1455. case $srcdir in
  1456. .) # We are building in place.
  1457. ac_srcdir=.
  1458. ac_top_srcdir=$ac_top_builddir_sub
  1459. ac_abs_top_srcdir=$ac_pwd ;;
  1460. [\\/]* | ?:[\\/]* ) # Absolute name.
  1461. ac_srcdir=$srcdir$ac_dir_suffix;
  1462. ac_top_srcdir=$srcdir
  1463. ac_abs_top_srcdir=$srcdir ;;
  1464. *) # Relative name.
  1465. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1466. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1467. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1468. esac
  1469. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1470. cd "$ac_dir" || { ac_status=$?; continue; }
  1471. # Check for guested configure.
  1472. if test -f "$ac_srcdir/configure.gnu"; then
  1473. echo &&
  1474. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1475. elif test -f "$ac_srcdir/configure"; then
  1476. echo &&
  1477. $SHELL "$ac_srcdir/configure" --help=recursive
  1478. else
  1479. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1480. fi || ac_status=$?
  1481. cd "$ac_pwd" || { ac_status=$?; break; }
  1482. done
  1483. fi
  1484. test -n "$ac_init_help" && exit $ac_status
  1485. if $ac_init_version; then
  1486. cat <<\_ACEOF
  1487. file configure 5.14
  1488. generated by GNU Autoconf 2.69
  1489. Copyright (C) 2012 Free Software Foundation, Inc.
  1490. This configure script is free software; the Free Software Foundation
  1491. gives unlimited permission to copy, distribute and modify it.
  1492. _ACEOF
  1493. exit
  1494. fi
  1495. ## ------------------------ ##
  1496. ## Autoconf initialization. ##
  1497. ## ------------------------ ##
  1498. # ac_fn_c_try_compile LINENO
  1499. # --------------------------
  1500. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1501. ac_fn_c_try_compile ()
  1502. {
  1503. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1504. rm -f conftest.$ac_objext
  1505. if { { ac_try="$ac_compile"
  1506. case "(($ac_try" in
  1507. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1508. *) ac_try_echo=$ac_try;;
  1509. esac
  1510. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1511. $as_echo "$ac_try_echo"; } >&5
  1512. (eval "$ac_compile") 2>conftest.err
  1513. ac_status=$?
  1514. if test -s conftest.err; then
  1515. grep -v '^ *+' conftest.err >conftest.er1
  1516. cat conftest.er1 >&5
  1517. mv -f conftest.er1 conftest.err
  1518. fi
  1519. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1520. test $ac_status = 0; } && {
  1521. test -z "$ac_c_werror_flag" ||
  1522. test ! -s conftest.err
  1523. } && test -s conftest.$ac_objext; then :
  1524. ac_retval=0
  1525. else
  1526. $as_echo "$as_me: failed program was:" >&5
  1527. sed 's/^/| /' conftest.$ac_ext >&5
  1528. ac_retval=1
  1529. fi
  1530. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1531. as_fn_set_status $ac_retval
  1532. } # ac_fn_c_try_compile
  1533. # ac_fn_c_try_cpp LINENO
  1534. # ----------------------
  1535. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1536. ac_fn_c_try_cpp ()
  1537. {
  1538. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1539. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1540. case "(($ac_try" in
  1541. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1542. *) ac_try_echo=$ac_try;;
  1543. esac
  1544. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1545. $as_echo "$ac_try_echo"; } >&5
  1546. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1547. ac_status=$?
  1548. if test -s conftest.err; then
  1549. grep -v '^ *+' conftest.err >conftest.er1
  1550. cat conftest.er1 >&5
  1551. mv -f conftest.er1 conftest.err
  1552. fi
  1553. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1554. test $ac_status = 0; } > conftest.i && {
  1555. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  1556. test ! -s conftest.err
  1557. }; then :
  1558. ac_retval=0
  1559. else
  1560. $as_echo "$as_me: failed program was:" >&5
  1561. sed 's/^/| /' conftest.$ac_ext >&5
  1562. ac_retval=1
  1563. fi
  1564. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1565. as_fn_set_status $ac_retval
  1566. } # ac_fn_c_try_cpp
  1567. # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
  1568. # -------------------------------------------------------
  1569. # Tests whether HEADER exists, giving a warning if it cannot be compiled using
  1570. # the include files in INCLUDES and setting the cache variable VAR
  1571. # accordingly.
  1572. ac_fn_c_check_header_mongrel ()
  1573. {
  1574. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1575. if eval \${$3+:} false; then :
  1576. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1577. $as_echo_n "checking for $2... " >&6; }
  1578. if eval \${$3+:} false; then :
  1579. $as_echo_n "(cached) " >&6
  1580. fi
  1581. eval ac_res=\$$3
  1582. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1583. $as_echo "$ac_res" >&6; }
  1584. else
  1585. # Is the header compilable?
  1586. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
  1587. $as_echo_n "checking $2 usability... " >&6; }
  1588. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1589. /* end confdefs.h. */
  1590. $4
  1591. #include <$2>
  1592. _ACEOF
  1593. if ac_fn_c_try_compile "$LINENO"; then :
  1594. ac_header_compiler=yes
  1595. else
  1596. ac_header_compiler=no
  1597. fi
  1598. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1599. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
  1600. $as_echo "$ac_header_compiler" >&6; }
  1601. # Is the header present?
  1602. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
  1603. $as_echo_n "checking $2 presence... " >&6; }
  1604. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1605. /* end confdefs.h. */
  1606. #include <$2>
  1607. _ACEOF
  1608. if ac_fn_c_try_cpp "$LINENO"; then :
  1609. ac_header_preproc=yes
  1610. else
  1611. ac_header_preproc=no
  1612. fi
  1613. rm -f conftest.err conftest.i conftest.$ac_ext
  1614. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
  1615. $as_echo "$ac_header_preproc" >&6; }
  1616. # So? What about this header?
  1617. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
  1618. yes:no: )
  1619. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
  1620. $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
  1621. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1622. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1623. ;;
  1624. no:yes:* )
  1625. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
  1626. $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
  1627. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
  1628. $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
  1629. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
  1630. $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
  1631. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
  1632. $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
  1633. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1634. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1635. ( $as_echo "## ---------------------------------- ##
  1636. ## Report this to christos@astron.com ##
  1637. ## ---------------------------------- ##"
  1638. ) | sed "s/^/$as_me: WARNING: /" >&2
  1639. ;;
  1640. esac
  1641. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1642. $as_echo_n "checking for $2... " >&6; }
  1643. if eval \${$3+:} false; then :
  1644. $as_echo_n "(cached) " >&6
  1645. else
  1646. eval "$3=\$ac_header_compiler"
  1647. fi
  1648. eval ac_res=\$$3
  1649. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1650. $as_echo "$ac_res" >&6; }
  1651. fi
  1652. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1653. } # ac_fn_c_check_header_mongrel
  1654. # ac_fn_c_try_run LINENO
  1655. # ----------------------
  1656. # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
  1657. # that executables *can* be run.
  1658. ac_fn_c_try_run ()
  1659. {
  1660. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1661. if { { ac_try="$ac_link"
  1662. case "(($ac_try" in
  1663. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1664. *) ac_try_echo=$ac_try;;
  1665. esac
  1666. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1667. $as_echo "$ac_try_echo"; } >&5
  1668. (eval "$ac_link") 2>&5
  1669. ac_status=$?
  1670. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1671. test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  1672. { { case "(($ac_try" in
  1673. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1674. *) ac_try_echo=$ac_try;;
  1675. esac
  1676. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1677. $as_echo "$ac_try_echo"; } >&5
  1678. (eval "$ac_try") 2>&5
  1679. ac_status=$?
  1680. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1681. test $ac_status = 0; }; }; then :
  1682. ac_retval=0
  1683. else
  1684. $as_echo "$as_me: program exited with status $ac_status" >&5
  1685. $as_echo "$as_me: failed program was:" >&5
  1686. sed 's/^/| /' conftest.$ac_ext >&5
  1687. ac_retval=$ac_status
  1688. fi
  1689. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1690. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1691. as_fn_set_status $ac_retval
  1692. } # ac_fn_c_try_run
  1693. # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
  1694. # -------------------------------------------------------
  1695. # Tests whether HEADER exists and can be compiled using the include files in
  1696. # INCLUDES, setting the cache variable VAR accordingly.
  1697. ac_fn_c_check_header_compile ()
  1698. {
  1699. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1700. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1701. $as_echo_n "checking for $2... " >&6; }
  1702. if eval \${$3+:} false; then :
  1703. $as_echo_n "(cached) " >&6
  1704. else
  1705. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1706. /* end confdefs.h. */
  1707. $4
  1708. #include <$2>
  1709. _ACEOF
  1710. if ac_fn_c_try_compile "$LINENO"; then :
  1711. eval "$3=yes"
  1712. else
  1713. eval "$3=no"
  1714. fi
  1715. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1716. fi
  1717. eval ac_res=\$$3
  1718. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1719. $as_echo "$ac_res" >&6; }
  1720. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1721. } # ac_fn_c_check_header_compile
  1722. # ac_fn_c_try_link LINENO
  1723. # -----------------------
  1724. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1725. ac_fn_c_try_link ()
  1726. {
  1727. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1728. rm -f conftest.$ac_objext conftest$ac_exeext
  1729. if { { ac_try="$ac_link"
  1730. case "(($ac_try" in
  1731. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1732. *) ac_try_echo=$ac_try;;
  1733. esac
  1734. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1735. $as_echo "$ac_try_echo"; } >&5
  1736. (eval "$ac_link") 2>conftest.err
  1737. ac_status=$?
  1738. if test -s conftest.err; then
  1739. grep -v '^ *+' conftest.err >conftest.er1
  1740. cat conftest.er1 >&5
  1741. mv -f conftest.er1 conftest.err
  1742. fi
  1743. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1744. test $ac_status = 0; } && {
  1745. test -z "$ac_c_werror_flag" ||
  1746. test ! -s conftest.err
  1747. } && test -s conftest$ac_exeext && {
  1748. test "$cross_compiling" = yes ||
  1749. test -x conftest$ac_exeext
  1750. }; then :
  1751. ac_retval=0
  1752. else
  1753. $as_echo "$as_me: failed program was:" >&5
  1754. sed 's/^/| /' conftest.$ac_ext >&5
  1755. ac_retval=1
  1756. fi
  1757. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1758. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1759. # interfere with the next link command; also delete a directory that is
  1760. # left behind by Apple's compiler. We do this before executing the actions.
  1761. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1762. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1763. as_fn_set_status $ac_retval
  1764. } # ac_fn_c_try_link
  1765. # ac_fn_c_check_func LINENO FUNC VAR
  1766. # ----------------------------------
  1767. # Tests whether FUNC exists, setting the cache variable VAR accordingly
  1768. ac_fn_c_check_func ()
  1769. {
  1770. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1771. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1772. $as_echo_n "checking for $2... " >&6; }
  1773. if eval \${$3+:} false; then :
  1774. $as_echo_n "(cached) " >&6
  1775. else
  1776. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1777. /* end confdefs.h. */
  1778. /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  1779. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  1780. #define $2 innocuous_$2
  1781. /* System header to define __stub macros and hopefully few prototypes,
  1782. which can conflict with char $2 (); below.
  1783. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  1784. <limits.h> exists even on freestanding compilers. */
  1785. #ifdef __STDC__
  1786. # include <limits.h>
  1787. #else
  1788. # include <assert.h>
  1789. #endif
  1790. #undef $2
  1791. /* Override any GCC internal prototype to avoid an error.
  1792. Use char because int might match the return type of a GCC
  1793. builtin and then its argument prototype would still apply. */
  1794. #ifdef __cplusplus
  1795. extern "C"
  1796. #endif
  1797. char $2 ();
  1798. /* The GNU C library defines this for functions which it implements
  1799. to always fail with ENOSYS. Some functions are actually named
  1800. something starting with __ and the normal name is an alias. */
  1801. #if defined __stub_$2 || defined __stub___$2
  1802. choke me
  1803. #endif
  1804. int
  1805. main ()
  1806. {
  1807. return $2 ();
  1808. ;
  1809. return 0;
  1810. }
  1811. _ACEOF
  1812. if ac_fn_c_try_link "$LINENO"; then :
  1813. eval "$3=yes"
  1814. else
  1815. eval "$3=no"
  1816. fi
  1817. rm -f core conftest.err conftest.$ac_objext \
  1818. conftest$ac_exeext conftest.$ac_ext
  1819. fi
  1820. eval ac_res=\$$3
  1821. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1822. $as_echo "$ac_res" >&6; }
  1823. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1824. } # ac_fn_c_check_func
  1825. # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
  1826. # -------------------------------------------
  1827. # Tests whether TYPE exists after having included INCLUDES, setting cache
  1828. # variable VAR accordingly.
  1829. ac_fn_c_check_type ()
  1830. {
  1831. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1832. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1833. $as_echo_n "checking for $2... " >&6; }
  1834. if eval \${$3+:} false; then :
  1835. $as_echo_n "(cached) " >&6
  1836. else
  1837. eval "$3=no"
  1838. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1839. /* end confdefs.h. */
  1840. $4
  1841. int
  1842. main ()
  1843. {
  1844. if (sizeof ($2))
  1845. return 0;
  1846. ;
  1847. return 0;
  1848. }
  1849. _ACEOF
  1850. if ac_fn_c_try_compile "$LINENO"; then :
  1851. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1852. /* end confdefs.h. */
  1853. $4
  1854. int
  1855. main ()
  1856. {
  1857. if (sizeof (($2)))
  1858. return 0;
  1859. ;
  1860. return 0;
  1861. }
  1862. _ACEOF
  1863. if ac_fn_c_try_compile "$LINENO"; then :
  1864. else
  1865. eval "$3=yes"
  1866. fi
  1867. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1868. fi
  1869. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1870. fi
  1871. eval ac_res=\$$3
  1872. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1873. $as_echo "$ac_res" >&6; }
  1874. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1875. } # ac_fn_c_check_type
  1876. # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
  1877. # ----------------------------------------------------
  1878. # Tries to find if the field MEMBER exists in type AGGR, after including
  1879. # INCLUDES, setting cache variable VAR accordingly.
  1880. ac_fn_c_check_member ()
  1881. {
  1882. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1883. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
  1884. $as_echo_n "checking for $2.$3... " >&6; }
  1885. if eval \${$4+:} false; then :
  1886. $as_echo_n "(cached) " >&6
  1887. else
  1888. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1889. /* end confdefs.h. */
  1890. $5
  1891. int
  1892. main ()
  1893. {
  1894. static $2 ac_aggr;
  1895. if (ac_aggr.$3)
  1896. return 0;
  1897. ;
  1898. return 0;
  1899. }
  1900. _ACEOF
  1901. if ac_fn_c_try_compile "$LINENO"; then :
  1902. eval "$4=yes"
  1903. else
  1904. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1905. /* end confdefs.h. */
  1906. $5
  1907. int
  1908. main ()
  1909. {
  1910. static $2 ac_aggr;
  1911. if (sizeof ac_aggr.$3)
  1912. return 0;
  1913. ;
  1914. return 0;
  1915. }
  1916. _ACEOF
  1917. if ac_fn_c_try_compile "$LINENO"; then :
  1918. eval "$4=yes"
  1919. else
  1920. eval "$4=no"
  1921. fi
  1922. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1923. fi
  1924. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1925. fi
  1926. eval ac_res=\$$4
  1927. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1928. $as_echo "$ac_res" >&6; }
  1929. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1930. } # ac_fn_c_check_member
  1931. # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
  1932. # ---------------------------------------------
  1933. # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
  1934. # accordingly.
  1935. ac_fn_c_check_decl ()
  1936. {
  1937. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1938. as_decl_name=`echo $2|sed 's/ *(.*//'`
  1939. as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
  1940. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
  1941. $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
  1942. if eval \${$3+:} false; then :
  1943. $as_echo_n "(cached) " >&6
  1944. else
  1945. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1946. /* end confdefs.h. */
  1947. $4
  1948. int
  1949. main ()
  1950. {
  1951. #ifndef $as_decl_name
  1952. #ifdef __cplusplus
  1953. (void) $as_decl_use;
  1954. #else
  1955. (void) $as_decl_name;
  1956. #endif
  1957. #endif
  1958. ;
  1959. return 0;
  1960. }
  1961. _ACEOF
  1962. if ac_fn_c_try_compile "$LINENO"; then :
  1963. eval "$3=yes"
  1964. else
  1965. eval "$3=no"
  1966. fi
  1967. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1968. fi
  1969. eval ac_res=\$$3
  1970. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1971. $as_echo "$ac_res" >&6; }
  1972. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1973. } # ac_fn_c_check_decl
  1974. # ac_fn_c_find_uintX_t LINENO BITS VAR
  1975. # ------------------------------------
  1976. # Finds an unsigned integer type with width BITS, setting cache variable VAR
  1977. # accordingly.
  1978. ac_fn_c_find_uintX_t ()
  1979. {
  1980. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1981. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
  1982. $as_echo_n "checking for uint$2_t... " >&6; }
  1983. if eval \${$3+:} false; then :
  1984. $as_echo_n "(cached) " >&6
  1985. else
  1986. eval "$3=no"
  1987. # Order is important - never check a type that is potentially smaller
  1988. # than half of the expected target width.
  1989. for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
  1990. 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
  1991. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1992. /* end confdefs.h. */
  1993. $ac_includes_default
  1994. int
  1995. main ()
  1996. {
  1997. static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
  1998. test_array [0] = 0;
  1999. return test_array [0];
  2000. ;
  2001. return 0;
  2002. }
  2003. _ACEOF
  2004. if ac_fn_c_try_compile "$LINENO"; then :
  2005. case $ac_type in #(
  2006. uint$2_t) :
  2007. eval "$3=yes" ;; #(
  2008. *) :
  2009. eval "$3=\$ac_type" ;;
  2010. esac
  2011. fi
  2012. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2013. if eval test \"x\$"$3"\" = x"no"; then :
  2014. else
  2015. break
  2016. fi
  2017. done
  2018. fi
  2019. eval ac_res=\$$3
  2020. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2021. $as_echo "$ac_res" >&6; }
  2022. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2023. } # ac_fn_c_find_uintX_t
  2024. # ac_fn_c_find_intX_t LINENO BITS VAR
  2025. # -----------------------------------
  2026. # Finds a signed integer type with width BITS, setting cache variable VAR
  2027. # accordingly.
  2028. ac_fn_c_find_intX_t ()
  2029. {
  2030. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2031. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
  2032. $as_echo_n "checking for int$2_t... " >&6; }
  2033. if eval \${$3+:} false; then :
  2034. $as_echo_n "(cached) " >&6
  2035. else
  2036. eval "$3=no"
  2037. # Order is important - never check a type that is potentially smaller
  2038. # than half of the expected target width.
  2039. for ac_type in int$2_t 'int' 'long int' \
  2040. 'long long int' 'short int' 'signed char'; do
  2041. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2042. /* end confdefs.h. */
  2043. $ac_includes_default
  2044. enum { N = $2 / 2 - 1 };
  2045. int
  2046. main ()
  2047. {
  2048. static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))];
  2049. test_array [0] = 0;
  2050. return test_array [0];
  2051. ;
  2052. return 0;
  2053. }
  2054. _ACEOF
  2055. if ac_fn_c_try_compile "$LINENO"; then :
  2056. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2057. /* end confdefs.h. */
  2058. $ac_includes_default
  2059. enum { N = $2 / 2 - 1 };
  2060. int
  2061. main ()
  2062. {
  2063. static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1)
  2064. < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))];
  2065. test_array [0] = 0;
  2066. return test_array [0];
  2067. ;
  2068. return 0;
  2069. }
  2070. _ACEOF
  2071. if ac_fn_c_try_compile "$LINENO"; then :
  2072. else
  2073. case $ac_type in #(
  2074. int$2_t) :
  2075. eval "$3=yes" ;; #(
  2076. *) :
  2077. eval "$3=\$ac_type" ;;
  2078. esac
  2079. fi
  2080. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2081. fi
  2082. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2083. if eval test \"x\$"$3"\" = x"no"; then :
  2084. else
  2085. break
  2086. fi
  2087. done
  2088. fi
  2089. eval ac_res=\$$3
  2090. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2091. $as_echo "$ac_res" >&6; }
  2092. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2093. } # ac_fn_c_find_intX_t
  2094. cat >config.log <<_ACEOF
  2095. This file contains any messages produced by compilers while
  2096. running configure, to aid debugging if configure makes a mistake.
  2097. It was created by file $as_me 5.14, which was
  2098. generated by GNU Autoconf 2.69. Invocation command line was
  2099. $ $0 $@
  2100. _ACEOF
  2101. exec 5>>config.log
  2102. {
  2103. cat <<_ASUNAME
  2104. ## --------- ##
  2105. ## Platform. ##
  2106. ## --------- ##
  2107. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  2108. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  2109. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  2110. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  2111. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  2112. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  2113. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  2114. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  2115. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  2116. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  2117. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  2118. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  2119. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  2120. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  2121. _ASUNAME
  2122. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2123. for as_dir in $PATH
  2124. do
  2125. IFS=$as_save_IFS
  2126. test -z "$as_dir" && as_dir=.
  2127. $as_echo "PATH: $as_dir"
  2128. done
  2129. IFS=$as_save_IFS
  2130. } >&5
  2131. cat >&5 <<_ACEOF
  2132. ## ----------- ##
  2133. ## Core tests. ##
  2134. ## ----------- ##
  2135. _ACEOF
  2136. # Keep a trace of the command line.
  2137. # Strip out --no-create and --no-recursion so they do not pile up.
  2138. # Strip out --silent because we don't want to record it for future runs.
  2139. # Also quote any args containing shell meta-characters.
  2140. # Make two passes to allow for proper duplicate-argument suppression.
  2141. ac_configure_args=
  2142. ac_configure_args0=
  2143. ac_configure_args1=
  2144. ac_must_keep_next=false
  2145. for ac_pass in 1 2
  2146. do
  2147. for ac_arg
  2148. do
  2149. case $ac_arg in
  2150. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  2151. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  2152. | -silent | --silent | --silen | --sile | --sil)
  2153. continue ;;
  2154. *\'*)
  2155. ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  2156. esac
  2157. case $ac_pass in
  2158. 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  2159. 2)
  2160. as_fn_append ac_configure_args1 " '$ac_arg'"
  2161. if test $ac_must_keep_next = true; then
  2162. ac_must_keep_next=false # Got value, back to normal.
  2163. else
  2164. case $ac_arg in
  2165. *=* | --config-cache | -C | -disable-* | --disable-* \
  2166. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  2167. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  2168. | -with-* | --with-* | -without-* | --without-* | --x)
  2169. case "$ac_configure_args0 " in
  2170. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  2171. esac
  2172. ;;
  2173. -* ) ac_must_keep_next=true ;;
  2174. esac
  2175. fi
  2176. as_fn_append ac_configure_args " '$ac_arg'"
  2177. ;;
  2178. esac
  2179. done
  2180. done
  2181. { ac_configure_args0=; unset ac_configure_args0;}
  2182. { ac_configure_args1=; unset ac_configure_args1;}
  2183. # When interrupted or exit'd, cleanup temporary files, and complete
  2184. # config.log. We remove comments because anyway the quotes in there
  2185. # would cause problems or look ugly.
  2186. # WARNING: Use '\'' to represent an apostrophe within the trap.
  2187. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  2188. trap 'exit_status=$?
  2189. # Save into config.log some information that might help in debugging.
  2190. {
  2191. echo
  2192. $as_echo "## ---------------- ##
  2193. ## Cache variables. ##
  2194. ## ---------------- ##"
  2195. echo
  2196. # The following way of writing the cache mishandles newlines in values,
  2197. (
  2198. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  2199. eval ac_val=\$$ac_var
  2200. case $ac_val in #(
  2201. *${as_nl}*)
  2202. case $ac_var in #(
  2203. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  2204. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  2205. esac
  2206. case $ac_var in #(
  2207. _ | IFS | as_nl) ;; #(
  2208. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  2209. *) { eval $ac_var=; unset $ac_var;} ;;
  2210. esac ;;
  2211. esac
  2212. done
  2213. (set) 2>&1 |
  2214. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  2215. *${as_nl}ac_space=\ *)
  2216. sed -n \
  2217. "s/'\''/'\''\\\\'\'''\''/g;
  2218. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  2219. ;; #(
  2220. *)
  2221. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  2222. ;;
  2223. esac |
  2224. sort
  2225. )
  2226. echo
  2227. $as_echo "## ----------------- ##
  2228. ## Output variables. ##
  2229. ## ----------------- ##"
  2230. echo
  2231. for ac_var in $ac_subst_vars
  2232. do
  2233. eval ac_val=\$$ac_var
  2234. case $ac_val in
  2235. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2236. esac
  2237. $as_echo "$ac_var='\''$ac_val'\''"
  2238. done | sort
  2239. echo
  2240. if test -n "$ac_subst_files"; then
  2241. $as_echo "## ------------------- ##
  2242. ## File substitutions. ##
  2243. ## ------------------- ##"
  2244. echo
  2245. for ac_var in $ac_subst_files
  2246. do
  2247. eval ac_val=\$$ac_var
  2248. case $ac_val in
  2249. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2250. esac
  2251. $as_echo "$ac_var='\''$ac_val'\''"
  2252. done | sort
  2253. echo
  2254. fi
  2255. if test -s confdefs.h; then
  2256. $as_echo "## ----------- ##
  2257. ## confdefs.h. ##
  2258. ## ----------- ##"
  2259. echo
  2260. cat confdefs.h
  2261. echo
  2262. fi
  2263. test "$ac_signal" != 0 &&
  2264. $as_echo "$as_me: caught signal $ac_signal"
  2265. $as_echo "$as_me: exit $exit_status"
  2266. } >&5
  2267. rm -f core *.core core.conftest.* &&
  2268. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  2269. exit $exit_status
  2270. ' 0
  2271. for ac_signal in 1 2 13 15; do
  2272. trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  2273. done
  2274. ac_signal=0
  2275. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  2276. rm -f -r conftest* confdefs.h
  2277. $as_echo "/* confdefs.h */" > confdefs.h
  2278. # Predefined preprocessor variables.
  2279. cat >>confdefs.h <<_ACEOF
  2280. #define PACKAGE_NAME "$PACKAGE_NAME"
  2281. _ACEOF
  2282. cat >>confdefs.h <<_ACEOF
  2283. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  2284. _ACEOF
  2285. cat >>confdefs.h <<_ACEOF
  2286. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  2287. _ACEOF
  2288. cat >>confdefs.h <<_ACEOF
  2289. #define PACKAGE_STRING "$PACKAGE_STRING"
  2290. _ACEOF
  2291. cat >>confdefs.h <<_ACEOF
  2292. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  2293. _ACEOF
  2294. cat >>confdefs.h <<_ACEOF
  2295. #define PACKAGE_URL "$PACKAGE_URL"
  2296. _ACEOF
  2297. # Let the site file select an alternate cache file if it wants to.
  2298. # Prefer an explicitly selected file to automatically selected ones.
  2299. ac_site_file1=NONE
  2300. ac_site_file2=NONE
  2301. if test -n "$CONFIG_SITE"; then
  2302. # We do not want a PATH search for config.site.
  2303. case $CONFIG_SITE in #((
  2304. -*) ac_site_file1=./$CONFIG_SITE;;
  2305. */*) ac_site_file1=$CONFIG_SITE;;
  2306. *) ac_site_file1=./$CONFIG_SITE;;
  2307. esac
  2308. elif test "x$prefix" != xNONE; then
  2309. ac_site_file1=$prefix/share/config.site
  2310. ac_site_file2=$prefix/etc/config.site
  2311. else
  2312. ac_site_file1=$ac_default_prefix/share/config.site
  2313. ac_site_file2=$ac_default_prefix/etc/config.site
  2314. fi
  2315. for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  2316. do
  2317. test "x$ac_site_file" = xNONE && continue
  2318. if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
  2319. { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  2320. $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  2321. sed 's/^/| /' "$ac_site_file" >&5
  2322. . "$ac_site_file" \
  2323. || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2324. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2325. as_fn_error $? "failed to load site script $ac_site_file
  2326. See \`config.log' for more details" "$LINENO" 5; }
  2327. fi
  2328. done
  2329. if test -r "$cache_file"; then
  2330. # Some versions of bash will fail to source /dev/null (special files
  2331. # actually), so we avoid doing that. DJGPP emulates it as a regular file.
  2332. if test /dev/null != "$cache_file" && test -f "$cache_file"; then
  2333. { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  2334. $as_echo "$as_me: loading cache $cache_file" >&6;}
  2335. case $cache_file in
  2336. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  2337. *) . "./$cache_file";;
  2338. esac
  2339. fi
  2340. else
  2341. { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  2342. $as_echo "$as_me: creating cache $cache_file" >&6;}
  2343. >$cache_file
  2344. fi
  2345. as_fn_append ac_header_list " stdlib.h"
  2346. as_fn_append ac_header_list " unistd.h"
  2347. as_fn_append ac_header_list " sys/param.h"
  2348. # Check that the precious variables saved in the cache have kept the same
  2349. # value.
  2350. ac_cache_corrupted=false
  2351. for ac_var in $ac_precious_vars; do
  2352. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  2353. eval ac_new_set=\$ac_env_${ac_var}_set
  2354. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  2355. eval ac_new_val=\$ac_env_${ac_var}_value
  2356. case $ac_old_set,$ac_new_set in
  2357. set,)
  2358. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  2359. $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  2360. ac_cache_corrupted=: ;;
  2361. ,set)
  2362. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  2363. $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  2364. ac_cache_corrupted=: ;;
  2365. ,);;
  2366. *)
  2367. if test "x$ac_old_val" != "x$ac_new_val"; then
  2368. # differences in whitespace do not lead to failure.
  2369. ac_old_val_w=`echo x $ac_old_val`
  2370. ac_new_val_w=`echo x $ac_new_val`
  2371. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  2372. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  2373. $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  2374. ac_cache_corrupted=:
  2375. else
  2376. { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  2377. $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  2378. eval $ac_var=\$ac_old_val
  2379. fi
  2380. { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  2381. $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  2382. { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  2383. $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  2384. fi;;
  2385. esac
  2386. # Pass precious variables to config.status.
  2387. if test "$ac_new_set" = set; then
  2388. case $ac_new_val in
  2389. *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  2390. *) ac_arg=$ac_var=$ac_new_val ;;
  2391. esac
  2392. case " $ac_configure_args " in
  2393. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  2394. *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  2395. esac
  2396. fi
  2397. done
  2398. if $ac_cache_corrupted; then
  2399. { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2400. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2401. { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  2402. $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  2403. as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
  2404. fi
  2405. ## -------------------- ##
  2406. ## Main body of script. ##
  2407. ## -------------------- ##
  2408. ac_ext=c
  2409. ac_cpp='$CPP $CPPFLAGS'
  2410. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2411. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2412. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2413. am__api_version='1.12'
  2414. ac_aux_dir=
  2415. for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
  2416. if test -f "$ac_dir/install-sh"; then
  2417. ac_aux_dir=$ac_dir
  2418. ac_install_sh="$ac_aux_dir/install-sh -c"
  2419. break
  2420. elif test -f "$ac_dir/install.sh"; then
  2421. ac_aux_dir=$ac_dir
  2422. ac_install_sh="$ac_aux_dir/install.sh -c"
  2423. break
  2424. elif test -f "$ac_dir/shtool"; then
  2425. ac_aux_dir=$ac_dir
  2426. ac_install_sh="$ac_aux_dir/shtool install -c"
  2427. break
  2428. fi
  2429. done
  2430. if test -z "$ac_aux_dir"; then
  2431. as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
  2432. fi
  2433. # These three variables are undocumented and unsupported,
  2434. # and are intended to be withdrawn in a future Autoconf release.
  2435. # They can cause serious problems if a builder's source tree is in a directory
  2436. # whose full name contains unusual characters.
  2437. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  2438. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  2439. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  2440. # Find a good install program. We prefer a C program (faster),
  2441. # so one script is as good as another. But avoid the broken or
  2442. # incompatible versions:
  2443. # SysV /etc/install, /usr/sbin/install
  2444. # SunOS /usr/etc/install
  2445. # IRIX /sbin/install
  2446. # AIX /bin/install
  2447. # AmigaOS /C/install, which installs bootblocks on floppy discs
  2448. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  2449. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  2450. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  2451. # OS/2's system install, which has a completely different semantic
  2452. # ./install, which can be erroneously created by make from ./install.sh.
  2453. # Reject install programs that cannot install multiple files.
  2454. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  2455. $as_echo_n "checking for a BSD-compatible install... " >&6; }
  2456. if test -z "$INSTALL"; then
  2457. if ${ac_cv_path_install+:} false; then :
  2458. $as_echo_n "(cached) " >&6
  2459. else
  2460. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2461. for as_dir in $PATH
  2462. do
  2463. IFS=$as_save_IFS
  2464. test -z "$as_dir" && as_dir=.
  2465. # Account for people who put trailing slashes in PATH elements.
  2466. case $as_dir/ in #((
  2467. ./ | .// | /[cC]/* | \
  2468. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  2469. ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  2470. /usr/ucb/* ) ;;
  2471. *)
  2472. # OSF1 and SCO ODT 3.0 have their own names for install.
  2473. # Don't use installbsd from OSF since it installs stuff as root
  2474. # by default.
  2475. for ac_prog in ginstall scoinst install; do
  2476. for ac_exec_ext in '' $ac_executable_extensions; do
  2477. if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
  2478. if test $ac_prog = install &&
  2479. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2480. # AIX install. It has an incompatible calling convention.
  2481. :
  2482. elif test $ac_prog = install &&
  2483. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2484. # program-specific install script used by HP pwplus--don't use.
  2485. :
  2486. else
  2487. rm -rf conftest.one conftest.two conftest.dir
  2488. echo one > conftest.one
  2489. echo two > conftest.two
  2490. mkdir conftest.dir
  2491. if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
  2492. test -s conftest.one && test -s conftest.two &&
  2493. test -s conftest.dir/conftest.one &&
  2494. test -s conftest.dir/conftest.two
  2495. then
  2496. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  2497. break 3
  2498. fi
  2499. fi
  2500. fi
  2501. done
  2502. done
  2503. ;;
  2504. esac
  2505. done
  2506. IFS=$as_save_IFS
  2507. rm -rf conftest.one conftest.two conftest.dir
  2508. fi
  2509. if test "${ac_cv_path_install+set}" = set; then
  2510. INSTALL=$ac_cv_path_install
  2511. else
  2512. # As a last resort, use the slow shell script. Don't cache a
  2513. # value for INSTALL within a source directory, because that will
  2514. # break other packages using the cache if that directory is
  2515. # removed, or if the value is a relative name.
  2516. INSTALL=$ac_install_sh
  2517. fi
  2518. fi
  2519. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  2520. $as_echo "$INSTALL" >&6; }
  2521. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  2522. # It thinks the first close brace ends the variable substitution.
  2523. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  2524. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  2525. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  2526. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
  2527. $as_echo_n "checking whether build environment is sane... " >&6; }
  2528. # Reject unsafe characters in $srcdir or the absolute working directory
  2529. # name. Accept space and tab only in the latter.
  2530. am_lf='
  2531. '
  2532. case `pwd` in
  2533. *[\\\"\#\$\&\'\`$am_lf]*)
  2534. as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
  2535. esac
  2536. case $srcdir in
  2537. *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
  2538. as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
  2539. esac
  2540. # Do 'set' in a subshell so we don't clobber the current shell's
  2541. # arguments. Must try -L first in case configure is actually a
  2542. # symlink; some systems play weird games with the mod time of symlinks
  2543. # (eg FreeBSD returns the mod time of the symlink's containing
  2544. # directory).
  2545. if (
  2546. am_has_slept=no
  2547. for am_try in 1 2; do
  2548. echo "timestamp, slept: $am_has_slept" > conftest.file
  2549. set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
  2550. if test "$*" = "X"; then
  2551. # -L didn't work.
  2552. set X `ls -t "$srcdir/configure" conftest.file`
  2553. fi
  2554. if test "$*" != "X $srcdir/configure conftest.file" \
  2555. && test "$*" != "X conftest.file $srcdir/configure"; then
  2556. # If neither matched, then we have a broken ls. This can happen
  2557. # if, for instance, CONFIG_SHELL is bash and it inherits a
  2558. # broken ls alias from the environment. This has actually
  2559. # happened. Such a system could not be considered "sane".
  2560. as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
  2561. alias in your environment" "$LINENO" 5
  2562. fi
  2563. if test "$2" = conftest.file || test $am_try -eq 2; then
  2564. break
  2565. fi
  2566. # Just in case.
  2567. sleep 1
  2568. am_has_slept=yes
  2569. done
  2570. test "$2" = conftest.file
  2571. )
  2572. then
  2573. # Ok.
  2574. :
  2575. else
  2576. as_fn_error $? "newly created file is older than distributed files!
  2577. Check your system clock" "$LINENO" 5
  2578. fi
  2579. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2580. $as_echo "yes" >&6; }
  2581. # If we didn't sleep, we still need to ensure time stamps of config.status and
  2582. # generated files are strictly newer.
  2583. am_sleep_pid=
  2584. if grep 'slept: no' conftest.file >/dev/null 2>&1; then
  2585. ( sleep 1 ) &
  2586. am_sleep_pid=$!
  2587. fi
  2588. rm -f conftest.file
  2589. test "$program_prefix" != NONE &&
  2590. program_transform_name="s&^&$program_prefix&;$program_transform_name"
  2591. # Use a double $ so make ignores it.
  2592. test "$program_suffix" != NONE &&
  2593. program_transform_name="s&\$&$program_suffix&;$program_transform_name"
  2594. # Double any \ or $.
  2595. # By default was `s,x,x', remove it if useless.
  2596. ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
  2597. program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
  2598. # expand $ac_aux_dir to an absolute path
  2599. am_aux_dir=`cd $ac_aux_dir && pwd`
  2600. if test x"${MISSING+set}" != xset; then
  2601. case $am_aux_dir in
  2602. *\ * | *\ *)
  2603. MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
  2604. *)
  2605. MISSING="\${SHELL} $am_aux_dir/missing" ;;
  2606. esac
  2607. fi
  2608. # Use eval to expand $SHELL
  2609. if eval "$MISSING --run true"; then
  2610. am_missing_run="$MISSING --run "
  2611. else
  2612. am_missing_run=
  2613. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
  2614. $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
  2615. fi
  2616. if test x"${install_sh}" != xset; then
  2617. case $am_aux_dir in
  2618. *\ * | *\ *)
  2619. install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
  2620. *)
  2621. install_sh="\${SHELL} $am_aux_dir/install-sh"
  2622. esac
  2623. fi
  2624. # Installed binaries are usually stripped using 'strip' when the user
  2625. # run "make install-strip". However 'strip' might not be the right
  2626. # tool to use in cross-compilation environments, therefore Automake
  2627. # will honor the 'STRIP' environment variable to overrule this program.
  2628. if test "$cross_compiling" != no; then
  2629. if test -n "$ac_tool_prefix"; then
  2630. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  2631. set dummy ${ac_tool_prefix}strip; ac_word=$2
  2632. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2633. $as_echo_n "checking for $ac_word... " >&6; }
  2634. if ${ac_cv_prog_STRIP+:} false; then :
  2635. $as_echo_n "(cached) " >&6
  2636. else
  2637. if test -n "$STRIP"; then
  2638. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  2639. else
  2640. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2641. for as_dir in $PATH
  2642. do
  2643. IFS=$as_save_IFS
  2644. test -z "$as_dir" && as_dir=.
  2645. for ac_exec_ext in '' $ac_executable_extensions; do
  2646. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2647. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  2648. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2649. break 2
  2650. fi
  2651. done
  2652. done
  2653. IFS=$as_save_IFS
  2654. fi
  2655. fi
  2656. STRIP=$ac_cv_prog_STRIP
  2657. if test -n "$STRIP"; then
  2658. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  2659. $as_echo "$STRIP" >&6; }
  2660. else
  2661. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2662. $as_echo "no" >&6; }
  2663. fi
  2664. fi
  2665. if test -z "$ac_cv_prog_STRIP"; then
  2666. ac_ct_STRIP=$STRIP
  2667. # Extract the first word of "strip", so it can be a program name with args.
  2668. set dummy strip; ac_word=$2
  2669. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2670. $as_echo_n "checking for $ac_word... " >&6; }
  2671. if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
  2672. $as_echo_n "(cached) " >&6
  2673. else
  2674. if test -n "$ac_ct_STRIP"; then
  2675. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  2676. else
  2677. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2678. for as_dir in $PATH
  2679. do
  2680. IFS=$as_save_IFS
  2681. test -z "$as_dir" && as_dir=.
  2682. for ac_exec_ext in '' $ac_executable_extensions; do
  2683. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2684. ac_cv_prog_ac_ct_STRIP="strip"
  2685. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2686. break 2
  2687. fi
  2688. done
  2689. done
  2690. IFS=$as_save_IFS
  2691. fi
  2692. fi
  2693. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  2694. if test -n "$ac_ct_STRIP"; then
  2695. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  2696. $as_echo "$ac_ct_STRIP" >&6; }
  2697. else
  2698. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2699. $as_echo "no" >&6; }
  2700. fi
  2701. if test "x$ac_ct_STRIP" = x; then
  2702. STRIP=":"
  2703. else
  2704. case $cross_compiling:$ac_tool_warned in
  2705. yes:)
  2706. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2707. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2708. ac_tool_warned=yes ;;
  2709. esac
  2710. STRIP=$ac_ct_STRIP
  2711. fi
  2712. else
  2713. STRIP="$ac_cv_prog_STRIP"
  2714. fi
  2715. fi
  2716. INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
  2717. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
  2718. $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
  2719. if test -z "$MKDIR_P"; then
  2720. if ${ac_cv_path_mkdir+:} false; then :
  2721. $as_echo_n "(cached) " >&6
  2722. else
  2723. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2724. for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
  2725. do
  2726. IFS=$as_save_IFS
  2727. test -z "$as_dir" && as_dir=.
  2728. for ac_prog in mkdir gmkdir; do
  2729. for ac_exec_ext in '' $ac_executable_extensions; do
  2730. as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
  2731. case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
  2732. 'mkdir (GNU coreutils) '* | \
  2733. 'mkdir (coreutils) '* | \
  2734. 'mkdir (fileutils) '4.1*)
  2735. ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
  2736. break 3;;
  2737. esac
  2738. done
  2739. done
  2740. done
  2741. IFS=$as_save_IFS
  2742. fi
  2743. test -d ./--version && rmdir ./--version
  2744. if test "${ac_cv_path_mkdir+set}" = set; then
  2745. MKDIR_P="$ac_cv_path_mkdir -p"
  2746. else
  2747. # As a last resort, use the slow shell script. Don't cache a
  2748. # value for MKDIR_P within a source directory, because that will
  2749. # break other packages using the cache if that directory is
  2750. # removed, or if the value is a relative name.
  2751. MKDIR_P="$ac_install_sh -d"
  2752. fi
  2753. fi
  2754. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
  2755. $as_echo "$MKDIR_P" >&6; }
  2756. for ac_prog in gawk mawk nawk awk
  2757. do
  2758. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2759. set dummy $ac_prog; ac_word=$2
  2760. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2761. $as_echo_n "checking for $ac_word... " >&6; }
  2762. if ${ac_cv_prog_AWK+:} false; then :
  2763. $as_echo_n "(cached) " >&6
  2764. else
  2765. if test -n "$AWK"; then
  2766. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  2767. else
  2768. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2769. for as_dir in $PATH
  2770. do
  2771. IFS=$as_save_IFS
  2772. test -z "$as_dir" && as_dir=.
  2773. for ac_exec_ext in '' $ac_executable_extensions; do
  2774. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2775. ac_cv_prog_AWK="$ac_prog"
  2776. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2777. break 2
  2778. fi
  2779. done
  2780. done
  2781. IFS=$as_save_IFS
  2782. fi
  2783. fi
  2784. AWK=$ac_cv_prog_AWK
  2785. if test -n "$AWK"; then
  2786. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  2787. $as_echo "$AWK" >&6; }
  2788. else
  2789. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2790. $as_echo "no" >&6; }
  2791. fi
  2792. test -n "$AWK" && break
  2793. done
  2794. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  2795. $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  2796. set x ${MAKE-make}
  2797. ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  2798. if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
  2799. $as_echo_n "(cached) " >&6
  2800. else
  2801. cat >conftest.make <<\_ACEOF
  2802. SHELL = /bin/sh
  2803. all:
  2804. @echo '@@@%%%=$(MAKE)=@@@%%%'
  2805. _ACEOF
  2806. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  2807. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  2808. *@@@%%%=?*=@@@%%%*)
  2809. eval ac_cv_prog_make_${ac_make}_set=yes;;
  2810. *)
  2811. eval ac_cv_prog_make_${ac_make}_set=no;;
  2812. esac
  2813. rm -f conftest.make
  2814. fi
  2815. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  2816. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2817. $as_echo "yes" >&6; }
  2818. SET_MAKE=
  2819. else
  2820. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2821. $as_echo "no" >&6; }
  2822. SET_MAKE="MAKE=${MAKE-make}"
  2823. fi
  2824. rm -rf .tst 2>/dev/null
  2825. mkdir .tst 2>/dev/null
  2826. if test -d .tst; then
  2827. am__leading_dot=.
  2828. else
  2829. am__leading_dot=_
  2830. fi
  2831. rmdir .tst 2>/dev/null
  2832. if test "`cd $srcdir && pwd`" != "`pwd`"; then
  2833. # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
  2834. # is not polluted with repeated "-I."
  2835. am__isrc=' -I$(srcdir)'
  2836. # test to see if srcdir already configured
  2837. if test -f $srcdir/config.status; then
  2838. as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
  2839. fi
  2840. fi
  2841. # test whether we have cygpath
  2842. if test -z "$CYGPATH_W"; then
  2843. if (cygpath --version) >/dev/null 2>/dev/null; then
  2844. CYGPATH_W='cygpath -w'
  2845. else
  2846. CYGPATH_W=echo
  2847. fi
  2848. fi
  2849. # Define the identity of the package.
  2850. PACKAGE='file'
  2851. VERSION='5.14'
  2852. cat >>confdefs.h <<_ACEOF
  2853. #define PACKAGE "$PACKAGE"
  2854. _ACEOF
  2855. cat >>confdefs.h <<_ACEOF
  2856. #define VERSION "$VERSION"
  2857. _ACEOF
  2858. # Some tools Automake needs.
  2859. ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
  2860. AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
  2861. AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
  2862. AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
  2863. MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
  2864. # For better backward compatibility. To be removed once Automake 1.9.x
  2865. # dies out for good. For more background, see:
  2866. # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
  2867. # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
  2868. mkdir_p='$(MKDIR_P)'
  2869. # We need awk for the "check" target. The system "awk" is bad on
  2870. # some platforms.
  2871. # Always define AMTAR for backward compatibility. Yes, it's still used
  2872. # in the wild :-( We should find a proper way to deprecate it ...
  2873. AMTAR='$${TAR-tar}'
  2874. am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
  2875. # Check whether --enable-silent-rules was given.
  2876. if test "${enable_silent_rules+set}" = set; then :
  2877. enableval=$enable_silent_rules;
  2878. fi
  2879. case $enable_silent_rules in # (((
  2880. yes) AM_DEFAULT_VERBOSITY=0;;
  2881. no) AM_DEFAULT_VERBOSITY=1;;
  2882. *) AM_DEFAULT_VERBOSITY=0;;
  2883. esac
  2884. am_make=${MAKE-make}
  2885. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
  2886. $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
  2887. if ${am_cv_make_support_nested_variables+:} false; then :
  2888. $as_echo_n "(cached) " >&6
  2889. else
  2890. if $as_echo 'TRUE=$(BAR$(V))
  2891. BAR0=false
  2892. BAR1=true
  2893. V=1
  2894. am__doit:
  2895. @$(TRUE)
  2896. .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
  2897. am_cv_make_support_nested_variables=yes
  2898. else
  2899. am_cv_make_support_nested_variables=no
  2900. fi
  2901. fi
  2902. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
  2903. $as_echo "$am_cv_make_support_nested_variables" >&6; }
  2904. if test $am_cv_make_support_nested_variables = yes; then
  2905. AM_V='$(V)'
  2906. AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
  2907. else
  2908. AM_V=$AM_DEFAULT_VERBOSITY
  2909. AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
  2910. fi
  2911. AM_BACKSLASH='\'
  2912. ac_config_headers="$ac_config_headers config.h"
  2913. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for builtin ELF support" >&5
  2914. $as_echo_n "checking for builtin ELF support... " >&6; }
  2915. # Check whether --enable-elf was given.
  2916. if test "${enable_elf+set}" = set; then :
  2917. enableval=$enable_elf; if test "${enableval}" = yes; then
  2918. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2919. $as_echo "yes" >&6; }
  2920. $as_echo "#define BUILTIN_ELF 1" >>confdefs.h
  2921. else
  2922. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2923. $as_echo "no" >&6; }
  2924. fi
  2925. else
  2926. # enable by default
  2927. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2928. $as_echo "yes" >&6; }
  2929. $as_echo "#define BUILTIN_ELF 1" >>confdefs.h
  2930. fi
  2931. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ELF core file support" >&5
  2932. $as_echo_n "checking for ELF core file support... " >&6; }
  2933. # Check whether --enable-elf-core was given.
  2934. if test "${enable_elf_core+set}" = set; then :
  2935. enableval=$enable_elf_core; if test "${enableval}" = yes; then
  2936. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2937. $as_echo "yes" >&6; }
  2938. $as_echo "#define ELFCORE 1" >>confdefs.h
  2939. else
  2940. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2941. $as_echo "no" >&6; }
  2942. fi
  2943. else
  2944. # enable by default
  2945. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2946. $as_echo "yes" >&6; }
  2947. $as_echo "#define ELFCORE 1" >>confdefs.h
  2948. fi
  2949. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file formats in man section 5" >&5
  2950. $as_echo_n "checking for file formats in man section 5... " >&6; }
  2951. # Check whether --enable-fsect-man5 was given.
  2952. if test "${enable_fsect_man5+set}" = set; then :
  2953. enableval=$enable_fsect_man5; if test "${enableval}" = yes; then
  2954. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2955. $as_echo "yes" >&6; }
  2956. fsect=5
  2957. else
  2958. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2959. $as_echo "no" >&6; }
  2960. fsect=4
  2961. fi
  2962. else
  2963. # disable by default
  2964. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2965. $as_echo "no" >&6; }
  2966. fsect=4
  2967. fi
  2968. # Make sure we can run config.sub.
  2969. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  2970. as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
  2971. { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  2972. $as_echo_n "checking build system type... " >&6; }
  2973. if ${ac_cv_build+:} false; then :
  2974. $as_echo_n "(cached) " >&6
  2975. else
  2976. ac_build_alias=$build_alias
  2977. test "x$ac_build_alias" = x &&
  2978. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  2979. test "x$ac_build_alias" = x &&
  2980. as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
  2981. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  2982. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
  2983. fi
  2984. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  2985. $as_echo "$ac_cv_build" >&6; }
  2986. case $ac_cv_build in
  2987. *-*-*) ;;
  2988. *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
  2989. esac
  2990. build=$ac_cv_build
  2991. ac_save_IFS=$IFS; IFS='-'
  2992. set x $ac_cv_build
  2993. shift
  2994. build_cpu=$1
  2995. build_vendor=$2
  2996. shift; shift
  2997. # Remember, the first character of IFS is used to create $*,
  2998. # except with old shells:
  2999. build_os=$*
  3000. IFS=$ac_save_IFS
  3001. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  3002. { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  3003. $as_echo_n "checking host system type... " >&6; }
  3004. if ${ac_cv_host+:} false; then :
  3005. $as_echo_n "(cached) " >&6
  3006. else
  3007. if test "x$host_alias" = x; then
  3008. ac_cv_host=$ac_cv_build
  3009. else
  3010. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  3011. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
  3012. fi
  3013. fi
  3014. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  3015. $as_echo "$ac_cv_host" >&6; }
  3016. case $ac_cv_host in
  3017. *-*-*) ;;
  3018. *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
  3019. esac
  3020. host=$ac_cv_host
  3021. ac_save_IFS=$IFS; IFS='-'
  3022. set x $ac_cv_host
  3023. shift
  3024. host_cpu=$1
  3025. host_vendor=$2
  3026. shift; shift
  3027. # Remember, the first character of IFS is used to create $*,
  3028. # except with old shells:
  3029. host_os=$*
  3030. IFS=$ac_save_IFS
  3031. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  3032. case "$host_os" in
  3033. mingw32*)
  3034. MINGW=1
  3035. ;;
  3036. *)
  3037. MINGW=0
  3038. ;;
  3039. esac
  3040. if test "$MINGW" = 1; then
  3041. MINGW_TRUE=
  3042. MINGW_FALSE='#'
  3043. else
  3044. MINGW_TRUE='#'
  3045. MINGW_FALSE=
  3046. fi
  3047. pkgdatadir='$(datadir)/misc'
  3048. if test x$fsect = x5; then
  3049. FSECT5_TRUE=
  3050. FSECT5_FALSE='#'
  3051. else
  3052. FSECT5_TRUE='#'
  3053. FSECT5_FALSE=
  3054. fi
  3055. DEPDIR="${am__leading_dot}deps"
  3056. ac_config_commands="$ac_config_commands depfiles"
  3057. am_make=${MAKE-make}
  3058. cat > confinc << 'END'
  3059. am__doit:
  3060. @echo this is the am__doit target
  3061. .PHONY: am__doit
  3062. END
  3063. # If we don't find an include directive, just comment out the code.
  3064. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
  3065. $as_echo_n "checking for style of include used by $am_make... " >&6; }
  3066. am__include="#"
  3067. am__quote=
  3068. _am_result=none
  3069. # First try GNU make style include.
  3070. echo "include confinc" > confmf
  3071. # Ignore all kinds of additional output from 'make'.
  3072. case `$am_make -s -f confmf 2> /dev/null` in #(
  3073. *the\ am__doit\ target*)
  3074. am__include=include
  3075. am__quote=
  3076. _am_result=GNU
  3077. ;;
  3078. esac
  3079. # Now try BSD make style include.
  3080. if test "$am__include" = "#"; then
  3081. echo '.include "confinc"' > confmf
  3082. case `$am_make -s -f confmf 2> /dev/null` in #(
  3083. *the\ am__doit\ target*)
  3084. am__include=.include
  3085. am__quote="\""
  3086. _am_result=BSD
  3087. ;;
  3088. esac
  3089. fi
  3090. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
  3091. $as_echo "$_am_result" >&6; }
  3092. rm -f confinc confmf
  3093. # Check whether --enable-dependency-tracking was given.
  3094. if test "${enable_dependency_tracking+set}" = set; then :
  3095. enableval=$enable_dependency_tracking;
  3096. fi
  3097. if test "x$enable_dependency_tracking" != xno; then
  3098. am_depcomp="$ac_aux_dir/depcomp"
  3099. AMDEPBACKSLASH='\'
  3100. am__nodep='_no'
  3101. fi
  3102. if test "x$enable_dependency_tracking" != xno; then
  3103. AMDEP_TRUE=
  3104. AMDEP_FALSE='#'
  3105. else
  3106. AMDEP_TRUE='#'
  3107. AMDEP_FALSE=
  3108. fi
  3109. ac_ext=c
  3110. ac_cpp='$CPP $CPPFLAGS'
  3111. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3112. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3113. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3114. if test -n "$ac_tool_prefix"; then
  3115. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  3116. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  3117. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3118. $as_echo_n "checking for $ac_word... " >&6; }
  3119. if ${ac_cv_prog_CC+:} false; then :
  3120. $as_echo_n "(cached) " >&6
  3121. else
  3122. if test -n "$CC"; then
  3123. ac_cv_prog_CC="$CC" # Let the user override the test.
  3124. else
  3125. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3126. for as_dir in $PATH
  3127. do
  3128. IFS=$as_save_IFS
  3129. test -z "$as_dir" && as_dir=.
  3130. for ac_exec_ext in '' $ac_executable_extensions; do
  3131. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3132. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  3133. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3134. break 2
  3135. fi
  3136. done
  3137. done
  3138. IFS=$as_save_IFS
  3139. fi
  3140. fi
  3141. CC=$ac_cv_prog_CC
  3142. if test -n "$CC"; then
  3143. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3144. $as_echo "$CC" >&6; }
  3145. else
  3146. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3147. $as_echo "no" >&6; }
  3148. fi
  3149. fi
  3150. if test -z "$ac_cv_prog_CC"; then
  3151. ac_ct_CC=$CC
  3152. # Extract the first word of "gcc", so it can be a program name with args.
  3153. set dummy gcc; ac_word=$2
  3154. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3155. $as_echo_n "checking for $ac_word... " >&6; }
  3156. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  3157. $as_echo_n "(cached) " >&6
  3158. else
  3159. if test -n "$ac_ct_CC"; then
  3160. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3161. else
  3162. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3163. for as_dir in $PATH
  3164. do
  3165. IFS=$as_save_IFS
  3166. test -z "$as_dir" && as_dir=.
  3167. for ac_exec_ext in '' $ac_executable_extensions; do
  3168. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3169. ac_cv_prog_ac_ct_CC="gcc"
  3170. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3171. break 2
  3172. fi
  3173. done
  3174. done
  3175. IFS=$as_save_IFS
  3176. fi
  3177. fi
  3178. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3179. if test -n "$ac_ct_CC"; then
  3180. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3181. $as_echo "$ac_ct_CC" >&6; }
  3182. else
  3183. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3184. $as_echo "no" >&6; }
  3185. fi
  3186. if test "x$ac_ct_CC" = x; then
  3187. CC=""
  3188. else
  3189. case $cross_compiling:$ac_tool_warned in
  3190. yes:)
  3191. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3192. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3193. ac_tool_warned=yes ;;
  3194. esac
  3195. CC=$ac_ct_CC
  3196. fi
  3197. else
  3198. CC="$ac_cv_prog_CC"
  3199. fi
  3200. if test -z "$CC"; then
  3201. if test -n "$ac_tool_prefix"; then
  3202. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  3203. set dummy ${ac_tool_prefix}cc; ac_word=$2
  3204. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3205. $as_echo_n "checking for $ac_word... " >&6; }
  3206. if ${ac_cv_prog_CC+:} false; then :
  3207. $as_echo_n "(cached) " >&6
  3208. else
  3209. if test -n "$CC"; then
  3210. ac_cv_prog_CC="$CC" # Let the user override the test.
  3211. else
  3212. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3213. for as_dir in $PATH
  3214. do
  3215. IFS=$as_save_IFS
  3216. test -z "$as_dir" && as_dir=.
  3217. for ac_exec_ext in '' $ac_executable_extensions; do
  3218. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3219. ac_cv_prog_CC="${ac_tool_prefix}cc"
  3220. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3221. break 2
  3222. fi
  3223. done
  3224. done
  3225. IFS=$as_save_IFS
  3226. fi
  3227. fi
  3228. CC=$ac_cv_prog_CC
  3229. if test -n "$CC"; then
  3230. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3231. $as_echo "$CC" >&6; }
  3232. else
  3233. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3234. $as_echo "no" >&6; }
  3235. fi
  3236. fi
  3237. fi
  3238. if test -z "$CC"; then
  3239. # Extract the first word of "cc", so it can be a program name with args.
  3240. set dummy cc; ac_word=$2
  3241. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3242. $as_echo_n "checking for $ac_word... " >&6; }
  3243. if ${ac_cv_prog_CC+:} false; then :
  3244. $as_echo_n "(cached) " >&6
  3245. else
  3246. if test -n "$CC"; then
  3247. ac_cv_prog_CC="$CC" # Let the user override the test.
  3248. else
  3249. ac_prog_rejected=no
  3250. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3251. for as_dir in $PATH
  3252. do
  3253. IFS=$as_save_IFS
  3254. test -z "$as_dir" && as_dir=.
  3255. for ac_exec_ext in '' $ac_executable_extensions; do
  3256. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3257. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  3258. ac_prog_rejected=yes
  3259. continue
  3260. fi
  3261. ac_cv_prog_CC="cc"
  3262. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3263. break 2
  3264. fi
  3265. done
  3266. done
  3267. IFS=$as_save_IFS
  3268. if test $ac_prog_rejected = yes; then
  3269. # We found a bogon in the path, so make sure we never use it.
  3270. set dummy $ac_cv_prog_CC
  3271. shift
  3272. if test $# != 0; then
  3273. # We chose a different compiler from the bogus one.
  3274. # However, it has the same basename, so the bogon will be chosen
  3275. # first if we set CC to just the basename; use the full file name.
  3276. shift
  3277. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  3278. fi
  3279. fi
  3280. fi
  3281. fi
  3282. CC=$ac_cv_prog_CC
  3283. if test -n "$CC"; then
  3284. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3285. $as_echo "$CC" >&6; }
  3286. else
  3287. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3288. $as_echo "no" >&6; }
  3289. fi
  3290. fi
  3291. if test -z "$CC"; then
  3292. if test -n "$ac_tool_prefix"; then
  3293. for ac_prog in cl.exe
  3294. do
  3295. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  3296. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  3297. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3298. $as_echo_n "checking for $ac_word... " >&6; }
  3299. if ${ac_cv_prog_CC+:} false; then :
  3300. $as_echo_n "(cached) " >&6
  3301. else
  3302. if test -n "$CC"; then
  3303. ac_cv_prog_CC="$CC" # Let the user override the test.
  3304. else
  3305. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3306. for as_dir in $PATH
  3307. do
  3308. IFS=$as_save_IFS
  3309. test -z "$as_dir" && as_dir=.
  3310. for ac_exec_ext in '' $ac_executable_extensions; do
  3311. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3312. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  3313. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3314. break 2
  3315. fi
  3316. done
  3317. done
  3318. IFS=$as_save_IFS
  3319. fi
  3320. fi
  3321. CC=$ac_cv_prog_CC
  3322. if test -n "$CC"; then
  3323. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3324. $as_echo "$CC" >&6; }
  3325. else
  3326. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3327. $as_echo "no" >&6; }
  3328. fi
  3329. test -n "$CC" && break
  3330. done
  3331. fi
  3332. if test -z "$CC"; then
  3333. ac_ct_CC=$CC
  3334. for ac_prog in cl.exe
  3335. do
  3336. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3337. set dummy $ac_prog; ac_word=$2
  3338. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3339. $as_echo_n "checking for $ac_word... " >&6; }
  3340. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  3341. $as_echo_n "(cached) " >&6
  3342. else
  3343. if test -n "$ac_ct_CC"; then
  3344. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3345. else
  3346. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3347. for as_dir in $PATH
  3348. do
  3349. IFS=$as_save_IFS
  3350. test -z "$as_dir" && as_dir=.
  3351. for ac_exec_ext in '' $ac_executable_extensions; do
  3352. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3353. ac_cv_prog_ac_ct_CC="$ac_prog"
  3354. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3355. break 2
  3356. fi
  3357. done
  3358. done
  3359. IFS=$as_save_IFS
  3360. fi
  3361. fi
  3362. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3363. if test -n "$ac_ct_CC"; then
  3364. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3365. $as_echo "$ac_ct_CC" >&6; }
  3366. else
  3367. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3368. $as_echo "no" >&6; }
  3369. fi
  3370. test -n "$ac_ct_CC" && break
  3371. done
  3372. if test "x$ac_ct_CC" = x; then
  3373. CC=""
  3374. else
  3375. case $cross_compiling:$ac_tool_warned in
  3376. yes:)
  3377. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3378. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3379. ac_tool_warned=yes ;;
  3380. esac
  3381. CC=$ac_ct_CC
  3382. fi
  3383. fi
  3384. fi
  3385. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3386. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3387. as_fn_error $? "no acceptable C compiler found in \$PATH
  3388. See \`config.log' for more details" "$LINENO" 5; }
  3389. # Provide some information about the compiler.
  3390. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  3391. set X $ac_compile
  3392. ac_compiler=$2
  3393. for ac_option in --version -v -V -qversion; do
  3394. { { ac_try="$ac_compiler $ac_option >&5"
  3395. case "(($ac_try" in
  3396. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3397. *) ac_try_echo=$ac_try;;
  3398. esac
  3399. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3400. $as_echo "$ac_try_echo"; } >&5
  3401. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  3402. ac_status=$?
  3403. if test -s conftest.err; then
  3404. sed '10a\
  3405. ... rest of stderr output deleted ...
  3406. 10q' conftest.err >conftest.er1
  3407. cat conftest.er1 >&5
  3408. fi
  3409. rm -f conftest.er1 conftest.err
  3410. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3411. test $ac_status = 0; }
  3412. done
  3413. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3414. /* end confdefs.h. */
  3415. int
  3416. main ()
  3417. {
  3418. ;
  3419. return 0;
  3420. }
  3421. _ACEOF
  3422. ac_clean_files_save=$ac_clean_files
  3423. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  3424. # Try to create an executable without -o first, disregard a.out.
  3425. # It will help us diagnose broken compilers, and finding out an intuition
  3426. # of exeext.
  3427. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
  3428. $as_echo_n "checking whether the C compiler works... " >&6; }
  3429. ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  3430. # The possible output files:
  3431. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  3432. ac_rmfiles=
  3433. for ac_file in $ac_files
  3434. do
  3435. case $ac_file in
  3436. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3437. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  3438. esac
  3439. done
  3440. rm -f $ac_rmfiles
  3441. if { { ac_try="$ac_link_default"
  3442. case "(($ac_try" in
  3443. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3444. *) ac_try_echo=$ac_try;;
  3445. esac
  3446. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3447. $as_echo "$ac_try_echo"; } >&5
  3448. (eval "$ac_link_default") 2>&5
  3449. ac_status=$?
  3450. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3451. test $ac_status = 0; }; then :
  3452. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  3453. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  3454. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  3455. # so that the user can short-circuit this test for compilers unknown to
  3456. # Autoconf.
  3457. for ac_file in $ac_files ''
  3458. do
  3459. test -f "$ac_file" || continue
  3460. case $ac_file in
  3461. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  3462. ;;
  3463. [ab].out )
  3464. # We found the default executable, but exeext='' is most
  3465. # certainly right.
  3466. break;;
  3467. *.* )
  3468. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  3469. then :; else
  3470. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3471. fi
  3472. # We set ac_cv_exeext here because the later test for it is not
  3473. # safe: cross compilers may not add the suffix if given an `-o'
  3474. # argument, so we may need to know it at that point already.
  3475. # Even if this section looks crufty: it has the advantage of
  3476. # actually working.
  3477. break;;
  3478. * )
  3479. break;;
  3480. esac
  3481. done
  3482. test "$ac_cv_exeext" = no && ac_cv_exeext=
  3483. else
  3484. ac_file=''
  3485. fi
  3486. if test -z "$ac_file"; then :
  3487. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3488. $as_echo "no" >&6; }
  3489. $as_echo "$as_me: failed program was:" >&5
  3490. sed 's/^/| /' conftest.$ac_ext >&5
  3491. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3492. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3493. as_fn_error 77 "C compiler cannot create executables
  3494. See \`config.log' for more details" "$LINENO" 5; }
  3495. else
  3496. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3497. $as_echo "yes" >&6; }
  3498. fi
  3499. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
  3500. $as_echo_n "checking for C compiler default output file name... " >&6; }
  3501. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  3502. $as_echo "$ac_file" >&6; }
  3503. ac_exeext=$ac_cv_exeext
  3504. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  3505. ac_clean_files=$ac_clean_files_save
  3506. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  3507. $as_echo_n "checking for suffix of executables... " >&6; }
  3508. if { { ac_try="$ac_link"
  3509. case "(($ac_try" in
  3510. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3511. *) ac_try_echo=$ac_try;;
  3512. esac
  3513. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3514. $as_echo "$ac_try_echo"; } >&5
  3515. (eval "$ac_link") 2>&5
  3516. ac_status=$?
  3517. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3518. test $ac_status = 0; }; then :
  3519. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  3520. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  3521. # work properly (i.e., refer to `conftest.exe'), while it won't with
  3522. # `rm'.
  3523. for ac_file in conftest.exe conftest conftest.*; do
  3524. test -f "$ac_file" || continue
  3525. case $ac_file in
  3526. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3527. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3528. break;;
  3529. * ) break;;
  3530. esac
  3531. done
  3532. else
  3533. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3534. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3535. as_fn_error $? "cannot compute suffix of executables: cannot compile and link
  3536. See \`config.log' for more details" "$LINENO" 5; }
  3537. fi
  3538. rm -f conftest conftest$ac_cv_exeext
  3539. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  3540. $as_echo "$ac_cv_exeext" >&6; }
  3541. rm -f conftest.$ac_ext
  3542. EXEEXT=$ac_cv_exeext
  3543. ac_exeext=$EXEEXT
  3544. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3545. /* end confdefs.h. */
  3546. #include <stdio.h>
  3547. int
  3548. main ()
  3549. {
  3550. FILE *f = fopen ("conftest.out", "w");
  3551. return ferror (f) || fclose (f) != 0;
  3552. ;
  3553. return 0;
  3554. }
  3555. _ACEOF
  3556. ac_clean_files="$ac_clean_files conftest.out"
  3557. # Check that the compiler produces executables we can run. If not, either
  3558. # the compiler is broken, or we cross compile.
  3559. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  3560. $as_echo_n "checking whether we are cross compiling... " >&6; }
  3561. if test "$cross_compiling" != yes; then
  3562. { { ac_try="$ac_link"
  3563. case "(($ac_try" in
  3564. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3565. *) ac_try_echo=$ac_try;;
  3566. esac
  3567. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3568. $as_echo "$ac_try_echo"; } >&5
  3569. (eval "$ac_link") 2>&5
  3570. ac_status=$?
  3571. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3572. test $ac_status = 0; }
  3573. if { ac_try='./conftest$ac_cv_exeext'
  3574. { { case "(($ac_try" in
  3575. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3576. *) ac_try_echo=$ac_try;;
  3577. esac
  3578. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3579. $as_echo "$ac_try_echo"; } >&5
  3580. (eval "$ac_try") 2>&5
  3581. ac_status=$?
  3582. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3583. test $ac_status = 0; }; }; then
  3584. cross_compiling=no
  3585. else
  3586. if test "$cross_compiling" = maybe; then
  3587. cross_compiling=yes
  3588. else
  3589. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3590. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3591. as_fn_error $? "cannot run C compiled programs.
  3592. If you meant to cross compile, use \`--host'.
  3593. See \`config.log' for more details" "$LINENO" 5; }
  3594. fi
  3595. fi
  3596. fi
  3597. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  3598. $as_echo "$cross_compiling" >&6; }
  3599. rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
  3600. ac_clean_files=$ac_clean_files_save
  3601. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  3602. $as_echo_n "checking for suffix of object files... " >&6; }
  3603. if ${ac_cv_objext+:} false; then :
  3604. $as_echo_n "(cached) " >&6
  3605. else
  3606. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3607. /* end confdefs.h. */
  3608. int
  3609. main ()
  3610. {
  3611. ;
  3612. return 0;
  3613. }
  3614. _ACEOF
  3615. rm -f conftest.o conftest.obj
  3616. if { { ac_try="$ac_compile"
  3617. case "(($ac_try" in
  3618. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3619. *) ac_try_echo=$ac_try;;
  3620. esac
  3621. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3622. $as_echo "$ac_try_echo"; } >&5
  3623. (eval "$ac_compile") 2>&5
  3624. ac_status=$?
  3625. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3626. test $ac_status = 0; }; then :
  3627. for ac_file in conftest.o conftest.obj conftest.*; do
  3628. test -f "$ac_file" || continue;
  3629. case $ac_file in
  3630. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  3631. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  3632. break;;
  3633. esac
  3634. done
  3635. else
  3636. $as_echo "$as_me: failed program was:" >&5
  3637. sed 's/^/| /' conftest.$ac_ext >&5
  3638. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3639. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3640. as_fn_error $? "cannot compute suffix of object files: cannot compile
  3641. See \`config.log' for more details" "$LINENO" 5; }
  3642. fi
  3643. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  3644. fi
  3645. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  3646. $as_echo "$ac_cv_objext" >&6; }
  3647. OBJEXT=$ac_cv_objext
  3648. ac_objext=$OBJEXT
  3649. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  3650. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  3651. if ${ac_cv_c_compiler_gnu+:} false; then :
  3652. $as_echo_n "(cached) " >&6
  3653. else
  3654. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3655. /* end confdefs.h. */
  3656. int
  3657. main ()
  3658. {
  3659. #ifndef __GNUC__
  3660. choke me
  3661. #endif
  3662. ;
  3663. return 0;
  3664. }
  3665. _ACEOF
  3666. if ac_fn_c_try_compile "$LINENO"; then :
  3667. ac_compiler_gnu=yes
  3668. else
  3669. ac_compiler_gnu=no
  3670. fi
  3671. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3672. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  3673. fi
  3674. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  3675. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  3676. if test $ac_compiler_gnu = yes; then
  3677. GCC=yes
  3678. else
  3679. GCC=
  3680. fi
  3681. ac_test_CFLAGS=${CFLAGS+set}
  3682. ac_save_CFLAGS=$CFLAGS
  3683. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  3684. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  3685. if ${ac_cv_prog_cc_g+:} false; then :
  3686. $as_echo_n "(cached) " >&6
  3687. else
  3688. ac_save_c_werror_flag=$ac_c_werror_flag
  3689. ac_c_werror_flag=yes
  3690. ac_cv_prog_cc_g=no
  3691. CFLAGS="-g"
  3692. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3693. /* end confdefs.h. */
  3694. int
  3695. main ()
  3696. {
  3697. ;
  3698. return 0;
  3699. }
  3700. _ACEOF
  3701. if ac_fn_c_try_compile "$LINENO"; then :
  3702. ac_cv_prog_cc_g=yes
  3703. else
  3704. CFLAGS=""
  3705. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3706. /* end confdefs.h. */
  3707. int
  3708. main ()
  3709. {
  3710. ;
  3711. return 0;
  3712. }
  3713. _ACEOF
  3714. if ac_fn_c_try_compile "$LINENO"; then :
  3715. else
  3716. ac_c_werror_flag=$ac_save_c_werror_flag
  3717. CFLAGS="-g"
  3718. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3719. /* end confdefs.h. */
  3720. int
  3721. main ()
  3722. {
  3723. ;
  3724. return 0;
  3725. }
  3726. _ACEOF
  3727. if ac_fn_c_try_compile "$LINENO"; then :
  3728. ac_cv_prog_cc_g=yes
  3729. fi
  3730. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3731. fi
  3732. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3733. fi
  3734. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3735. ac_c_werror_flag=$ac_save_c_werror_flag
  3736. fi
  3737. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  3738. $as_echo "$ac_cv_prog_cc_g" >&6; }
  3739. if test "$ac_test_CFLAGS" = set; then
  3740. CFLAGS=$ac_save_CFLAGS
  3741. elif test $ac_cv_prog_cc_g = yes; then
  3742. if test "$GCC" = yes; then
  3743. CFLAGS="-g -O2"
  3744. else
  3745. CFLAGS="-g"
  3746. fi
  3747. else
  3748. if test "$GCC" = yes; then
  3749. CFLAGS="-O2"
  3750. else
  3751. CFLAGS=
  3752. fi
  3753. fi
  3754. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  3755. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  3756. if ${ac_cv_prog_cc_c89+:} false; then :
  3757. $as_echo_n "(cached) " >&6
  3758. else
  3759. ac_cv_prog_cc_c89=no
  3760. ac_save_CC=$CC
  3761. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3762. /* end confdefs.h. */
  3763. #include <stdarg.h>
  3764. #include <stdio.h>
  3765. struct stat;
  3766. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  3767. struct buf { int x; };
  3768. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  3769. static char *e (p, i)
  3770. char **p;
  3771. int i;
  3772. {
  3773. return p[i];
  3774. }
  3775. static char *f (char * (*g) (char **, int), char **p, ...)
  3776. {
  3777. char *s;
  3778. va_list v;
  3779. va_start (v,p);
  3780. s = g (p, va_arg (v,int));
  3781. va_end (v);
  3782. return s;
  3783. }
  3784. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  3785. function prototypes and stuff, but not '\xHH' hex character constants.
  3786. These don't provoke an error unfortunately, instead are silently treated
  3787. as 'x'. The following induces an error, until -std is added to get
  3788. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  3789. array size at least. It's necessary to write '\x00'==0 to get something
  3790. that's true only with -std. */
  3791. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  3792. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  3793. inside strings and character constants. */
  3794. #define FOO(x) 'x'
  3795. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  3796. int test (int i, double x);
  3797. struct s1 {int (*f) (int a);};
  3798. struct s2 {int (*f) (double a);};
  3799. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  3800. int argc;
  3801. char **argv;
  3802. int
  3803. main ()
  3804. {
  3805. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  3806. ;
  3807. return 0;
  3808. }
  3809. _ACEOF
  3810. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  3811. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  3812. do
  3813. CC="$ac_save_CC $ac_arg"
  3814. if ac_fn_c_try_compile "$LINENO"; then :
  3815. ac_cv_prog_cc_c89=$ac_arg
  3816. fi
  3817. rm -f core conftest.err conftest.$ac_objext
  3818. test "x$ac_cv_prog_cc_c89" != "xno" && break
  3819. done
  3820. rm -f conftest.$ac_ext
  3821. CC=$ac_save_CC
  3822. fi
  3823. # AC_CACHE_VAL
  3824. case "x$ac_cv_prog_cc_c89" in
  3825. x)
  3826. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  3827. $as_echo "none needed" >&6; } ;;
  3828. xno)
  3829. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  3830. $as_echo "unsupported" >&6; } ;;
  3831. *)
  3832. CC="$CC $ac_cv_prog_cc_c89"
  3833. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  3834. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  3835. esac
  3836. if test "x$ac_cv_prog_cc_c89" != xno; then :
  3837. fi
  3838. ac_ext=c
  3839. ac_cpp='$CPP $CPPFLAGS'
  3840. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3841. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3842. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3843. depcc="$CC" am_compiler_list=
  3844. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  3845. $as_echo_n "checking dependency style of $depcc... " >&6; }
  3846. if ${am_cv_CC_dependencies_compiler_type+:} false; then :
  3847. $as_echo_n "(cached) " >&6
  3848. else
  3849. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  3850. # We make a subdir and do the tests there. Otherwise we can end up
  3851. # making bogus files that we don't know about and never remove. For
  3852. # instance it was reported that on HP-UX the gcc test will end up
  3853. # making a dummy file named 'D' -- because '-MD' means "put the output
  3854. # in D".
  3855. rm -rf conftest.dir
  3856. mkdir conftest.dir
  3857. # Copy depcomp to subdir because otherwise we won't find it if we're
  3858. # using a relative directory.
  3859. cp "$am_depcomp" conftest.dir
  3860. cd conftest.dir
  3861. # We will build objects and dependencies in a subdirectory because
  3862. # it helps to detect inapplicable dependency modes. For instance
  3863. # both Tru64's cc and ICC support -MD to output dependencies as a
  3864. # side effect of compilation, but ICC will put the dependencies in
  3865. # the current directory while Tru64 will put them in the object
  3866. # directory.
  3867. mkdir sub
  3868. am_cv_CC_dependencies_compiler_type=none
  3869. if test "$am_compiler_list" = ""; then
  3870. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  3871. fi
  3872. am__universal=false
  3873. case " $depcc " in #(
  3874. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  3875. esac
  3876. for depmode in $am_compiler_list; do
  3877. # Setup a source with many dependencies, because some compilers
  3878. # like to wrap large dependency lists on column 80 (with \), and
  3879. # we should not choose a depcomp mode which is confused by this.
  3880. #
  3881. # We need to recreate these files for each test, as the compiler may
  3882. # overwrite some of them when testing with obscure command lines.
  3883. # This happens at least with the AIX C compiler.
  3884. : > sub/conftest.c
  3885. for i in 1 2 3 4 5 6; do
  3886. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  3887. # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
  3888. # Solaris 10 /bin/sh.
  3889. echo '/* dummy */' > sub/conftst$i.h
  3890. done
  3891. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  3892. # We check with '-c' and '-o' for the sake of the "dashmstdout"
  3893. # mode. It turns out that the SunPro C++ compiler does not properly
  3894. # handle '-M -o', and we need to detect this. Also, some Intel
  3895. # versions had trouble with output in subdirs.
  3896. am__obj=sub/conftest.${OBJEXT-o}
  3897. am__minus_obj="-o $am__obj"
  3898. case $depmode in
  3899. gcc)
  3900. # This depmode causes a compiler race in universal mode.
  3901. test "$am__universal" = false || continue
  3902. ;;
  3903. nosideeffect)
  3904. # After this tag, mechanisms are not by side-effect, so they'll
  3905. # only be used when explicitly requested.
  3906. if test "x$enable_dependency_tracking" = xyes; then
  3907. continue
  3908. else
  3909. break
  3910. fi
  3911. ;;
  3912. msvc7 | msvc7msys | msvisualcpp | msvcmsys)
  3913. # This compiler won't grok '-c -o', but also, the minuso test has
  3914. # not run yet. These depmodes are late enough in the game, and
  3915. # so weak that their functioning should not be impacted.
  3916. am__obj=conftest.${OBJEXT-o}
  3917. am__minus_obj=
  3918. ;;
  3919. none) break ;;
  3920. esac
  3921. if depmode=$depmode \
  3922. source=sub/conftest.c object=$am__obj \
  3923. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  3924. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  3925. >/dev/null 2>conftest.err &&
  3926. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  3927. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  3928. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  3929. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  3930. # icc doesn't choke on unknown options, it will just issue warnings
  3931. # or remarks (even with -Werror). So we grep stderr for any message
  3932. # that says an option was ignored or not supported.
  3933. # When given -MP, icc 7.0 and 7.1 complain thusly:
  3934. # icc: Command line warning: ignoring option '-M'; no argument required
  3935. # The diagnosis changed in icc 8.0:
  3936. # icc: Command line remark: option '-MP' not supported
  3937. if (grep 'ignoring option' conftest.err ||
  3938. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  3939. am_cv_CC_dependencies_compiler_type=$depmode
  3940. break
  3941. fi
  3942. fi
  3943. done
  3944. cd ..
  3945. rm -rf conftest.dir
  3946. else
  3947. am_cv_CC_dependencies_compiler_type=none
  3948. fi
  3949. fi
  3950. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
  3951. $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
  3952. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  3953. if
  3954. test "x$enable_dependency_tracking" != xno \
  3955. && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  3956. am__fastdepCC_TRUE=
  3957. am__fastdepCC_FALSE='#'
  3958. else
  3959. am__fastdepCC_TRUE='#'
  3960. am__fastdepCC_FALSE=
  3961. fi
  3962. case $ac_cv_prog_cc_stdc in #(
  3963. no) :
  3964. ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
  3965. *) :
  3966. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
  3967. $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
  3968. if ${ac_cv_prog_cc_c99+:} false; then :
  3969. $as_echo_n "(cached) " >&6
  3970. else
  3971. ac_cv_prog_cc_c99=no
  3972. ac_save_CC=$CC
  3973. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3974. /* end confdefs.h. */
  3975. #include <stdarg.h>
  3976. #include <stdbool.h>
  3977. #include <stdlib.h>
  3978. #include <wchar.h>
  3979. #include <stdio.h>
  3980. // Check varargs macros. These examples are taken from C99 6.10.3.5.
  3981. #define debug(...) fprintf (stderr, __VA_ARGS__)
  3982. #define showlist(...) puts (#__VA_ARGS__)
  3983. #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
  3984. static void
  3985. test_varargs_macros (void)
  3986. {
  3987. int x = 1234;
  3988. int y = 5678;
  3989. debug ("Flag");
  3990. debug ("X = %d\n", x);
  3991. showlist (The first, second, and third items.);
  3992. report (x>y, "x is %d but y is %d", x, y);
  3993. }
  3994. // Check long long types.
  3995. #define BIG64 18446744073709551615ull
  3996. #define BIG32 4294967295ul
  3997. #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
  3998. #if !BIG_OK
  3999. your preprocessor is broken;
  4000. #endif
  4001. #if BIG_OK
  4002. #else
  4003. your preprocessor is broken;
  4004. #endif
  4005. static long long int bignum = -9223372036854775807LL;
  4006. static unsigned long long int ubignum = BIG64;
  4007. struct incomplete_array
  4008. {
  4009. int datasize;
  4010. double data[];
  4011. };
  4012. struct named_init {
  4013. int number;
  4014. const wchar_t *name;
  4015. double average;
  4016. };
  4017. typedef const char *ccp;
  4018. static inline int
  4019. test_restrict (ccp restrict text)
  4020. {
  4021. // See if C++-style comments work.
  4022. // Iterate through items via the restricted pointer.
  4023. // Also check for declarations in for loops.
  4024. for (unsigned int i = 0; *(text+i) != '\0'; ++i)
  4025. continue;
  4026. return 0;
  4027. }
  4028. // Check varargs and va_copy.
  4029. static void
  4030. test_varargs (const char *format, ...)
  4031. {
  4032. va_list args;
  4033. va_start (args, format);
  4034. va_list args_copy;
  4035. va_copy (args_copy, args);
  4036. const char *str;
  4037. int number;
  4038. float fnumber;
  4039. while (*format)
  4040. {
  4041. switch (*format++)
  4042. {
  4043. case 's': // string
  4044. str = va_arg (args_copy, const char *);
  4045. break;
  4046. case 'd': // int
  4047. number = va_arg (args_copy, int);
  4048. break;
  4049. case 'f': // float
  4050. fnumber = va_arg (args_copy, double);
  4051. break;
  4052. default:
  4053. break;
  4054. }
  4055. }
  4056. va_end (args_copy);
  4057. va_end (args);
  4058. }
  4059. int
  4060. main ()
  4061. {
  4062. // Check bool.
  4063. _Bool success = false;
  4064. // Check restrict.
  4065. if (test_restrict ("String literal") == 0)
  4066. success = true;
  4067. char *restrict newvar = "Another string";
  4068. // Check varargs.
  4069. test_varargs ("s, d' f .", "string", 65, 34.234);
  4070. test_varargs_macros ();
  4071. // Check flexible array members.
  4072. struct incomplete_array *ia =
  4073. malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
  4074. ia->datasize = 10;
  4075. for (int i = 0; i < ia->datasize; ++i)
  4076. ia->data[i] = i * 1.234;
  4077. // Check named initializers.
  4078. struct named_init ni = {
  4079. .number = 34,
  4080. .name = L"Test wide string",
  4081. .average = 543.34343,
  4082. };
  4083. ni.number = 58;
  4084. int dynamic_array[ni.number];
  4085. dynamic_array[ni.number - 1] = 543;
  4086. // work around unused variable warnings
  4087. return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
  4088. || dynamic_array[ni.number - 1] != 543);
  4089. ;
  4090. return 0;
  4091. }
  4092. _ACEOF
  4093. for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
  4094. do
  4095. CC="$ac_save_CC $ac_arg"
  4096. if ac_fn_c_try_compile "$LINENO"; then :
  4097. ac_cv_prog_cc_c99=$ac_arg
  4098. fi
  4099. rm -f core conftest.err conftest.$ac_objext
  4100. test "x$ac_cv_prog_cc_c99" != "xno" && break
  4101. done
  4102. rm -f conftest.$ac_ext
  4103. CC=$ac_save_CC
  4104. fi
  4105. # AC_CACHE_VAL
  4106. case "x$ac_cv_prog_cc_c99" in
  4107. x)
  4108. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  4109. $as_echo "none needed" >&6; } ;;
  4110. xno)
  4111. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  4112. $as_echo "unsupported" >&6; } ;;
  4113. *)
  4114. CC="$CC $ac_cv_prog_cc_c99"
  4115. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
  4116. $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
  4117. esac
  4118. if test "x$ac_cv_prog_cc_c99" != xno; then :
  4119. ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
  4120. else
  4121. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  4122. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  4123. if ${ac_cv_prog_cc_c89+:} false; then :
  4124. $as_echo_n "(cached) " >&6
  4125. else
  4126. ac_cv_prog_cc_c89=no
  4127. ac_save_CC=$CC
  4128. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4129. /* end confdefs.h. */
  4130. #include <stdarg.h>
  4131. #include <stdio.h>
  4132. struct stat;
  4133. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  4134. struct buf { int x; };
  4135. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  4136. static char *e (p, i)
  4137. char **p;
  4138. int i;
  4139. {
  4140. return p[i];
  4141. }
  4142. static char *f (char * (*g) (char **, int), char **p, ...)
  4143. {
  4144. char *s;
  4145. va_list v;
  4146. va_start (v,p);
  4147. s = g (p, va_arg (v,int));
  4148. va_end (v);
  4149. return s;
  4150. }
  4151. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  4152. function prototypes and stuff, but not '\xHH' hex character constants.
  4153. These don't provoke an error unfortunately, instead are silently treated
  4154. as 'x'. The following induces an error, until -std is added to get
  4155. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  4156. array size at least. It's necessary to write '\x00'==0 to get something
  4157. that's true only with -std. */
  4158. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  4159. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  4160. inside strings and character constants. */
  4161. #define FOO(x) 'x'
  4162. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  4163. int test (int i, double x);
  4164. struct s1 {int (*f) (int a);};
  4165. struct s2 {int (*f) (double a);};
  4166. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  4167. int argc;
  4168. char **argv;
  4169. int
  4170. main ()
  4171. {
  4172. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  4173. ;
  4174. return 0;
  4175. }
  4176. _ACEOF
  4177. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  4178. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  4179. do
  4180. CC="$ac_save_CC $ac_arg"
  4181. if ac_fn_c_try_compile "$LINENO"; then :
  4182. ac_cv_prog_cc_c89=$ac_arg
  4183. fi
  4184. rm -f core conftest.err conftest.$ac_objext
  4185. test "x$ac_cv_prog_cc_c89" != "xno" && break
  4186. done
  4187. rm -f conftest.$ac_ext
  4188. CC=$ac_save_CC
  4189. fi
  4190. # AC_CACHE_VAL
  4191. case "x$ac_cv_prog_cc_c89" in
  4192. x)
  4193. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  4194. $as_echo "none needed" >&6; } ;;
  4195. xno)
  4196. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  4197. $as_echo "unsupported" >&6; } ;;
  4198. *)
  4199. CC="$CC $ac_cv_prog_cc_c89"
  4200. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  4201. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  4202. esac
  4203. if test "x$ac_cv_prog_cc_c89" != xno; then :
  4204. ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
  4205. else
  4206. ac_cv_prog_cc_stdc=no
  4207. fi
  4208. fi
  4209. ;;
  4210. esac
  4211. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
  4212. $as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
  4213. if ${ac_cv_prog_cc_stdc+:} false; then :
  4214. $as_echo_n "(cached) " >&6
  4215. fi
  4216. case $ac_cv_prog_cc_stdc in #(
  4217. no) :
  4218. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  4219. $as_echo "unsupported" >&6; } ;; #(
  4220. '') :
  4221. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  4222. $as_echo "none needed" >&6; } ;; #(
  4223. *) :
  4224. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
  4225. $as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
  4226. esac
  4227. ac_ext=c
  4228. ac_cpp='$CPP $CPPFLAGS'
  4229. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4230. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4231. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4232. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  4233. $as_echo_n "checking how to run the C preprocessor... " >&6; }
  4234. # On Suns, sometimes $CPP names a directory.
  4235. if test -n "$CPP" && test -d "$CPP"; then
  4236. CPP=
  4237. fi
  4238. if test -z "$CPP"; then
  4239. if ${ac_cv_prog_CPP+:} false; then :
  4240. $as_echo_n "(cached) " >&6
  4241. else
  4242. # Double quotes because CPP needs to be expanded
  4243. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  4244. do
  4245. ac_preproc_ok=false
  4246. for ac_c_preproc_warn_flag in '' yes
  4247. do
  4248. # Use a header file that comes with gcc, so configuring glibc
  4249. # with a fresh cross-compiler works.
  4250. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  4251. # <limits.h> exists even on freestanding compilers.
  4252. # On the NeXT, cc -E runs the code through the compiler's parser,
  4253. # not just through cpp. "Syntax error" is here to catch this case.
  4254. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4255. /* end confdefs.h. */
  4256. #ifdef __STDC__
  4257. # include <limits.h>
  4258. #else
  4259. # include <assert.h>
  4260. #endif
  4261. Syntax error
  4262. _ACEOF
  4263. if ac_fn_c_try_cpp "$LINENO"; then :
  4264. else
  4265. # Broken: fails on valid input.
  4266. continue
  4267. fi
  4268. rm -f conftest.err conftest.i conftest.$ac_ext
  4269. # OK, works on sane cases. Now check whether nonexistent headers
  4270. # can be detected and how.
  4271. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4272. /* end confdefs.h. */
  4273. #include <ac_nonexistent.h>
  4274. _ACEOF
  4275. if ac_fn_c_try_cpp "$LINENO"; then :
  4276. # Broken: success on invalid input.
  4277. continue
  4278. else
  4279. # Passes both tests.
  4280. ac_preproc_ok=:
  4281. break
  4282. fi
  4283. rm -f conftest.err conftest.i conftest.$ac_ext
  4284. done
  4285. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  4286. rm -f conftest.i conftest.err conftest.$ac_ext
  4287. if $ac_preproc_ok; then :
  4288. break
  4289. fi
  4290. done
  4291. ac_cv_prog_CPP=$CPP
  4292. fi
  4293. CPP=$ac_cv_prog_CPP
  4294. else
  4295. ac_cv_prog_CPP=$CPP
  4296. fi
  4297. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  4298. $as_echo "$CPP" >&6; }
  4299. ac_preproc_ok=false
  4300. for ac_c_preproc_warn_flag in '' yes
  4301. do
  4302. # Use a header file that comes with gcc, so configuring glibc
  4303. # with a fresh cross-compiler works.
  4304. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  4305. # <limits.h> exists even on freestanding compilers.
  4306. # On the NeXT, cc -E runs the code through the compiler's parser,
  4307. # not just through cpp. "Syntax error" is here to catch this case.
  4308. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4309. /* end confdefs.h. */
  4310. #ifdef __STDC__
  4311. # include <limits.h>
  4312. #else
  4313. # include <assert.h>
  4314. #endif
  4315. Syntax error
  4316. _ACEOF
  4317. if ac_fn_c_try_cpp "$LINENO"; then :
  4318. else
  4319. # Broken: fails on valid input.
  4320. continue
  4321. fi
  4322. rm -f conftest.err conftest.i conftest.$ac_ext
  4323. # OK, works on sane cases. Now check whether nonexistent headers
  4324. # can be detected and how.
  4325. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4326. /* end confdefs.h. */
  4327. #include <ac_nonexistent.h>
  4328. _ACEOF
  4329. if ac_fn_c_try_cpp "$LINENO"; then :
  4330. # Broken: success on invalid input.
  4331. continue
  4332. else
  4333. # Passes both tests.
  4334. ac_preproc_ok=:
  4335. break
  4336. fi
  4337. rm -f conftest.err conftest.i conftest.$ac_ext
  4338. done
  4339. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  4340. rm -f conftest.i conftest.err conftest.$ac_ext
  4341. if $ac_preproc_ok; then :
  4342. else
  4343. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  4344. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  4345. as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
  4346. See \`config.log' for more details" "$LINENO" 5; }
  4347. fi
  4348. ac_ext=c
  4349. ac_cpp='$CPP $CPPFLAGS'
  4350. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4351. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4352. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4353. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  4354. $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  4355. if ${ac_cv_path_GREP+:} false; then :
  4356. $as_echo_n "(cached) " >&6
  4357. else
  4358. if test -z "$GREP"; then
  4359. ac_path_GREP_found=false
  4360. # Loop through the user's path and test for each of PROGNAME-LIST
  4361. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4362. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4363. do
  4364. IFS=$as_save_IFS
  4365. test -z "$as_dir" && as_dir=.
  4366. for ac_prog in grep ggrep; do
  4367. for ac_exec_ext in '' $ac_executable_extensions; do
  4368. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  4369. as_fn_executable_p "$ac_path_GREP" || continue
  4370. # Check for GNU ac_path_GREP and select it if it is found.
  4371. # Check for GNU $ac_path_GREP
  4372. case `"$ac_path_GREP" --version 2>&1` in
  4373. *GNU*)
  4374. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  4375. *)
  4376. ac_count=0
  4377. $as_echo_n 0123456789 >"conftest.in"
  4378. while :
  4379. do
  4380. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4381. mv "conftest.tmp" "conftest.in"
  4382. cp "conftest.in" "conftest.nl"
  4383. $as_echo 'GREP' >> "conftest.nl"
  4384. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4385. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4386. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4387. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  4388. # Best one so far, save it but keep looking for a better one
  4389. ac_cv_path_GREP="$ac_path_GREP"
  4390. ac_path_GREP_max=$ac_count
  4391. fi
  4392. # 10*(2^10) chars as input seems more than enough
  4393. test $ac_count -gt 10 && break
  4394. done
  4395. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4396. esac
  4397. $ac_path_GREP_found && break 3
  4398. done
  4399. done
  4400. done
  4401. IFS=$as_save_IFS
  4402. if test -z "$ac_cv_path_GREP"; then
  4403. as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4404. fi
  4405. else
  4406. ac_cv_path_GREP=$GREP
  4407. fi
  4408. fi
  4409. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  4410. $as_echo "$ac_cv_path_GREP" >&6; }
  4411. GREP="$ac_cv_path_GREP"
  4412. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  4413. $as_echo_n "checking for egrep... " >&6; }
  4414. if ${ac_cv_path_EGREP+:} false; then :
  4415. $as_echo_n "(cached) " >&6
  4416. else
  4417. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  4418. then ac_cv_path_EGREP="$GREP -E"
  4419. else
  4420. if test -z "$EGREP"; then
  4421. ac_path_EGREP_found=false
  4422. # Loop through the user's path and test for each of PROGNAME-LIST
  4423. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4424. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4425. do
  4426. IFS=$as_save_IFS
  4427. test -z "$as_dir" && as_dir=.
  4428. for ac_prog in egrep; do
  4429. for ac_exec_ext in '' $ac_executable_extensions; do
  4430. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  4431. as_fn_executable_p "$ac_path_EGREP" || continue
  4432. # Check for GNU ac_path_EGREP and select it if it is found.
  4433. # Check for GNU $ac_path_EGREP
  4434. case `"$ac_path_EGREP" --version 2>&1` in
  4435. *GNU*)
  4436. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  4437. *)
  4438. ac_count=0
  4439. $as_echo_n 0123456789 >"conftest.in"
  4440. while :
  4441. do
  4442. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4443. mv "conftest.tmp" "conftest.in"
  4444. cp "conftest.in" "conftest.nl"
  4445. $as_echo 'EGREP' >> "conftest.nl"
  4446. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4447. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4448. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4449. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  4450. # Best one so far, save it but keep looking for a better one
  4451. ac_cv_path_EGREP="$ac_path_EGREP"
  4452. ac_path_EGREP_max=$ac_count
  4453. fi
  4454. # 10*(2^10) chars as input seems more than enough
  4455. test $ac_count -gt 10 && break
  4456. done
  4457. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4458. esac
  4459. $ac_path_EGREP_found && break 3
  4460. done
  4461. done
  4462. done
  4463. IFS=$as_save_IFS
  4464. if test -z "$ac_cv_path_EGREP"; then
  4465. as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4466. fi
  4467. else
  4468. ac_cv_path_EGREP=$EGREP
  4469. fi
  4470. fi
  4471. fi
  4472. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  4473. $as_echo "$ac_cv_path_EGREP" >&6; }
  4474. EGREP="$ac_cv_path_EGREP"
  4475. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  4476. $as_echo_n "checking for ANSI C header files... " >&6; }
  4477. if ${ac_cv_header_stdc+:} false; then :
  4478. $as_echo_n "(cached) " >&6
  4479. else
  4480. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4481. /* end confdefs.h. */
  4482. #include <stdlib.h>
  4483. #include <stdarg.h>
  4484. #include <string.h>
  4485. #include <float.h>
  4486. int
  4487. main ()
  4488. {
  4489. ;
  4490. return 0;
  4491. }
  4492. _ACEOF
  4493. if ac_fn_c_try_compile "$LINENO"; then :
  4494. ac_cv_header_stdc=yes
  4495. else
  4496. ac_cv_header_stdc=no
  4497. fi
  4498. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4499. if test $ac_cv_header_stdc = yes; then
  4500. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  4501. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4502. /* end confdefs.h. */
  4503. #include <string.h>
  4504. _ACEOF
  4505. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  4506. $EGREP "memchr" >/dev/null 2>&1; then :
  4507. else
  4508. ac_cv_header_stdc=no
  4509. fi
  4510. rm -f conftest*
  4511. fi
  4512. if test $ac_cv_header_stdc = yes; then
  4513. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  4514. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4515. /* end confdefs.h. */
  4516. #include <stdlib.h>
  4517. _ACEOF
  4518. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  4519. $EGREP "free" >/dev/null 2>&1; then :
  4520. else
  4521. ac_cv_header_stdc=no
  4522. fi
  4523. rm -f conftest*
  4524. fi
  4525. if test $ac_cv_header_stdc = yes; then
  4526. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  4527. if test "$cross_compiling" = yes; then :
  4528. :
  4529. else
  4530. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4531. /* end confdefs.h. */
  4532. #include <ctype.h>
  4533. #include <stdlib.h>
  4534. #if ((' ' & 0x0FF) == 0x020)
  4535. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  4536. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  4537. #else
  4538. # define ISLOWER(c) \
  4539. (('a' <= (c) && (c) <= 'i') \
  4540. || ('j' <= (c) && (c) <= 'r') \
  4541. || ('s' <= (c) && (c) <= 'z'))
  4542. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  4543. #endif
  4544. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  4545. int
  4546. main ()
  4547. {
  4548. int i;
  4549. for (i = 0; i < 256; i++)
  4550. if (XOR (islower (i), ISLOWER (i))
  4551. || toupper (i) != TOUPPER (i))
  4552. return 2;
  4553. return 0;
  4554. }
  4555. _ACEOF
  4556. if ac_fn_c_try_run "$LINENO"; then :
  4557. else
  4558. ac_cv_header_stdc=no
  4559. fi
  4560. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  4561. conftest.$ac_objext conftest.beam conftest.$ac_ext
  4562. fi
  4563. fi
  4564. fi
  4565. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  4566. $as_echo "$ac_cv_header_stdc" >&6; }
  4567. if test $ac_cv_header_stdc = yes; then
  4568. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  4569. fi
  4570. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  4571. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  4572. inttypes.h stdint.h unistd.h
  4573. do :
  4574. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  4575. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  4576. "
  4577. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  4578. cat >>confdefs.h <<_ACEOF
  4579. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  4580. _ACEOF
  4581. fi
  4582. done
  4583. ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
  4584. if test "x$ac_cv_header_minix_config_h" = xyes; then :
  4585. MINIX=yes
  4586. else
  4587. MINIX=
  4588. fi
  4589. if test "$MINIX" = yes; then
  4590. $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
  4591. $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
  4592. $as_echo "#define _MINIX 1" >>confdefs.h
  4593. fi
  4594. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
  4595. $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
  4596. if ${ac_cv_safe_to_define___extensions__+:} false; then :
  4597. $as_echo_n "(cached) " >&6
  4598. else
  4599. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4600. /* end confdefs.h. */
  4601. # define __EXTENSIONS__ 1
  4602. $ac_includes_default
  4603. int
  4604. main ()
  4605. {
  4606. ;
  4607. return 0;
  4608. }
  4609. _ACEOF
  4610. if ac_fn_c_try_compile "$LINENO"; then :
  4611. ac_cv_safe_to_define___extensions__=yes
  4612. else
  4613. ac_cv_safe_to_define___extensions__=no
  4614. fi
  4615. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4616. fi
  4617. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
  4618. $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
  4619. test $ac_cv_safe_to_define___extensions__ = yes &&
  4620. $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
  4621. $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
  4622. $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
  4623. $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
  4624. $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
  4625. if test "x$CC" != xcc; then
  4626. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
  4627. $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
  4628. else
  4629. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
  4630. $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
  4631. fi
  4632. set dummy $CC; ac_cc=`$as_echo "$2" |
  4633. sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
  4634. if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
  4635. $as_echo_n "(cached) " >&6
  4636. else
  4637. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4638. /* end confdefs.h. */
  4639. int
  4640. main ()
  4641. {
  4642. ;
  4643. return 0;
  4644. }
  4645. _ACEOF
  4646. # Make sure it works both with $CC and with simple cc.
  4647. # We do the test twice because some compilers refuse to overwrite an
  4648. # existing .o file with -o, though they will create one.
  4649. ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
  4650. rm -f conftest2.*
  4651. if { { case "(($ac_try" in
  4652. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4653. *) ac_try_echo=$ac_try;;
  4654. esac
  4655. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  4656. $as_echo "$ac_try_echo"; } >&5
  4657. (eval "$ac_try") 2>&5
  4658. ac_status=$?
  4659. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4660. test $ac_status = 0; } &&
  4661. test -f conftest2.$ac_objext && { { case "(($ac_try" in
  4662. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4663. *) ac_try_echo=$ac_try;;
  4664. esac
  4665. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  4666. $as_echo "$ac_try_echo"; } >&5
  4667. (eval "$ac_try") 2>&5
  4668. ac_status=$?
  4669. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4670. test $ac_status = 0; };
  4671. then
  4672. eval ac_cv_prog_cc_${ac_cc}_c_o=yes
  4673. if test "x$CC" != xcc; then
  4674. # Test first that cc exists at all.
  4675. if { ac_try='cc -c conftest.$ac_ext >&5'
  4676. { { case "(($ac_try" in
  4677. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4678. *) ac_try_echo=$ac_try;;
  4679. esac
  4680. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  4681. $as_echo "$ac_try_echo"; } >&5
  4682. (eval "$ac_try") 2>&5
  4683. ac_status=$?
  4684. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4685. test $ac_status = 0; }; }; then
  4686. ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
  4687. rm -f conftest2.*
  4688. if { { case "(($ac_try" in
  4689. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4690. *) ac_try_echo=$ac_try;;
  4691. esac
  4692. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  4693. $as_echo "$ac_try_echo"; } >&5
  4694. (eval "$ac_try") 2>&5
  4695. ac_status=$?
  4696. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4697. test $ac_status = 0; } &&
  4698. test -f conftest2.$ac_objext && { { case "(($ac_try" in
  4699. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4700. *) ac_try_echo=$ac_try;;
  4701. esac
  4702. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  4703. $as_echo "$ac_try_echo"; } >&5
  4704. (eval "$ac_try") 2>&5
  4705. ac_status=$?
  4706. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4707. test $ac_status = 0; };
  4708. then
  4709. # cc works too.
  4710. :
  4711. else
  4712. # cc exists but doesn't like -o.
  4713. eval ac_cv_prog_cc_${ac_cc}_c_o=no
  4714. fi
  4715. fi
  4716. fi
  4717. else
  4718. eval ac_cv_prog_cc_${ac_cc}_c_o=no
  4719. fi
  4720. rm -f core conftest*
  4721. fi
  4722. if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
  4723. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4724. $as_echo "yes" >&6; }
  4725. else
  4726. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4727. $as_echo "no" >&6; }
  4728. $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
  4729. fi
  4730. # FIXME: we rely on the cache variable name because
  4731. # there is no other way.
  4732. set dummy $CC
  4733. am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
  4734. eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
  4735. if test "$am_t" != yes; then
  4736. # Losing compiler, so override with the script.
  4737. # FIXME: It is wrong to rewrite CC.
  4738. # But if we don't then we get into trouble of one sort or another.
  4739. # A longer-term fix would be to have automake use am__CC in this case,
  4740. # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
  4741. CC="$am_aux_dir/compile $CC"
  4742. fi
  4743. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
  4744. $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
  4745. if ${ac_cv_c_bigendian+:} false; then :
  4746. $as_echo_n "(cached) " >&6
  4747. else
  4748. ac_cv_c_bigendian=unknown
  4749. # See if we're dealing with a universal compiler.
  4750. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4751. /* end confdefs.h. */
  4752. #ifndef __APPLE_CC__
  4753. not a universal capable compiler
  4754. #endif
  4755. typedef int dummy;
  4756. _ACEOF
  4757. if ac_fn_c_try_compile "$LINENO"; then :
  4758. # Check for potential -arch flags. It is not universal unless
  4759. # there are at least two -arch flags with different values.
  4760. ac_arch=
  4761. ac_prev=
  4762. for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
  4763. if test -n "$ac_prev"; then
  4764. case $ac_word in
  4765. i?86 | x86_64 | ppc | ppc64)
  4766. if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
  4767. ac_arch=$ac_word
  4768. else
  4769. ac_cv_c_bigendian=universal
  4770. break
  4771. fi
  4772. ;;
  4773. esac
  4774. ac_prev=
  4775. elif test "x$ac_word" = "x-arch"; then
  4776. ac_prev=arch
  4777. fi
  4778. done
  4779. fi
  4780. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4781. if test $ac_cv_c_bigendian = unknown; then
  4782. # See if sys/param.h defines the BYTE_ORDER macro.
  4783. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4784. /* end confdefs.h. */
  4785. #include <sys/types.h>
  4786. #include <sys/param.h>
  4787. int
  4788. main ()
  4789. {
  4790. #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
  4791. && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
  4792. && LITTLE_ENDIAN)
  4793. bogus endian macros
  4794. #endif
  4795. ;
  4796. return 0;
  4797. }
  4798. _ACEOF
  4799. if ac_fn_c_try_compile "$LINENO"; then :
  4800. # It does; now see whether it defined to BIG_ENDIAN or not.
  4801. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4802. /* end confdefs.h. */
  4803. #include <sys/types.h>
  4804. #include <sys/param.h>
  4805. int
  4806. main ()
  4807. {
  4808. #if BYTE_ORDER != BIG_ENDIAN
  4809. not big endian
  4810. #endif
  4811. ;
  4812. return 0;
  4813. }
  4814. _ACEOF
  4815. if ac_fn_c_try_compile "$LINENO"; then :
  4816. ac_cv_c_bigendian=yes
  4817. else
  4818. ac_cv_c_bigendian=no
  4819. fi
  4820. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4821. fi
  4822. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4823. fi
  4824. if test $ac_cv_c_bigendian = unknown; then
  4825. # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
  4826. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4827. /* end confdefs.h. */
  4828. #include <limits.h>
  4829. int
  4830. main ()
  4831. {
  4832. #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
  4833. bogus endian macros
  4834. #endif
  4835. ;
  4836. return 0;
  4837. }
  4838. _ACEOF
  4839. if ac_fn_c_try_compile "$LINENO"; then :
  4840. # It does; now see whether it defined to _BIG_ENDIAN or not.
  4841. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4842. /* end confdefs.h. */
  4843. #include <limits.h>
  4844. int
  4845. main ()
  4846. {
  4847. #ifndef _BIG_ENDIAN
  4848. not big endian
  4849. #endif
  4850. ;
  4851. return 0;
  4852. }
  4853. _ACEOF
  4854. if ac_fn_c_try_compile "$LINENO"; then :
  4855. ac_cv_c_bigendian=yes
  4856. else
  4857. ac_cv_c_bigendian=no
  4858. fi
  4859. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4860. fi
  4861. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4862. fi
  4863. if test $ac_cv_c_bigendian = unknown; then
  4864. # Compile a test program.
  4865. if test "$cross_compiling" = yes; then :
  4866. # Try to guess by grepping values from an object file.
  4867. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4868. /* end confdefs.h. */
  4869. short int ascii_mm[] =
  4870. { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
  4871. short int ascii_ii[] =
  4872. { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
  4873. int use_ascii (int i) {
  4874. return ascii_mm[i] + ascii_ii[i];
  4875. }
  4876. short int ebcdic_ii[] =
  4877. { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
  4878. short int ebcdic_mm[] =
  4879. { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
  4880. int use_ebcdic (int i) {
  4881. return ebcdic_mm[i] + ebcdic_ii[i];
  4882. }
  4883. extern int foo;
  4884. int
  4885. main ()
  4886. {
  4887. return use_ascii (foo) == use_ebcdic (foo);
  4888. ;
  4889. return 0;
  4890. }
  4891. _ACEOF
  4892. if ac_fn_c_try_compile "$LINENO"; then :
  4893. if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
  4894. ac_cv_c_bigendian=yes
  4895. fi
  4896. if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
  4897. if test "$ac_cv_c_bigendian" = unknown; then
  4898. ac_cv_c_bigendian=no
  4899. else
  4900. # finding both strings is unlikely to happen, but who knows?
  4901. ac_cv_c_bigendian=unknown
  4902. fi
  4903. fi
  4904. fi
  4905. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4906. else
  4907. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4908. /* end confdefs.h. */
  4909. $ac_includes_default
  4910. int
  4911. main ()
  4912. {
  4913. /* Are we little or big endian? From Harbison&Steele. */
  4914. union
  4915. {
  4916. long int l;
  4917. char c[sizeof (long int)];
  4918. } u;
  4919. u.l = 1;
  4920. return u.c[sizeof (long int) - 1] == 1;
  4921. ;
  4922. return 0;
  4923. }
  4924. _ACEOF
  4925. if ac_fn_c_try_run "$LINENO"; then :
  4926. ac_cv_c_bigendian=no
  4927. else
  4928. ac_cv_c_bigendian=yes
  4929. fi
  4930. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  4931. conftest.$ac_objext conftest.beam conftest.$ac_ext
  4932. fi
  4933. fi
  4934. fi
  4935. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
  4936. $as_echo "$ac_cv_c_bigendian" >&6; }
  4937. case $ac_cv_c_bigendian in #(
  4938. yes)
  4939. $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
  4940. ;; #(
  4941. no)
  4942. ;; #(
  4943. universal)
  4944. $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
  4945. ;; #(
  4946. *)
  4947. as_fn_error $? "unknown endianness
  4948. presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
  4949. esac
  4950. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
  4951. $as_echo_n "checking whether ln -s works... " >&6; }
  4952. LN_S=$as_ln_s
  4953. if test "$LN_S" = "ln -s"; then
  4954. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4955. $as_echo "yes" >&6; }
  4956. else
  4957. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
  4958. $as_echo "no, using $LN_S" >&6; }
  4959. fi
  4960. case `pwd` in
  4961. *\ * | *\ *)
  4962. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
  4963. $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
  4964. esac
  4965. macro_version='2.2.6b'
  4966. macro_revision='1.3017'
  4967. ltmain="$ac_aux_dir/ltmain.sh"
  4968. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
  4969. $as_echo_n "checking for a sed that does not truncate output... " >&6; }
  4970. if ${ac_cv_path_SED+:} false; then :
  4971. $as_echo_n "(cached) " >&6
  4972. else
  4973. ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  4974. for ac_i in 1 2 3 4 5 6 7; do
  4975. ac_script="$ac_script$as_nl$ac_script"
  4976. done
  4977. echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  4978. { ac_script=; unset ac_script;}
  4979. if test -z "$SED"; then
  4980. ac_path_SED_found=false
  4981. # Loop through the user's path and test for each of PROGNAME-LIST
  4982. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4983. for as_dir in $PATH
  4984. do
  4985. IFS=$as_save_IFS
  4986. test -z "$as_dir" && as_dir=.
  4987. for ac_prog in sed gsed; do
  4988. for ac_exec_ext in '' $ac_executable_extensions; do
  4989. ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
  4990. as_fn_executable_p "$ac_path_SED" || continue
  4991. # Check for GNU ac_path_SED and select it if it is found.
  4992. # Check for GNU $ac_path_SED
  4993. case `"$ac_path_SED" --version 2>&1` in
  4994. *GNU*)
  4995. ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  4996. *)
  4997. ac_count=0
  4998. $as_echo_n 0123456789 >"conftest.in"
  4999. while :
  5000. do
  5001. cat "conftest.in" "conftest.in" >"conftest.tmp"
  5002. mv "conftest.tmp" "conftest.in"
  5003. cp "conftest.in" "conftest.nl"
  5004. $as_echo '' >> "conftest.nl"
  5005. "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  5006. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  5007. as_fn_arith $ac_count + 1 && ac_count=$as_val
  5008. if test $ac_count -gt ${ac_path_SED_max-0}; then
  5009. # Best one so far, save it but keep looking for a better one
  5010. ac_cv_path_SED="$ac_path_SED"
  5011. ac_path_SED_max=$ac_count
  5012. fi
  5013. # 10*(2^10) chars as input seems more than enough
  5014. test $ac_count -gt 10 && break
  5015. done
  5016. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  5017. esac
  5018. $ac_path_SED_found && break 3
  5019. done
  5020. done
  5021. done
  5022. IFS=$as_save_IFS
  5023. if test -z "$ac_cv_path_SED"; then
  5024. as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
  5025. fi
  5026. else
  5027. ac_cv_path_SED=$SED
  5028. fi
  5029. fi
  5030. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
  5031. $as_echo "$ac_cv_path_SED" >&6; }
  5032. SED="$ac_cv_path_SED"
  5033. rm -f conftest.sed
  5034. test -z "$SED" && SED=sed
  5035. Xsed="$SED -e 1s/^X//"
  5036. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
  5037. $as_echo_n "checking for fgrep... " >&6; }
  5038. if ${ac_cv_path_FGREP+:} false; then :
  5039. $as_echo_n "(cached) " >&6
  5040. else
  5041. if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
  5042. then ac_cv_path_FGREP="$GREP -F"
  5043. else
  5044. if test -z "$FGREP"; then
  5045. ac_path_FGREP_found=false
  5046. # Loop through the user's path and test for each of PROGNAME-LIST
  5047. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5048. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  5049. do
  5050. IFS=$as_save_IFS
  5051. test -z "$as_dir" && as_dir=.
  5052. for ac_prog in fgrep; do
  5053. for ac_exec_ext in '' $ac_executable_extensions; do
  5054. ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
  5055. as_fn_executable_p "$ac_path_FGREP" || continue
  5056. # Check for GNU ac_path_FGREP and select it if it is found.
  5057. # Check for GNU $ac_path_FGREP
  5058. case `"$ac_path_FGREP" --version 2>&1` in
  5059. *GNU*)
  5060. ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
  5061. *)
  5062. ac_count=0
  5063. $as_echo_n 0123456789 >"conftest.in"
  5064. while :
  5065. do
  5066. cat "conftest.in" "conftest.in" >"conftest.tmp"
  5067. mv "conftest.tmp" "conftest.in"
  5068. cp "conftest.in" "conftest.nl"
  5069. $as_echo 'FGREP' >> "conftest.nl"
  5070. "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
  5071. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  5072. as_fn_arith $ac_count + 1 && ac_count=$as_val
  5073. if test $ac_count -gt ${ac_path_FGREP_max-0}; then
  5074. # Best one so far, save it but keep looking for a better one
  5075. ac_cv_path_FGREP="$ac_path_FGREP"
  5076. ac_path_FGREP_max=$ac_count
  5077. fi
  5078. # 10*(2^10) chars as input seems more than enough
  5079. test $ac_count -gt 10 && break
  5080. done
  5081. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  5082. esac
  5083. $ac_path_FGREP_found && break 3
  5084. done
  5085. done
  5086. done
  5087. IFS=$as_save_IFS
  5088. if test -z "$ac_cv_path_FGREP"; then
  5089. as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  5090. fi
  5091. else
  5092. ac_cv_path_FGREP=$FGREP
  5093. fi
  5094. fi
  5095. fi
  5096. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
  5097. $as_echo "$ac_cv_path_FGREP" >&6; }
  5098. FGREP="$ac_cv_path_FGREP"
  5099. test -z "$GREP" && GREP=grep
  5100. # Check whether --with-gnu-ld was given.
  5101. if test "${with_gnu_ld+set}" = set; then :
  5102. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  5103. else
  5104. with_gnu_ld=no
  5105. fi
  5106. ac_prog=ld
  5107. if test "$GCC" = yes; then
  5108. # Check if gcc -print-prog-name=ld gives a path.
  5109. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  5110. $as_echo_n "checking for ld used by $CC... " >&6; }
  5111. case $host in
  5112. *-*-mingw*)
  5113. # gcc leaves a trailing carriage return which upsets mingw
  5114. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  5115. *)
  5116. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  5117. esac
  5118. case $ac_prog in
  5119. # Accept absolute paths.
  5120. [\\/]* | ?:[\\/]*)
  5121. re_direlt='/[^/][^/]*/\.\./'
  5122. # Canonicalize the pathname of ld
  5123. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  5124. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  5125. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  5126. done
  5127. test -z "$LD" && LD="$ac_prog"
  5128. ;;
  5129. "")
  5130. # If it fails, then pretend we aren't using GCC.
  5131. ac_prog=ld
  5132. ;;
  5133. *)
  5134. # If it is relative, then search for the first ld in PATH.
  5135. with_gnu_ld=unknown
  5136. ;;
  5137. esac
  5138. elif test "$with_gnu_ld" = yes; then
  5139. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  5140. $as_echo_n "checking for GNU ld... " >&6; }
  5141. else
  5142. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  5143. $as_echo_n "checking for non-GNU ld... " >&6; }
  5144. fi
  5145. if ${lt_cv_path_LD+:} false; then :
  5146. $as_echo_n "(cached) " >&6
  5147. else
  5148. if test -z "$LD"; then
  5149. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  5150. for ac_dir in $PATH; do
  5151. IFS="$lt_save_ifs"
  5152. test -z "$ac_dir" && ac_dir=.
  5153. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  5154. lt_cv_path_LD="$ac_dir/$ac_prog"
  5155. # Check to see if the program is GNU ld. I'd rather use --version,
  5156. # but apparently some variants of GNU ld only accept -v.
  5157. # Break only if it was the GNU/non-GNU ld that we prefer.
  5158. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  5159. *GNU* | *'with BFD'*)
  5160. test "$with_gnu_ld" != no && break
  5161. ;;
  5162. *)
  5163. test "$with_gnu_ld" != yes && break
  5164. ;;
  5165. esac
  5166. fi
  5167. done
  5168. IFS="$lt_save_ifs"
  5169. else
  5170. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  5171. fi
  5172. fi
  5173. LD="$lt_cv_path_LD"
  5174. if test -n "$LD"; then
  5175. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  5176. $as_echo "$LD" >&6; }
  5177. else
  5178. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5179. $as_echo "no" >&6; }
  5180. fi
  5181. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  5182. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  5183. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  5184. if ${lt_cv_prog_gnu_ld+:} false; then :
  5185. $as_echo_n "(cached) " >&6
  5186. else
  5187. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  5188. case `$LD -v 2>&1 </dev/null` in
  5189. *GNU* | *'with BFD'*)
  5190. lt_cv_prog_gnu_ld=yes
  5191. ;;
  5192. *)
  5193. lt_cv_prog_gnu_ld=no
  5194. ;;
  5195. esac
  5196. fi
  5197. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  5198. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  5199. with_gnu_ld=$lt_cv_prog_gnu_ld
  5200. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
  5201. $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
  5202. if ${lt_cv_path_NM+:} false; then :
  5203. $as_echo_n "(cached) " >&6
  5204. else
  5205. if test -n "$NM"; then
  5206. # Let the user override the test.
  5207. lt_cv_path_NM="$NM"
  5208. else
  5209. lt_nm_to_check="${ac_tool_prefix}nm"
  5210. if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  5211. lt_nm_to_check="$lt_nm_to_check nm"
  5212. fi
  5213. for lt_tmp_nm in $lt_nm_to_check; do
  5214. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  5215. for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  5216. IFS="$lt_save_ifs"
  5217. test -z "$ac_dir" && ac_dir=.
  5218. tmp_nm="$ac_dir/$lt_tmp_nm"
  5219. if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
  5220. # Check to see if the nm accepts a BSD-compat flag.
  5221. # Adding the `sed 1q' prevents false positives on HP-UX, which says:
  5222. # nm: unknown option "B" ignored
  5223. # Tru64's nm complains that /dev/null is an invalid object file
  5224. case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
  5225. */dev/null* | *'Invalid file or object type'*)
  5226. lt_cv_path_NM="$tmp_nm -B"
  5227. break
  5228. ;;
  5229. *)
  5230. case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  5231. */dev/null*)
  5232. lt_cv_path_NM="$tmp_nm -p"
  5233. break
  5234. ;;
  5235. *)
  5236. lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  5237. continue # so that we can try to find one that supports BSD flags
  5238. ;;
  5239. esac
  5240. ;;
  5241. esac
  5242. fi
  5243. done
  5244. IFS="$lt_save_ifs"
  5245. done
  5246. : ${lt_cv_path_NM=no}
  5247. fi
  5248. fi
  5249. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
  5250. $as_echo "$lt_cv_path_NM" >&6; }
  5251. if test "$lt_cv_path_NM" != "no"; then
  5252. NM="$lt_cv_path_NM"
  5253. else
  5254. # Didn't find any BSD compatible name lister, look for dumpbin.
  5255. if test -n "$ac_tool_prefix"; then
  5256. for ac_prog in "dumpbin -symbols" "link -dump -symbols"
  5257. do
  5258. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  5259. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  5260. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5261. $as_echo_n "checking for $ac_word... " >&6; }
  5262. if ${ac_cv_prog_DUMPBIN+:} false; then :
  5263. $as_echo_n "(cached) " >&6
  5264. else
  5265. if test -n "$DUMPBIN"; then
  5266. ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
  5267. else
  5268. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5269. for as_dir in $PATH
  5270. do
  5271. IFS=$as_save_IFS
  5272. test -z "$as_dir" && as_dir=.
  5273. for ac_exec_ext in '' $ac_executable_extensions; do
  5274. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5275. ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
  5276. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5277. break 2
  5278. fi
  5279. done
  5280. done
  5281. IFS=$as_save_IFS
  5282. fi
  5283. fi
  5284. DUMPBIN=$ac_cv_prog_DUMPBIN
  5285. if test -n "$DUMPBIN"; then
  5286. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
  5287. $as_echo "$DUMPBIN" >&6; }
  5288. else
  5289. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5290. $as_echo "no" >&6; }
  5291. fi
  5292. test -n "$DUMPBIN" && break
  5293. done
  5294. fi
  5295. if test -z "$DUMPBIN"; then
  5296. ac_ct_DUMPBIN=$DUMPBIN
  5297. for ac_prog in "dumpbin -symbols" "link -dump -symbols"
  5298. do
  5299. # Extract the first word of "$ac_prog", so it can be a program name with args.
  5300. set dummy $ac_prog; ac_word=$2
  5301. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5302. $as_echo_n "checking for $ac_word... " >&6; }
  5303. if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
  5304. $as_echo_n "(cached) " >&6
  5305. else
  5306. if test -n "$ac_ct_DUMPBIN"; then
  5307. ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
  5308. else
  5309. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5310. for as_dir in $PATH
  5311. do
  5312. IFS=$as_save_IFS
  5313. test -z "$as_dir" && as_dir=.
  5314. for ac_exec_ext in '' $ac_executable_extensions; do
  5315. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5316. ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
  5317. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5318. break 2
  5319. fi
  5320. done
  5321. done
  5322. IFS=$as_save_IFS
  5323. fi
  5324. fi
  5325. ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
  5326. if test -n "$ac_ct_DUMPBIN"; then
  5327. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
  5328. $as_echo "$ac_ct_DUMPBIN" >&6; }
  5329. else
  5330. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5331. $as_echo "no" >&6; }
  5332. fi
  5333. test -n "$ac_ct_DUMPBIN" && break
  5334. done
  5335. if test "x$ac_ct_DUMPBIN" = x; then
  5336. DUMPBIN=":"
  5337. else
  5338. case $cross_compiling:$ac_tool_warned in
  5339. yes:)
  5340. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5341. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5342. ac_tool_warned=yes ;;
  5343. esac
  5344. DUMPBIN=$ac_ct_DUMPBIN
  5345. fi
  5346. fi
  5347. if test "$DUMPBIN" != ":"; then
  5348. NM="$DUMPBIN"
  5349. fi
  5350. fi
  5351. test -z "$NM" && NM=nm
  5352. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
  5353. $as_echo_n "checking the name lister ($NM) interface... " >&6; }
  5354. if ${lt_cv_nm_interface+:} false; then :
  5355. $as_echo_n "(cached) " >&6
  5356. else
  5357. lt_cv_nm_interface="BSD nm"
  5358. echo "int some_variable = 0;" > conftest.$ac_ext
  5359. (eval echo "\"\$as_me:5967: $ac_compile\"" >&5)
  5360. (eval "$ac_compile" 2>conftest.err)
  5361. cat conftest.err >&5
  5362. (eval echo "\"\$as_me:5970: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
  5363. (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  5364. cat conftest.err >&5
  5365. (eval echo "\"\$as_me:5973: output\"" >&5)
  5366. cat conftest.out >&5
  5367. if $GREP 'External.*some_variable' conftest.out > /dev/null; then
  5368. lt_cv_nm_interface="MS dumpbin"
  5369. fi
  5370. rm -f conftest*
  5371. fi
  5372. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
  5373. $as_echo "$lt_cv_nm_interface" >&6; }
  5374. # find the maximum length of command line arguments
  5375. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
  5376. $as_echo_n "checking the maximum length of command line arguments... " >&6; }
  5377. if ${lt_cv_sys_max_cmd_len+:} false; then :
  5378. $as_echo_n "(cached) " >&6
  5379. else
  5380. i=0
  5381. teststring="ABCD"
  5382. case $build_os in
  5383. msdosdjgpp*)
  5384. # On DJGPP, this test can blow up pretty badly due to problems in libc
  5385. # (any single argument exceeding 2000 bytes causes a buffer overrun
  5386. # during glob expansion). Even if it were fixed, the result of this
  5387. # check would be larger than it should be.
  5388. lt_cv_sys_max_cmd_len=12288; # 12K is about right
  5389. ;;
  5390. gnu*)
  5391. # Under GNU Hurd, this test is not required because there is
  5392. # no limit to the length of command line arguments.
  5393. # Libtool will interpret -1 as no limit whatsoever
  5394. lt_cv_sys_max_cmd_len=-1;
  5395. ;;
  5396. cygwin* | mingw* | cegcc*)
  5397. # On Win9x/ME, this test blows up -- it succeeds, but takes
  5398. # about 5 minutes as the teststring grows exponentially.
  5399. # Worse, since 9x/ME are not pre-emptively multitasking,
  5400. # you end up with a "frozen" computer, even though with patience
  5401. # the test eventually succeeds (with a max line length of 256k).
  5402. # Instead, let's just punt: use the minimum linelength reported by
  5403. # all of the supported platforms: 8192 (on NT/2K/XP).
  5404. lt_cv_sys_max_cmd_len=8192;
  5405. ;;
  5406. amigaos*)
  5407. # On AmigaOS with pdksh, this test takes hours, literally.
  5408. # So we just punt and use a minimum line length of 8192.
  5409. lt_cv_sys_max_cmd_len=8192;
  5410. ;;
  5411. netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
  5412. # This has been around since 386BSD, at least. Likely further.
  5413. if test -x /sbin/sysctl; then
  5414. lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  5415. elif test -x /usr/sbin/sysctl; then
  5416. lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  5417. else
  5418. lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  5419. fi
  5420. # And add a safety zone
  5421. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  5422. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  5423. ;;
  5424. interix*)
  5425. # We know the value 262144 and hardcode it with a safety zone (like BSD)
  5426. lt_cv_sys_max_cmd_len=196608
  5427. ;;
  5428. osf*)
  5429. # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  5430. # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  5431. # nice to cause kernel panics so lets avoid the loop below.
  5432. # First set a reasonable default.
  5433. lt_cv_sys_max_cmd_len=16384
  5434. #
  5435. if test -x /sbin/sysconfig; then
  5436. case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  5437. *1*) lt_cv_sys_max_cmd_len=-1 ;;
  5438. esac
  5439. fi
  5440. ;;
  5441. sco3.2v5*)
  5442. lt_cv_sys_max_cmd_len=102400
  5443. ;;
  5444. sysv5* | sco5v6* | sysv4.2uw2*)
  5445. kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  5446. if test -n "$kargmax"; then
  5447. lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
  5448. else
  5449. lt_cv_sys_max_cmd_len=32768
  5450. fi
  5451. ;;
  5452. *)
  5453. lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  5454. if test -n "$lt_cv_sys_max_cmd_len"; then
  5455. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  5456. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  5457. else
  5458. # Make teststring a little bigger before we do anything with it.
  5459. # a 1K string should be a reasonable start.
  5460. for i in 1 2 3 4 5 6 7 8 ; do
  5461. teststring=$teststring$teststring
  5462. done
  5463. SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  5464. # If test is not a shell built-in, we'll probably end up computing a
  5465. # maximum length that is only half of the actual maximum length, but
  5466. # we can't tell.
  5467. while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
  5468. = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
  5469. test $i != 17 # 1/2 MB should be enough
  5470. do
  5471. i=`expr $i + 1`
  5472. teststring=$teststring$teststring
  5473. done
  5474. # Only check the string length outside the loop.
  5475. lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
  5476. teststring=
  5477. # Add a significant safety factor because C++ compilers can tack on
  5478. # massive amounts of additional arguments before passing them to the
  5479. # linker. It appears as though 1/2 is a usable value.
  5480. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  5481. fi
  5482. ;;
  5483. esac
  5484. fi
  5485. if test -n $lt_cv_sys_max_cmd_len ; then
  5486. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
  5487. $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
  5488. else
  5489. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
  5490. $as_echo "none" >&6; }
  5491. fi
  5492. max_cmd_len=$lt_cv_sys_max_cmd_len
  5493. : ${CP="cp -f"}
  5494. : ${MV="mv -f"}
  5495. : ${RM="rm -f"}
  5496. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
  5497. $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
  5498. # Try some XSI features
  5499. xsi_shell=no
  5500. ( _lt_dummy="a/b/c"
  5501. test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
  5502. = c,a/b,, \
  5503. && eval 'test $(( 1 + 1 )) -eq 2 \
  5504. && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
  5505. && xsi_shell=yes
  5506. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
  5507. $as_echo "$xsi_shell" >&6; }
  5508. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
  5509. $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
  5510. lt_shell_append=no
  5511. ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
  5512. >/dev/null 2>&1 \
  5513. && lt_shell_append=yes
  5514. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
  5515. $as_echo "$lt_shell_append" >&6; }
  5516. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  5517. lt_unset=unset
  5518. else
  5519. lt_unset=false
  5520. fi
  5521. # test EBCDIC or ASCII
  5522. case `echo X|tr X '\101'` in
  5523. A) # ASCII based system
  5524. # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  5525. lt_SP2NL='tr \040 \012'
  5526. lt_NL2SP='tr \015\012 \040\040'
  5527. ;;
  5528. *) # EBCDIC based system
  5529. lt_SP2NL='tr \100 \n'
  5530. lt_NL2SP='tr \r\n \100\100'
  5531. ;;
  5532. esac
  5533. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
  5534. $as_echo_n "checking for $LD option to reload object files... " >&6; }
  5535. if ${lt_cv_ld_reload_flag+:} false; then :
  5536. $as_echo_n "(cached) " >&6
  5537. else
  5538. lt_cv_ld_reload_flag='-r'
  5539. fi
  5540. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
  5541. $as_echo "$lt_cv_ld_reload_flag" >&6; }
  5542. reload_flag=$lt_cv_ld_reload_flag
  5543. case $reload_flag in
  5544. "" | " "*) ;;
  5545. *) reload_flag=" $reload_flag" ;;
  5546. esac
  5547. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  5548. case $host_os in
  5549. darwin*)
  5550. if test "$GCC" = yes; then
  5551. reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
  5552. else
  5553. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  5554. fi
  5555. ;;
  5556. esac
  5557. if test -n "$ac_tool_prefix"; then
  5558. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  5559. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  5560. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5561. $as_echo_n "checking for $ac_word... " >&6; }
  5562. if ${ac_cv_prog_OBJDUMP+:} false; then :
  5563. $as_echo_n "(cached) " >&6
  5564. else
  5565. if test -n "$OBJDUMP"; then
  5566. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  5567. else
  5568. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5569. for as_dir in $PATH
  5570. do
  5571. IFS=$as_save_IFS
  5572. test -z "$as_dir" && as_dir=.
  5573. for ac_exec_ext in '' $ac_executable_extensions; do
  5574. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5575. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  5576. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5577. break 2
  5578. fi
  5579. done
  5580. done
  5581. IFS=$as_save_IFS
  5582. fi
  5583. fi
  5584. OBJDUMP=$ac_cv_prog_OBJDUMP
  5585. if test -n "$OBJDUMP"; then
  5586. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  5587. $as_echo "$OBJDUMP" >&6; }
  5588. else
  5589. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5590. $as_echo "no" >&6; }
  5591. fi
  5592. fi
  5593. if test -z "$ac_cv_prog_OBJDUMP"; then
  5594. ac_ct_OBJDUMP=$OBJDUMP
  5595. # Extract the first word of "objdump", so it can be a program name with args.
  5596. set dummy objdump; ac_word=$2
  5597. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5598. $as_echo_n "checking for $ac_word... " >&6; }
  5599. if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
  5600. $as_echo_n "(cached) " >&6
  5601. else
  5602. if test -n "$ac_ct_OBJDUMP"; then
  5603. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  5604. else
  5605. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5606. for as_dir in $PATH
  5607. do
  5608. IFS=$as_save_IFS
  5609. test -z "$as_dir" && as_dir=.
  5610. for ac_exec_ext in '' $ac_executable_extensions; do
  5611. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5612. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  5613. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5614. break 2
  5615. fi
  5616. done
  5617. done
  5618. IFS=$as_save_IFS
  5619. fi
  5620. fi
  5621. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  5622. if test -n "$ac_ct_OBJDUMP"; then
  5623. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  5624. $as_echo "$ac_ct_OBJDUMP" >&6; }
  5625. else
  5626. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5627. $as_echo "no" >&6; }
  5628. fi
  5629. if test "x$ac_ct_OBJDUMP" = x; then
  5630. OBJDUMP="false"
  5631. else
  5632. case $cross_compiling:$ac_tool_warned in
  5633. yes:)
  5634. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5635. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5636. ac_tool_warned=yes ;;
  5637. esac
  5638. OBJDUMP=$ac_ct_OBJDUMP
  5639. fi
  5640. else
  5641. OBJDUMP="$ac_cv_prog_OBJDUMP"
  5642. fi
  5643. test -z "$OBJDUMP" && OBJDUMP=objdump
  5644. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
  5645. $as_echo_n "checking how to recognize dependent libraries... " >&6; }
  5646. if ${lt_cv_deplibs_check_method+:} false; then :
  5647. $as_echo_n "(cached) " >&6
  5648. else
  5649. lt_cv_file_magic_cmd='$MAGIC_CMD'
  5650. lt_cv_file_magic_test_file=
  5651. lt_cv_deplibs_check_method='unknown'
  5652. # Need to set the preceding variable on all platforms that support
  5653. # interlibrary dependencies.
  5654. # 'none' -- dependencies not supported.
  5655. # `unknown' -- same as none, but documents that we really don't know.
  5656. # 'pass_all' -- all dependencies passed with no checks.
  5657. # 'test_compile' -- check by making test program.
  5658. # 'file_magic [[regex]]' -- check by looking for files in library path
  5659. # which responds to the $file_magic_cmd with a given extended regex.
  5660. # If you have `file' or equivalent on your system and you're not sure
  5661. # whether `pass_all' will *always* work, you probably want this one.
  5662. case $host_os in
  5663. aix[4-9]*)
  5664. lt_cv_deplibs_check_method=pass_all
  5665. ;;
  5666. beos*)
  5667. lt_cv_deplibs_check_method=pass_all
  5668. ;;
  5669. bsdi[45]*)
  5670. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  5671. lt_cv_file_magic_cmd='/usr/bin/file -L'
  5672. lt_cv_file_magic_test_file=/shlib/libc.so
  5673. ;;
  5674. cygwin*)
  5675. # func_win32_libid is a shell function defined in ltmain.sh
  5676. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  5677. lt_cv_file_magic_cmd='func_win32_libid'
  5678. ;;
  5679. mingw* | pw32*)
  5680. # Base MSYS/MinGW do not provide the 'file' command needed by
  5681. # func_win32_libid shell function, so use a weaker test based on 'objdump',
  5682. # unless we find 'file', for example because we are cross-compiling.
  5683. if ( file / ) >/dev/null 2>&1; then
  5684. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  5685. lt_cv_file_magic_cmd='func_win32_libid'
  5686. else
  5687. lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
  5688. lt_cv_file_magic_cmd='$OBJDUMP -f'
  5689. fi
  5690. ;;
  5691. cegcc)
  5692. # use the weaker test based on 'objdump'. See mingw*.
  5693. lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
  5694. lt_cv_file_magic_cmd='$OBJDUMP -f'
  5695. ;;
  5696. darwin* | rhapsody*)
  5697. lt_cv_deplibs_check_method=pass_all
  5698. ;;
  5699. freebsd* | dragonfly*)
  5700. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  5701. case $host_cpu in
  5702. i*86 )
  5703. # Not sure whether the presence of OpenBSD here was a mistake.
  5704. # Let's accept both of them until this is cleared up.
  5705. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
  5706. lt_cv_file_magic_cmd=/usr/bin/file
  5707. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  5708. ;;
  5709. esac
  5710. else
  5711. lt_cv_deplibs_check_method=pass_all
  5712. fi
  5713. ;;
  5714. gnu*)
  5715. lt_cv_deplibs_check_method=pass_all
  5716. ;;
  5717. hpux10.20* | hpux11*)
  5718. lt_cv_file_magic_cmd=/usr/bin/file
  5719. case $host_cpu in
  5720. ia64*)
  5721. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  5722. lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  5723. ;;
  5724. hppa*64*)
  5725. 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]'
  5726. lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  5727. ;;
  5728. *)
  5729. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
  5730. lt_cv_file_magic_test_file=/usr/lib/libc.sl
  5731. ;;
  5732. esac
  5733. ;;
  5734. interix[3-9]*)
  5735. # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  5736. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
  5737. ;;
  5738. irix5* | irix6* | nonstopux*)
  5739. case $LD in
  5740. *-32|*"-32 ") libmagic=32-bit;;
  5741. *-n32|*"-n32 ") libmagic=N32;;
  5742. *-64|*"-64 ") libmagic=64-bit;;
  5743. *) libmagic=never-match;;
  5744. esac
  5745. lt_cv_deplibs_check_method=pass_all
  5746. ;;
  5747. # This must be Linux ELF.
  5748. linux* | k*bsd*-gnu)
  5749. lt_cv_deplibs_check_method=pass_all
  5750. ;;
  5751. netbsd*)
  5752. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  5753. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  5754. else
  5755. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  5756. fi
  5757. ;;
  5758. newos6*)
  5759. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  5760. lt_cv_file_magic_cmd=/usr/bin/file
  5761. lt_cv_file_magic_test_file=/usr/lib/libnls.so
  5762. ;;
  5763. *nto* | *qnx*)
  5764. lt_cv_deplibs_check_method=pass_all
  5765. ;;
  5766. openbsd*)
  5767. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  5768. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  5769. else
  5770. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  5771. fi
  5772. ;;
  5773. osf3* | osf4* | osf5*)
  5774. lt_cv_deplibs_check_method=pass_all
  5775. ;;
  5776. rdos*)
  5777. lt_cv_deplibs_check_method=pass_all
  5778. ;;
  5779. solaris*)
  5780. lt_cv_deplibs_check_method=pass_all
  5781. ;;
  5782. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  5783. lt_cv_deplibs_check_method=pass_all
  5784. ;;
  5785. sysv4 | sysv4.3*)
  5786. case $host_vendor in
  5787. motorola)
  5788. 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]'
  5789. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  5790. ;;
  5791. ncr)
  5792. lt_cv_deplibs_check_method=pass_all
  5793. ;;
  5794. sequent)
  5795. lt_cv_file_magic_cmd='/bin/file'
  5796. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  5797. ;;
  5798. sni)
  5799. lt_cv_file_magic_cmd='/bin/file'
  5800. lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  5801. lt_cv_file_magic_test_file=/lib/libc.so
  5802. ;;
  5803. siemens)
  5804. lt_cv_deplibs_check_method=pass_all
  5805. ;;
  5806. pc)
  5807. lt_cv_deplibs_check_method=pass_all
  5808. ;;
  5809. esac
  5810. ;;
  5811. tpf*)
  5812. lt_cv_deplibs_check_method=pass_all
  5813. ;;
  5814. esac
  5815. fi
  5816. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
  5817. $as_echo "$lt_cv_deplibs_check_method" >&6; }
  5818. file_magic_cmd=$lt_cv_file_magic_cmd
  5819. deplibs_check_method=$lt_cv_deplibs_check_method
  5820. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  5821. if test -n "$ac_tool_prefix"; then
  5822. # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
  5823. set dummy ${ac_tool_prefix}ar; ac_word=$2
  5824. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5825. $as_echo_n "checking for $ac_word... " >&6; }
  5826. if ${ac_cv_prog_AR+:} false; then :
  5827. $as_echo_n "(cached) " >&6
  5828. else
  5829. if test -n "$AR"; then
  5830. ac_cv_prog_AR="$AR" # Let the user override the test.
  5831. else
  5832. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5833. for as_dir in $PATH
  5834. do
  5835. IFS=$as_save_IFS
  5836. test -z "$as_dir" && as_dir=.
  5837. for ac_exec_ext in '' $ac_executable_extensions; do
  5838. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5839. ac_cv_prog_AR="${ac_tool_prefix}ar"
  5840. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5841. break 2
  5842. fi
  5843. done
  5844. done
  5845. IFS=$as_save_IFS
  5846. fi
  5847. fi
  5848. AR=$ac_cv_prog_AR
  5849. if test -n "$AR"; then
  5850. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  5851. $as_echo "$AR" >&6; }
  5852. else
  5853. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5854. $as_echo "no" >&6; }
  5855. fi
  5856. fi
  5857. if test -z "$ac_cv_prog_AR"; then
  5858. ac_ct_AR=$AR
  5859. # Extract the first word of "ar", so it can be a program name with args.
  5860. set dummy ar; ac_word=$2
  5861. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5862. $as_echo_n "checking for $ac_word... " >&6; }
  5863. if ${ac_cv_prog_ac_ct_AR+:} false; then :
  5864. $as_echo_n "(cached) " >&6
  5865. else
  5866. if test -n "$ac_ct_AR"; then
  5867. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  5868. else
  5869. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5870. for as_dir in $PATH
  5871. do
  5872. IFS=$as_save_IFS
  5873. test -z "$as_dir" && as_dir=.
  5874. for ac_exec_ext in '' $ac_executable_extensions; do
  5875. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5876. ac_cv_prog_ac_ct_AR="ar"
  5877. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5878. break 2
  5879. fi
  5880. done
  5881. done
  5882. IFS=$as_save_IFS
  5883. fi
  5884. fi
  5885. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  5886. if test -n "$ac_ct_AR"; then
  5887. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
  5888. $as_echo "$ac_ct_AR" >&6; }
  5889. else
  5890. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5891. $as_echo "no" >&6; }
  5892. fi
  5893. if test "x$ac_ct_AR" = x; then
  5894. AR="false"
  5895. else
  5896. case $cross_compiling:$ac_tool_warned in
  5897. yes:)
  5898. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5899. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5900. ac_tool_warned=yes ;;
  5901. esac
  5902. AR=$ac_ct_AR
  5903. fi
  5904. else
  5905. AR="$ac_cv_prog_AR"
  5906. fi
  5907. test -z "$AR" && AR=ar
  5908. test -z "$AR_FLAGS" && AR_FLAGS=cru
  5909. if test -n "$ac_tool_prefix"; then
  5910. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  5911. set dummy ${ac_tool_prefix}strip; ac_word=$2
  5912. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5913. $as_echo_n "checking for $ac_word... " >&6; }
  5914. if ${ac_cv_prog_STRIP+:} false; then :
  5915. $as_echo_n "(cached) " >&6
  5916. else
  5917. if test -n "$STRIP"; then
  5918. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  5919. else
  5920. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5921. for as_dir in $PATH
  5922. do
  5923. IFS=$as_save_IFS
  5924. test -z "$as_dir" && as_dir=.
  5925. for ac_exec_ext in '' $ac_executable_extensions; do
  5926. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5927. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  5928. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5929. break 2
  5930. fi
  5931. done
  5932. done
  5933. IFS=$as_save_IFS
  5934. fi
  5935. fi
  5936. STRIP=$ac_cv_prog_STRIP
  5937. if test -n "$STRIP"; then
  5938. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  5939. $as_echo "$STRIP" >&6; }
  5940. else
  5941. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5942. $as_echo "no" >&6; }
  5943. fi
  5944. fi
  5945. if test -z "$ac_cv_prog_STRIP"; then
  5946. ac_ct_STRIP=$STRIP
  5947. # Extract the first word of "strip", so it can be a program name with args.
  5948. set dummy strip; ac_word=$2
  5949. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5950. $as_echo_n "checking for $ac_word... " >&6; }
  5951. if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
  5952. $as_echo_n "(cached) " >&6
  5953. else
  5954. if test -n "$ac_ct_STRIP"; then
  5955. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  5956. else
  5957. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5958. for as_dir in $PATH
  5959. do
  5960. IFS=$as_save_IFS
  5961. test -z "$as_dir" && as_dir=.
  5962. for ac_exec_ext in '' $ac_executable_extensions; do
  5963. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5964. ac_cv_prog_ac_ct_STRIP="strip"
  5965. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5966. break 2
  5967. fi
  5968. done
  5969. done
  5970. IFS=$as_save_IFS
  5971. fi
  5972. fi
  5973. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  5974. if test -n "$ac_ct_STRIP"; then
  5975. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  5976. $as_echo "$ac_ct_STRIP" >&6; }
  5977. else
  5978. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5979. $as_echo "no" >&6; }
  5980. fi
  5981. if test "x$ac_ct_STRIP" = x; then
  5982. STRIP=":"
  5983. else
  5984. case $cross_compiling:$ac_tool_warned in
  5985. yes:)
  5986. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5987. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5988. ac_tool_warned=yes ;;
  5989. esac
  5990. STRIP=$ac_ct_STRIP
  5991. fi
  5992. else
  5993. STRIP="$ac_cv_prog_STRIP"
  5994. fi
  5995. test -z "$STRIP" && STRIP=:
  5996. if test -n "$ac_tool_prefix"; then
  5997. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  5998. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  5999. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6000. $as_echo_n "checking for $ac_word... " >&6; }
  6001. if ${ac_cv_prog_RANLIB+:} false; then :
  6002. $as_echo_n "(cached) " >&6
  6003. else
  6004. if test -n "$RANLIB"; then
  6005. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  6006. else
  6007. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6008. for as_dir in $PATH
  6009. do
  6010. IFS=$as_save_IFS
  6011. test -z "$as_dir" && as_dir=.
  6012. for ac_exec_ext in '' $ac_executable_extensions; do
  6013. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6014. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  6015. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6016. break 2
  6017. fi
  6018. done
  6019. done
  6020. IFS=$as_save_IFS
  6021. fi
  6022. fi
  6023. RANLIB=$ac_cv_prog_RANLIB
  6024. if test -n "$RANLIB"; then
  6025. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  6026. $as_echo "$RANLIB" >&6; }
  6027. else
  6028. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6029. $as_echo "no" >&6; }
  6030. fi
  6031. fi
  6032. if test -z "$ac_cv_prog_RANLIB"; then
  6033. ac_ct_RANLIB=$RANLIB
  6034. # Extract the first word of "ranlib", so it can be a program name with args.
  6035. set dummy ranlib; ac_word=$2
  6036. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6037. $as_echo_n "checking for $ac_word... " >&6; }
  6038. if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
  6039. $as_echo_n "(cached) " >&6
  6040. else
  6041. if test -n "$ac_ct_RANLIB"; then
  6042. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  6043. else
  6044. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6045. for as_dir in $PATH
  6046. do
  6047. IFS=$as_save_IFS
  6048. test -z "$as_dir" && as_dir=.
  6049. for ac_exec_ext in '' $ac_executable_extensions; do
  6050. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6051. ac_cv_prog_ac_ct_RANLIB="ranlib"
  6052. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6053. break 2
  6054. fi
  6055. done
  6056. done
  6057. IFS=$as_save_IFS
  6058. fi
  6059. fi
  6060. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  6061. if test -n "$ac_ct_RANLIB"; then
  6062. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  6063. $as_echo "$ac_ct_RANLIB" >&6; }
  6064. else
  6065. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6066. $as_echo "no" >&6; }
  6067. fi
  6068. if test "x$ac_ct_RANLIB" = x; then
  6069. RANLIB=":"
  6070. else
  6071. case $cross_compiling:$ac_tool_warned in
  6072. yes:)
  6073. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6074. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6075. ac_tool_warned=yes ;;
  6076. esac
  6077. RANLIB=$ac_ct_RANLIB
  6078. fi
  6079. else
  6080. RANLIB="$ac_cv_prog_RANLIB"
  6081. fi
  6082. test -z "$RANLIB" && RANLIB=:
  6083. # Determine commands to create old-style static archives.
  6084. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  6085. old_postinstall_cmds='chmod 644 $oldlib'
  6086. old_postuninstall_cmds=
  6087. if test -n "$RANLIB"; then
  6088. case $host_os in
  6089. openbsd*)
  6090. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
  6091. ;;
  6092. *)
  6093. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
  6094. ;;
  6095. esac
  6096. old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
  6097. fi
  6098. # If no C compiler was specified, use CC.
  6099. LTCC=${LTCC-"$CC"}
  6100. # If no C compiler flags were specified, use CFLAGS.
  6101. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  6102. # Allow CC to be a program name with arguments.
  6103. compiler=$CC
  6104. # Check for command to grab the raw symbol name followed by C symbol from nm.
  6105. { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
  6106. $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
  6107. if ${lt_cv_sys_global_symbol_pipe+:} false; then :
  6108. $as_echo_n "(cached) " >&6
  6109. else
  6110. # These are sane defaults that work on at least a few old systems.
  6111. # [They come from Ultrix. What could be older than Ultrix?!! ;)]
  6112. # Character class describing NM global symbol codes.
  6113. symcode='[BCDEGRST]'
  6114. # Regexp to match symbols that can be accessed directly from C.
  6115. sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  6116. # Define system-specific variables.
  6117. case $host_os in
  6118. aix*)
  6119. symcode='[BCDT]'
  6120. ;;
  6121. cygwin* | mingw* | pw32* | cegcc*)
  6122. symcode='[ABCDGISTW]'
  6123. ;;
  6124. hpux*)
  6125. if test "$host_cpu" = ia64; then
  6126. symcode='[ABCDEGRST]'
  6127. fi
  6128. ;;
  6129. irix* | nonstopux*)
  6130. symcode='[BCDEGRST]'
  6131. ;;
  6132. osf*)
  6133. symcode='[BCDEGQRST]'
  6134. ;;
  6135. solaris*)
  6136. symcode='[BDRT]'
  6137. ;;
  6138. sco3.2v5*)
  6139. symcode='[DT]'
  6140. ;;
  6141. sysv4.2uw2*)
  6142. symcode='[DT]'
  6143. ;;
  6144. sysv5* | sco5v6* | unixware* | OpenUNIX*)
  6145. symcode='[ABDT]'
  6146. ;;
  6147. sysv4)
  6148. symcode='[DFNSTU]'
  6149. ;;
  6150. esac
  6151. # If we're using GNU nm, then use its standard symbol codes.
  6152. case `$NM -V 2>&1` in
  6153. *GNU* | *'with BFD'*)
  6154. symcode='[ABCDGIRSTW]' ;;
  6155. esac
  6156. # Transform an extracted symbol line into a proper C declaration.
  6157. # Some systems (esp. on ia64) link data and code symbols differently,
  6158. # so use this general approach.
  6159. lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  6160. # Transform an extracted symbol line into symbol name and symbol address
  6161. lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
  6162. 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'"
  6163. # Handle CRLF in mingw tool chain
  6164. opt_cr=
  6165. case $build_os in
  6166. mingw*)
  6167. opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  6168. ;;
  6169. esac
  6170. # Try without a prefix underscore, then with it.
  6171. for ac_symprfx in "" "_"; do
  6172. # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  6173. symxfrm="\\1 $ac_symprfx\\2 \\2"
  6174. # Write the raw and C identifiers.
  6175. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  6176. # Fake it for dumpbin and say T for any non-static function
  6177. # and D for any global variable.
  6178. # Also find C++ and __fastcall symbols from MSVC++,
  6179. # which start with @ or ?.
  6180. lt_cv_sys_global_symbol_pipe="$AWK '"\
  6181. " {last_section=section; section=\$ 3};"\
  6182. " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
  6183. " \$ 0!~/External *\|/{next};"\
  6184. " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
  6185. " {if(hide[section]) next};"\
  6186. " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
  6187. " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
  6188. " s[1]~/^[@?]/{print s[1], s[1]; next};"\
  6189. " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
  6190. " ' prfx=^$ac_symprfx"
  6191. else
  6192. lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  6193. fi
  6194. # Check to see that the pipe works correctly.
  6195. pipe_works=no
  6196. rm -f conftest*
  6197. cat > conftest.$ac_ext <<_LT_EOF
  6198. #ifdef __cplusplus
  6199. extern "C" {
  6200. #endif
  6201. char nm_test_var;
  6202. void nm_test_func(void);
  6203. void nm_test_func(void){}
  6204. #ifdef __cplusplus
  6205. }
  6206. #endif
  6207. int main(){nm_test_var='a';nm_test_func();return(0);}
  6208. _LT_EOF
  6209. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6210. (eval $ac_compile) 2>&5
  6211. ac_status=$?
  6212. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6213. test $ac_status = 0; }; then
  6214. # Now try to grab the symbols.
  6215. nlist=conftest.nm
  6216. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
  6217. (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
  6218. ac_status=$?
  6219. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6220. test $ac_status = 0; } && test -s "$nlist"; then
  6221. # Try sorting and uniquifying the output.
  6222. if sort "$nlist" | uniq > "$nlist"T; then
  6223. mv -f "$nlist"T "$nlist"
  6224. else
  6225. rm -f "$nlist"T
  6226. fi
  6227. # Make sure that we snagged all the symbols we need.
  6228. if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
  6229. if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
  6230. cat <<_LT_EOF > conftest.$ac_ext
  6231. #ifdef __cplusplus
  6232. extern "C" {
  6233. #endif
  6234. _LT_EOF
  6235. # Now generate the symbol file.
  6236. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
  6237. cat <<_LT_EOF >> conftest.$ac_ext
  6238. /* The mapping between symbol names and symbols. */
  6239. const struct {
  6240. const char *name;
  6241. void *address;
  6242. }
  6243. lt__PROGRAM__LTX_preloaded_symbols[] =
  6244. {
  6245. { "@PROGRAM@", (void *) 0 },
  6246. _LT_EOF
  6247. $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
  6248. cat <<\_LT_EOF >> conftest.$ac_ext
  6249. {0, (void *) 0}
  6250. };
  6251. /* This works around a problem in FreeBSD linker */
  6252. #ifdef FREEBSD_WORKAROUND
  6253. static const void *lt_preloaded_setup() {
  6254. return lt__PROGRAM__LTX_preloaded_symbols;
  6255. }
  6256. #endif
  6257. #ifdef __cplusplus
  6258. }
  6259. #endif
  6260. _LT_EOF
  6261. # Now try linking the two files.
  6262. mv conftest.$ac_objext conftstm.$ac_objext
  6263. lt_save_LIBS="$LIBS"
  6264. lt_save_CFLAGS="$CFLAGS"
  6265. LIBS="conftstm.$ac_objext"
  6266. CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
  6267. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  6268. (eval $ac_link) 2>&5
  6269. ac_status=$?
  6270. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6271. test $ac_status = 0; } && test -s conftest${ac_exeext}; then
  6272. pipe_works=yes
  6273. fi
  6274. LIBS="$lt_save_LIBS"
  6275. CFLAGS="$lt_save_CFLAGS"
  6276. else
  6277. echo "cannot find nm_test_func in $nlist" >&5
  6278. fi
  6279. else
  6280. echo "cannot find nm_test_var in $nlist" >&5
  6281. fi
  6282. else
  6283. echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
  6284. fi
  6285. else
  6286. echo "$progname: failed program was:" >&5
  6287. cat conftest.$ac_ext >&5
  6288. fi
  6289. rm -rf conftest* conftst*
  6290. # Do not use the global_symbol_pipe unless it works.
  6291. if test "$pipe_works" = yes; then
  6292. break
  6293. else
  6294. lt_cv_sys_global_symbol_pipe=
  6295. fi
  6296. done
  6297. fi
  6298. if test -z "$lt_cv_sys_global_symbol_pipe"; then
  6299. lt_cv_sys_global_symbol_to_cdecl=
  6300. fi
  6301. if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  6302. { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
  6303. $as_echo "failed" >&6; }
  6304. else
  6305. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
  6306. $as_echo "ok" >&6; }
  6307. fi
  6308. # Check whether --enable-libtool-lock was given.
  6309. if test "${enable_libtool_lock+set}" = set; then :
  6310. enableval=$enable_libtool_lock;
  6311. fi
  6312. test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  6313. # Some flags need to be propagated to the compiler or linker for good
  6314. # libtool support.
  6315. case $host in
  6316. ia64-*-hpux*)
  6317. # Find out which ABI we are using.
  6318. echo 'int i;' > conftest.$ac_ext
  6319. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6320. (eval $ac_compile) 2>&5
  6321. ac_status=$?
  6322. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6323. test $ac_status = 0; }; then
  6324. case `/usr/bin/file conftest.$ac_objext` in
  6325. *ELF-32*)
  6326. HPUX_IA64_MODE="32"
  6327. ;;
  6328. *ELF-64*)
  6329. HPUX_IA64_MODE="64"
  6330. ;;
  6331. esac
  6332. fi
  6333. rm -rf conftest*
  6334. ;;
  6335. *-*-irix6*)
  6336. # Find out which ABI we are using.
  6337. echo '#line 7167 "configure"' > conftest.$ac_ext
  6338. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6339. (eval $ac_compile) 2>&5
  6340. ac_status=$?
  6341. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6342. test $ac_status = 0; }; then
  6343. if test "$lt_cv_prog_gnu_ld" = yes; then
  6344. case `/usr/bin/file conftest.$ac_objext` in
  6345. *32-bit*)
  6346. LD="${LD-ld} -melf32bsmip"
  6347. ;;
  6348. *N32*)
  6349. LD="${LD-ld} -melf32bmipn32"
  6350. ;;
  6351. *64-bit*)
  6352. LD="${LD-ld} -melf64bmip"
  6353. ;;
  6354. esac
  6355. else
  6356. case `/usr/bin/file conftest.$ac_objext` in
  6357. *32-bit*)
  6358. LD="${LD-ld} -32"
  6359. ;;
  6360. *N32*)
  6361. LD="${LD-ld} -n32"
  6362. ;;
  6363. *64-bit*)
  6364. LD="${LD-ld} -64"
  6365. ;;
  6366. esac
  6367. fi
  6368. fi
  6369. rm -rf conftest*
  6370. ;;
  6371. x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
  6372. s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
  6373. # Find out which ABI we are using.
  6374. echo 'int i;' > conftest.$ac_ext
  6375. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6376. (eval $ac_compile) 2>&5
  6377. ac_status=$?
  6378. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6379. test $ac_status = 0; }; then
  6380. case `/usr/bin/file conftest.o` in
  6381. *32-bit*)
  6382. case $host in
  6383. x86_64-*kfreebsd*-gnu)
  6384. LD="${LD-ld} -m elf_i386_fbsd"
  6385. ;;
  6386. x86_64-*linux*)
  6387. LD="${LD-ld} -m elf_i386"
  6388. ;;
  6389. ppc64-*linux*|powerpc64-*linux*)
  6390. LD="${LD-ld} -m elf32ppclinux"
  6391. ;;
  6392. s390x-*linux*)
  6393. LD="${LD-ld} -m elf_s390"
  6394. ;;
  6395. sparc64-*linux*)
  6396. LD="${LD-ld} -m elf32_sparc"
  6397. ;;
  6398. esac
  6399. ;;
  6400. *64-bit*)
  6401. case $host in
  6402. x86_64-*kfreebsd*-gnu)
  6403. LD="${LD-ld} -m elf_x86_64_fbsd"
  6404. ;;
  6405. x86_64-*linux*)
  6406. LD="${LD-ld} -m elf_x86_64"
  6407. ;;
  6408. ppc*-*linux*|powerpc*-*linux*)
  6409. LD="${LD-ld} -m elf64ppc"
  6410. ;;
  6411. s390*-*linux*|s390*-*tpf*)
  6412. LD="${LD-ld} -m elf64_s390"
  6413. ;;
  6414. sparc*-*linux*)
  6415. LD="${LD-ld} -m elf64_sparc"
  6416. ;;
  6417. esac
  6418. ;;
  6419. esac
  6420. fi
  6421. rm -rf conftest*
  6422. ;;
  6423. *-*-sco3.2v5*)
  6424. # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  6425. SAVE_CFLAGS="$CFLAGS"
  6426. CFLAGS="$CFLAGS -belf"
  6427. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
  6428. $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
  6429. if ${lt_cv_cc_needs_belf+:} false; then :
  6430. $as_echo_n "(cached) " >&6
  6431. else
  6432. ac_ext=c
  6433. ac_cpp='$CPP $CPPFLAGS'
  6434. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6435. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6436. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6437. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6438. /* end confdefs.h. */
  6439. int
  6440. main ()
  6441. {
  6442. ;
  6443. return 0;
  6444. }
  6445. _ACEOF
  6446. if ac_fn_c_try_link "$LINENO"; then :
  6447. lt_cv_cc_needs_belf=yes
  6448. else
  6449. lt_cv_cc_needs_belf=no
  6450. fi
  6451. rm -f core conftest.err conftest.$ac_objext \
  6452. conftest$ac_exeext conftest.$ac_ext
  6453. ac_ext=c
  6454. ac_cpp='$CPP $CPPFLAGS'
  6455. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6456. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6457. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6458. fi
  6459. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
  6460. $as_echo "$lt_cv_cc_needs_belf" >&6; }
  6461. if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  6462. # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  6463. CFLAGS="$SAVE_CFLAGS"
  6464. fi
  6465. ;;
  6466. sparc*-*solaris*)
  6467. # Find out which ABI we are using.
  6468. echo 'int i;' > conftest.$ac_ext
  6469. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6470. (eval $ac_compile) 2>&5
  6471. ac_status=$?
  6472. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6473. test $ac_status = 0; }; then
  6474. case `/usr/bin/file conftest.o` in
  6475. *64-bit*)
  6476. case $lt_cv_prog_gnu_ld in
  6477. yes*) LD="${LD-ld} -m elf64_sparc" ;;
  6478. *)
  6479. if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  6480. LD="${LD-ld} -64"
  6481. fi
  6482. ;;
  6483. esac
  6484. ;;
  6485. esac
  6486. fi
  6487. rm -rf conftest*
  6488. ;;
  6489. esac
  6490. need_locks="$enable_libtool_lock"
  6491. case $host_os in
  6492. rhapsody* | darwin*)
  6493. if test -n "$ac_tool_prefix"; then
  6494. # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
  6495. set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
  6496. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6497. $as_echo_n "checking for $ac_word... " >&6; }
  6498. if ${ac_cv_prog_DSYMUTIL+:} false; then :
  6499. $as_echo_n "(cached) " >&6
  6500. else
  6501. if test -n "$DSYMUTIL"; then
  6502. ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
  6503. else
  6504. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6505. for as_dir in $PATH
  6506. do
  6507. IFS=$as_save_IFS
  6508. test -z "$as_dir" && as_dir=.
  6509. for ac_exec_ext in '' $ac_executable_extensions; do
  6510. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6511. ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
  6512. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6513. break 2
  6514. fi
  6515. done
  6516. done
  6517. IFS=$as_save_IFS
  6518. fi
  6519. fi
  6520. DSYMUTIL=$ac_cv_prog_DSYMUTIL
  6521. if test -n "$DSYMUTIL"; then
  6522. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
  6523. $as_echo "$DSYMUTIL" >&6; }
  6524. else
  6525. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6526. $as_echo "no" >&6; }
  6527. fi
  6528. fi
  6529. if test -z "$ac_cv_prog_DSYMUTIL"; then
  6530. ac_ct_DSYMUTIL=$DSYMUTIL
  6531. # Extract the first word of "dsymutil", so it can be a program name with args.
  6532. set dummy dsymutil; ac_word=$2
  6533. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6534. $as_echo_n "checking for $ac_word... " >&6; }
  6535. if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
  6536. $as_echo_n "(cached) " >&6
  6537. else
  6538. if test -n "$ac_ct_DSYMUTIL"; then
  6539. ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
  6540. else
  6541. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6542. for as_dir in $PATH
  6543. do
  6544. IFS=$as_save_IFS
  6545. test -z "$as_dir" && as_dir=.
  6546. for ac_exec_ext in '' $ac_executable_extensions; do
  6547. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6548. ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
  6549. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6550. break 2
  6551. fi
  6552. done
  6553. done
  6554. IFS=$as_save_IFS
  6555. fi
  6556. fi
  6557. ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
  6558. if test -n "$ac_ct_DSYMUTIL"; then
  6559. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
  6560. $as_echo "$ac_ct_DSYMUTIL" >&6; }
  6561. else
  6562. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6563. $as_echo "no" >&6; }
  6564. fi
  6565. if test "x$ac_ct_DSYMUTIL" = x; then
  6566. DSYMUTIL=":"
  6567. else
  6568. case $cross_compiling:$ac_tool_warned in
  6569. yes:)
  6570. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6571. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6572. ac_tool_warned=yes ;;
  6573. esac
  6574. DSYMUTIL=$ac_ct_DSYMUTIL
  6575. fi
  6576. else
  6577. DSYMUTIL="$ac_cv_prog_DSYMUTIL"
  6578. fi
  6579. if test -n "$ac_tool_prefix"; then
  6580. # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
  6581. set dummy ${ac_tool_prefix}nmedit; ac_word=$2
  6582. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6583. $as_echo_n "checking for $ac_word... " >&6; }
  6584. if ${ac_cv_prog_NMEDIT+:} false; then :
  6585. $as_echo_n "(cached) " >&6
  6586. else
  6587. if test -n "$NMEDIT"; then
  6588. ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
  6589. else
  6590. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6591. for as_dir in $PATH
  6592. do
  6593. IFS=$as_save_IFS
  6594. test -z "$as_dir" && as_dir=.
  6595. for ac_exec_ext in '' $ac_executable_extensions; do
  6596. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6597. ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
  6598. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6599. break 2
  6600. fi
  6601. done
  6602. done
  6603. IFS=$as_save_IFS
  6604. fi
  6605. fi
  6606. NMEDIT=$ac_cv_prog_NMEDIT
  6607. if test -n "$NMEDIT"; then
  6608. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
  6609. $as_echo "$NMEDIT" >&6; }
  6610. else
  6611. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6612. $as_echo "no" >&6; }
  6613. fi
  6614. fi
  6615. if test -z "$ac_cv_prog_NMEDIT"; then
  6616. ac_ct_NMEDIT=$NMEDIT
  6617. # Extract the first word of "nmedit", so it can be a program name with args.
  6618. set dummy nmedit; ac_word=$2
  6619. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6620. $as_echo_n "checking for $ac_word... " >&6; }
  6621. if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
  6622. $as_echo_n "(cached) " >&6
  6623. else
  6624. if test -n "$ac_ct_NMEDIT"; then
  6625. ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
  6626. else
  6627. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6628. for as_dir in $PATH
  6629. do
  6630. IFS=$as_save_IFS
  6631. test -z "$as_dir" && as_dir=.
  6632. for ac_exec_ext in '' $ac_executable_extensions; do
  6633. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6634. ac_cv_prog_ac_ct_NMEDIT="nmedit"
  6635. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6636. break 2
  6637. fi
  6638. done
  6639. done
  6640. IFS=$as_save_IFS
  6641. fi
  6642. fi
  6643. ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
  6644. if test -n "$ac_ct_NMEDIT"; then
  6645. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
  6646. $as_echo "$ac_ct_NMEDIT" >&6; }
  6647. else
  6648. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6649. $as_echo "no" >&6; }
  6650. fi
  6651. if test "x$ac_ct_NMEDIT" = x; then
  6652. NMEDIT=":"
  6653. else
  6654. case $cross_compiling:$ac_tool_warned in
  6655. yes:)
  6656. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6657. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6658. ac_tool_warned=yes ;;
  6659. esac
  6660. NMEDIT=$ac_ct_NMEDIT
  6661. fi
  6662. else
  6663. NMEDIT="$ac_cv_prog_NMEDIT"
  6664. fi
  6665. if test -n "$ac_tool_prefix"; then
  6666. # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
  6667. set dummy ${ac_tool_prefix}lipo; ac_word=$2
  6668. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6669. $as_echo_n "checking for $ac_word... " >&6; }
  6670. if ${ac_cv_prog_LIPO+:} false; then :
  6671. $as_echo_n "(cached) " >&6
  6672. else
  6673. if test -n "$LIPO"; then
  6674. ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
  6675. else
  6676. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6677. for as_dir in $PATH
  6678. do
  6679. IFS=$as_save_IFS
  6680. test -z "$as_dir" && as_dir=.
  6681. for ac_exec_ext in '' $ac_executable_extensions; do
  6682. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6683. ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
  6684. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6685. break 2
  6686. fi
  6687. done
  6688. done
  6689. IFS=$as_save_IFS
  6690. fi
  6691. fi
  6692. LIPO=$ac_cv_prog_LIPO
  6693. if test -n "$LIPO"; then
  6694. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
  6695. $as_echo "$LIPO" >&6; }
  6696. else
  6697. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6698. $as_echo "no" >&6; }
  6699. fi
  6700. fi
  6701. if test -z "$ac_cv_prog_LIPO"; then
  6702. ac_ct_LIPO=$LIPO
  6703. # Extract the first word of "lipo", so it can be a program name with args.
  6704. set dummy lipo; ac_word=$2
  6705. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6706. $as_echo_n "checking for $ac_word... " >&6; }
  6707. if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
  6708. $as_echo_n "(cached) " >&6
  6709. else
  6710. if test -n "$ac_ct_LIPO"; then
  6711. ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
  6712. else
  6713. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6714. for as_dir in $PATH
  6715. do
  6716. IFS=$as_save_IFS
  6717. test -z "$as_dir" && as_dir=.
  6718. for ac_exec_ext in '' $ac_executable_extensions; do
  6719. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6720. ac_cv_prog_ac_ct_LIPO="lipo"
  6721. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6722. break 2
  6723. fi
  6724. done
  6725. done
  6726. IFS=$as_save_IFS
  6727. fi
  6728. fi
  6729. ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
  6730. if test -n "$ac_ct_LIPO"; then
  6731. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
  6732. $as_echo "$ac_ct_LIPO" >&6; }
  6733. else
  6734. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6735. $as_echo "no" >&6; }
  6736. fi
  6737. if test "x$ac_ct_LIPO" = x; then
  6738. LIPO=":"
  6739. else
  6740. case $cross_compiling:$ac_tool_warned in
  6741. yes:)
  6742. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6743. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6744. ac_tool_warned=yes ;;
  6745. esac
  6746. LIPO=$ac_ct_LIPO
  6747. fi
  6748. else
  6749. LIPO="$ac_cv_prog_LIPO"
  6750. fi
  6751. if test -n "$ac_tool_prefix"; then
  6752. # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
  6753. set dummy ${ac_tool_prefix}otool; ac_word=$2
  6754. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6755. $as_echo_n "checking for $ac_word... " >&6; }
  6756. if ${ac_cv_prog_OTOOL+:} false; then :
  6757. $as_echo_n "(cached) " >&6
  6758. else
  6759. if test -n "$OTOOL"; then
  6760. ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
  6761. else
  6762. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6763. for as_dir in $PATH
  6764. do
  6765. IFS=$as_save_IFS
  6766. test -z "$as_dir" && as_dir=.
  6767. for ac_exec_ext in '' $ac_executable_extensions; do
  6768. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6769. ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
  6770. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6771. break 2
  6772. fi
  6773. done
  6774. done
  6775. IFS=$as_save_IFS
  6776. fi
  6777. fi
  6778. OTOOL=$ac_cv_prog_OTOOL
  6779. if test -n "$OTOOL"; then
  6780. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
  6781. $as_echo "$OTOOL" >&6; }
  6782. else
  6783. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6784. $as_echo "no" >&6; }
  6785. fi
  6786. fi
  6787. if test -z "$ac_cv_prog_OTOOL"; then
  6788. ac_ct_OTOOL=$OTOOL
  6789. # Extract the first word of "otool", so it can be a program name with args.
  6790. set dummy otool; ac_word=$2
  6791. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6792. $as_echo_n "checking for $ac_word... " >&6; }
  6793. if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
  6794. $as_echo_n "(cached) " >&6
  6795. else
  6796. if test -n "$ac_ct_OTOOL"; then
  6797. ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
  6798. else
  6799. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6800. for as_dir in $PATH
  6801. do
  6802. IFS=$as_save_IFS
  6803. test -z "$as_dir" && as_dir=.
  6804. for ac_exec_ext in '' $ac_executable_extensions; do
  6805. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6806. ac_cv_prog_ac_ct_OTOOL="otool"
  6807. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6808. break 2
  6809. fi
  6810. done
  6811. done
  6812. IFS=$as_save_IFS
  6813. fi
  6814. fi
  6815. ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
  6816. if test -n "$ac_ct_OTOOL"; then
  6817. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
  6818. $as_echo "$ac_ct_OTOOL" >&6; }
  6819. else
  6820. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6821. $as_echo "no" >&6; }
  6822. fi
  6823. if test "x$ac_ct_OTOOL" = x; then
  6824. OTOOL=":"
  6825. else
  6826. case $cross_compiling:$ac_tool_warned in
  6827. yes:)
  6828. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6829. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6830. ac_tool_warned=yes ;;
  6831. esac
  6832. OTOOL=$ac_ct_OTOOL
  6833. fi
  6834. else
  6835. OTOOL="$ac_cv_prog_OTOOL"
  6836. fi
  6837. if test -n "$ac_tool_prefix"; then
  6838. # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
  6839. set dummy ${ac_tool_prefix}otool64; ac_word=$2
  6840. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6841. $as_echo_n "checking for $ac_word... " >&6; }
  6842. if ${ac_cv_prog_OTOOL64+:} false; then :
  6843. $as_echo_n "(cached) " >&6
  6844. else
  6845. if test -n "$OTOOL64"; then
  6846. ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
  6847. else
  6848. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6849. for as_dir in $PATH
  6850. do
  6851. IFS=$as_save_IFS
  6852. test -z "$as_dir" && as_dir=.
  6853. for ac_exec_ext in '' $ac_executable_extensions; do
  6854. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6855. ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
  6856. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6857. break 2
  6858. fi
  6859. done
  6860. done
  6861. IFS=$as_save_IFS
  6862. fi
  6863. fi
  6864. OTOOL64=$ac_cv_prog_OTOOL64
  6865. if test -n "$OTOOL64"; then
  6866. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
  6867. $as_echo "$OTOOL64" >&6; }
  6868. else
  6869. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6870. $as_echo "no" >&6; }
  6871. fi
  6872. fi
  6873. if test -z "$ac_cv_prog_OTOOL64"; then
  6874. ac_ct_OTOOL64=$OTOOL64
  6875. # Extract the first word of "otool64", so it can be a program name with args.
  6876. set dummy otool64; ac_word=$2
  6877. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6878. $as_echo_n "checking for $ac_word... " >&6; }
  6879. if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
  6880. $as_echo_n "(cached) " >&6
  6881. else
  6882. if test -n "$ac_ct_OTOOL64"; then
  6883. ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
  6884. else
  6885. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6886. for as_dir in $PATH
  6887. do
  6888. IFS=$as_save_IFS
  6889. test -z "$as_dir" && as_dir=.
  6890. for ac_exec_ext in '' $ac_executable_extensions; do
  6891. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6892. ac_cv_prog_ac_ct_OTOOL64="otool64"
  6893. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6894. break 2
  6895. fi
  6896. done
  6897. done
  6898. IFS=$as_save_IFS
  6899. fi
  6900. fi
  6901. ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
  6902. if test -n "$ac_ct_OTOOL64"; then
  6903. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
  6904. $as_echo "$ac_ct_OTOOL64" >&6; }
  6905. else
  6906. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6907. $as_echo "no" >&6; }
  6908. fi
  6909. if test "x$ac_ct_OTOOL64" = x; then
  6910. OTOOL64=":"
  6911. else
  6912. case $cross_compiling:$ac_tool_warned in
  6913. yes:)
  6914. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6915. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6916. ac_tool_warned=yes ;;
  6917. esac
  6918. OTOOL64=$ac_ct_OTOOL64
  6919. fi
  6920. else
  6921. OTOOL64="$ac_cv_prog_OTOOL64"
  6922. fi
  6923. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
  6924. $as_echo_n "checking for -single_module linker flag... " >&6; }
  6925. if ${lt_cv_apple_cc_single_mod+:} false; then :
  6926. $as_echo_n "(cached) " >&6
  6927. else
  6928. lt_cv_apple_cc_single_mod=no
  6929. if test -z "${LT_MULTI_MODULE}"; then
  6930. # By default we will add the -single_module flag. You can override
  6931. # by either setting the environment variable LT_MULTI_MODULE
  6932. # non-empty at configure time, or by adding -multi_module to the
  6933. # link flags.
  6934. rm -rf libconftest.dylib*
  6935. echo "int foo(void){return 1;}" > conftest.c
  6936. echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  6937. -dynamiclib -Wl,-single_module conftest.c" >&5
  6938. $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  6939. -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
  6940. _lt_result=$?
  6941. if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
  6942. lt_cv_apple_cc_single_mod=yes
  6943. else
  6944. cat conftest.err >&5
  6945. fi
  6946. rm -rf libconftest.dylib*
  6947. rm -f conftest.*
  6948. fi
  6949. fi
  6950. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
  6951. $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
  6952. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
  6953. $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
  6954. if ${lt_cv_ld_exported_symbols_list+:} false; then :
  6955. $as_echo_n "(cached) " >&6
  6956. else
  6957. lt_cv_ld_exported_symbols_list=no
  6958. save_LDFLAGS=$LDFLAGS
  6959. echo "_main" > conftest.sym
  6960. LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  6961. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6962. /* end confdefs.h. */
  6963. int
  6964. main ()
  6965. {
  6966. ;
  6967. return 0;
  6968. }
  6969. _ACEOF
  6970. if ac_fn_c_try_link "$LINENO"; then :
  6971. lt_cv_ld_exported_symbols_list=yes
  6972. else
  6973. lt_cv_ld_exported_symbols_list=no
  6974. fi
  6975. rm -f core conftest.err conftest.$ac_objext \
  6976. conftest$ac_exeext conftest.$ac_ext
  6977. LDFLAGS="$save_LDFLAGS"
  6978. fi
  6979. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
  6980. $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
  6981. case $host_os in
  6982. rhapsody* | darwin1.[012])
  6983. _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
  6984. darwin1.*)
  6985. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  6986. darwin*) # darwin 5.x on
  6987. # if running on 10.5 or later, the deployment target defaults
  6988. # to the OS version, if on x86, and 10.4, the deployment
  6989. # target defaults to 10.4. Don't you love it?
  6990. case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
  6991. 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
  6992. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  6993. 10.[012]*)
  6994. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  6995. 10.*)
  6996. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  6997. esac
  6998. ;;
  6999. esac
  7000. if test "$lt_cv_apple_cc_single_mod" = "yes"; then
  7001. _lt_dar_single_mod='$single_module'
  7002. fi
  7003. if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
  7004. _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
  7005. else
  7006. _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
  7007. fi
  7008. if test "$DSYMUTIL" != ":"; then
  7009. _lt_dsymutil='~$DSYMUTIL $lib || :'
  7010. else
  7011. _lt_dsymutil=
  7012. fi
  7013. ;;
  7014. esac
  7015. for ac_header in dlfcn.h
  7016. do :
  7017. ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
  7018. "
  7019. if test "x$ac_cv_header_dlfcn_h" = xyes; then :
  7020. cat >>confdefs.h <<_ACEOF
  7021. #define HAVE_DLFCN_H 1
  7022. _ACEOF
  7023. fi
  7024. done
  7025. # Set options
  7026. # Check whether --enable-static was given.
  7027. if test "${enable_static+set}" = set; then :
  7028. enableval=$enable_static; p=${PACKAGE-default}
  7029. case $enableval in
  7030. yes) enable_static=yes ;;
  7031. no) enable_static=no ;;
  7032. *)
  7033. enable_static=no
  7034. # Look at the argument we got. We use all the common list separators.
  7035. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  7036. for pkg in $enableval; do
  7037. IFS="$lt_save_ifs"
  7038. if test "X$pkg" = "X$p"; then
  7039. enable_static=yes
  7040. fi
  7041. done
  7042. IFS="$lt_save_ifs"
  7043. ;;
  7044. esac
  7045. else
  7046. enable_static=no
  7047. fi
  7048. # Check whether --with-pic was given.
  7049. if test "${with_pic+set}" = set; then :
  7050. withval=$with_pic; pic_mode="$withval"
  7051. else
  7052. pic_mode=default
  7053. fi
  7054. test -z "$pic_mode" && pic_mode=yes
  7055. enable_dlopen=no
  7056. enable_win32_dll=no
  7057. # Check whether --enable-shared was given.
  7058. if test "${enable_shared+set}" = set; then :
  7059. enableval=$enable_shared; p=${PACKAGE-default}
  7060. case $enableval in
  7061. yes) enable_shared=yes ;;
  7062. no) enable_shared=no ;;
  7063. *)
  7064. enable_shared=no
  7065. # Look at the argument we got. We use all the common list separators.
  7066. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  7067. for pkg in $enableval; do
  7068. IFS="$lt_save_ifs"
  7069. if test "X$pkg" = "X$p"; then
  7070. enable_shared=yes
  7071. fi
  7072. done
  7073. IFS="$lt_save_ifs"
  7074. ;;
  7075. esac
  7076. else
  7077. enable_shared=yes
  7078. fi
  7079. # Check whether --enable-fast-install was given.
  7080. if test "${enable_fast_install+set}" = set; then :
  7081. enableval=$enable_fast_install; p=${PACKAGE-default}
  7082. case $enableval in
  7083. yes) enable_fast_install=yes ;;
  7084. no) enable_fast_install=no ;;
  7085. *)
  7086. enable_fast_install=no
  7087. # Look at the argument we got. We use all the common list separators.
  7088. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  7089. for pkg in $enableval; do
  7090. IFS="$lt_save_ifs"
  7091. if test "X$pkg" = "X$p"; then
  7092. enable_fast_install=yes
  7093. fi
  7094. done
  7095. IFS="$lt_save_ifs"
  7096. ;;
  7097. esac
  7098. else
  7099. enable_fast_install=yes
  7100. fi
  7101. # This can be used to rebuild libtool when needed
  7102. LIBTOOL_DEPS="$ltmain"
  7103. # Always use our own libtool.
  7104. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  7105. test -z "$LN_S" && LN_S="ln -s"
  7106. if test -n "${ZSH_VERSION+set}" ; then
  7107. setopt NO_GLOB_SUBST
  7108. fi
  7109. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
  7110. $as_echo_n "checking for objdir... " >&6; }
  7111. if ${lt_cv_objdir+:} false; then :
  7112. $as_echo_n "(cached) " >&6
  7113. else
  7114. rm -f .libs 2>/dev/null
  7115. mkdir .libs 2>/dev/null
  7116. if test -d .libs; then
  7117. lt_cv_objdir=.libs
  7118. else
  7119. # MS-DOS does not allow filenames that begin with a dot.
  7120. lt_cv_objdir=_libs
  7121. fi
  7122. rmdir .libs 2>/dev/null
  7123. fi
  7124. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
  7125. $as_echo "$lt_cv_objdir" >&6; }
  7126. objdir=$lt_cv_objdir
  7127. cat >>confdefs.h <<_ACEOF
  7128. #define LT_OBJDIR "$lt_cv_objdir/"
  7129. _ACEOF
  7130. case $host_os in
  7131. aix3*)
  7132. # AIX sometimes has problems with the GCC collect2 program. For some
  7133. # reason, if we set the COLLECT_NAMES environment variable, the problems
  7134. # vanish in a puff of smoke.
  7135. if test "X${COLLECT_NAMES+set}" != Xset; then
  7136. COLLECT_NAMES=
  7137. export COLLECT_NAMES
  7138. fi
  7139. ;;
  7140. esac
  7141. # Sed substitution that helps us do robust quoting. It backslashifies
  7142. # metacharacters that are still active within double-quoted strings.
  7143. sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
  7144. # Same as above, but do not quote variable references.
  7145. double_quote_subst='s/\(["`\\]\)/\\\1/g'
  7146. # Sed substitution to delay expansion of an escaped shell variable in a
  7147. # double_quote_subst'ed string.
  7148. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  7149. # Sed substitution to delay expansion of an escaped single quote.
  7150. delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
  7151. # Sed substitution to avoid accidental globbing in evaled expressions
  7152. no_glob_subst='s/\*/\\\*/g'
  7153. # Global variables:
  7154. ofile=libtool
  7155. can_build_shared=yes
  7156. # All known linkers require a `.a' archive for static linking (except MSVC,
  7157. # which needs '.lib').
  7158. libext=a
  7159. with_gnu_ld="$lt_cv_prog_gnu_ld"
  7160. old_CC="$CC"
  7161. old_CFLAGS="$CFLAGS"
  7162. # Set sane defaults for various variables
  7163. test -z "$CC" && CC=cc
  7164. test -z "$LTCC" && LTCC=$CC
  7165. test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  7166. test -z "$LD" && LD=ld
  7167. test -z "$ac_objext" && ac_objext=o
  7168. for cc_temp in $compiler""; do
  7169. case $cc_temp in
  7170. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  7171. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  7172. \-*) ;;
  7173. *) break;;
  7174. esac
  7175. done
  7176. cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  7177. # Only perform the check for file, if the check method requires it
  7178. test -z "$MAGIC_CMD" && MAGIC_CMD=file
  7179. case $deplibs_check_method in
  7180. file_magic*)
  7181. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  7182. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
  7183. $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
  7184. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  7185. $as_echo_n "(cached) " >&6
  7186. else
  7187. case $MAGIC_CMD in
  7188. [\\/*] | ?:[\\/]*)
  7189. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  7190. ;;
  7191. *)
  7192. lt_save_MAGIC_CMD="$MAGIC_CMD"
  7193. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  7194. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  7195. for ac_dir in $ac_dummy; do
  7196. IFS="$lt_save_ifs"
  7197. test -z "$ac_dir" && ac_dir=.
  7198. if test -f $ac_dir/${ac_tool_prefix}file; then
  7199. lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
  7200. if test -n "$file_magic_test_file"; then
  7201. case $deplibs_check_method in
  7202. "file_magic "*)
  7203. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  7204. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  7205. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  7206. $EGREP "$file_magic_regex" > /dev/null; then
  7207. :
  7208. else
  7209. cat <<_LT_EOF 1>&2
  7210. *** Warning: the command libtool uses to detect shared libraries,
  7211. *** $file_magic_cmd, produces output that libtool cannot recognize.
  7212. *** The result is that libtool may fail to recognize shared libraries
  7213. *** as such. This will affect the creation of libtool libraries that
  7214. *** depend on shared libraries, but programs linked with such libtool
  7215. *** libraries will work regardless of this problem. Nevertheless, you
  7216. *** may want to report the problem to your system manager and/or to
  7217. *** bug-libtool@gnu.org
  7218. _LT_EOF
  7219. fi ;;
  7220. esac
  7221. fi
  7222. break
  7223. fi
  7224. done
  7225. IFS="$lt_save_ifs"
  7226. MAGIC_CMD="$lt_save_MAGIC_CMD"
  7227. ;;
  7228. esac
  7229. fi
  7230. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  7231. if test -n "$MAGIC_CMD"; then
  7232. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  7233. $as_echo "$MAGIC_CMD" >&6; }
  7234. else
  7235. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7236. $as_echo "no" >&6; }
  7237. fi
  7238. if test -z "$lt_cv_path_MAGIC_CMD"; then
  7239. if test -n "$ac_tool_prefix"; then
  7240. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
  7241. $as_echo_n "checking for file... " >&6; }
  7242. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  7243. $as_echo_n "(cached) " >&6
  7244. else
  7245. case $MAGIC_CMD in
  7246. [\\/*] | ?:[\\/]*)
  7247. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  7248. ;;
  7249. *)
  7250. lt_save_MAGIC_CMD="$MAGIC_CMD"
  7251. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  7252. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  7253. for ac_dir in $ac_dummy; do
  7254. IFS="$lt_save_ifs"
  7255. test -z "$ac_dir" && ac_dir=.
  7256. if test -f $ac_dir/file; then
  7257. lt_cv_path_MAGIC_CMD="$ac_dir/file"
  7258. if test -n "$file_magic_test_file"; then
  7259. case $deplibs_check_method in
  7260. "file_magic "*)
  7261. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  7262. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  7263. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  7264. $EGREP "$file_magic_regex" > /dev/null; then
  7265. :
  7266. else
  7267. cat <<_LT_EOF 1>&2
  7268. *** Warning: the command libtool uses to detect shared libraries,
  7269. *** $file_magic_cmd, produces output that libtool cannot recognize.
  7270. *** The result is that libtool may fail to recognize shared libraries
  7271. *** as such. This will affect the creation of libtool libraries that
  7272. *** depend on shared libraries, but programs linked with such libtool
  7273. *** libraries will work regardless of this problem. Nevertheless, you
  7274. *** may want to report the problem to your system manager and/or to
  7275. *** bug-libtool@gnu.org
  7276. _LT_EOF
  7277. fi ;;
  7278. esac
  7279. fi
  7280. break
  7281. fi
  7282. done
  7283. IFS="$lt_save_ifs"
  7284. MAGIC_CMD="$lt_save_MAGIC_CMD"
  7285. ;;
  7286. esac
  7287. fi
  7288. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  7289. if test -n "$MAGIC_CMD"; then
  7290. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  7291. $as_echo "$MAGIC_CMD" >&6; }
  7292. else
  7293. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7294. $as_echo "no" >&6; }
  7295. fi
  7296. else
  7297. MAGIC_CMD=:
  7298. fi
  7299. fi
  7300. fi
  7301. ;;
  7302. esac
  7303. # Use C for the default configuration in the libtool script
  7304. lt_save_CC="$CC"
  7305. ac_ext=c
  7306. ac_cpp='$CPP $CPPFLAGS'
  7307. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7308. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7309. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  7310. # Source file extension for C test sources.
  7311. ac_ext=c
  7312. # Object file extension for compiled C test sources.
  7313. objext=o
  7314. objext=$objext
  7315. # Code to be used in simple compile tests
  7316. lt_simple_compile_test_code="int some_variable = 0;"
  7317. # Code to be used in simple link tests
  7318. lt_simple_link_test_code='int main(){return(0);}'
  7319. # If no C compiler was specified, use CC.
  7320. LTCC=${LTCC-"$CC"}
  7321. # If no C compiler flags were specified, use CFLAGS.
  7322. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  7323. # Allow CC to be a program name with arguments.
  7324. compiler=$CC
  7325. # Save the default compiler, since it gets overwritten when the other
  7326. # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
  7327. compiler_DEFAULT=$CC
  7328. # save warnings/boilerplate of simple test code
  7329. ac_outfile=conftest.$ac_objext
  7330. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  7331. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  7332. _lt_compiler_boilerplate=`cat conftest.err`
  7333. $RM conftest*
  7334. ac_outfile=conftest.$ac_objext
  7335. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  7336. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  7337. _lt_linker_boilerplate=`cat conftest.err`
  7338. $RM -r conftest*
  7339. ## CAVEAT EMPTOR:
  7340. ## There is no encapsulation within the following macros, do not change
  7341. ## the running order or otherwise move them around unless you know exactly
  7342. ## what you are doing...
  7343. if test -n "$compiler"; then
  7344. lt_prog_compiler_no_builtin_flag=
  7345. if test "$GCC" = yes; then
  7346. lt_prog_compiler_no_builtin_flag=' -fno-builtin'
  7347. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  7348. $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
  7349. if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
  7350. $as_echo_n "(cached) " >&6
  7351. else
  7352. lt_cv_prog_compiler_rtti_exceptions=no
  7353. ac_outfile=conftest.$ac_objext
  7354. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7355. lt_compiler_flag="-fno-rtti -fno-exceptions"
  7356. # Insert the option either (1) after the last *FLAGS variable, or
  7357. # (2) before a word containing "conftest.", or (3) at the end.
  7358. # Note that $ac_compile itself does not contain backslashes and begins
  7359. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7360. # The option is referenced via a variable to avoid confusing sed.
  7361. lt_compile=`echo "$ac_compile" | $SED \
  7362. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7363. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7364. -e 's:$: $lt_compiler_flag:'`
  7365. (eval echo "\"\$as_me:8427: $lt_compile\"" >&5)
  7366. (eval "$lt_compile" 2>conftest.err)
  7367. ac_status=$?
  7368. cat conftest.err >&5
  7369. echo "$as_me:8431: \$? = $ac_status" >&5
  7370. if (exit $ac_status) && test -s "$ac_outfile"; then
  7371. # The compiler can only warn and ignore the option if not recognized
  7372. # So say no if there are warnings other than the usual output.
  7373. $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  7374. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7375. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  7376. lt_cv_prog_compiler_rtti_exceptions=yes
  7377. fi
  7378. fi
  7379. $RM conftest*
  7380. fi
  7381. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  7382. $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  7383. if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
  7384. lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  7385. else
  7386. :
  7387. fi
  7388. fi
  7389. lt_prog_compiler_wl=
  7390. lt_prog_compiler_pic=
  7391. lt_prog_compiler_static=
  7392. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  7393. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  7394. if test "$GCC" = yes; then
  7395. lt_prog_compiler_wl='-Wl,'
  7396. lt_prog_compiler_static='-static'
  7397. case $host_os in
  7398. aix*)
  7399. # All AIX code is PIC.
  7400. if test "$host_cpu" = ia64; then
  7401. # AIX 5 now supports IA64 processor
  7402. lt_prog_compiler_static='-Bstatic'
  7403. fi
  7404. ;;
  7405. amigaos*)
  7406. case $host_cpu in
  7407. powerpc)
  7408. # see comment about AmigaOS4 .so support
  7409. lt_prog_compiler_pic='-fPIC'
  7410. ;;
  7411. m68k)
  7412. # FIXME: we need at least 68020 code to build shared libraries, but
  7413. # adding the `-m68020' flag to GCC prevents building anything better,
  7414. # like `-m68040'.
  7415. lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  7416. ;;
  7417. esac
  7418. ;;
  7419. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  7420. # PIC is the default for these OSes.
  7421. ;;
  7422. mingw* | cygwin* | pw32* | os2* | cegcc*)
  7423. # This hack is so that the source file can tell whether it is being
  7424. # built for inclusion in a dll (and should export symbols for example).
  7425. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  7426. # (--disable-auto-import) libraries
  7427. lt_prog_compiler_pic='-DDLL_EXPORT'
  7428. ;;
  7429. darwin* | rhapsody*)
  7430. # PIC is the default on this platform
  7431. # Common symbols not allowed in MH_DYLIB files
  7432. lt_prog_compiler_pic='-fno-common'
  7433. ;;
  7434. hpux*)
  7435. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  7436. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  7437. # sets the default TLS model and affects inlining.
  7438. case $host_cpu in
  7439. hppa*64*)
  7440. # +Z the default
  7441. ;;
  7442. *)
  7443. lt_prog_compiler_pic='-fPIC'
  7444. ;;
  7445. esac
  7446. ;;
  7447. interix[3-9]*)
  7448. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  7449. # Instead, we relocate shared libraries at runtime.
  7450. ;;
  7451. msdosdjgpp*)
  7452. # Just because we use GCC doesn't mean we suddenly get shared libraries
  7453. # on systems that don't support them.
  7454. lt_prog_compiler_can_build_shared=no
  7455. enable_shared=no
  7456. ;;
  7457. *nto* | *qnx*)
  7458. # QNX uses GNU C++, but need to define -shared option too, otherwise
  7459. # it will coredump.
  7460. lt_prog_compiler_pic='-fPIC -shared'
  7461. ;;
  7462. sysv4*MP*)
  7463. if test -d /usr/nec; then
  7464. lt_prog_compiler_pic=-Kconform_pic
  7465. fi
  7466. ;;
  7467. *)
  7468. lt_prog_compiler_pic='-fPIC'
  7469. ;;
  7470. esac
  7471. else
  7472. # PORTME Check for flag to pass linker flags through the system compiler.
  7473. case $host_os in
  7474. aix*)
  7475. lt_prog_compiler_wl='-Wl,'
  7476. if test "$host_cpu" = ia64; then
  7477. # AIX 5 now supports IA64 processor
  7478. lt_prog_compiler_static='-Bstatic'
  7479. else
  7480. lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  7481. fi
  7482. ;;
  7483. mingw* | cygwin* | pw32* | os2* | cegcc*)
  7484. # This hack is so that the source file can tell whether it is being
  7485. # built for inclusion in a dll (and should export symbols for example).
  7486. lt_prog_compiler_pic='-DDLL_EXPORT'
  7487. ;;
  7488. hpux9* | hpux10* | hpux11*)
  7489. lt_prog_compiler_wl='-Wl,'
  7490. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  7491. # not for PA HP-UX.
  7492. case $host_cpu in
  7493. hppa*64*|ia64*)
  7494. # +Z the default
  7495. ;;
  7496. *)
  7497. lt_prog_compiler_pic='+Z'
  7498. ;;
  7499. esac
  7500. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  7501. lt_prog_compiler_static='${wl}-a ${wl}archive'
  7502. ;;
  7503. irix5* | irix6* | nonstopux*)
  7504. lt_prog_compiler_wl='-Wl,'
  7505. # PIC (with -KPIC) is the default.
  7506. lt_prog_compiler_static='-non_shared'
  7507. ;;
  7508. linux* | k*bsd*-gnu)
  7509. case $cc_basename in
  7510. # old Intel for x86_64 which still supported -KPIC.
  7511. ecc*)
  7512. lt_prog_compiler_wl='-Wl,'
  7513. lt_prog_compiler_pic='-KPIC'
  7514. lt_prog_compiler_static='-static'
  7515. ;;
  7516. # icc used to be incompatible with GCC.
  7517. # ICC 10 doesn't accept -KPIC any more.
  7518. icc* | ifort*)
  7519. lt_prog_compiler_wl='-Wl,'
  7520. lt_prog_compiler_pic='-fPIC'
  7521. lt_prog_compiler_static='-static'
  7522. ;;
  7523. # Lahey Fortran 8.1.
  7524. lf95*)
  7525. lt_prog_compiler_wl='-Wl,'
  7526. lt_prog_compiler_pic='--shared'
  7527. lt_prog_compiler_static='--static'
  7528. ;;
  7529. pgcc* | pgf77* | pgf90* | pgf95*)
  7530. # Portland Group compilers (*not* the Pentium gcc compiler,
  7531. # which looks to be a dead project)
  7532. lt_prog_compiler_wl='-Wl,'
  7533. lt_prog_compiler_pic='-fpic'
  7534. lt_prog_compiler_static='-Bstatic'
  7535. ;;
  7536. ccc*)
  7537. lt_prog_compiler_wl='-Wl,'
  7538. # All Alpha code is PIC.
  7539. lt_prog_compiler_static='-non_shared'
  7540. ;;
  7541. xl*)
  7542. # IBM XL C 8.0/Fortran 10.1 on PPC
  7543. lt_prog_compiler_wl='-Wl,'
  7544. lt_prog_compiler_pic='-qpic'
  7545. lt_prog_compiler_static='-qstaticlink'
  7546. ;;
  7547. *)
  7548. case `$CC -V 2>&1 | sed 5q` in
  7549. *Sun\ C*)
  7550. # Sun C 5.9
  7551. lt_prog_compiler_pic='-KPIC'
  7552. lt_prog_compiler_static='-Bstatic'
  7553. lt_prog_compiler_wl='-Wl,'
  7554. ;;
  7555. *Sun\ F*)
  7556. # Sun Fortran 8.3 passes all unrecognized flags to the linker
  7557. lt_prog_compiler_pic='-KPIC'
  7558. lt_prog_compiler_static='-Bstatic'
  7559. lt_prog_compiler_wl=''
  7560. ;;
  7561. esac
  7562. ;;
  7563. esac
  7564. ;;
  7565. newsos6)
  7566. lt_prog_compiler_pic='-KPIC'
  7567. lt_prog_compiler_static='-Bstatic'
  7568. ;;
  7569. *nto* | *qnx*)
  7570. # QNX uses GNU C++, but need to define -shared option too, otherwise
  7571. # it will coredump.
  7572. lt_prog_compiler_pic='-fPIC -shared'
  7573. ;;
  7574. osf3* | osf4* | osf5*)
  7575. lt_prog_compiler_wl='-Wl,'
  7576. # All OSF/1 code is PIC.
  7577. lt_prog_compiler_static='-non_shared'
  7578. ;;
  7579. rdos*)
  7580. lt_prog_compiler_static='-non_shared'
  7581. ;;
  7582. solaris*)
  7583. lt_prog_compiler_pic='-KPIC'
  7584. lt_prog_compiler_static='-Bstatic'
  7585. case $cc_basename in
  7586. f77* | f90* | f95*)
  7587. lt_prog_compiler_wl='-Qoption ld ';;
  7588. *)
  7589. lt_prog_compiler_wl='-Wl,';;
  7590. esac
  7591. ;;
  7592. sunos4*)
  7593. lt_prog_compiler_wl='-Qoption ld '
  7594. lt_prog_compiler_pic='-PIC'
  7595. lt_prog_compiler_static='-Bstatic'
  7596. ;;
  7597. sysv4 | sysv4.2uw2* | sysv4.3*)
  7598. lt_prog_compiler_wl='-Wl,'
  7599. lt_prog_compiler_pic='-KPIC'
  7600. lt_prog_compiler_static='-Bstatic'
  7601. ;;
  7602. sysv4*MP*)
  7603. if test -d /usr/nec ;then
  7604. lt_prog_compiler_pic='-Kconform_pic'
  7605. lt_prog_compiler_static='-Bstatic'
  7606. fi
  7607. ;;
  7608. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  7609. lt_prog_compiler_wl='-Wl,'
  7610. lt_prog_compiler_pic='-KPIC'
  7611. lt_prog_compiler_static='-Bstatic'
  7612. ;;
  7613. unicos*)
  7614. lt_prog_compiler_wl='-Wl,'
  7615. lt_prog_compiler_can_build_shared=no
  7616. ;;
  7617. uts4*)
  7618. lt_prog_compiler_pic='-pic'
  7619. lt_prog_compiler_static='-Bstatic'
  7620. ;;
  7621. *)
  7622. lt_prog_compiler_can_build_shared=no
  7623. ;;
  7624. esac
  7625. fi
  7626. case $host_os in
  7627. # For platforms which do not support PIC, -DPIC is meaningless:
  7628. *djgpp*)
  7629. lt_prog_compiler_pic=
  7630. ;;
  7631. *)
  7632. lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  7633. ;;
  7634. esac
  7635. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
  7636. $as_echo "$lt_prog_compiler_pic" >&6; }
  7637. #
  7638. # Check to make sure the PIC flag actually works.
  7639. #
  7640. if test -n "$lt_prog_compiler_pic"; then
  7641. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  7642. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
  7643. if ${lt_cv_prog_compiler_pic_works+:} false; then :
  7644. $as_echo_n "(cached) " >&6
  7645. else
  7646. lt_cv_prog_compiler_pic_works=no
  7647. ac_outfile=conftest.$ac_objext
  7648. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7649. lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
  7650. # Insert the option either (1) after the last *FLAGS variable, or
  7651. # (2) before a word containing "conftest.", or (3) at the end.
  7652. # Note that $ac_compile itself does not contain backslashes and begins
  7653. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7654. # The option is referenced via a variable to avoid confusing sed.
  7655. lt_compile=`echo "$ac_compile" | $SED \
  7656. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7657. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7658. -e 's:$: $lt_compiler_flag:'`
  7659. (eval echo "\"\$as_me:8766: $lt_compile\"" >&5)
  7660. (eval "$lt_compile" 2>conftest.err)
  7661. ac_status=$?
  7662. cat conftest.err >&5
  7663. echo "$as_me:8770: \$? = $ac_status" >&5
  7664. if (exit $ac_status) && test -s "$ac_outfile"; then
  7665. # The compiler can only warn and ignore the option if not recognized
  7666. # So say no if there are warnings other than the usual output.
  7667. $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  7668. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7669. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  7670. lt_cv_prog_compiler_pic_works=yes
  7671. fi
  7672. fi
  7673. $RM conftest*
  7674. fi
  7675. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
  7676. $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
  7677. if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
  7678. case $lt_prog_compiler_pic in
  7679. "" | " "*) ;;
  7680. *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  7681. esac
  7682. else
  7683. lt_prog_compiler_pic=
  7684. lt_prog_compiler_can_build_shared=no
  7685. fi
  7686. fi
  7687. #
  7688. # Check to make sure the static flag actually works.
  7689. #
  7690. wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
  7691. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  7692. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  7693. if ${lt_cv_prog_compiler_static_works+:} false; then :
  7694. $as_echo_n "(cached) " >&6
  7695. else
  7696. lt_cv_prog_compiler_static_works=no
  7697. save_LDFLAGS="$LDFLAGS"
  7698. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  7699. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  7700. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  7701. # The linker can only warn and ignore the option if not recognized
  7702. # So say no if there are warnings
  7703. if test -s conftest.err; then
  7704. # Append any errors to the config.log.
  7705. cat conftest.err 1>&5
  7706. $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
  7707. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7708. if diff conftest.exp conftest.er2 >/dev/null; then
  7709. lt_cv_prog_compiler_static_works=yes
  7710. fi
  7711. else
  7712. lt_cv_prog_compiler_static_works=yes
  7713. fi
  7714. fi
  7715. $RM -r conftest*
  7716. LDFLAGS="$save_LDFLAGS"
  7717. fi
  7718. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
  7719. $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
  7720. if test x"$lt_cv_prog_compiler_static_works" = xyes; then
  7721. :
  7722. else
  7723. lt_prog_compiler_static=
  7724. fi
  7725. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  7726. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  7727. if ${lt_cv_prog_compiler_c_o+:} false; then :
  7728. $as_echo_n "(cached) " >&6
  7729. else
  7730. lt_cv_prog_compiler_c_o=no
  7731. $RM -r conftest 2>/dev/null
  7732. mkdir conftest
  7733. cd conftest
  7734. mkdir out
  7735. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7736. lt_compiler_flag="-o out/conftest2.$ac_objext"
  7737. # Insert the option either (1) after the last *FLAGS variable, or
  7738. # (2) before a word containing "conftest.", or (3) at the end.
  7739. # Note that $ac_compile itself does not contain backslashes and begins
  7740. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7741. lt_compile=`echo "$ac_compile" | $SED \
  7742. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7743. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7744. -e 's:$: $lt_compiler_flag:'`
  7745. (eval echo "\"\$as_me:8871: $lt_compile\"" >&5)
  7746. (eval "$lt_compile" 2>out/conftest.err)
  7747. ac_status=$?
  7748. cat out/conftest.err >&5
  7749. echo "$as_me:8875: \$? = $ac_status" >&5
  7750. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  7751. then
  7752. # The compiler can only warn and ignore the option if not recognized
  7753. # So say no if there are warnings
  7754. $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  7755. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  7756. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  7757. lt_cv_prog_compiler_c_o=yes
  7758. fi
  7759. fi
  7760. chmod u+w . 2>&5
  7761. $RM conftest*
  7762. # SGI C++ compiler will create directory out/ii_files/ for
  7763. # template instantiation
  7764. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  7765. $RM out/* && rmdir out
  7766. cd ..
  7767. $RM -r conftest
  7768. $RM conftest*
  7769. fi
  7770. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  7771. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  7772. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  7773. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  7774. if ${lt_cv_prog_compiler_c_o+:} false; then :
  7775. $as_echo_n "(cached) " >&6
  7776. else
  7777. lt_cv_prog_compiler_c_o=no
  7778. $RM -r conftest 2>/dev/null
  7779. mkdir conftest
  7780. cd conftest
  7781. mkdir out
  7782. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7783. lt_compiler_flag="-o out/conftest2.$ac_objext"
  7784. # Insert the option either (1) after the last *FLAGS variable, or
  7785. # (2) before a word containing "conftest.", or (3) at the end.
  7786. # Note that $ac_compile itself does not contain backslashes and begins
  7787. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7788. lt_compile=`echo "$ac_compile" | $SED \
  7789. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7790. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7791. -e 's:$: $lt_compiler_flag:'`
  7792. (eval echo "\"\$as_me:8926: $lt_compile\"" >&5)
  7793. (eval "$lt_compile" 2>out/conftest.err)
  7794. ac_status=$?
  7795. cat out/conftest.err >&5
  7796. echo "$as_me:8930: \$? = $ac_status" >&5
  7797. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  7798. then
  7799. # The compiler can only warn and ignore the option if not recognized
  7800. # So say no if there are warnings
  7801. $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  7802. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  7803. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  7804. lt_cv_prog_compiler_c_o=yes
  7805. fi
  7806. fi
  7807. chmod u+w . 2>&5
  7808. $RM conftest*
  7809. # SGI C++ compiler will create directory out/ii_files/ for
  7810. # template instantiation
  7811. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  7812. $RM out/* && rmdir out
  7813. cd ..
  7814. $RM -r conftest
  7815. $RM conftest*
  7816. fi
  7817. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  7818. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  7819. hard_links="nottested"
  7820. if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
  7821. # do not overwrite the value of need_locks provided by the user
  7822. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  7823. $as_echo_n "checking if we can lock with hard links... " >&6; }
  7824. hard_links=yes
  7825. $RM conftest*
  7826. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  7827. touch conftest.a
  7828. ln conftest.a conftest.b 2>&5 || hard_links=no
  7829. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  7830. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  7831. $as_echo "$hard_links" >&6; }
  7832. if test "$hard_links" = no; then
  7833. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  7834. $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  7835. need_locks=warn
  7836. fi
  7837. else
  7838. need_locks=no
  7839. fi
  7840. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  7841. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  7842. runpath_var=
  7843. allow_undefined_flag=
  7844. always_export_symbols=no
  7845. archive_cmds=
  7846. archive_expsym_cmds=
  7847. compiler_needs_object=no
  7848. enable_shared_with_static_runtimes=no
  7849. export_dynamic_flag_spec=
  7850. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  7851. hardcode_automatic=no
  7852. hardcode_direct=no
  7853. hardcode_direct_absolute=no
  7854. hardcode_libdir_flag_spec=
  7855. hardcode_libdir_flag_spec_ld=
  7856. hardcode_libdir_separator=
  7857. hardcode_minus_L=no
  7858. hardcode_shlibpath_var=unsupported
  7859. inherit_rpath=no
  7860. link_all_deplibs=unknown
  7861. module_cmds=
  7862. module_expsym_cmds=
  7863. old_archive_from_new_cmds=
  7864. old_archive_from_expsyms_cmds=
  7865. thread_safe_flag_spec=
  7866. whole_archive_flag_spec=
  7867. # include_expsyms should be a list of space-separated symbols to be *always*
  7868. # included in the symbol list
  7869. include_expsyms=
  7870. # exclude_expsyms can be an extended regexp of symbols to exclude
  7871. # it will be wrapped by ` (' and `)$', so one must not match beginning or
  7872. # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  7873. # as well as any symbol that contains `d'.
  7874. exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  7875. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  7876. # platforms (ab)use it in PIC code, but their linkers get confused if
  7877. # the symbol is explicitly referenced. Since portable code cannot
  7878. # rely on this symbol name, it's probably fine to never include it in
  7879. # preloaded symbol tables.
  7880. # Exclude shared library initialization/finalization symbols.
  7881. extract_expsyms_cmds=
  7882. case $host_os in
  7883. cygwin* | mingw* | pw32* | cegcc*)
  7884. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  7885. # When not using gcc, we currently assume that we are using
  7886. # Microsoft Visual C++.
  7887. if test "$GCC" != yes; then
  7888. with_gnu_ld=no
  7889. fi
  7890. ;;
  7891. interix*)
  7892. # we just hope/assume this is gcc and not c89 (= MSVC++)
  7893. with_gnu_ld=yes
  7894. ;;
  7895. openbsd*)
  7896. with_gnu_ld=no
  7897. ;;
  7898. esac
  7899. ld_shlibs=yes
  7900. if test "$with_gnu_ld" = yes; then
  7901. # If archive_cmds runs LD, not CC, wlarc should be empty
  7902. wlarc='${wl}'
  7903. # Set some defaults for GNU ld with shared library support. These
  7904. # are reset later if shared libraries are not supported. Putting them
  7905. # here allows them to be overridden if necessary.
  7906. runpath_var=LD_RUN_PATH
  7907. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7908. export_dynamic_flag_spec='${wl}--export-dynamic'
  7909. # ancient GNU ld didn't support --whole-archive et. al.
  7910. if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
  7911. whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  7912. else
  7913. whole_archive_flag_spec=
  7914. fi
  7915. supports_anon_versioning=no
  7916. case `$LD -v 2>&1` in
  7917. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  7918. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  7919. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  7920. *\ 2.11.*) ;; # other 2.11 versions
  7921. *) supports_anon_versioning=yes ;;
  7922. esac
  7923. # See if GNU ld supports shared libraries.
  7924. case $host_os in
  7925. aix[3-9]*)
  7926. # On AIX/PPC, the GNU linker is very broken
  7927. if test "$host_cpu" != ia64; then
  7928. ld_shlibs=no
  7929. cat <<_LT_EOF 1>&2
  7930. *** Warning: the GNU linker, at least up to release 2.9.1, is reported
  7931. *** to be unable to reliably create shared libraries on AIX.
  7932. *** Therefore, libtool is disabling shared libraries support. If you
  7933. *** really care for shared libraries, you may want to modify your PATH
  7934. *** so that a non-GNU linker is found, and then restart.
  7935. _LT_EOF
  7936. fi
  7937. ;;
  7938. amigaos*)
  7939. case $host_cpu in
  7940. powerpc)
  7941. # see comment about AmigaOS4 .so support
  7942. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7943. archive_expsym_cmds=''
  7944. ;;
  7945. m68k)
  7946. 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)'
  7947. hardcode_libdir_flag_spec='-L$libdir'
  7948. hardcode_minus_L=yes
  7949. ;;
  7950. esac
  7951. ;;
  7952. beos*)
  7953. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7954. allow_undefined_flag=unsupported
  7955. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  7956. # support --undefined. This deserves some investigation. FIXME
  7957. archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7958. else
  7959. ld_shlibs=no
  7960. fi
  7961. ;;
  7962. cygwin* | mingw* | pw32* | cegcc*)
  7963. # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  7964. # as there is no search path for DLLs.
  7965. hardcode_libdir_flag_spec='-L$libdir'
  7966. allow_undefined_flag=unsupported
  7967. always_export_symbols=no
  7968. enable_shared_with_static_runtimes=yes
  7969. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  7970. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  7971. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  7972. # If the export-symbols file already is a .def file (1st line
  7973. # is EXPORTS), use it as is; otherwise, prepend...
  7974. archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  7975. cp $export_symbols $output_objdir/$soname.def;
  7976. else
  7977. echo EXPORTS > $output_objdir/$soname.def;
  7978. cat $export_symbols >> $output_objdir/$soname.def;
  7979. fi~
  7980. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  7981. else
  7982. ld_shlibs=no
  7983. fi
  7984. ;;
  7985. interix[3-9]*)
  7986. hardcode_direct=no
  7987. hardcode_shlibpath_var=no
  7988. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  7989. export_dynamic_flag_spec='${wl}-E'
  7990. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  7991. # Instead, shared libraries are loaded at an image base (0x10000000 by
  7992. # default) and relocated if they conflict, which is a slow very memory
  7993. # consuming and fragmenting process. To avoid this, we pick a random,
  7994. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  7995. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  7996. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  7997. 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'
  7998. ;;
  7999. gnu* | linux* | tpf* | k*bsd*-gnu)
  8000. tmp_diet=no
  8001. if test "$host_os" = linux-dietlibc; then
  8002. case $cc_basename in
  8003. diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
  8004. esac
  8005. fi
  8006. if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
  8007. && test "$tmp_diet" = no
  8008. then
  8009. tmp_addflag=
  8010. tmp_sharedflag='-shared'
  8011. case $cc_basename,$host_cpu in
  8012. pgcc*) # Portland Group C compiler
  8013. 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'
  8014. tmp_addflag=' $pic_flag'
  8015. ;;
  8016. pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
  8017. 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'
  8018. tmp_addflag=' $pic_flag -Mnomain' ;;
  8019. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  8020. tmp_addflag=' -i_dynamic' ;;
  8021. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  8022. tmp_addflag=' -i_dynamic -nofor_main' ;;
  8023. ifc* | ifort*) # Intel Fortran compiler
  8024. tmp_addflag=' -nofor_main' ;;
  8025. lf95*) # Lahey Fortran 8.1
  8026. whole_archive_flag_spec=
  8027. tmp_sharedflag='--shared' ;;
  8028. xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
  8029. tmp_sharedflag='-qmkshrobj'
  8030. tmp_addflag= ;;
  8031. esac
  8032. case `$CC -V 2>&1 | sed 5q` in
  8033. *Sun\ C*) # Sun C 5.9
  8034. 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'
  8035. compiler_needs_object=yes
  8036. tmp_sharedflag='-G' ;;
  8037. *Sun\ F*) # Sun Fortran 8.3
  8038. tmp_sharedflag='-G' ;;
  8039. esac
  8040. archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8041. if test "x$supports_anon_versioning" = xyes; then
  8042. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  8043. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  8044. echo "local: *; };" >> $output_objdir/$libname.ver~
  8045. $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  8046. fi
  8047. case $cc_basename in
  8048. xlf*)
  8049. # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
  8050. whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
  8051. hardcode_libdir_flag_spec=
  8052. hardcode_libdir_flag_spec_ld='-rpath $libdir'
  8053. archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
  8054. if test "x$supports_anon_versioning" = xyes; then
  8055. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  8056. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  8057. echo "local: *; };" >> $output_objdir/$libname.ver~
  8058. $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
  8059. fi
  8060. ;;
  8061. esac
  8062. else
  8063. ld_shlibs=no
  8064. fi
  8065. ;;
  8066. netbsd*)
  8067. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  8068. archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  8069. wlarc=
  8070. else
  8071. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8072. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  8073. fi
  8074. ;;
  8075. solaris*)
  8076. if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
  8077. ld_shlibs=no
  8078. cat <<_LT_EOF 1>&2
  8079. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  8080. *** create shared libraries on Solaris systems. Therefore, libtool
  8081. *** is disabling shared libraries support. We urge you to upgrade GNU
  8082. *** binutils to release 2.9.1 or newer. Another option is to modify
  8083. *** your PATH or compiler configuration so that the native linker is
  8084. *** used, and then restart.
  8085. _LT_EOF
  8086. elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8087. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8088. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  8089. else
  8090. ld_shlibs=no
  8091. fi
  8092. ;;
  8093. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  8094. case `$LD -v 2>&1` in
  8095. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  8096. ld_shlibs=no
  8097. cat <<_LT_EOF 1>&2
  8098. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  8099. *** reliably create shared libraries on SCO systems. Therefore, libtool
  8100. *** is disabling shared libraries support. We urge you to upgrade GNU
  8101. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  8102. *** your PATH or compiler configuration so that the native linker is
  8103. *** used, and then restart.
  8104. _LT_EOF
  8105. ;;
  8106. *)
  8107. # For security reasons, it is highly recommended that you always
  8108. # use absolute paths for naming shared libraries, and exclude the
  8109. # DT_RUNPATH tag from executables and libraries. But doing so
  8110. # requires that you compile everything twice, which is a pain.
  8111. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8112. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8113. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8114. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  8115. else
  8116. ld_shlibs=no
  8117. fi
  8118. ;;
  8119. esac
  8120. ;;
  8121. sunos4*)
  8122. archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8123. wlarc=
  8124. hardcode_direct=yes
  8125. hardcode_shlibpath_var=no
  8126. ;;
  8127. *)
  8128. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8129. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8130. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  8131. else
  8132. ld_shlibs=no
  8133. fi
  8134. ;;
  8135. esac
  8136. if test "$ld_shlibs" = no; then
  8137. runpath_var=
  8138. hardcode_libdir_flag_spec=
  8139. export_dynamic_flag_spec=
  8140. whole_archive_flag_spec=
  8141. fi
  8142. else
  8143. # PORTME fill in a description of your system's linker (not GNU ld)
  8144. case $host_os in
  8145. aix3*)
  8146. allow_undefined_flag=unsupported
  8147. always_export_symbols=yes
  8148. 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'
  8149. # Note: this linker hardcodes the directories in LIBPATH if there
  8150. # are no directories specified by -L.
  8151. hardcode_minus_L=yes
  8152. if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  8153. # Neither direct hardcoding nor static linking is supported with a
  8154. # broken collect2.
  8155. hardcode_direct=unsupported
  8156. fi
  8157. ;;
  8158. aix[4-9]*)
  8159. if test "$host_cpu" = ia64; then
  8160. # On IA64, the linker does run time linking by default, so we don't
  8161. # have to do anything special.
  8162. aix_use_runtimelinking=no
  8163. exp_sym_flag='-Bexport'
  8164. no_entry_flag=""
  8165. else
  8166. # If we're using GNU nm, then we don't want the "-C" option.
  8167. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  8168. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  8169. 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'
  8170. else
  8171. 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'
  8172. fi
  8173. aix_use_runtimelinking=no
  8174. # Test if we are trying to use run time linking or normal
  8175. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  8176. # need to do runtime linking.
  8177. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  8178. for ld_flag in $LDFLAGS; do
  8179. if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  8180. aix_use_runtimelinking=yes
  8181. break
  8182. fi
  8183. done
  8184. ;;
  8185. esac
  8186. exp_sym_flag='-bexport'
  8187. no_entry_flag='-bnoentry'
  8188. fi
  8189. # When large executables or shared objects are built, AIX ld can
  8190. # have problems creating the table of contents. If linking a library
  8191. # or program results in "error TOC overflow" add -mminimal-toc to
  8192. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  8193. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  8194. archive_cmds=''
  8195. hardcode_direct=yes
  8196. hardcode_direct_absolute=yes
  8197. hardcode_libdir_separator=':'
  8198. link_all_deplibs=yes
  8199. file_list_spec='${wl}-f,'
  8200. if test "$GCC" = yes; then
  8201. case $host_os in aix4.[012]|aix4.[012].*)
  8202. # We only want to do this on AIX 4.2 and lower, the check
  8203. # below for broken collect2 doesn't work under 4.3+
  8204. collect2name=`${CC} -print-prog-name=collect2`
  8205. if test -f "$collect2name" &&
  8206. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  8207. then
  8208. # We have reworked collect2
  8209. :
  8210. else
  8211. # We have old collect2
  8212. hardcode_direct=unsupported
  8213. # It fails to find uninstalled libraries when the uninstalled
  8214. # path is not listed in the libpath. Setting hardcode_minus_L
  8215. # to unsupported forces relinking
  8216. hardcode_minus_L=yes
  8217. hardcode_libdir_flag_spec='-L$libdir'
  8218. hardcode_libdir_separator=
  8219. fi
  8220. ;;
  8221. esac
  8222. shared_flag='-shared'
  8223. if test "$aix_use_runtimelinking" = yes; then
  8224. shared_flag="$shared_flag "'${wl}-G'
  8225. fi
  8226. else
  8227. # not using gcc
  8228. if test "$host_cpu" = ia64; then
  8229. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  8230. # chokes on -Wl,-G. The following line is correct:
  8231. shared_flag='-G'
  8232. else
  8233. if test "$aix_use_runtimelinking" = yes; then
  8234. shared_flag='${wl}-G'
  8235. else
  8236. shared_flag='${wl}-bM:SRE'
  8237. fi
  8238. fi
  8239. fi
  8240. export_dynamic_flag_spec='${wl}-bexpall'
  8241. # It seems that -bexpall does not export symbols beginning with
  8242. # underscore (_), so it is better to generate a list of symbols to export.
  8243. always_export_symbols=yes
  8244. if test "$aix_use_runtimelinking" = yes; then
  8245. # Warning - without using the other runtime loading flags (-brtl),
  8246. # -berok will link without error, but may produce a broken library.
  8247. allow_undefined_flag='-berok'
  8248. # Determine the default libpath from the value encoded in an
  8249. # empty executable.
  8250. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8251. /* end confdefs.h. */
  8252. int
  8253. main ()
  8254. {
  8255. ;
  8256. return 0;
  8257. }
  8258. _ACEOF
  8259. if ac_fn_c_try_link "$LINENO"; then :
  8260. lt_aix_libpath_sed='
  8261. /Import File Strings/,/^$/ {
  8262. /^0/ {
  8263. s/^0 *\(.*\)$/\1/
  8264. p
  8265. }
  8266. }'
  8267. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8268. # Check for a 64-bit object if we didn't find anything.
  8269. if test -z "$aix_libpath"; then
  8270. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8271. fi
  8272. fi
  8273. rm -f core conftest.err conftest.$ac_objext \
  8274. conftest$ac_exeext conftest.$ac_ext
  8275. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  8276. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  8277. 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"
  8278. else
  8279. if test "$host_cpu" = ia64; then
  8280. hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
  8281. allow_undefined_flag="-z nodefs"
  8282. 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"
  8283. else
  8284. # Determine the default libpath from the value encoded in an
  8285. # empty executable.
  8286. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8287. /* end confdefs.h. */
  8288. int
  8289. main ()
  8290. {
  8291. ;
  8292. return 0;
  8293. }
  8294. _ACEOF
  8295. if ac_fn_c_try_link "$LINENO"; then :
  8296. lt_aix_libpath_sed='
  8297. /Import File Strings/,/^$/ {
  8298. /^0/ {
  8299. s/^0 *\(.*\)$/\1/
  8300. p
  8301. }
  8302. }'
  8303. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8304. # Check for a 64-bit object if we didn't find anything.
  8305. if test -z "$aix_libpath"; then
  8306. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8307. fi
  8308. fi
  8309. rm -f core conftest.err conftest.$ac_objext \
  8310. conftest$ac_exeext conftest.$ac_ext
  8311. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  8312. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  8313. # Warning - without using the other run time loading flags,
  8314. # -berok will link without error, but may produce a broken library.
  8315. no_undefined_flag=' ${wl}-bernotok'
  8316. allow_undefined_flag=' ${wl}-berok'
  8317. # Exported symbols can be pulled into shared objects from archives
  8318. whole_archive_flag_spec='$convenience'
  8319. archive_cmds_need_lc=yes
  8320. # This is similar to how AIX traditionally builds its shared libraries.
  8321. 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'
  8322. fi
  8323. fi
  8324. ;;
  8325. amigaos*)
  8326. case $host_cpu in
  8327. powerpc)
  8328. # see comment about AmigaOS4 .so support
  8329. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8330. archive_expsym_cmds=''
  8331. ;;
  8332. m68k)
  8333. 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)'
  8334. hardcode_libdir_flag_spec='-L$libdir'
  8335. hardcode_minus_L=yes
  8336. ;;
  8337. esac
  8338. ;;
  8339. bsdi[45]*)
  8340. export_dynamic_flag_spec=-rdynamic
  8341. ;;
  8342. cygwin* | mingw* | pw32* | cegcc*)
  8343. # When not using gcc, we currently assume that we are using
  8344. # Microsoft Visual C++.
  8345. # hardcode_libdir_flag_spec is actually meaningless, as there is
  8346. # no search path for DLLs.
  8347. hardcode_libdir_flag_spec=' '
  8348. allow_undefined_flag=unsupported
  8349. # Tell ltmain to make .lib files, not .a files.
  8350. libext=lib
  8351. # Tell ltmain to make .dll files, not .so files.
  8352. shrext_cmds=".dll"
  8353. # FIXME: Setting linknames here is a bad hack.
  8354. archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
  8355. # The linker will automatically build a .lib file if we build a DLL.
  8356. old_archive_from_new_cmds='true'
  8357. # FIXME: Should let the user specify the lib program.
  8358. old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
  8359. fix_srcfile_path='`cygpath -w "$srcfile"`'
  8360. enable_shared_with_static_runtimes=yes
  8361. ;;
  8362. darwin* | rhapsody*)
  8363. archive_cmds_need_lc=no
  8364. hardcode_direct=no
  8365. hardcode_automatic=yes
  8366. hardcode_shlibpath_var=unsupported
  8367. whole_archive_flag_spec=''
  8368. link_all_deplibs=yes
  8369. allow_undefined_flag="$_lt_dar_allow_undefined"
  8370. case $cc_basename in
  8371. ifort*) _lt_dar_can_shared=yes ;;
  8372. *) _lt_dar_can_shared=$GCC ;;
  8373. esac
  8374. if test "$_lt_dar_can_shared" = "yes"; then
  8375. output_verbose_link_cmd=echo
  8376. archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
  8377. module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  8378. 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}"
  8379. 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}"
  8380. else
  8381. ld_shlibs=no
  8382. fi
  8383. ;;
  8384. dgux*)
  8385. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8386. hardcode_libdir_flag_spec='-L$libdir'
  8387. hardcode_shlibpath_var=no
  8388. ;;
  8389. freebsd1*)
  8390. ld_shlibs=no
  8391. ;;
  8392. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  8393. # support. Future versions do this automatically, but an explicit c++rt0.o
  8394. # does not break anything, and helps significantly (at the cost of a little
  8395. # extra space).
  8396. freebsd2.2*)
  8397. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  8398. hardcode_libdir_flag_spec='-R$libdir'
  8399. hardcode_direct=yes
  8400. hardcode_shlibpath_var=no
  8401. ;;
  8402. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  8403. freebsd2*)
  8404. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8405. hardcode_direct=yes
  8406. hardcode_minus_L=yes
  8407. hardcode_shlibpath_var=no
  8408. ;;
  8409. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  8410. freebsd* | dragonfly*)
  8411. archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  8412. hardcode_libdir_flag_spec='-R$libdir'
  8413. hardcode_direct=yes
  8414. hardcode_shlibpath_var=no
  8415. ;;
  8416. hpux9*)
  8417. if test "$GCC" = yes; then
  8418. 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'
  8419. else
  8420. 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'
  8421. fi
  8422. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8423. hardcode_libdir_separator=:
  8424. hardcode_direct=yes
  8425. # hardcode_minus_L: Not really in the search PATH,
  8426. # but as the default location of the library.
  8427. hardcode_minus_L=yes
  8428. export_dynamic_flag_spec='${wl}-E'
  8429. ;;
  8430. hpux10*)
  8431. if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  8432. archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8433. else
  8434. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  8435. fi
  8436. if test "$with_gnu_ld" = no; then
  8437. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8438. hardcode_libdir_flag_spec_ld='+b $libdir'
  8439. hardcode_libdir_separator=:
  8440. hardcode_direct=yes
  8441. hardcode_direct_absolute=yes
  8442. export_dynamic_flag_spec='${wl}-E'
  8443. # hardcode_minus_L: Not really in the search PATH,
  8444. # but as the default location of the library.
  8445. hardcode_minus_L=yes
  8446. fi
  8447. ;;
  8448. hpux11*)
  8449. if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  8450. case $host_cpu in
  8451. hppa*64*)
  8452. archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8453. ;;
  8454. ia64*)
  8455. archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  8456. ;;
  8457. *)
  8458. archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8459. ;;
  8460. esac
  8461. else
  8462. case $host_cpu in
  8463. hppa*64*)
  8464. archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8465. ;;
  8466. ia64*)
  8467. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  8468. ;;
  8469. *)
  8470. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8471. ;;
  8472. esac
  8473. fi
  8474. if test "$with_gnu_ld" = no; then
  8475. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8476. hardcode_libdir_separator=:
  8477. case $host_cpu in
  8478. hppa*64*|ia64*)
  8479. hardcode_direct=no
  8480. hardcode_shlibpath_var=no
  8481. ;;
  8482. *)
  8483. hardcode_direct=yes
  8484. hardcode_direct_absolute=yes
  8485. export_dynamic_flag_spec='${wl}-E'
  8486. # hardcode_minus_L: Not really in the search PATH,
  8487. # but as the default location of the library.
  8488. hardcode_minus_L=yes
  8489. ;;
  8490. esac
  8491. fi
  8492. ;;
  8493. irix5* | irix6* | nonstopux*)
  8494. if test "$GCC" = yes; then
  8495. 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'
  8496. # Try to use the -exported_symbol ld option, if it does not
  8497. # work, assume that -exports_file does not work either and
  8498. # implicitly export all symbols.
  8499. save_LDFLAGS="$LDFLAGS"
  8500. LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
  8501. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8502. /* end confdefs.h. */
  8503. int foo(void) {}
  8504. _ACEOF
  8505. if ac_fn_c_try_link "$LINENO"; then :
  8506. 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'
  8507. fi
  8508. rm -f core conftest.err conftest.$ac_objext \
  8509. conftest$ac_exeext conftest.$ac_ext
  8510. LDFLAGS="$save_LDFLAGS"
  8511. else
  8512. 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'
  8513. 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'
  8514. fi
  8515. archive_cmds_need_lc='no'
  8516. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8517. hardcode_libdir_separator=:
  8518. inherit_rpath=yes
  8519. link_all_deplibs=yes
  8520. ;;
  8521. netbsd*)
  8522. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  8523. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  8524. else
  8525. archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  8526. fi
  8527. hardcode_libdir_flag_spec='-R$libdir'
  8528. hardcode_direct=yes
  8529. hardcode_shlibpath_var=no
  8530. ;;
  8531. newsos6)
  8532. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8533. hardcode_direct=yes
  8534. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8535. hardcode_libdir_separator=:
  8536. hardcode_shlibpath_var=no
  8537. ;;
  8538. *nto* | *qnx*)
  8539. ;;
  8540. openbsd*)
  8541. if test -f /usr/libexec/ld.so; then
  8542. hardcode_direct=yes
  8543. hardcode_shlibpath_var=no
  8544. hardcode_direct_absolute=yes
  8545. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  8546. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8547. archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  8548. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  8549. export_dynamic_flag_spec='${wl}-E'
  8550. else
  8551. case $host_os in
  8552. openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  8553. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8554. hardcode_libdir_flag_spec='-R$libdir'
  8555. ;;
  8556. *)
  8557. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8558. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  8559. ;;
  8560. esac
  8561. fi
  8562. else
  8563. ld_shlibs=no
  8564. fi
  8565. ;;
  8566. os2*)
  8567. hardcode_libdir_flag_spec='-L$libdir'
  8568. hardcode_minus_L=yes
  8569. allow_undefined_flag=unsupported
  8570. 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'
  8571. old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  8572. ;;
  8573. osf3*)
  8574. if test "$GCC" = yes; then
  8575. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  8576. 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'
  8577. else
  8578. allow_undefined_flag=' -expect_unresolved \*'
  8579. 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'
  8580. fi
  8581. archive_cmds_need_lc='no'
  8582. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8583. hardcode_libdir_separator=:
  8584. ;;
  8585. osf4* | osf5*) # as osf3* with the addition of -msym flag
  8586. if test "$GCC" = yes; then
  8587. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  8588. 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'
  8589. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8590. else
  8591. allow_undefined_flag=' -expect_unresolved \*'
  8592. 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'
  8593. 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~
  8594. $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'
  8595. # Both c and cxx compiler support -rpath directly
  8596. hardcode_libdir_flag_spec='-rpath $libdir'
  8597. fi
  8598. archive_cmds_need_lc='no'
  8599. hardcode_libdir_separator=:
  8600. ;;
  8601. solaris*)
  8602. no_undefined_flag=' -z defs'
  8603. if test "$GCC" = yes; then
  8604. wlarc='${wl}'
  8605. archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8606. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8607. $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  8608. else
  8609. case `$CC -V 2>&1` in
  8610. *"Compilers 5.0"*)
  8611. wlarc=''
  8612. archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8613. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8614. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
  8615. ;;
  8616. *)
  8617. wlarc='${wl}'
  8618. archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
  8619. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8620. $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  8621. ;;
  8622. esac
  8623. fi
  8624. hardcode_libdir_flag_spec='-R$libdir'
  8625. hardcode_shlibpath_var=no
  8626. case $host_os in
  8627. solaris2.[0-5] | solaris2.[0-5].*) ;;
  8628. *)
  8629. # The compiler driver will combine and reorder linker options,
  8630. # but understands `-z linker_flag'. GCC discards it without `$wl',
  8631. # but is careful enough not to reorder.
  8632. # Supported since Solaris 2.6 (maybe 2.5.1?)
  8633. if test "$GCC" = yes; then
  8634. whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  8635. else
  8636. whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
  8637. fi
  8638. ;;
  8639. esac
  8640. link_all_deplibs=yes
  8641. ;;
  8642. sunos4*)
  8643. if test "x$host_vendor" = xsequent; then
  8644. # Use $CC to link under sequent, because it throws in some extra .o
  8645. # files that make .init and .fini sections work.
  8646. archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  8647. else
  8648. archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  8649. fi
  8650. hardcode_libdir_flag_spec='-L$libdir'
  8651. hardcode_direct=yes
  8652. hardcode_minus_L=yes
  8653. hardcode_shlibpath_var=no
  8654. ;;
  8655. sysv4)
  8656. case $host_vendor in
  8657. sni)
  8658. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8659. hardcode_direct=yes # is this really true???
  8660. ;;
  8661. siemens)
  8662. ## LD is ld it makes a PLAMLIB
  8663. ## CC just makes a GrossModule.
  8664. archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  8665. reload_cmds='$CC -r -o $output$reload_objs'
  8666. hardcode_direct=no
  8667. ;;
  8668. motorola)
  8669. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8670. hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  8671. ;;
  8672. esac
  8673. runpath_var='LD_RUN_PATH'
  8674. hardcode_shlibpath_var=no
  8675. ;;
  8676. sysv4.3*)
  8677. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8678. hardcode_shlibpath_var=no
  8679. export_dynamic_flag_spec='-Bexport'
  8680. ;;
  8681. sysv4*MP*)
  8682. if test -d /usr/nec; then
  8683. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8684. hardcode_shlibpath_var=no
  8685. runpath_var=LD_RUN_PATH
  8686. hardcode_runpath_var=yes
  8687. ld_shlibs=yes
  8688. fi
  8689. ;;
  8690. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  8691. no_undefined_flag='${wl}-z,text'
  8692. archive_cmds_need_lc=no
  8693. hardcode_shlibpath_var=no
  8694. runpath_var='LD_RUN_PATH'
  8695. if test "$GCC" = yes; then
  8696. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8697. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8698. else
  8699. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8700. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8701. fi
  8702. ;;
  8703. sysv5* | sco3.2v5* | sco5v6*)
  8704. # Note: We can NOT use -z defs as we might desire, because we do not
  8705. # link with -lc, and that would cause any symbols used from libc to
  8706. # always be unresolved, which means just about no library would
  8707. # ever link correctly. If we're not using GNU ld we use -z text
  8708. # though, which does catch some bad symbols but isn't as heavy-handed
  8709. # as -z defs.
  8710. no_undefined_flag='${wl}-z,text'
  8711. allow_undefined_flag='${wl}-z,nodefs'
  8712. archive_cmds_need_lc=no
  8713. hardcode_shlibpath_var=no
  8714. hardcode_libdir_flag_spec='${wl}-R,$libdir'
  8715. hardcode_libdir_separator=':'
  8716. link_all_deplibs=yes
  8717. export_dynamic_flag_spec='${wl}-Bexport'
  8718. runpath_var='LD_RUN_PATH'
  8719. if test "$GCC" = yes; then
  8720. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8721. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8722. else
  8723. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8724. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8725. fi
  8726. ;;
  8727. uts4*)
  8728. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8729. hardcode_libdir_flag_spec='-L$libdir'
  8730. hardcode_shlibpath_var=no
  8731. ;;
  8732. *)
  8733. ld_shlibs=no
  8734. ;;
  8735. esac
  8736. if test x$host_vendor = xsni; then
  8737. case $host in
  8738. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  8739. export_dynamic_flag_spec='${wl}-Blargedynsym'
  8740. ;;
  8741. esac
  8742. fi
  8743. fi
  8744. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
  8745. $as_echo "$ld_shlibs" >&6; }
  8746. test "$ld_shlibs" = no && can_build_shared=no
  8747. with_gnu_ld=$with_gnu_ld
  8748. #
  8749. # Do we need to explicitly link libc?
  8750. #
  8751. case "x$archive_cmds_need_lc" in
  8752. x|xyes)
  8753. # Assume -lc should be added
  8754. archive_cmds_need_lc=yes
  8755. if test "$enable_shared" = yes && test "$GCC" = yes; then
  8756. case $archive_cmds in
  8757. *'~'*)
  8758. # FIXME: we may have to deal with multi-command sequences.
  8759. ;;
  8760. '$CC '*)
  8761. # Test whether the compiler implicitly links with -lc since on some
  8762. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  8763. # to ld, don't add -lc before -lgcc.
  8764. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  8765. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  8766. $RM conftest*
  8767. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8768. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  8769. (eval $ac_compile) 2>&5
  8770. ac_status=$?
  8771. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8772. test $ac_status = 0; } 2>conftest.err; then
  8773. soname=conftest
  8774. lib=conftest
  8775. libobjs=conftest.$ac_objext
  8776. deplibs=
  8777. wl=$lt_prog_compiler_wl
  8778. pic_flag=$lt_prog_compiler_pic
  8779. compiler_flags=-v
  8780. linker_flags=-v
  8781. verstring=
  8782. output_objdir=.
  8783. libname=conftest
  8784. lt_save_allow_undefined_flag=$allow_undefined_flag
  8785. allow_undefined_flag=
  8786. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  8787. (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  8788. ac_status=$?
  8789. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8790. test $ac_status = 0; }
  8791. then
  8792. archive_cmds_need_lc=no
  8793. else
  8794. archive_cmds_need_lc=yes
  8795. fi
  8796. allow_undefined_flag=$lt_save_allow_undefined_flag
  8797. else
  8798. cat conftest.err 1>&5
  8799. fi
  8800. $RM conftest*
  8801. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
  8802. $as_echo "$archive_cmds_need_lc" >&6; }
  8803. ;;
  8804. esac
  8805. fi
  8806. ;;
  8807. esac
  8808. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  8809. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  8810. if test "$GCC" = yes; then
  8811. case $host_os in
  8812. darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
  8813. *) lt_awk_arg="/^libraries:/" ;;
  8814. esac
  8815. lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  8816. if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
  8817. # if the path contains ";" then we assume it to be the separator
  8818. # otherwise default to the standard path separator (i.e. ":") - it is
  8819. # assumed that no part of a normal pathname contains ";" but that should
  8820. # okay in the real world where ";" in dirpaths is itself problematic.
  8821. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
  8822. else
  8823. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  8824. fi
  8825. # Ok, now we have the path, separated by spaces, we can step through it
  8826. # and add multilib dir if necessary.
  8827. lt_tmp_lt_search_path_spec=
  8828. lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  8829. for lt_sys_path in $lt_search_path_spec; do
  8830. if test -d "$lt_sys_path/$lt_multi_os_dir"; then
  8831. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
  8832. else
  8833. test -d "$lt_sys_path" && \
  8834. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  8835. fi
  8836. done
  8837. lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
  8838. BEGIN {RS=" "; FS="/|\n";} {
  8839. lt_foo="";
  8840. lt_count=0;
  8841. for (lt_i = NF; lt_i > 0; lt_i--) {
  8842. if ($lt_i != "" && $lt_i != ".") {
  8843. if ($lt_i == "..") {
  8844. lt_count++;
  8845. } else {
  8846. if (lt_count == 0) {
  8847. lt_foo="/" $lt_i lt_foo;
  8848. } else {
  8849. lt_count--;
  8850. }
  8851. }
  8852. }
  8853. }
  8854. if (lt_foo != "") { lt_freq[lt_foo]++; }
  8855. if (lt_freq[lt_foo] == 1) { print lt_foo; }
  8856. }'`
  8857. sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
  8858. else
  8859. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  8860. fi
  8861. library_names_spec=
  8862. libname_spec='lib$name'
  8863. soname_spec=
  8864. shrext_cmds=".so"
  8865. postinstall_cmds=
  8866. postuninstall_cmds=
  8867. finish_cmds=
  8868. finish_eval=
  8869. shlibpath_var=
  8870. shlibpath_overrides_runpath=unknown
  8871. version_type=none
  8872. dynamic_linker="$host_os ld.so"
  8873. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  8874. need_lib_prefix=unknown
  8875. hardcode_into_libs=no
  8876. # when you set need_version to no, make sure it does not cause -set_version
  8877. # flags to be left without arguments
  8878. need_version=unknown
  8879. case $host_os in
  8880. aix3*)
  8881. version_type=linux
  8882. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  8883. shlibpath_var=LIBPATH
  8884. # AIX 3 has no versioning support, so we append a major version to the name.
  8885. soname_spec='${libname}${release}${shared_ext}$major'
  8886. ;;
  8887. aix[4-9]*)
  8888. version_type=linux
  8889. need_lib_prefix=no
  8890. need_version=no
  8891. hardcode_into_libs=yes
  8892. if test "$host_cpu" = ia64; then
  8893. # AIX 5 supports IA64
  8894. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  8895. shlibpath_var=LD_LIBRARY_PATH
  8896. else
  8897. # With GCC up to 2.95.x, collect2 would create an import file
  8898. # for dependence libraries. The import file would start with
  8899. # the line `#! .'. This would cause the generated library to
  8900. # depend on `.', always an invalid library. This was fixed in
  8901. # development snapshots of GCC prior to 3.0.
  8902. case $host_os in
  8903. aix4 | aix4.[01] | aix4.[01].*)
  8904. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  8905. echo ' yes '
  8906. echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  8907. :
  8908. else
  8909. can_build_shared=no
  8910. fi
  8911. ;;
  8912. esac
  8913. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  8914. # soname into executable. Probably we can add versioning support to
  8915. # collect2, so additional links can be useful in future.
  8916. if test "$aix_use_runtimelinking" = yes; then
  8917. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  8918. # instead of lib<name>.a to let people know that these are not
  8919. # typical AIX shared libraries.
  8920. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8921. else
  8922. # We preserve .a as extension for shared libraries through AIX4.2
  8923. # and later when we are not doing run time linking.
  8924. library_names_spec='${libname}${release}.a $libname.a'
  8925. soname_spec='${libname}${release}${shared_ext}$major'
  8926. fi
  8927. shlibpath_var=LIBPATH
  8928. fi
  8929. ;;
  8930. amigaos*)
  8931. case $host_cpu in
  8932. powerpc)
  8933. # Since July 2007 AmigaOS4 officially supports .so libraries.
  8934. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  8935. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8936. ;;
  8937. m68k)
  8938. library_names_spec='$libname.ixlibrary $libname.a'
  8939. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  8940. 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'
  8941. ;;
  8942. esac
  8943. ;;
  8944. beos*)
  8945. library_names_spec='${libname}${shared_ext}'
  8946. dynamic_linker="$host_os ld.so"
  8947. shlibpath_var=LIBRARY_PATH
  8948. ;;
  8949. bsdi[45]*)
  8950. version_type=linux
  8951. need_version=no
  8952. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8953. soname_spec='${libname}${release}${shared_ext}$major'
  8954. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  8955. shlibpath_var=LD_LIBRARY_PATH
  8956. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  8957. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  8958. # the default ld.so.conf also contains /usr/contrib/lib and
  8959. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  8960. # libtool to hard-code these into programs
  8961. ;;
  8962. cygwin* | mingw* | pw32* | cegcc*)
  8963. version_type=windows
  8964. shrext_cmds=".dll"
  8965. need_version=no
  8966. need_lib_prefix=no
  8967. case $GCC,$host_os in
  8968. yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
  8969. library_names_spec='$libname.dll.a'
  8970. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  8971. postinstall_cmds='base_file=`basename \${file}`~
  8972. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  8973. dldir=$destdir/`dirname \$dlpath`~
  8974. test -d \$dldir || mkdir -p \$dldir~
  8975. $install_prog $dir/$dlname \$dldir/$dlname~
  8976. chmod a+x \$dldir/$dlname~
  8977. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  8978. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  8979. fi'
  8980. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  8981. dlpath=$dir/\$dldll~
  8982. $RM \$dlpath'
  8983. shlibpath_overrides_runpath=yes
  8984. case $host_os in
  8985. cygwin*)
  8986. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  8987. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  8988. sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
  8989. ;;
  8990. mingw* | cegcc*)
  8991. # MinGW DLLs use traditional 'lib' prefix
  8992. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  8993. sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  8994. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  8995. # It is most probably a Windows format PATH printed by
  8996. # mingw gcc, but we are running on Cygwin. Gcc prints its search
  8997. # path with ; separators, and with drive letters. We can handle the
  8998. # drive letters (cygwin fileutils understands them), so leave them,
  8999. # especially as we might pass files found there to a mingw objdump,
  9000. # which wouldn't understand a cygwinified path. Ahh.
  9001. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  9002. else
  9003. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  9004. fi
  9005. ;;
  9006. pw32*)
  9007. # pw32 DLLs use 'pw' prefix rather than 'lib'
  9008. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  9009. ;;
  9010. esac
  9011. ;;
  9012. *)
  9013. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  9014. ;;
  9015. esac
  9016. dynamic_linker='Win32 ld.exe'
  9017. # FIXME: first we should search . and the directory the executable is in
  9018. shlibpath_var=PATH
  9019. ;;
  9020. darwin* | rhapsody*)
  9021. dynamic_linker="$host_os dyld"
  9022. version_type=darwin
  9023. need_lib_prefix=no
  9024. need_version=no
  9025. library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  9026. soname_spec='${libname}${release}${major}$shared_ext'
  9027. shlibpath_overrides_runpath=yes
  9028. shlibpath_var=DYLD_LIBRARY_PATH
  9029. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  9030. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
  9031. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  9032. ;;
  9033. dgux*)
  9034. version_type=linux
  9035. need_lib_prefix=no
  9036. need_version=no
  9037. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  9038. soname_spec='${libname}${release}${shared_ext}$major'
  9039. shlibpath_var=LD_LIBRARY_PATH
  9040. ;;
  9041. freebsd1*)
  9042. dynamic_linker=no
  9043. ;;
  9044. freebsd* | dragonfly*)
  9045. # DragonFly does not have aout. When/if they implement a new
  9046. # versioning mechanism, adjust this.
  9047. if test -x /usr/bin/objformat; then
  9048. objformat=`/usr/bin/objformat`
  9049. else
  9050. case $host_os in
  9051. freebsd[123]*) objformat=aout ;;
  9052. *) objformat=elf ;;
  9053. esac
  9054. fi
  9055. version_type=freebsd-$objformat
  9056. case $version_type in
  9057. freebsd-elf*)
  9058. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  9059. need_version=no
  9060. need_lib_prefix=no
  9061. ;;
  9062. freebsd-*)
  9063. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  9064. need_version=yes
  9065. ;;
  9066. esac
  9067. shlibpath_var=LD_LIBRARY_PATH
  9068. case $host_os in
  9069. freebsd2*)
  9070. shlibpath_overrides_runpath=yes
  9071. ;;
  9072. freebsd3.[01]* | freebsdelf3.[01]*)
  9073. shlibpath_overrides_runpath=yes
  9074. hardcode_into_libs=yes
  9075. ;;
  9076. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  9077. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  9078. shlibpath_overrides_runpath=no
  9079. hardcode_into_libs=yes
  9080. ;;
  9081. *) # from 4.6 on, and DragonFly
  9082. shlibpath_overrides_runpath=yes
  9083. hardcode_into_libs=yes
  9084. ;;
  9085. esac
  9086. ;;
  9087. gnu*)
  9088. version_type=linux
  9089. need_lib_prefix=no
  9090. need_version=no
  9091. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  9092. soname_spec='${libname}${release}${shared_ext}$major'
  9093. shlibpath_var=LD_LIBRARY_PATH
  9094. hardcode_into_libs=yes
  9095. ;;
  9096. hpux9* | hpux10* | hpux11*)
  9097. # Give a soname corresponding to the major version so that dld.sl refuses to
  9098. # link against other versions.
  9099. version_type=sunos
  9100. need_lib_prefix=no
  9101. need_version=no
  9102. case $host_cpu in
  9103. ia64*)
  9104. shrext_cmds='.so'
  9105. hardcode_into_libs=yes
  9106. dynamic_linker="$host_os dld.so"
  9107. shlibpath_var=LD_LIBRARY_PATH
  9108. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  9109. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9110. soname_spec='${libname}${release}${shared_ext}$major'
  9111. if test "X$HPUX_IA64_MODE" = X32; then
  9112. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  9113. else
  9114. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  9115. fi
  9116. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  9117. ;;
  9118. hppa*64*)
  9119. shrext_cmds='.sl'
  9120. hardcode_into_libs=yes
  9121. dynamic_linker="$host_os dld.sl"
  9122. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  9123. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  9124. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9125. soname_spec='${libname}${release}${shared_ext}$major'
  9126. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  9127. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  9128. ;;
  9129. *)
  9130. shrext_cmds='.sl'
  9131. dynamic_linker="$host_os dld.sl"
  9132. shlibpath_var=SHLIB_PATH
  9133. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  9134. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9135. soname_spec='${libname}${release}${shared_ext}$major'
  9136. ;;
  9137. esac
  9138. # HP-UX runs *really* slowly unless shared libraries are mode 555.
  9139. postinstall_cmds='chmod 555 $lib'
  9140. ;;
  9141. interix[3-9]*)
  9142. version_type=linux
  9143. need_lib_prefix=no
  9144. need_version=no
  9145. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  9146. soname_spec='${libname}${release}${shared_ext}$major'
  9147. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  9148. shlibpath_var=LD_LIBRARY_PATH
  9149. shlibpath_overrides_runpath=no
  9150. hardcode_into_libs=yes
  9151. ;;
  9152. irix5* | irix6* | nonstopux*)
  9153. case $host_os in
  9154. nonstopux*) version_type=nonstopux ;;
  9155. *)
  9156. if test "$lt_cv_prog_gnu_ld" = yes; then
  9157. version_type=linux
  9158. else
  9159. version_type=irix
  9160. fi ;;
  9161. esac
  9162. need_lib_prefix=no
  9163. need_version=no
  9164. soname_spec='${libname}${release}${shared_ext}$major'
  9165. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  9166. case $host_os in
  9167. irix5* | nonstopux*)
  9168. libsuff= shlibsuff=
  9169. ;;
  9170. *)
  9171. case $LD in # libtool.m4 will add one of these switches to LD
  9172. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  9173. libsuff= shlibsuff= libmagic=32-bit;;
  9174. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  9175. libsuff=32 shlibsuff=N32 libmagic=N32;;
  9176. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  9177. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  9178. *) libsuff= shlibsuff= libmagic=never-match;;
  9179. esac
  9180. ;;
  9181. esac
  9182. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  9183. shlibpath_overrides_runpath=no
  9184. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  9185. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  9186. hardcode_into_libs=yes
  9187. ;;
  9188. # No shared lib support for Linux oldld, aout, or coff.
  9189. linux*oldld* | linux*aout* | linux*coff*)
  9190. dynamic_linker=no
  9191. ;;
  9192. # This must be Linux ELF.
  9193. linux* | k*bsd*-gnu)
  9194. version_type=linux
  9195. need_lib_prefix=no
  9196. need_version=no
  9197. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9198. soname_spec='${libname}${release}${shared_ext}$major'
  9199. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  9200. shlibpath_var=LD_LIBRARY_PATH
  9201. shlibpath_overrides_runpath=no
  9202. # Some binutils ld are patched to set DT_RUNPATH
  9203. save_LDFLAGS=$LDFLAGS
  9204. save_libdir=$libdir
  9205. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
  9206. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
  9207. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9208. /* end confdefs.h. */
  9209. int
  9210. main ()
  9211. {
  9212. ;
  9213. return 0;
  9214. }
  9215. _ACEOF
  9216. if ac_fn_c_try_link "$LINENO"; then :
  9217. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  9218. shlibpath_overrides_runpath=yes
  9219. fi
  9220. fi
  9221. rm -f core conftest.err conftest.$ac_objext \
  9222. conftest$ac_exeext conftest.$ac_ext
  9223. LDFLAGS=$save_LDFLAGS
  9224. libdir=$save_libdir
  9225. # This implies no fast_install, which is unacceptable.
  9226. # Some rework will be needed to allow for fast_install
  9227. # before this can be enabled.
  9228. hardcode_into_libs=yes
  9229. # Append ld.so.conf contents to the search path
  9230. if test -f /etc/ld.so.conf; then
  9231. 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' ' '`
  9232. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  9233. fi
  9234. # We used to test for /lib/ld.so.1 and disable shared libraries on
  9235. # powerpc, because MkLinux only supported shared libraries with the
  9236. # GNU dynamic linker. Since this was broken with cross compilers,
  9237. # most powerpc-linux boxes support dynamic linking these days and
  9238. # people can always --disable-shared, the test was removed, and we
  9239. # assume the GNU/Linux dynamic linker is in use.
  9240. dynamic_linker='GNU/Linux ld.so'
  9241. ;;
  9242. netbsd*)
  9243. version_type=sunos
  9244. need_lib_prefix=no
  9245. need_version=no
  9246. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  9247. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9248. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  9249. dynamic_linker='NetBSD (a.out) ld.so'
  9250. else
  9251. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  9252. soname_spec='${libname}${release}${shared_ext}$major'
  9253. dynamic_linker='NetBSD ld.elf_so'
  9254. fi
  9255. shlibpath_var=LD_LIBRARY_PATH
  9256. shlibpath_overrides_runpath=yes
  9257. hardcode_into_libs=yes
  9258. ;;
  9259. newsos6)
  9260. version_type=linux
  9261. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9262. shlibpath_var=LD_LIBRARY_PATH
  9263. shlibpath_overrides_runpath=yes
  9264. ;;
  9265. *nto* | *qnx*)
  9266. version_type=qnx
  9267. need_lib_prefix=no
  9268. need_version=no
  9269. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9270. soname_spec='${libname}${release}${shared_ext}$major'
  9271. shlibpath_var=LD_LIBRARY_PATH
  9272. shlibpath_overrides_runpath=no
  9273. hardcode_into_libs=yes
  9274. dynamic_linker='ldqnx.so'
  9275. ;;
  9276. openbsd*)
  9277. version_type=sunos
  9278. sys_lib_dlsearch_path_spec="/usr/lib"
  9279. need_lib_prefix=no
  9280. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  9281. case $host_os in
  9282. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  9283. *) need_version=no ;;
  9284. esac
  9285. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9286. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  9287. shlibpath_var=LD_LIBRARY_PATH
  9288. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  9289. case $host_os in
  9290. openbsd2.[89] | openbsd2.[89].*)
  9291. shlibpath_overrides_runpath=no
  9292. ;;
  9293. *)
  9294. shlibpath_overrides_runpath=yes
  9295. ;;
  9296. esac
  9297. else
  9298. shlibpath_overrides_runpath=yes
  9299. fi
  9300. ;;
  9301. os2*)
  9302. libname_spec='$name'
  9303. shrext_cmds=".dll"
  9304. need_lib_prefix=no
  9305. library_names_spec='$libname${shared_ext} $libname.a'
  9306. dynamic_linker='OS/2 ld.exe'
  9307. shlibpath_var=LIBPATH
  9308. ;;
  9309. osf3* | osf4* | osf5*)
  9310. version_type=osf
  9311. need_lib_prefix=no
  9312. need_version=no
  9313. soname_spec='${libname}${release}${shared_ext}$major'
  9314. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9315. shlibpath_var=LD_LIBRARY_PATH
  9316. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  9317. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  9318. ;;
  9319. rdos*)
  9320. dynamic_linker=no
  9321. ;;
  9322. solaris*)
  9323. version_type=linux
  9324. need_lib_prefix=no
  9325. need_version=no
  9326. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9327. soname_spec='${libname}${release}${shared_ext}$major'
  9328. shlibpath_var=LD_LIBRARY_PATH
  9329. shlibpath_overrides_runpath=yes
  9330. hardcode_into_libs=yes
  9331. # ldd complains unless libraries are executable
  9332. postinstall_cmds='chmod +x $lib'
  9333. ;;
  9334. sunos4*)
  9335. version_type=sunos
  9336. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9337. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  9338. shlibpath_var=LD_LIBRARY_PATH
  9339. shlibpath_overrides_runpath=yes
  9340. if test "$with_gnu_ld" = yes; then
  9341. need_lib_prefix=no
  9342. fi
  9343. need_version=yes
  9344. ;;
  9345. sysv4 | sysv4.3*)
  9346. version_type=linux
  9347. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9348. soname_spec='${libname}${release}${shared_ext}$major'
  9349. shlibpath_var=LD_LIBRARY_PATH
  9350. case $host_vendor in
  9351. sni)
  9352. shlibpath_overrides_runpath=no
  9353. need_lib_prefix=no
  9354. runpath_var=LD_RUN_PATH
  9355. ;;
  9356. siemens)
  9357. need_lib_prefix=no
  9358. ;;
  9359. motorola)
  9360. need_lib_prefix=no
  9361. need_version=no
  9362. shlibpath_overrides_runpath=no
  9363. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  9364. ;;
  9365. esac
  9366. ;;
  9367. sysv4*MP*)
  9368. if test -d /usr/nec ;then
  9369. version_type=linux
  9370. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  9371. soname_spec='$libname${shared_ext}.$major'
  9372. shlibpath_var=LD_LIBRARY_PATH
  9373. fi
  9374. ;;
  9375. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  9376. version_type=freebsd-elf
  9377. need_lib_prefix=no
  9378. need_version=no
  9379. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  9380. soname_spec='${libname}${release}${shared_ext}$major'
  9381. shlibpath_var=LD_LIBRARY_PATH
  9382. shlibpath_overrides_runpath=yes
  9383. hardcode_into_libs=yes
  9384. if test "$with_gnu_ld" = yes; then
  9385. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  9386. else
  9387. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  9388. case $host_os in
  9389. sco3.2v5*)
  9390. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  9391. ;;
  9392. esac
  9393. fi
  9394. sys_lib_dlsearch_path_spec='/usr/lib'
  9395. ;;
  9396. tpf*)
  9397. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  9398. version_type=linux
  9399. need_lib_prefix=no
  9400. need_version=no
  9401. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9402. shlibpath_var=LD_LIBRARY_PATH
  9403. shlibpath_overrides_runpath=no
  9404. hardcode_into_libs=yes
  9405. ;;
  9406. uts4*)
  9407. version_type=linux
  9408. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9409. soname_spec='${libname}${release}${shared_ext}$major'
  9410. shlibpath_var=LD_LIBRARY_PATH
  9411. ;;
  9412. *)
  9413. dynamic_linker=no
  9414. ;;
  9415. esac
  9416. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  9417. $as_echo "$dynamic_linker" >&6; }
  9418. test "$dynamic_linker" = no && can_build_shared=no
  9419. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  9420. if test "$GCC" = yes; then
  9421. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  9422. fi
  9423. if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  9424. sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  9425. fi
  9426. if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  9427. sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  9428. fi
  9429. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  9430. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  9431. hardcode_action=
  9432. if test -n "$hardcode_libdir_flag_spec" ||
  9433. test -n "$runpath_var" ||
  9434. test "X$hardcode_automatic" = "Xyes" ; then
  9435. # We can hardcode non-existent directories.
  9436. if test "$hardcode_direct" != no &&
  9437. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  9438. # have to relink, otherwise we might link with an installed library
  9439. # when we should be linking with a yet-to-be-installed one
  9440. ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
  9441. test "$hardcode_minus_L" != no; then
  9442. # Linking always hardcodes the temporary library directory.
  9443. hardcode_action=relink
  9444. else
  9445. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  9446. hardcode_action=immediate
  9447. fi
  9448. else
  9449. # We cannot hardcode anything, or else we can only hardcode existing
  9450. # directories.
  9451. hardcode_action=unsupported
  9452. fi
  9453. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
  9454. $as_echo "$hardcode_action" >&6; }
  9455. if test "$hardcode_action" = relink ||
  9456. test "$inherit_rpath" = yes; then
  9457. # Fast installation is not supported
  9458. enable_fast_install=no
  9459. elif test "$shlibpath_overrides_runpath" = yes ||
  9460. test "$enable_shared" = no; then
  9461. # Fast installation is not necessary
  9462. enable_fast_install=needless
  9463. fi
  9464. if test "x$enable_dlopen" != xyes; then
  9465. enable_dlopen=unknown
  9466. enable_dlopen_self=unknown
  9467. enable_dlopen_self_static=unknown
  9468. else
  9469. lt_cv_dlopen=no
  9470. lt_cv_dlopen_libs=
  9471. case $host_os in
  9472. beos*)
  9473. lt_cv_dlopen="load_add_on"
  9474. lt_cv_dlopen_libs=
  9475. lt_cv_dlopen_self=yes
  9476. ;;
  9477. mingw* | pw32* | cegcc*)
  9478. lt_cv_dlopen="LoadLibrary"
  9479. lt_cv_dlopen_libs=
  9480. ;;
  9481. cygwin*)
  9482. lt_cv_dlopen="dlopen"
  9483. lt_cv_dlopen_libs=
  9484. ;;
  9485. darwin*)
  9486. # if libdl is installed we need to link against it
  9487. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  9488. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  9489. if ${ac_cv_lib_dl_dlopen+:} false; then :
  9490. $as_echo_n "(cached) " >&6
  9491. else
  9492. ac_check_lib_save_LIBS=$LIBS
  9493. LIBS="-ldl $LIBS"
  9494. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9495. /* end confdefs.h. */
  9496. /* Override any GCC internal prototype to avoid an error.
  9497. Use char because int might match the return type of a GCC
  9498. builtin and then its argument prototype would still apply. */
  9499. #ifdef __cplusplus
  9500. extern "C"
  9501. #endif
  9502. char dlopen ();
  9503. int
  9504. main ()
  9505. {
  9506. return dlopen ();
  9507. ;
  9508. return 0;
  9509. }
  9510. _ACEOF
  9511. if ac_fn_c_try_link "$LINENO"; then :
  9512. ac_cv_lib_dl_dlopen=yes
  9513. else
  9514. ac_cv_lib_dl_dlopen=no
  9515. fi
  9516. rm -f core conftest.err conftest.$ac_objext \
  9517. conftest$ac_exeext conftest.$ac_ext
  9518. LIBS=$ac_check_lib_save_LIBS
  9519. fi
  9520. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  9521. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  9522. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  9523. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  9524. else
  9525. lt_cv_dlopen="dyld"
  9526. lt_cv_dlopen_libs=
  9527. lt_cv_dlopen_self=yes
  9528. fi
  9529. ;;
  9530. *)
  9531. ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
  9532. if test "x$ac_cv_func_shl_load" = xyes; then :
  9533. lt_cv_dlopen="shl_load"
  9534. else
  9535. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
  9536. $as_echo_n "checking for shl_load in -ldld... " >&6; }
  9537. if ${ac_cv_lib_dld_shl_load+:} false; then :
  9538. $as_echo_n "(cached) " >&6
  9539. else
  9540. ac_check_lib_save_LIBS=$LIBS
  9541. LIBS="-ldld $LIBS"
  9542. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9543. /* end confdefs.h. */
  9544. /* Override any GCC internal prototype to avoid an error.
  9545. Use char because int might match the return type of a GCC
  9546. builtin and then its argument prototype would still apply. */
  9547. #ifdef __cplusplus
  9548. extern "C"
  9549. #endif
  9550. char shl_load ();
  9551. int
  9552. main ()
  9553. {
  9554. return shl_load ();
  9555. ;
  9556. return 0;
  9557. }
  9558. _ACEOF
  9559. if ac_fn_c_try_link "$LINENO"; then :
  9560. ac_cv_lib_dld_shl_load=yes
  9561. else
  9562. ac_cv_lib_dld_shl_load=no
  9563. fi
  9564. rm -f core conftest.err conftest.$ac_objext \
  9565. conftest$ac_exeext conftest.$ac_ext
  9566. LIBS=$ac_check_lib_save_LIBS
  9567. fi
  9568. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
  9569. $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
  9570. if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
  9571. lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
  9572. else
  9573. ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
  9574. if test "x$ac_cv_func_dlopen" = xyes; then :
  9575. lt_cv_dlopen="dlopen"
  9576. else
  9577. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  9578. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  9579. if ${ac_cv_lib_dl_dlopen+:} false; then :
  9580. $as_echo_n "(cached) " >&6
  9581. else
  9582. ac_check_lib_save_LIBS=$LIBS
  9583. LIBS="-ldl $LIBS"
  9584. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9585. /* end confdefs.h. */
  9586. /* Override any GCC internal prototype to avoid an error.
  9587. Use char because int might match the return type of a GCC
  9588. builtin and then its argument prototype would still apply. */
  9589. #ifdef __cplusplus
  9590. extern "C"
  9591. #endif
  9592. char dlopen ();
  9593. int
  9594. main ()
  9595. {
  9596. return dlopen ();
  9597. ;
  9598. return 0;
  9599. }
  9600. _ACEOF
  9601. if ac_fn_c_try_link "$LINENO"; then :
  9602. ac_cv_lib_dl_dlopen=yes
  9603. else
  9604. ac_cv_lib_dl_dlopen=no
  9605. fi
  9606. rm -f core conftest.err conftest.$ac_objext \
  9607. conftest$ac_exeext conftest.$ac_ext
  9608. LIBS=$ac_check_lib_save_LIBS
  9609. fi
  9610. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  9611. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  9612. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  9613. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  9614. else
  9615. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
  9616. $as_echo_n "checking for dlopen in -lsvld... " >&6; }
  9617. if ${ac_cv_lib_svld_dlopen+:} false; then :
  9618. $as_echo_n "(cached) " >&6
  9619. else
  9620. ac_check_lib_save_LIBS=$LIBS
  9621. LIBS="-lsvld $LIBS"
  9622. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9623. /* end confdefs.h. */
  9624. /* Override any GCC internal prototype to avoid an error.
  9625. Use char because int might match the return type of a GCC
  9626. builtin and then its argument prototype would still apply. */
  9627. #ifdef __cplusplus
  9628. extern "C"
  9629. #endif
  9630. char dlopen ();
  9631. int
  9632. main ()
  9633. {
  9634. return dlopen ();
  9635. ;
  9636. return 0;
  9637. }
  9638. _ACEOF
  9639. if ac_fn_c_try_link "$LINENO"; then :
  9640. ac_cv_lib_svld_dlopen=yes
  9641. else
  9642. ac_cv_lib_svld_dlopen=no
  9643. fi
  9644. rm -f core conftest.err conftest.$ac_objext \
  9645. conftest$ac_exeext conftest.$ac_ext
  9646. LIBS=$ac_check_lib_save_LIBS
  9647. fi
  9648. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
  9649. $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
  9650. if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
  9651. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
  9652. else
  9653. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
  9654. $as_echo_n "checking for dld_link in -ldld... " >&6; }
  9655. if ${ac_cv_lib_dld_dld_link+:} false; then :
  9656. $as_echo_n "(cached) " >&6
  9657. else
  9658. ac_check_lib_save_LIBS=$LIBS
  9659. LIBS="-ldld $LIBS"
  9660. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9661. /* end confdefs.h. */
  9662. /* Override any GCC internal prototype to avoid an error.
  9663. Use char because int might match the return type of a GCC
  9664. builtin and then its argument prototype would still apply. */
  9665. #ifdef __cplusplus
  9666. extern "C"
  9667. #endif
  9668. char dld_link ();
  9669. int
  9670. main ()
  9671. {
  9672. return dld_link ();
  9673. ;
  9674. return 0;
  9675. }
  9676. _ACEOF
  9677. if ac_fn_c_try_link "$LINENO"; then :
  9678. ac_cv_lib_dld_dld_link=yes
  9679. else
  9680. ac_cv_lib_dld_dld_link=no
  9681. fi
  9682. rm -f core conftest.err conftest.$ac_objext \
  9683. conftest$ac_exeext conftest.$ac_ext
  9684. LIBS=$ac_check_lib_save_LIBS
  9685. fi
  9686. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
  9687. $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
  9688. if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
  9689. lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
  9690. fi
  9691. fi
  9692. fi
  9693. fi
  9694. fi
  9695. fi
  9696. ;;
  9697. esac
  9698. if test "x$lt_cv_dlopen" != xno; then
  9699. enable_dlopen=yes
  9700. else
  9701. enable_dlopen=no
  9702. fi
  9703. case $lt_cv_dlopen in
  9704. dlopen)
  9705. save_CPPFLAGS="$CPPFLAGS"
  9706. test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  9707. save_LDFLAGS="$LDFLAGS"
  9708. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  9709. save_LIBS="$LIBS"
  9710. LIBS="$lt_cv_dlopen_libs $LIBS"
  9711. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
  9712. $as_echo_n "checking whether a program can dlopen itself... " >&6; }
  9713. if ${lt_cv_dlopen_self+:} false; then :
  9714. $as_echo_n "(cached) " >&6
  9715. else
  9716. if test "$cross_compiling" = yes; then :
  9717. lt_cv_dlopen_self=cross
  9718. else
  9719. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  9720. lt_status=$lt_dlunknown
  9721. cat > conftest.$ac_ext <<_LT_EOF
  9722. #line 11293 "configure"
  9723. #include "confdefs.h"
  9724. #if HAVE_DLFCN_H
  9725. #include <dlfcn.h>
  9726. #endif
  9727. #include <stdio.h>
  9728. #ifdef RTLD_GLOBAL
  9729. # define LT_DLGLOBAL RTLD_GLOBAL
  9730. #else
  9731. # ifdef DL_GLOBAL
  9732. # define LT_DLGLOBAL DL_GLOBAL
  9733. # else
  9734. # define LT_DLGLOBAL 0
  9735. # endif
  9736. #endif
  9737. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  9738. find out it does not work in some platform. */
  9739. #ifndef LT_DLLAZY_OR_NOW
  9740. # ifdef RTLD_LAZY
  9741. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  9742. # else
  9743. # ifdef DL_LAZY
  9744. # define LT_DLLAZY_OR_NOW DL_LAZY
  9745. # else
  9746. # ifdef RTLD_NOW
  9747. # define LT_DLLAZY_OR_NOW RTLD_NOW
  9748. # else
  9749. # ifdef DL_NOW
  9750. # define LT_DLLAZY_OR_NOW DL_NOW
  9751. # else
  9752. # define LT_DLLAZY_OR_NOW 0
  9753. # endif
  9754. # endif
  9755. # endif
  9756. # endif
  9757. #endif
  9758. void fnord() { int i=42;}
  9759. int main ()
  9760. {
  9761. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  9762. int status = $lt_dlunknown;
  9763. if (self)
  9764. {
  9765. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  9766. else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  9767. /* dlclose (self); */
  9768. }
  9769. else
  9770. puts (dlerror ());
  9771. return status;
  9772. }
  9773. _LT_EOF
  9774. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  9775. (eval $ac_link) 2>&5
  9776. ac_status=$?
  9777. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9778. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  9779. (./conftest; exit; ) >&5 2>/dev/null
  9780. lt_status=$?
  9781. case x$lt_status in
  9782. x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  9783. x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  9784. x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
  9785. esac
  9786. else :
  9787. # compilation failed
  9788. lt_cv_dlopen_self=no
  9789. fi
  9790. fi
  9791. rm -fr conftest*
  9792. fi
  9793. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
  9794. $as_echo "$lt_cv_dlopen_self" >&6; }
  9795. if test "x$lt_cv_dlopen_self" = xyes; then
  9796. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  9797. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
  9798. $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
  9799. if ${lt_cv_dlopen_self_static+:} false; then :
  9800. $as_echo_n "(cached) " >&6
  9801. else
  9802. if test "$cross_compiling" = yes; then :
  9803. lt_cv_dlopen_self_static=cross
  9804. else
  9805. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  9806. lt_status=$lt_dlunknown
  9807. cat > conftest.$ac_ext <<_LT_EOF
  9808. #line 11389 "configure"
  9809. #include "confdefs.h"
  9810. #if HAVE_DLFCN_H
  9811. #include <dlfcn.h>
  9812. #endif
  9813. #include <stdio.h>
  9814. #ifdef RTLD_GLOBAL
  9815. # define LT_DLGLOBAL RTLD_GLOBAL
  9816. #else
  9817. # ifdef DL_GLOBAL
  9818. # define LT_DLGLOBAL DL_GLOBAL
  9819. # else
  9820. # define LT_DLGLOBAL 0
  9821. # endif
  9822. #endif
  9823. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  9824. find out it does not work in some platform. */
  9825. #ifndef LT_DLLAZY_OR_NOW
  9826. # ifdef RTLD_LAZY
  9827. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  9828. # else
  9829. # ifdef DL_LAZY
  9830. # define LT_DLLAZY_OR_NOW DL_LAZY
  9831. # else
  9832. # ifdef RTLD_NOW
  9833. # define LT_DLLAZY_OR_NOW RTLD_NOW
  9834. # else
  9835. # ifdef DL_NOW
  9836. # define LT_DLLAZY_OR_NOW DL_NOW
  9837. # else
  9838. # define LT_DLLAZY_OR_NOW 0
  9839. # endif
  9840. # endif
  9841. # endif
  9842. # endif
  9843. #endif
  9844. void fnord() { int i=42;}
  9845. int main ()
  9846. {
  9847. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  9848. int status = $lt_dlunknown;
  9849. if (self)
  9850. {
  9851. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  9852. else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  9853. /* dlclose (self); */
  9854. }
  9855. else
  9856. puts (dlerror ());
  9857. return status;
  9858. }
  9859. _LT_EOF
  9860. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  9861. (eval $ac_link) 2>&5
  9862. ac_status=$?
  9863. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9864. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  9865. (./conftest; exit; ) >&5 2>/dev/null
  9866. lt_status=$?
  9867. case x$lt_status in
  9868. x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  9869. x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  9870. x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
  9871. esac
  9872. else :
  9873. # compilation failed
  9874. lt_cv_dlopen_self_static=no
  9875. fi
  9876. fi
  9877. rm -fr conftest*
  9878. fi
  9879. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
  9880. $as_echo "$lt_cv_dlopen_self_static" >&6; }
  9881. fi
  9882. CPPFLAGS="$save_CPPFLAGS"
  9883. LDFLAGS="$save_LDFLAGS"
  9884. LIBS="$save_LIBS"
  9885. ;;
  9886. esac
  9887. case $lt_cv_dlopen_self in
  9888. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  9889. *) enable_dlopen_self=unknown ;;
  9890. esac
  9891. case $lt_cv_dlopen_self_static in
  9892. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  9893. *) enable_dlopen_self_static=unknown ;;
  9894. esac
  9895. fi
  9896. striplib=
  9897. old_striplib=
  9898. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
  9899. $as_echo_n "checking whether stripping libraries is possible... " >&6; }
  9900. if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  9901. test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  9902. test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  9903. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  9904. $as_echo "yes" >&6; }
  9905. else
  9906. # FIXME - insert some real tests, host_os isn't really good enough
  9907. case $host_os in
  9908. darwin*)
  9909. if test -n "$STRIP" ; then
  9910. striplib="$STRIP -x"
  9911. old_striplib="$STRIP -S"
  9912. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  9913. $as_echo "yes" >&6; }
  9914. else
  9915. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9916. $as_echo "no" >&6; }
  9917. fi
  9918. ;;
  9919. *)
  9920. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9921. $as_echo "no" >&6; }
  9922. ;;
  9923. esac
  9924. fi
  9925. # Report which library types will actually be built
  9926. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
  9927. $as_echo_n "checking if libtool supports shared libraries... " >&6; }
  9928. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
  9929. $as_echo "$can_build_shared" >&6; }
  9930. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
  9931. $as_echo_n "checking whether to build shared libraries... " >&6; }
  9932. test "$can_build_shared" = "no" && enable_shared=no
  9933. # On AIX, shared libraries and static libraries use the same namespace, and
  9934. # are all built from PIC.
  9935. case $host_os in
  9936. aix3*)
  9937. test "$enable_shared" = yes && enable_static=no
  9938. if test -n "$RANLIB"; then
  9939. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  9940. postinstall_cmds='$RANLIB $lib'
  9941. fi
  9942. ;;
  9943. aix[4-9]*)
  9944. if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  9945. test "$enable_shared" = yes && enable_static=no
  9946. fi
  9947. ;;
  9948. esac
  9949. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
  9950. $as_echo "$enable_shared" >&6; }
  9951. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
  9952. $as_echo_n "checking whether to build static libraries... " >&6; }
  9953. # Make sure either enable_shared or enable_static is yes.
  9954. test "$enable_shared" = yes || enable_static=yes
  9955. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
  9956. $as_echo "$enable_static" >&6; }
  9957. fi
  9958. ac_ext=c
  9959. ac_cpp='$CPP $CPPFLAGS'
  9960. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  9961. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  9962. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  9963. CC="$lt_save_CC"
  9964. ac_config_commands="$ac_config_commands libtool"
  9965. # Only expand once:
  9966. CFLAG_VISIBILITY=
  9967. HAVE_VISIBILITY=0
  9968. if test -n "$GCC"; then
  9969. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the -Werror option is usable" >&5
  9970. $as_echo_n "checking whether the -Werror option is usable... " >&6; }
  9971. if ${gl_cv_cc_vis_werror+:} false; then :
  9972. $as_echo_n "(cached) " >&6
  9973. else
  9974. gl_save_CFLAGS="$CFLAGS"
  9975. CFLAGS="$CFLAGS -Werror"
  9976. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9977. /* end confdefs.h. */
  9978. int
  9979. main ()
  9980. {
  9981. ;
  9982. return 0;
  9983. }
  9984. _ACEOF
  9985. if ac_fn_c_try_compile "$LINENO"; then :
  9986. gl_cv_cc_vis_werror=yes
  9987. else
  9988. gl_cv_cc_vis_werror=no
  9989. fi
  9990. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9991. CFLAGS="$gl_save_CFLAGS"
  9992. fi
  9993. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_vis_werror" >&5
  9994. $as_echo "$gl_cv_cc_vis_werror" >&6; }
  9995. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for simple visibility declarations" >&5
  9996. $as_echo_n "checking for simple visibility declarations... " >&6; }
  9997. if ${gl_cv_cc_visibility+:} false; then :
  9998. $as_echo_n "(cached) " >&6
  9999. else
  10000. gl_save_CFLAGS="$CFLAGS"
  10001. CFLAGS="$CFLAGS -fvisibility=hidden"
  10002. if test $gl_cv_cc_vis_werror = yes; then
  10003. CFLAGS="$CFLAGS -Werror"
  10004. fi
  10005. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10006. /* end confdefs.h. */
  10007. extern __attribute__((__visibility__("hidden"))) int hiddenvar;
  10008. extern __attribute__((__visibility__("default"))) int exportedvar;
  10009. extern __attribute__((__visibility__("hidden"))) int hiddenfunc (void);
  10010. extern __attribute__((__visibility__("default"))) int exportedfunc (void);
  10011. void dummyfunc (void) {}
  10012. int
  10013. main ()
  10014. {
  10015. ;
  10016. return 0;
  10017. }
  10018. _ACEOF
  10019. if ac_fn_c_try_compile "$LINENO"; then :
  10020. gl_cv_cc_visibility=yes
  10021. else
  10022. gl_cv_cc_visibility=no
  10023. fi
  10024. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10025. CFLAGS="$gl_save_CFLAGS"
  10026. fi
  10027. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_visibility" >&5
  10028. $as_echo "$gl_cv_cc_visibility" >&6; }
  10029. if test $gl_cv_cc_visibility = yes; then
  10030. CFLAG_VISIBILITY="-fvisibility=hidden"
  10031. HAVE_VISIBILITY=1
  10032. fi
  10033. fi
  10034. cat >>confdefs.h <<_ACEOF
  10035. #define HAVE_VISIBILITY $HAVE_VISIBILITY
  10036. _ACEOF
  10037. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  10038. $as_echo_n "checking for ANSI C header files... " >&6; }
  10039. if ${ac_cv_header_stdc+:} false; then :
  10040. $as_echo_n "(cached) " >&6
  10041. else
  10042. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10043. /* end confdefs.h. */
  10044. #include <stdlib.h>
  10045. #include <stdarg.h>
  10046. #include <string.h>
  10047. #include <float.h>
  10048. int
  10049. main ()
  10050. {
  10051. ;
  10052. return 0;
  10053. }
  10054. _ACEOF
  10055. if ac_fn_c_try_compile "$LINENO"; then :
  10056. ac_cv_header_stdc=yes
  10057. else
  10058. ac_cv_header_stdc=no
  10059. fi
  10060. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10061. if test $ac_cv_header_stdc = yes; then
  10062. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  10063. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10064. /* end confdefs.h. */
  10065. #include <string.h>
  10066. _ACEOF
  10067. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  10068. $EGREP "memchr" >/dev/null 2>&1; then :
  10069. else
  10070. ac_cv_header_stdc=no
  10071. fi
  10072. rm -f conftest*
  10073. fi
  10074. if test $ac_cv_header_stdc = yes; then
  10075. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  10076. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10077. /* end confdefs.h. */
  10078. #include <stdlib.h>
  10079. _ACEOF
  10080. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  10081. $EGREP "free" >/dev/null 2>&1; then :
  10082. else
  10083. ac_cv_header_stdc=no
  10084. fi
  10085. rm -f conftest*
  10086. fi
  10087. if test $ac_cv_header_stdc = yes; then
  10088. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  10089. if test "$cross_compiling" = yes; then :
  10090. :
  10091. else
  10092. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10093. /* end confdefs.h. */
  10094. #include <ctype.h>
  10095. #include <stdlib.h>
  10096. #if ((' ' & 0x0FF) == 0x020)
  10097. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  10098. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  10099. #else
  10100. # define ISLOWER(c) \
  10101. (('a' <= (c) && (c) <= 'i') \
  10102. || ('j' <= (c) && (c) <= 'r') \
  10103. || ('s' <= (c) && (c) <= 'z'))
  10104. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  10105. #endif
  10106. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  10107. int
  10108. main ()
  10109. {
  10110. int i;
  10111. for (i = 0; i < 256; i++)
  10112. if (XOR (islower (i), ISLOWER (i))
  10113. || toupper (i) != TOUPPER (i))
  10114. return 2;
  10115. return 0;
  10116. }
  10117. _ACEOF
  10118. if ac_fn_c_try_run "$LINENO"; then :
  10119. else
  10120. ac_cv_header_stdc=no
  10121. fi
  10122. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  10123. conftest.$ac_objext conftest.beam conftest.$ac_ext
  10124. fi
  10125. fi
  10126. fi
  10127. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  10128. $as_echo "$ac_cv_header_stdc" >&6; }
  10129. if test $ac_cv_header_stdc = yes; then
  10130. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  10131. fi
  10132. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/types.h defines makedev" >&5
  10133. $as_echo_n "checking whether sys/types.h defines makedev... " >&6; }
  10134. if ${ac_cv_header_sys_types_h_makedev+:} false; then :
  10135. $as_echo_n "(cached) " >&6
  10136. else
  10137. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10138. /* end confdefs.h. */
  10139. #include <sys/types.h>
  10140. int
  10141. main ()
  10142. {
  10143. return makedev(0, 0);
  10144. ;
  10145. return 0;
  10146. }
  10147. _ACEOF
  10148. if ac_fn_c_try_link "$LINENO"; then :
  10149. ac_cv_header_sys_types_h_makedev=yes
  10150. else
  10151. ac_cv_header_sys_types_h_makedev=no
  10152. fi
  10153. rm -f core conftest.err conftest.$ac_objext \
  10154. conftest$ac_exeext conftest.$ac_ext
  10155. fi
  10156. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_types_h_makedev" >&5
  10157. $as_echo "$ac_cv_header_sys_types_h_makedev" >&6; }
  10158. if test $ac_cv_header_sys_types_h_makedev = no; then
  10159. ac_fn_c_check_header_mongrel "$LINENO" "sys/mkdev.h" "ac_cv_header_sys_mkdev_h" "$ac_includes_default"
  10160. if test "x$ac_cv_header_sys_mkdev_h" = xyes; then :
  10161. $as_echo "#define MAJOR_IN_MKDEV 1" >>confdefs.h
  10162. fi
  10163. if test $ac_cv_header_sys_mkdev_h = no; then
  10164. ac_fn_c_check_header_mongrel "$LINENO" "sys/sysmacros.h" "ac_cv_header_sys_sysmacros_h" "$ac_includes_default"
  10165. if test "x$ac_cv_header_sys_sysmacros_h" = xyes; then :
  10166. $as_echo "#define MAJOR_IN_SYSMACROS 1" >>confdefs.h
  10167. fi
  10168. fi
  10169. fi
  10170. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
  10171. $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
  10172. if ${ac_cv_header_sys_wait_h+:} false; then :
  10173. $as_echo_n "(cached) " >&6
  10174. else
  10175. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10176. /* end confdefs.h. */
  10177. #include <sys/types.h>
  10178. #include <sys/wait.h>
  10179. #ifndef WEXITSTATUS
  10180. # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
  10181. #endif
  10182. #ifndef WIFEXITED
  10183. # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
  10184. #endif
  10185. int
  10186. main ()
  10187. {
  10188. int s;
  10189. wait (&s);
  10190. s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
  10191. ;
  10192. return 0;
  10193. }
  10194. _ACEOF
  10195. if ac_fn_c_try_compile "$LINENO"; then :
  10196. ac_cv_header_sys_wait_h=yes
  10197. else
  10198. ac_cv_header_sys_wait_h=no
  10199. fi
  10200. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10201. fi
  10202. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
  10203. $as_echo "$ac_cv_header_sys_wait_h" >&6; }
  10204. if test $ac_cv_header_sys_wait_h = yes; then
  10205. $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
  10206. fi
  10207. for ac_header in stdint.h fcntl.h locale.h stdint.h inttypes.h unistd.h
  10208. do :
  10209. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  10210. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  10211. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  10212. cat >>confdefs.h <<_ACEOF
  10213. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  10214. _ACEOF
  10215. fi
  10216. done
  10217. for ac_header in stddef.h utime.h wchar.h wctype.h limits.h
  10218. do :
  10219. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  10220. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  10221. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  10222. cat >>confdefs.h <<_ACEOF
  10223. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  10224. _ACEOF
  10225. fi
  10226. done
  10227. for ac_header in getopt.h err.h
  10228. do :
  10229. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  10230. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  10231. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  10232. cat >>confdefs.h <<_ACEOF
  10233. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  10234. _ACEOF
  10235. fi
  10236. done
  10237. for ac_header in sys/mman.h sys/stat.h sys/types.h sys/utime.h sys/time.h
  10238. do :
  10239. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  10240. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  10241. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  10242. cat >>confdefs.h <<_ACEOF
  10243. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  10244. _ACEOF
  10245. fi
  10246. done
  10247. for ac_header in zlib.h
  10248. do :
  10249. ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
  10250. if test "x$ac_cv_header_zlib_h" = xyes; then :
  10251. cat >>confdefs.h <<_ACEOF
  10252. #define HAVE_ZLIB_H 1
  10253. _ACEOF
  10254. fi
  10255. done
  10256. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
  10257. $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
  10258. if ${ac_cv_c_const+:} false; then :
  10259. $as_echo_n "(cached) " >&6
  10260. else
  10261. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10262. /* end confdefs.h. */
  10263. int
  10264. main ()
  10265. {
  10266. #ifndef __cplusplus
  10267. /* Ultrix mips cc rejects this sort of thing. */
  10268. typedef int charset[2];
  10269. const charset cs = { 0, 0 };
  10270. /* SunOS 4.1.1 cc rejects this. */
  10271. char const *const *pcpcc;
  10272. char **ppc;
  10273. /* NEC SVR4.0.2 mips cc rejects this. */
  10274. struct point {int x, y;};
  10275. static struct point const zero = {0,0};
  10276. /* AIX XL C 1.02.0.0 rejects this.
  10277. It does not let you subtract one const X* pointer from another in
  10278. an arm of an if-expression whose if-part is not a constant
  10279. expression */
  10280. const char *g = "string";
  10281. pcpcc = &g + (g ? g-g : 0);
  10282. /* HPUX 7.0 cc rejects these. */
  10283. ++pcpcc;
  10284. ppc = (char**) pcpcc;
  10285. pcpcc = (char const *const *) ppc;
  10286. { /* SCO 3.2v4 cc rejects this sort of thing. */
  10287. char tx;
  10288. char *t = &tx;
  10289. char const *s = 0 ? (char *) 0 : (char const *) 0;
  10290. *t++ = 0;
  10291. if (s) return 0;
  10292. }
  10293. { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
  10294. int x[] = {25, 17};
  10295. const int *foo = &x[0];
  10296. ++foo;
  10297. }
  10298. { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  10299. typedef const int *iptr;
  10300. iptr p = 0;
  10301. ++p;
  10302. }
  10303. { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
  10304. "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  10305. struct s { int j; const int *ap[3]; } bx;
  10306. struct s *b = &bx; b->j = 5;
  10307. }
  10308. { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  10309. const int foo = 10;
  10310. if (!foo) return 0;
  10311. }
  10312. return !cs[0] && !zero.x;
  10313. #endif
  10314. ;
  10315. return 0;
  10316. }
  10317. _ACEOF
  10318. if ac_fn_c_try_compile "$LINENO"; then :
  10319. ac_cv_c_const=yes
  10320. else
  10321. ac_cv_c_const=no
  10322. fi
  10323. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10324. fi
  10325. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
  10326. $as_echo "$ac_cv_c_const" >&6; }
  10327. if test $ac_cv_c_const = no; then
  10328. $as_echo "#define const /**/" >>confdefs.h
  10329. fi
  10330. ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
  10331. if test "x$ac_cv_type_off_t" = xyes; then :
  10332. else
  10333. cat >>confdefs.h <<_ACEOF
  10334. #define off_t long int
  10335. _ACEOF
  10336. fi
  10337. ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
  10338. if test "x$ac_cv_type_size_t" = xyes; then :
  10339. else
  10340. cat >>confdefs.h <<_ACEOF
  10341. #define size_t unsigned int
  10342. _ACEOF
  10343. fi
  10344. ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default"
  10345. if test "x$ac_cv_member_struct_stat_st_rdev" = xyes; then :
  10346. cat >>confdefs.h <<_ACEOF
  10347. #define HAVE_STRUCT_STAT_ST_RDEV 1
  10348. _ACEOF
  10349. fi
  10350. ac_fn_c_check_member "$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "$ac_includes_default"
  10351. if test "x$ac_cv_member_struct_tm_tm_gmtoff" = xyes; then :
  10352. cat >>confdefs.h <<_ACEOF
  10353. #define HAVE_STRUCT_TM_TM_GMTOFF 1
  10354. _ACEOF
  10355. fi
  10356. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
  10357. $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
  10358. if ${ac_cv_struct_tm+:} false; then :
  10359. $as_echo_n "(cached) " >&6
  10360. else
  10361. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10362. /* end confdefs.h. */
  10363. #include <sys/types.h>
  10364. #include <time.h>
  10365. int
  10366. main ()
  10367. {
  10368. struct tm tm;
  10369. int *p = &tm.tm_sec;
  10370. return !p;
  10371. ;
  10372. return 0;
  10373. }
  10374. _ACEOF
  10375. if ac_fn_c_try_compile "$LINENO"; then :
  10376. ac_cv_struct_tm=time.h
  10377. else
  10378. ac_cv_struct_tm=sys/time.h
  10379. fi
  10380. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10381. fi
  10382. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
  10383. $as_echo "$ac_cv_struct_tm" >&6; }
  10384. if test $ac_cv_struct_tm = sys/time.h; then
  10385. $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
  10386. fi
  10387. ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
  10388. #include <$ac_cv_struct_tm>
  10389. "
  10390. if test "x$ac_cv_member_struct_tm_tm_zone" = xyes; then :
  10391. cat >>confdefs.h <<_ACEOF
  10392. #define HAVE_STRUCT_TM_TM_ZONE 1
  10393. _ACEOF
  10394. fi
  10395. if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
  10396. $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
  10397. else
  10398. ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
  10399. "
  10400. if test "x$ac_cv_have_decl_tzname" = xyes; then :
  10401. ac_have_decl=1
  10402. else
  10403. ac_have_decl=0
  10404. fi
  10405. cat >>confdefs.h <<_ACEOF
  10406. #define HAVE_DECL_TZNAME $ac_have_decl
  10407. _ACEOF
  10408. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
  10409. $as_echo_n "checking for tzname... " >&6; }
  10410. if ${ac_cv_var_tzname+:} false; then :
  10411. $as_echo_n "(cached) " >&6
  10412. else
  10413. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10414. /* end confdefs.h. */
  10415. #include <time.h>
  10416. #if !HAVE_DECL_TZNAME
  10417. extern char *tzname[];
  10418. #endif
  10419. int
  10420. main ()
  10421. {
  10422. return tzname[0][0];
  10423. ;
  10424. return 0;
  10425. }
  10426. _ACEOF
  10427. if ac_fn_c_try_link "$LINENO"; then :
  10428. ac_cv_var_tzname=yes
  10429. else
  10430. ac_cv_var_tzname=no
  10431. fi
  10432. rm -f core conftest.err conftest.$ac_objext \
  10433. conftest$ac_exeext conftest.$ac_ext
  10434. fi
  10435. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
  10436. $as_echo "$ac_cv_var_tzname" >&6; }
  10437. if test $ac_cv_var_tzname = yes; then
  10438. $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
  10439. fi
  10440. fi
  10441. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tm_zone in struct tm" >&5
  10442. $as_echo_n "checking for tm_zone in struct tm... " >&6; }
  10443. if ${ac_cv_struct_tm_zone+:} false; then :
  10444. $as_echo_n "(cached) " >&6
  10445. else
  10446. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10447. /* end confdefs.h. */
  10448. #include <sys/types.h>
  10449. #include <$ac_cv_struct_tm>
  10450. int
  10451. main ()
  10452. {
  10453. struct tm tm; tm.tm_zone;
  10454. ;
  10455. return 0;
  10456. }
  10457. _ACEOF
  10458. if ac_fn_c_try_compile "$LINENO"; then :
  10459. ac_cv_struct_tm_zone=yes
  10460. else
  10461. ac_cv_struct_tm_zone=no
  10462. fi
  10463. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10464. fi
  10465. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm_zone" >&5
  10466. $as_echo "$ac_cv_struct_tm_zone" >&6; }
  10467. if test "$ac_cv_struct_tm_zone" = yes; then
  10468. $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
  10469. fi
  10470. # On SGI, apparently tzname is a #define, but that's ok, AC_CHECK_DECL will
  10471. # consider it declared and we won't give our own extern.
  10472. ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
  10473. "
  10474. if test "x$ac_cv_have_decl_tzname" = xyes; then :
  10475. ac_have_decl=1
  10476. else
  10477. ac_have_decl=0
  10478. fi
  10479. cat >>confdefs.h <<_ACEOF
  10480. #define HAVE_DECL_TZNAME $ac_have_decl
  10481. _ACEOF
  10482. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
  10483. $as_echo_n "checking for tzname... " >&6; }
  10484. if ${ac_cv_var_tzname+:} false; then :
  10485. $as_echo_n "(cached) " >&6
  10486. else
  10487. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10488. /* end confdefs.h. */
  10489. #include <time.h>
  10490. #if !HAVE_DECL_TZNAME
  10491. extern char *tzname[];
  10492. #endif
  10493. int
  10494. main ()
  10495. {
  10496. return tzname[0][0];
  10497. ;
  10498. return 0;
  10499. }
  10500. _ACEOF
  10501. if ac_fn_c_try_link "$LINENO"; then :
  10502. ac_cv_var_tzname=yes
  10503. else
  10504. ac_cv_var_tzname=no
  10505. fi
  10506. rm -f core conftest.err conftest.$ac_objext \
  10507. conftest$ac_exeext conftest.$ac_ext
  10508. fi
  10509. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
  10510. $as_echo "$ac_cv_var_tzname" >&6; }
  10511. if test $ac_cv_var_tzname = yes; then
  10512. $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
  10513. fi
  10514. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tm_isdst in struct tm" >&5
  10515. $as_echo_n "checking for tm_isdst in struct tm... " >&6; }
  10516. if ${ac_cv_struct_tm_isdst+:} false; then :
  10517. $as_echo_n "(cached) " >&6
  10518. else
  10519. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10520. /* end confdefs.h. */
  10521. #include <sys/types.h>
  10522. #include <$ac_cv_struct_tm>
  10523. int
  10524. main ()
  10525. {
  10526. struct tm tm; tm.tm_isdst;
  10527. ;
  10528. return 0;
  10529. }
  10530. _ACEOF
  10531. if ac_fn_c_try_compile "$LINENO"; then :
  10532. ac_cv_struct_tm_isdst=yes
  10533. else
  10534. ac_cv_struct_tm_isdst=no
  10535. fi
  10536. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10537. fi
  10538. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm_isdst" >&5
  10539. $as_echo "$ac_cv_struct_tm_isdst" >&6; }
  10540. if test "$ac_cv_struct_tm_isdst" = yes; then
  10541. $as_echo "#define HAVE_TM_ISDST 1" >>confdefs.h
  10542. fi
  10543. ac_fn_c_check_decl "$LINENO" "daylight" "ac_cv_have_decl_daylight" "#include <time.h>
  10544. "
  10545. if test "x$ac_cv_have_decl_daylight" = xyes; then :
  10546. ac_have_decl=1
  10547. else
  10548. ac_have_decl=0
  10549. fi
  10550. cat >>confdefs.h <<_ACEOF
  10551. #define HAVE_DECL_DAYLIGHT $ac_have_decl
  10552. _ACEOF
  10553. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for daylight" >&5
  10554. $as_echo_n "checking for daylight... " >&6; }
  10555. if ${ac_cv_var_daylight+:} false; then :
  10556. $as_echo_n "(cached) " >&6
  10557. else
  10558. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10559. /* end confdefs.h. */
  10560. #include <time.h>
  10561. #if !HAVE_DECL_DAYLIGHT
  10562. extern int daylight;
  10563. #endif
  10564. int
  10565. main ()
  10566. {
  10567. atoi(daylight);
  10568. ;
  10569. return 0;
  10570. }
  10571. _ACEOF
  10572. if ac_fn_c_try_link "$LINENO"; then :
  10573. ac_cv_var_daylight=yes
  10574. else
  10575. ac_cv_var_daylight=no
  10576. fi
  10577. rm -f core conftest.err conftest.$ac_objext \
  10578. conftest$ac_exeext conftest.$ac_ext
  10579. fi
  10580. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_daylight" >&5
  10581. $as_echo "$ac_cv_var_daylight" >&6; }
  10582. if test $ac_cv_var_daylight = yes; then
  10583. $as_echo "#define HAVE_DAYLIGHT 1" >>confdefs.h
  10584. fi
  10585. # Check whether --enable-largefile was given.
  10586. if test "${enable_largefile+set}" = set; then :
  10587. enableval=$enable_largefile;
  10588. fi
  10589. if test "$enable_largefile" != no; then
  10590. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
  10591. $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
  10592. if ${ac_cv_sys_largefile_CC+:} false; then :
  10593. $as_echo_n "(cached) " >&6
  10594. else
  10595. ac_cv_sys_largefile_CC=no
  10596. if test "$GCC" != yes; then
  10597. ac_save_CC=$CC
  10598. while :; do
  10599. # IRIX 6.2 and later do not support large files by default,
  10600. # so use the C compiler's -n32 option if that helps.
  10601. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10602. /* end confdefs.h. */
  10603. #include <sys/types.h>
  10604. /* Check that off_t can represent 2**63 - 1 correctly.
  10605. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  10606. since some C++ compilers masquerading as C compilers
  10607. incorrectly reject 9223372036854775807. */
  10608. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  10609. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  10610. && LARGE_OFF_T % 2147483647 == 1)
  10611. ? 1 : -1];
  10612. int
  10613. main ()
  10614. {
  10615. ;
  10616. return 0;
  10617. }
  10618. _ACEOF
  10619. if ac_fn_c_try_compile "$LINENO"; then :
  10620. break
  10621. fi
  10622. rm -f core conftest.err conftest.$ac_objext
  10623. CC="$CC -n32"
  10624. if ac_fn_c_try_compile "$LINENO"; then :
  10625. ac_cv_sys_largefile_CC=' -n32'; break
  10626. fi
  10627. rm -f core conftest.err conftest.$ac_objext
  10628. break
  10629. done
  10630. CC=$ac_save_CC
  10631. rm -f conftest.$ac_ext
  10632. fi
  10633. fi
  10634. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
  10635. $as_echo "$ac_cv_sys_largefile_CC" >&6; }
  10636. if test "$ac_cv_sys_largefile_CC" != no; then
  10637. CC=$CC$ac_cv_sys_largefile_CC
  10638. fi
  10639. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
  10640. $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
  10641. if ${ac_cv_sys_file_offset_bits+:} false; then :
  10642. $as_echo_n "(cached) " >&6
  10643. else
  10644. while :; do
  10645. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10646. /* end confdefs.h. */
  10647. #include <sys/types.h>
  10648. /* Check that off_t can represent 2**63 - 1 correctly.
  10649. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  10650. since some C++ compilers masquerading as C compilers
  10651. incorrectly reject 9223372036854775807. */
  10652. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  10653. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  10654. && LARGE_OFF_T % 2147483647 == 1)
  10655. ? 1 : -1];
  10656. int
  10657. main ()
  10658. {
  10659. ;
  10660. return 0;
  10661. }
  10662. _ACEOF
  10663. if ac_fn_c_try_compile "$LINENO"; then :
  10664. ac_cv_sys_file_offset_bits=no; break
  10665. fi
  10666. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10667. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10668. /* end confdefs.h. */
  10669. #define _FILE_OFFSET_BITS 64
  10670. #include <sys/types.h>
  10671. /* Check that off_t can represent 2**63 - 1 correctly.
  10672. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  10673. since some C++ compilers masquerading as C compilers
  10674. incorrectly reject 9223372036854775807. */
  10675. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  10676. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  10677. && LARGE_OFF_T % 2147483647 == 1)
  10678. ? 1 : -1];
  10679. int
  10680. main ()
  10681. {
  10682. ;
  10683. return 0;
  10684. }
  10685. _ACEOF
  10686. if ac_fn_c_try_compile "$LINENO"; then :
  10687. ac_cv_sys_file_offset_bits=64; break
  10688. fi
  10689. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10690. ac_cv_sys_file_offset_bits=unknown
  10691. break
  10692. done
  10693. fi
  10694. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
  10695. $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
  10696. case $ac_cv_sys_file_offset_bits in #(
  10697. no | unknown) ;;
  10698. *)
  10699. cat >>confdefs.h <<_ACEOF
  10700. #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
  10701. _ACEOF
  10702. ;;
  10703. esac
  10704. rm -rf conftest*
  10705. if test $ac_cv_sys_file_offset_bits = unknown; then
  10706. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
  10707. $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
  10708. if ${ac_cv_sys_large_files+:} false; then :
  10709. $as_echo_n "(cached) " >&6
  10710. else
  10711. while :; do
  10712. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10713. /* end confdefs.h. */
  10714. #include <sys/types.h>
  10715. /* Check that off_t can represent 2**63 - 1 correctly.
  10716. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  10717. since some C++ compilers masquerading as C compilers
  10718. incorrectly reject 9223372036854775807. */
  10719. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  10720. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  10721. && LARGE_OFF_T % 2147483647 == 1)
  10722. ? 1 : -1];
  10723. int
  10724. main ()
  10725. {
  10726. ;
  10727. return 0;
  10728. }
  10729. _ACEOF
  10730. if ac_fn_c_try_compile "$LINENO"; then :
  10731. ac_cv_sys_large_files=no; break
  10732. fi
  10733. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10734. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10735. /* end confdefs.h. */
  10736. #define _LARGE_FILES 1
  10737. #include <sys/types.h>
  10738. /* Check that off_t can represent 2**63 - 1 correctly.
  10739. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  10740. since some C++ compilers masquerading as C compilers
  10741. incorrectly reject 9223372036854775807. */
  10742. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  10743. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  10744. && LARGE_OFF_T % 2147483647 == 1)
  10745. ? 1 : -1];
  10746. int
  10747. main ()
  10748. {
  10749. ;
  10750. return 0;
  10751. }
  10752. _ACEOF
  10753. if ac_fn_c_try_compile "$LINENO"; then :
  10754. ac_cv_sys_large_files=1; break
  10755. fi
  10756. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10757. ac_cv_sys_large_files=unknown
  10758. break
  10759. done
  10760. fi
  10761. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
  10762. $as_echo "$ac_cv_sys_large_files" >&6; }
  10763. case $ac_cv_sys_large_files in #(
  10764. no | unknown) ;;
  10765. *)
  10766. cat >>confdefs.h <<_ACEOF
  10767. #define _LARGE_FILES $ac_cv_sys_large_files
  10768. _ACEOF
  10769. ;;
  10770. esac
  10771. rm -rf conftest*
  10772. fi
  10773. fi
  10774. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
  10775. $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
  10776. if ${ac_cv_sys_largefile_source+:} false; then :
  10777. $as_echo_n "(cached) " >&6
  10778. else
  10779. while :; do
  10780. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10781. /* end confdefs.h. */
  10782. #include <sys/types.h> /* for off_t */
  10783. #include <stdio.h>
  10784. int
  10785. main ()
  10786. {
  10787. int (*fp) (FILE *, off_t, int) = fseeko;
  10788. return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
  10789. ;
  10790. return 0;
  10791. }
  10792. _ACEOF
  10793. if ac_fn_c_try_link "$LINENO"; then :
  10794. ac_cv_sys_largefile_source=no; break
  10795. fi
  10796. rm -f core conftest.err conftest.$ac_objext \
  10797. conftest$ac_exeext conftest.$ac_ext
  10798. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10799. /* end confdefs.h. */
  10800. #define _LARGEFILE_SOURCE 1
  10801. #include <sys/types.h> /* for off_t */
  10802. #include <stdio.h>
  10803. int
  10804. main ()
  10805. {
  10806. int (*fp) (FILE *, off_t, int) = fseeko;
  10807. return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
  10808. ;
  10809. return 0;
  10810. }
  10811. _ACEOF
  10812. if ac_fn_c_try_link "$LINENO"; then :
  10813. ac_cv_sys_largefile_source=1; break
  10814. fi
  10815. rm -f core conftest.err conftest.$ac_objext \
  10816. conftest$ac_exeext conftest.$ac_ext
  10817. ac_cv_sys_largefile_source=unknown
  10818. break
  10819. done
  10820. fi
  10821. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
  10822. $as_echo "$ac_cv_sys_largefile_source" >&6; }
  10823. case $ac_cv_sys_largefile_source in #(
  10824. no | unknown) ;;
  10825. *)
  10826. cat >>confdefs.h <<_ACEOF
  10827. #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
  10828. _ACEOF
  10829. ;;
  10830. esac
  10831. rm -rf conftest*
  10832. # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
  10833. # in glibc 2.1.3, but that breaks too many other things.
  10834. # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
  10835. if test $ac_cv_sys_largefile_source != unknown; then
  10836. $as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
  10837. fi
  10838. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
  10839. $as_echo_n "checking for mbstate_t... " >&6; }
  10840. if ${ac_cv_type_mbstate_t+:} false; then :
  10841. $as_echo_n "(cached) " >&6
  10842. else
  10843. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10844. /* end confdefs.h. */
  10845. $ac_includes_default
  10846. # include <wchar.h>
  10847. int
  10848. main ()
  10849. {
  10850. mbstate_t x; return sizeof x;
  10851. ;
  10852. return 0;
  10853. }
  10854. _ACEOF
  10855. if ac_fn_c_try_compile "$LINENO"; then :
  10856. ac_cv_type_mbstate_t=yes
  10857. else
  10858. ac_cv_type_mbstate_t=no
  10859. fi
  10860. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10861. fi
  10862. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5
  10863. $as_echo "$ac_cv_type_mbstate_t" >&6; }
  10864. if test $ac_cv_type_mbstate_t = yes; then
  10865. $as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
  10866. else
  10867. $as_echo "#define mbstate_t int" >>confdefs.h
  10868. fi
  10869. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct option in getopt" >&5
  10870. $as_echo_n "checking for struct option in getopt... " >&6; }
  10871. if ${ac_cv_struct_option_getopt_h+:} false; then :
  10872. $as_echo_n "(cached) " >&6
  10873. else
  10874. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10875. /* end confdefs.h. */
  10876. #include <getopt.h>
  10877. int
  10878. main ()
  10879. {
  10880. struct option op; op.name;
  10881. ;
  10882. return 0;
  10883. }
  10884. _ACEOF
  10885. if ac_fn_c_try_compile "$LINENO"; then :
  10886. ac_cv_struct_option_getopt_h=yes
  10887. else
  10888. ac_cv_struct_option_getopt_h=no
  10889. fi
  10890. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10891. fi
  10892. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_option_getopt_h" >&5
  10893. $as_echo "$ac_cv_struct_option_getopt_h" >&6; }
  10894. if test "$ac_cv_struct_option_getopt_h" = yes; then
  10895. $as_echo "#define HAVE_STRUCT_OPTION 1" >>confdefs.h
  10896. fi
  10897. ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
  10898. if test "x$ac_cv_type_pid_t" = xyes; then :
  10899. else
  10900. cat >>confdefs.h <<_ACEOF
  10901. #define pid_t int
  10902. _ACEOF
  10903. fi
  10904. ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
  10905. case $ac_cv_c_uint8_t in #(
  10906. no|yes) ;; #(
  10907. *)
  10908. $as_echo "#define _UINT8_T 1" >>confdefs.h
  10909. cat >>confdefs.h <<_ACEOF
  10910. #define uint8_t $ac_cv_c_uint8_t
  10911. _ACEOF
  10912. ;;
  10913. esac
  10914. ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
  10915. case $ac_cv_c_uint16_t in #(
  10916. no|yes) ;; #(
  10917. *)
  10918. cat >>confdefs.h <<_ACEOF
  10919. #define uint16_t $ac_cv_c_uint16_t
  10920. _ACEOF
  10921. ;;
  10922. esac
  10923. ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
  10924. case $ac_cv_c_uint32_t in #(
  10925. no|yes) ;; #(
  10926. *)
  10927. $as_echo "#define _UINT32_T 1" >>confdefs.h
  10928. cat >>confdefs.h <<_ACEOF
  10929. #define uint32_t $ac_cv_c_uint32_t
  10930. _ACEOF
  10931. ;;
  10932. esac
  10933. ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
  10934. case $ac_cv_c_int32_t in #(
  10935. no|yes) ;; #(
  10936. *)
  10937. cat >>confdefs.h <<_ACEOF
  10938. #define int32_t $ac_cv_c_int32_t
  10939. _ACEOF
  10940. ;;
  10941. esac
  10942. ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
  10943. case $ac_cv_c_uint64_t in #(
  10944. no|yes) ;; #(
  10945. *)
  10946. $as_echo "#define _UINT64_T 1" >>confdefs.h
  10947. cat >>confdefs.h <<_ACEOF
  10948. #define uint64_t $ac_cv_c_uint64_t
  10949. _ACEOF
  10950. ;;
  10951. esac
  10952. ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
  10953. case $ac_cv_c_int64_t in #(
  10954. no|yes) ;; #(
  10955. *)
  10956. cat >>confdefs.h <<_ACEOF
  10957. #define int64_t $ac_cv_c_int64_t
  10958. _ACEOF
  10959. ;;
  10960. esac
  10961. for ac_header in $ac_header_list
  10962. do :
  10963. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  10964. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  10965. "
  10966. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  10967. cat >>confdefs.h <<_ACEOF
  10968. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  10969. _ACEOF
  10970. fi
  10971. done
  10972. for ac_func in getpagesize
  10973. do :
  10974. ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
  10975. if test "x$ac_cv_func_getpagesize" = xyes; then :
  10976. cat >>confdefs.h <<_ACEOF
  10977. #define HAVE_GETPAGESIZE 1
  10978. _ACEOF
  10979. fi
  10980. done
  10981. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
  10982. $as_echo_n "checking for working mmap... " >&6; }
  10983. if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
  10984. $as_echo_n "(cached) " >&6
  10985. else
  10986. if test "$cross_compiling" = yes; then :
  10987. ac_cv_func_mmap_fixed_mapped=no
  10988. else
  10989. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10990. /* end confdefs.h. */
  10991. $ac_includes_default
  10992. /* malloc might have been renamed as rpl_malloc. */
  10993. #undef malloc
  10994. /* Thanks to Mike Haertel and Jim Avera for this test.
  10995. Here is a matrix of mmap possibilities:
  10996. mmap private not fixed
  10997. mmap private fixed at somewhere currently unmapped
  10998. mmap private fixed at somewhere already mapped
  10999. mmap shared not fixed
  11000. mmap shared fixed at somewhere currently unmapped
  11001. mmap shared fixed at somewhere already mapped
  11002. For private mappings, we should verify that changes cannot be read()
  11003. back from the file, nor mmap's back from the file at a different
  11004. address. (There have been systems where private was not correctly
  11005. implemented like the infamous i386 svr4.0, and systems where the
  11006. VM page cache was not coherent with the file system buffer cache
  11007. like early versions of FreeBSD and possibly contemporary NetBSD.)
  11008. For shared mappings, we should conversely verify that changes get
  11009. propagated back to all the places they're supposed to be.
  11010. Grep wants private fixed already mapped.
  11011. The main things grep needs to know about mmap are:
  11012. * does it exist and is it safe to write into the mmap'd area
  11013. * how to use it (BSD variants) */
  11014. #include <fcntl.h>
  11015. #include <sys/mman.h>
  11016. #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
  11017. char *malloc ();
  11018. #endif
  11019. /* This mess was copied from the GNU getpagesize.h. */
  11020. #ifndef HAVE_GETPAGESIZE
  11021. # ifdef _SC_PAGESIZE
  11022. # define getpagesize() sysconf(_SC_PAGESIZE)
  11023. # else /* no _SC_PAGESIZE */
  11024. # ifdef HAVE_SYS_PARAM_H
  11025. # include <sys/param.h>
  11026. # ifdef EXEC_PAGESIZE
  11027. # define getpagesize() EXEC_PAGESIZE
  11028. # else /* no EXEC_PAGESIZE */
  11029. # ifdef NBPG
  11030. # define getpagesize() NBPG * CLSIZE
  11031. # ifndef CLSIZE
  11032. # define CLSIZE 1
  11033. # endif /* no CLSIZE */
  11034. # else /* no NBPG */
  11035. # ifdef NBPC
  11036. # define getpagesize() NBPC
  11037. # else /* no NBPC */
  11038. # ifdef PAGESIZE
  11039. # define getpagesize() PAGESIZE
  11040. # endif /* PAGESIZE */
  11041. # endif /* no NBPC */
  11042. # endif /* no NBPG */
  11043. # endif /* no EXEC_PAGESIZE */
  11044. # else /* no HAVE_SYS_PARAM_H */
  11045. # define getpagesize() 8192 /* punt totally */
  11046. # endif /* no HAVE_SYS_PARAM_H */
  11047. # endif /* no _SC_PAGESIZE */
  11048. #endif /* no HAVE_GETPAGESIZE */
  11049. int
  11050. main ()
  11051. {
  11052. char *data, *data2, *data3;
  11053. const char *cdata2;
  11054. int i, pagesize;
  11055. int fd, fd2;
  11056. pagesize = getpagesize ();
  11057. /* First, make a file with some known garbage in it. */
  11058. data = (char *) malloc (pagesize);
  11059. if (!data)
  11060. return 1;
  11061. for (i = 0; i < pagesize; ++i)
  11062. *(data + i) = rand ();
  11063. umask (0);
  11064. fd = creat ("conftest.mmap", 0600);
  11065. if (fd < 0)
  11066. return 2;
  11067. if (write (fd, data, pagesize) != pagesize)
  11068. return 3;
  11069. close (fd);
  11070. /* Next, check that the tail of a page is zero-filled. File must have
  11071. non-zero length, otherwise we risk SIGBUS for entire page. */
  11072. fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
  11073. if (fd2 < 0)
  11074. return 4;
  11075. cdata2 = "";
  11076. if (write (fd2, cdata2, 1) != 1)
  11077. return 5;
  11078. data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
  11079. if (data2 == MAP_FAILED)
  11080. return 6;
  11081. for (i = 0; i < pagesize; ++i)
  11082. if (*(data2 + i))
  11083. return 7;
  11084. close (fd2);
  11085. if (munmap (data2, pagesize))
  11086. return 8;
  11087. /* Next, try to mmap the file at a fixed address which already has
  11088. something else allocated at it. If we can, also make sure that
  11089. we see the same garbage. */
  11090. fd = open ("conftest.mmap", O_RDWR);
  11091. if (fd < 0)
  11092. return 9;
  11093. if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
  11094. MAP_PRIVATE | MAP_FIXED, fd, 0L))
  11095. return 10;
  11096. for (i = 0; i < pagesize; ++i)
  11097. if (*(data + i) != *(data2 + i))
  11098. return 11;
  11099. /* Finally, make sure that changes to the mapped area do not
  11100. percolate back to the file as seen by read(). (This is a bug on
  11101. some variants of i386 svr4.0.) */
  11102. for (i = 0; i < pagesize; ++i)
  11103. *(data2 + i) = *(data2 + i) + 1;
  11104. data3 = (char *) malloc (pagesize);
  11105. if (!data3)
  11106. return 12;
  11107. if (read (fd, data3, pagesize) != pagesize)
  11108. return 13;
  11109. for (i = 0; i < pagesize; ++i)
  11110. if (*(data + i) != *(data3 + i))
  11111. return 14;
  11112. close (fd);
  11113. return 0;
  11114. }
  11115. _ACEOF
  11116. if ac_fn_c_try_run "$LINENO"; then :
  11117. ac_cv_func_mmap_fixed_mapped=yes
  11118. else
  11119. ac_cv_func_mmap_fixed_mapped=no
  11120. fi
  11121. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  11122. conftest.$ac_objext conftest.beam conftest.$ac_ext
  11123. fi
  11124. fi
  11125. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
  11126. $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
  11127. if test $ac_cv_func_mmap_fixed_mapped = yes; then
  11128. $as_echo "#define HAVE_MMAP 1" >>confdefs.h
  11129. fi
  11130. rm -f conftest.mmap conftest.txt
  11131. for ac_header in vfork.h
  11132. do :
  11133. ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
  11134. if test "x$ac_cv_header_vfork_h" = xyes; then :
  11135. cat >>confdefs.h <<_ACEOF
  11136. #define HAVE_VFORK_H 1
  11137. _ACEOF
  11138. fi
  11139. done
  11140. for ac_func in fork vfork
  11141. do :
  11142. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  11143. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  11144. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  11145. cat >>confdefs.h <<_ACEOF
  11146. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  11147. _ACEOF
  11148. fi
  11149. done
  11150. if test "x$ac_cv_func_fork" = xyes; then
  11151. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
  11152. $as_echo_n "checking for working fork... " >&6; }
  11153. if ${ac_cv_func_fork_works+:} false; then :
  11154. $as_echo_n "(cached) " >&6
  11155. else
  11156. if test "$cross_compiling" = yes; then :
  11157. ac_cv_func_fork_works=cross
  11158. else
  11159. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11160. /* end confdefs.h. */
  11161. $ac_includes_default
  11162. int
  11163. main ()
  11164. {
  11165. /* By Ruediger Kuhlmann. */
  11166. return fork () < 0;
  11167. ;
  11168. return 0;
  11169. }
  11170. _ACEOF
  11171. if ac_fn_c_try_run "$LINENO"; then :
  11172. ac_cv_func_fork_works=yes
  11173. else
  11174. ac_cv_func_fork_works=no
  11175. fi
  11176. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  11177. conftest.$ac_objext conftest.beam conftest.$ac_ext
  11178. fi
  11179. fi
  11180. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
  11181. $as_echo "$ac_cv_func_fork_works" >&6; }
  11182. else
  11183. ac_cv_func_fork_works=$ac_cv_func_fork
  11184. fi
  11185. if test "x$ac_cv_func_fork_works" = xcross; then
  11186. case $host in
  11187. *-*-amigaos* | *-*-msdosdjgpp*)
  11188. # Override, as these systems have only a dummy fork() stub
  11189. ac_cv_func_fork_works=no
  11190. ;;
  11191. *)
  11192. ac_cv_func_fork_works=yes
  11193. ;;
  11194. esac
  11195. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
  11196. $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
  11197. fi
  11198. ac_cv_func_vfork_works=$ac_cv_func_vfork
  11199. if test "x$ac_cv_func_vfork" = xyes; then
  11200. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
  11201. $as_echo_n "checking for working vfork... " >&6; }
  11202. if ${ac_cv_func_vfork_works+:} false; then :
  11203. $as_echo_n "(cached) " >&6
  11204. else
  11205. if test "$cross_compiling" = yes; then :
  11206. ac_cv_func_vfork_works=cross
  11207. else
  11208. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11209. /* end confdefs.h. */
  11210. /* Thanks to Paul Eggert for this test. */
  11211. $ac_includes_default
  11212. #include <sys/wait.h>
  11213. #ifdef HAVE_VFORK_H
  11214. # include <vfork.h>
  11215. #endif
  11216. /* On some sparc systems, changes by the child to local and incoming
  11217. argument registers are propagated back to the parent. The compiler
  11218. is told about this with #include <vfork.h>, but some compilers
  11219. (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
  11220. static variable whose address is put into a register that is
  11221. clobbered by the vfork. */
  11222. static void
  11223. #ifdef __cplusplus
  11224. sparc_address_test (int arg)
  11225. # else
  11226. sparc_address_test (arg) int arg;
  11227. #endif
  11228. {
  11229. static pid_t child;
  11230. if (!child) {
  11231. child = vfork ();
  11232. if (child < 0) {
  11233. perror ("vfork");
  11234. _exit(2);
  11235. }
  11236. if (!child) {
  11237. arg = getpid();
  11238. write(-1, "", 0);
  11239. _exit (arg);
  11240. }
  11241. }
  11242. }
  11243. int
  11244. main ()
  11245. {
  11246. pid_t parent = getpid ();
  11247. pid_t child;
  11248. sparc_address_test (0);
  11249. child = vfork ();
  11250. if (child == 0) {
  11251. /* Here is another test for sparc vfork register problems. This
  11252. test uses lots of local variables, at least as many local
  11253. variables as main has allocated so far including compiler
  11254. temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
  11255. 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
  11256. reuse the register of parent for one of the local variables,
  11257. since it will think that parent can't possibly be used any more
  11258. in this routine. Assigning to the local variable will thus
  11259. munge parent in the parent process. */
  11260. pid_t
  11261. p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
  11262. p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
  11263. /* Convince the compiler that p..p7 are live; otherwise, it might
  11264. use the same hardware register for all 8 local variables. */
  11265. if (p != p1 || p != p2 || p != p3 || p != p4
  11266. || p != p5 || p != p6 || p != p7)
  11267. _exit(1);
  11268. /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
  11269. from child file descriptors. If the child closes a descriptor
  11270. before it execs or exits, this munges the parent's descriptor
  11271. as well. Test for this by closing stdout in the child. */
  11272. _exit(close(fileno(stdout)) != 0);
  11273. } else {
  11274. int status;
  11275. struct stat st;
  11276. while (wait(&status) != child)
  11277. ;
  11278. return (
  11279. /* Was there some problem with vforking? */
  11280. child < 0
  11281. /* Did the child fail? (This shouldn't happen.) */
  11282. || status
  11283. /* Did the vfork/compiler bug occur? */
  11284. || parent != getpid()
  11285. /* Did the file descriptor bug occur? */
  11286. || fstat(fileno(stdout), &st) != 0
  11287. );
  11288. }
  11289. }
  11290. _ACEOF
  11291. if ac_fn_c_try_run "$LINENO"; then :
  11292. ac_cv_func_vfork_works=yes
  11293. else
  11294. ac_cv_func_vfork_works=no
  11295. fi
  11296. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  11297. conftest.$ac_objext conftest.beam conftest.$ac_ext
  11298. fi
  11299. fi
  11300. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
  11301. $as_echo "$ac_cv_func_vfork_works" >&6; }
  11302. fi;
  11303. if test "x$ac_cv_func_fork_works" = xcross; then
  11304. ac_cv_func_vfork_works=$ac_cv_func_vfork
  11305. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
  11306. $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
  11307. fi
  11308. if test "x$ac_cv_func_vfork_works" = xyes; then
  11309. $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
  11310. else
  11311. $as_echo "#define vfork fork" >>confdefs.h
  11312. fi
  11313. if test "x$ac_cv_func_fork_works" = xyes; then
  11314. $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
  11315. fi
  11316. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc and mbstate_t are properly declared" >&5
  11317. $as_echo_n "checking whether mbrtowc and mbstate_t are properly declared... " >&6; }
  11318. if ${ac_cv_func_mbrtowc+:} false; then :
  11319. $as_echo_n "(cached) " >&6
  11320. else
  11321. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11322. /* end confdefs.h. */
  11323. #include <wchar.h>
  11324. int
  11325. main ()
  11326. {
  11327. wchar_t wc;
  11328. char const s[] = "";
  11329. size_t n = 1;
  11330. mbstate_t state;
  11331. return ! (sizeof state && (mbrtowc) (&wc, s, n, &state));
  11332. ;
  11333. return 0;
  11334. }
  11335. _ACEOF
  11336. if ac_fn_c_try_link "$LINENO"; then :
  11337. ac_cv_func_mbrtowc=yes
  11338. else
  11339. ac_cv_func_mbrtowc=no
  11340. fi
  11341. rm -f core conftest.err conftest.$ac_objext \
  11342. conftest$ac_exeext conftest.$ac_ext
  11343. fi
  11344. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mbrtowc" >&5
  11345. $as_echo "$ac_cv_func_mbrtowc" >&6; }
  11346. if test $ac_cv_func_mbrtowc = yes; then
  11347. $as_echo "#define HAVE_MBRTOWC 1" >>confdefs.h
  11348. fi
  11349. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc compiler warnings" >&5
  11350. $as_echo_n "checking for gcc compiler warnings... " >&6; }
  11351. # Check whether --enable-warnings was given.
  11352. if test "${enable_warnings+set}" = set; then :
  11353. enableval=$enable_warnings; if test "${enableval}" = no -o "$GCC" = no; then
  11354. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11355. $as_echo "no" >&6; }
  11356. WARNINGS=
  11357. else
  11358. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  11359. $as_echo "yes" >&6; }
  11360. WARNINGS="-Wall -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith \
  11361. -Wmissing-declarations -Wredundant-decls -Wnested-externs \
  11362. -Wsign-compare -Wreturn-type -Wswitch -Wshadow \
  11363. -Wcast-qual -Wwrite-strings -Wextra -Wunused-parameter -Wformat=2"
  11364. fi
  11365. else
  11366. if test "$GCC" = yes; then
  11367. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  11368. $as_echo "yes" >&6; }
  11369. WARNINGS="-Wall -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith \
  11370. -Wmissing-declarations -Wredundant-decls -Wnested-externs \
  11371. -Wsign-compare -Wreturn-type -Wswitch -Wshadow \
  11372. -Wcast-qual -Wwrite-strings -Wextra -Wunused-parameter -Wformat=2"
  11373. else
  11374. WARNINGS=
  11375. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11376. $as_echo "no" >&6; }
  11377. fi
  11378. fi
  11379. for ac_func in strerror strndup strtoul mkstemp mkostemp utimes utime wcwidth strtof
  11380. do :
  11381. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  11382. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  11383. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  11384. cat >>confdefs.h <<_ACEOF
  11385. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  11386. _ACEOF
  11387. fi
  11388. done
  11389. ac_fn_c_check_func "$LINENO" "getopt_long" "ac_cv_func_getopt_long"
  11390. if test "x$ac_cv_func_getopt_long" = xyes; then :
  11391. $as_echo "#define HAVE_GETOPT_LONG 1" >>confdefs.h
  11392. else
  11393. case " $LIBOBJS " in
  11394. *" getopt_long.$ac_objext "* ) ;;
  11395. *) LIBOBJS="$LIBOBJS getopt_long.$ac_objext"
  11396. ;;
  11397. esac
  11398. fi
  11399. ac_fn_c_check_func "$LINENO" "asprintf" "ac_cv_func_asprintf"
  11400. if test "x$ac_cv_func_asprintf" = xyes; then :
  11401. $as_echo "#define HAVE_ASPRINTF 1" >>confdefs.h
  11402. else
  11403. case " $LIBOBJS " in
  11404. *" asprintf.$ac_objext "* ) ;;
  11405. *) LIBOBJS="$LIBOBJS asprintf.$ac_objext"
  11406. ;;
  11407. esac
  11408. fi
  11409. ac_fn_c_check_func "$LINENO" "vasprintf" "ac_cv_func_vasprintf"
  11410. if test "x$ac_cv_func_vasprintf" = xyes; then :
  11411. $as_echo "#define HAVE_VASPRINTF 1" >>confdefs.h
  11412. else
  11413. case " $LIBOBJS " in
  11414. *" vasprintf.$ac_objext "* ) ;;
  11415. *) LIBOBJS="$LIBOBJS vasprintf.$ac_objext"
  11416. ;;
  11417. esac
  11418. fi
  11419. ac_fn_c_check_func "$LINENO" "strlcpy" "ac_cv_func_strlcpy"
  11420. if test "x$ac_cv_func_strlcpy" = xyes; then :
  11421. $as_echo "#define HAVE_STRLCPY 1" >>confdefs.h
  11422. else
  11423. case " $LIBOBJS " in
  11424. *" strlcpy.$ac_objext "* ) ;;
  11425. *) LIBOBJS="$LIBOBJS strlcpy.$ac_objext"
  11426. ;;
  11427. esac
  11428. fi
  11429. ac_fn_c_check_func "$LINENO" "strlcat" "ac_cv_func_strlcat"
  11430. if test "x$ac_cv_func_strlcat" = xyes; then :
  11431. $as_echo "#define HAVE_STRLCAT 1" >>confdefs.h
  11432. else
  11433. case " $LIBOBJS " in
  11434. *" strlcat.$ac_objext "* ) ;;
  11435. *) LIBOBJS="$LIBOBJS strlcat.$ac_objext"
  11436. ;;
  11437. esac
  11438. fi
  11439. ac_fn_c_check_func "$LINENO" "getline" "ac_cv_func_getline"
  11440. if test "x$ac_cv_func_getline" = xyes; then :
  11441. $as_echo "#define HAVE_GETLINE 1" >>confdefs.h
  11442. else
  11443. case " $LIBOBJS " in
  11444. *" getline.$ac_objext "* ) ;;
  11445. *) LIBOBJS="$LIBOBJS getline.$ac_objext"
  11446. ;;
  11447. esac
  11448. fi
  11449. ac_fn_c_check_func "$LINENO" "ctime_r" "ac_cv_func_ctime_r"
  11450. if test "x$ac_cv_func_ctime_r" = xyes; then :
  11451. $as_echo "#define HAVE_CTIME_R 1" >>confdefs.h
  11452. else
  11453. case " $LIBOBJS " in
  11454. *" ctime_r.$ac_objext "* ) ;;
  11455. *) LIBOBJS="$LIBOBJS ctime_r.$ac_objext"
  11456. ;;
  11457. esac
  11458. fi
  11459. ac_fn_c_check_func "$LINENO" "asctime_r" "ac_cv_func_asctime_r"
  11460. if test "x$ac_cv_func_asctime_r" = xyes; then :
  11461. $as_echo "#define HAVE_ASCTIME_R 1" >>confdefs.h
  11462. else
  11463. case " $LIBOBJS " in
  11464. *" asctime_r.$ac_objext "* ) ;;
  11465. *) LIBOBJS="$LIBOBJS asctime_r.$ac_objext"
  11466. ;;
  11467. esac
  11468. fi
  11469. ac_fn_c_check_func "$LINENO" "pread" "ac_cv_func_pread"
  11470. if test "x$ac_cv_func_pread" = xyes; then :
  11471. $as_echo "#define HAVE_PREAD 1" >>confdefs.h
  11472. else
  11473. case " $LIBOBJS " in
  11474. *" pread.$ac_objext "* ) ;;
  11475. *) LIBOBJS="$LIBOBJS pread.$ac_objext"
  11476. ;;
  11477. esac
  11478. fi
  11479. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gzopen in -lz" >&5
  11480. $as_echo_n "checking for gzopen in -lz... " >&6; }
  11481. if ${ac_cv_lib_z_gzopen+:} false; then :
  11482. $as_echo_n "(cached) " >&6
  11483. else
  11484. ac_check_lib_save_LIBS=$LIBS
  11485. LIBS="-lz $LIBS"
  11486. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11487. /* end confdefs.h. */
  11488. /* Override any GCC internal prototype to avoid an error.
  11489. Use char because int might match the return type of a GCC
  11490. builtin and then its argument prototype would still apply. */
  11491. #ifdef __cplusplus
  11492. extern "C"
  11493. #endif
  11494. char gzopen ();
  11495. int
  11496. main ()
  11497. {
  11498. return gzopen ();
  11499. ;
  11500. return 0;
  11501. }
  11502. _ACEOF
  11503. if ac_fn_c_try_link "$LINENO"; then :
  11504. ac_cv_lib_z_gzopen=yes
  11505. else
  11506. ac_cv_lib_z_gzopen=no
  11507. fi
  11508. rm -f core conftest.err conftest.$ac_objext \
  11509. conftest$ac_exeext conftest.$ac_ext
  11510. LIBS=$ac_check_lib_save_LIBS
  11511. fi
  11512. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gzopen" >&5
  11513. $as_echo "$ac_cv_lib_z_gzopen" >&6; }
  11514. if test "x$ac_cv_lib_z_gzopen" = xyes; then :
  11515. cat >>confdefs.h <<_ACEOF
  11516. #define HAVE_LIBZ 1
  11517. _ACEOF
  11518. LIBS="-lz $LIBS"
  11519. fi
  11520. if test "$MINGW" = 1; then
  11521. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for regexec in -lgnurx" >&5
  11522. $as_echo_n "checking for regexec in -lgnurx... " >&6; }
  11523. if ${ac_cv_lib_gnurx_regexec+:} false; then :
  11524. $as_echo_n "(cached) " >&6
  11525. else
  11526. ac_check_lib_save_LIBS=$LIBS
  11527. LIBS="-lgnurx $LIBS"
  11528. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11529. /* end confdefs.h. */
  11530. /* Override any GCC internal prototype to avoid an error.
  11531. Use char because int might match the return type of a GCC
  11532. builtin and then its argument prototype would still apply. */
  11533. #ifdef __cplusplus
  11534. extern "C"
  11535. #endif
  11536. char regexec ();
  11537. int
  11538. main ()
  11539. {
  11540. return regexec ();
  11541. ;
  11542. return 0;
  11543. }
  11544. _ACEOF
  11545. if ac_fn_c_try_link "$LINENO"; then :
  11546. ac_cv_lib_gnurx_regexec=yes
  11547. else
  11548. ac_cv_lib_gnurx_regexec=no
  11549. fi
  11550. rm -f core conftest.err conftest.$ac_objext \
  11551. conftest$ac_exeext conftest.$ac_ext
  11552. LIBS=$ac_check_lib_save_LIBS
  11553. fi
  11554. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gnurx_regexec" >&5
  11555. $as_echo "$ac_cv_lib_gnurx_regexec" >&6; }
  11556. if test "x$ac_cv_lib_gnurx_regexec" = xyes; then :
  11557. cat >>confdefs.h <<_ACEOF
  11558. #define HAVE_LIBGNURX 1
  11559. _ACEOF
  11560. LIBS="-lgnurx $LIBS"
  11561. else
  11562. as_fn_error $? "libgnurx is required to build file(1) with MinGW" "$LINENO" 5
  11563. fi
  11564. fi
  11565. if test "$cross_compiling" = yes; then
  11566. IS_CROSS_COMPILE_TRUE=
  11567. IS_CROSS_COMPILE_FALSE='#'
  11568. else
  11569. IS_CROSS_COMPILE_TRUE='#'
  11570. IS_CROSS_COMPILE_FALSE=
  11571. fi
  11572. ac_config_files="$ac_config_files Makefile src/Makefile magic/Makefile tests/Makefile doc/Makefile python/Makefile"
  11573. cat >confcache <<\_ACEOF
  11574. # This file is a shell script that caches the results of configure
  11575. # tests run on this system so they can be shared between configure
  11576. # scripts and configure runs, see configure's option --config-cache.
  11577. # It is not useful on other systems. If it contains results you don't
  11578. # want to keep, you may remove or edit it.
  11579. #
  11580. # config.status only pays attention to the cache file if you give it
  11581. # the --recheck option to rerun configure.
  11582. #
  11583. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  11584. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  11585. # following values.
  11586. _ACEOF
  11587. # The following way of writing the cache mishandles newlines in values,
  11588. # but we know of no workaround that is simple, portable, and efficient.
  11589. # So, we kill variables containing newlines.
  11590. # Ultrix sh set writes to stderr and can't be redirected directly,
  11591. # and sets the high bit in the cache file unless we assign to the vars.
  11592. (
  11593. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  11594. eval ac_val=\$$ac_var
  11595. case $ac_val in #(
  11596. *${as_nl}*)
  11597. case $ac_var in #(
  11598. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  11599. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  11600. esac
  11601. case $ac_var in #(
  11602. _ | IFS | as_nl) ;; #(
  11603. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  11604. *) { eval $ac_var=; unset $ac_var;} ;;
  11605. esac ;;
  11606. esac
  11607. done
  11608. (set) 2>&1 |
  11609. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  11610. *${as_nl}ac_space=\ *)
  11611. # `set' does not quote correctly, so add quotes: double-quote
  11612. # substitution turns \\\\ into \\, and sed turns \\ into \.
  11613. sed -n \
  11614. "s/'/'\\\\''/g;
  11615. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  11616. ;; #(
  11617. *)
  11618. # `set' quotes correctly as required by POSIX, so do not add quotes.
  11619. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  11620. ;;
  11621. esac |
  11622. sort
  11623. ) |
  11624. sed '
  11625. /^ac_cv_env_/b end
  11626. t clear
  11627. :clear
  11628. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  11629. t end
  11630. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  11631. :end' >>confcache
  11632. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  11633. if test -w "$cache_file"; then
  11634. if test "x$cache_file" != "x/dev/null"; then
  11635. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  11636. $as_echo "$as_me: updating cache $cache_file" >&6;}
  11637. if test ! -f "$cache_file" || test -h "$cache_file"; then
  11638. cat confcache >"$cache_file"
  11639. else
  11640. case $cache_file in #(
  11641. */* | ?:*)
  11642. mv -f confcache "$cache_file"$$ &&
  11643. mv -f "$cache_file"$$ "$cache_file" ;; #(
  11644. *)
  11645. mv -f confcache "$cache_file" ;;
  11646. esac
  11647. fi
  11648. fi
  11649. else
  11650. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  11651. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  11652. fi
  11653. fi
  11654. rm -f confcache
  11655. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  11656. # Let make expand exec_prefix.
  11657. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  11658. DEFS=-DHAVE_CONFIG_H
  11659. ac_libobjs=
  11660. ac_ltlibobjs=
  11661. U=
  11662. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  11663. # 1. Remove the extension, and $U if already installed.
  11664. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  11665. ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  11666. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  11667. # will be set to the directory where LIBOBJS objects are built.
  11668. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  11669. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  11670. done
  11671. LIBOBJS=$ac_libobjs
  11672. LTLIBOBJS=$ac_ltlibobjs
  11673. { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
  11674. $as_echo_n "checking that generated files are newer than configure... " >&6; }
  11675. if test -n "$am_sleep_pid"; then
  11676. # Hide warnings about reused PIDs.
  11677. wait $am_sleep_pid 2>/dev/null
  11678. fi
  11679. { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
  11680. $as_echo "done" >&6; }
  11681. if test -n "$EXEEXT"; then
  11682. am__EXEEXT_TRUE=
  11683. am__EXEEXT_FALSE='#'
  11684. else
  11685. am__EXEEXT_TRUE='#'
  11686. am__EXEEXT_FALSE=
  11687. fi
  11688. if test -z "${MINGW_TRUE}" && test -z "${MINGW_FALSE}"; then
  11689. as_fn_error $? "conditional \"MINGW\" was never defined.
  11690. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  11691. fi
  11692. if test -z "${FSECT5_TRUE}" && test -z "${FSECT5_FALSE}"; then
  11693. as_fn_error $? "conditional \"FSECT5\" was never defined.
  11694. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  11695. fi
  11696. if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
  11697. as_fn_error $? "conditional \"AMDEP\" was never defined.
  11698. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  11699. fi
  11700. if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  11701. as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
  11702. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  11703. fi
  11704. if test -z "${IS_CROSS_COMPILE_TRUE}" && test -z "${IS_CROSS_COMPILE_FALSE}"; then
  11705. as_fn_error $? "conditional \"IS_CROSS_COMPILE\" was never defined.
  11706. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  11707. fi
  11708. : "${CONFIG_STATUS=./config.status}"
  11709. ac_write_fail=0
  11710. ac_clean_files_save=$ac_clean_files
  11711. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  11712. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  11713. $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  11714. as_write_fail=0
  11715. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  11716. #! $SHELL
  11717. # Generated by $as_me.
  11718. # Run this file to recreate the current configuration.
  11719. # Compiler output produced by configure, useful for debugging
  11720. # configure, is in config.log if it exists.
  11721. debug=false
  11722. ac_cs_recheck=false
  11723. ac_cs_silent=false
  11724. SHELL=\${CONFIG_SHELL-$SHELL}
  11725. export SHELL
  11726. _ASEOF
  11727. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  11728. ## -------------------- ##
  11729. ## M4sh Initialization. ##
  11730. ## -------------------- ##
  11731. # Be more Bourne compatible
  11732. DUALCASE=1; export DUALCASE # for MKS sh
  11733. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  11734. emulate sh
  11735. NULLCMD=:
  11736. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  11737. # is contrary to our usage. Disable this feature.
  11738. alias -g '${1+"$@"}'='"$@"'
  11739. setopt NO_GLOB_SUBST
  11740. else
  11741. case `(set -o) 2>/dev/null` in #(
  11742. *posix*) :
  11743. set -o posix ;; #(
  11744. *) :
  11745. ;;
  11746. esac
  11747. fi
  11748. as_nl='
  11749. '
  11750. export as_nl
  11751. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  11752. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  11753. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  11754. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  11755. # Prefer a ksh shell builtin over an external printf program on Solaris,
  11756. # but without wasting forks for bash or zsh.
  11757. if test -z "$BASH_VERSION$ZSH_VERSION" \
  11758. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  11759. as_echo='print -r --'
  11760. as_echo_n='print -rn --'
  11761. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  11762. as_echo='printf %s\n'
  11763. as_echo_n='printf %s'
  11764. else
  11765. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  11766. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  11767. as_echo_n='/usr/ucb/echo -n'
  11768. else
  11769. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  11770. as_echo_n_body='eval
  11771. arg=$1;
  11772. case $arg in #(
  11773. *"$as_nl"*)
  11774. expr "X$arg" : "X\\(.*\\)$as_nl";
  11775. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  11776. esac;
  11777. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  11778. '
  11779. export as_echo_n_body
  11780. as_echo_n='sh -c $as_echo_n_body as_echo'
  11781. fi
  11782. export as_echo_body
  11783. as_echo='sh -c $as_echo_body as_echo'
  11784. fi
  11785. # The user is always right.
  11786. if test "${PATH_SEPARATOR+set}" != set; then
  11787. PATH_SEPARATOR=:
  11788. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  11789. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  11790. PATH_SEPARATOR=';'
  11791. }
  11792. fi
  11793. # IFS
  11794. # We need space, tab and new line, in precisely that order. Quoting is
  11795. # there to prevent editors from complaining about space-tab.
  11796. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  11797. # splitting by setting IFS to empty value.)
  11798. IFS=" "" $as_nl"
  11799. # Find who we are. Look in the path if we contain no directory separator.
  11800. as_myself=
  11801. case $0 in #((
  11802. *[\\/]* ) as_myself=$0 ;;
  11803. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11804. for as_dir in $PATH
  11805. do
  11806. IFS=$as_save_IFS
  11807. test -z "$as_dir" && as_dir=.
  11808. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  11809. done
  11810. IFS=$as_save_IFS
  11811. ;;
  11812. esac
  11813. # We did not find ourselves, most probably we were run as `sh COMMAND'
  11814. # in which case we are not to be found in the path.
  11815. if test "x$as_myself" = x; then
  11816. as_myself=$0
  11817. fi
  11818. if test ! -f "$as_myself"; then
  11819. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  11820. exit 1
  11821. fi
  11822. # Unset variables that we do not need and which cause bugs (e.g. in
  11823. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  11824. # suppresses any "Segmentation fault" message there. '((' could
  11825. # trigger a bug in pdksh 5.2.14.
  11826. for as_var in BASH_ENV ENV MAIL MAILPATH
  11827. do eval test x\${$as_var+set} = xset \
  11828. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  11829. done
  11830. PS1='$ '
  11831. PS2='> '
  11832. PS4='+ '
  11833. # NLS nuisances.
  11834. LC_ALL=C
  11835. export LC_ALL
  11836. LANGUAGE=C
  11837. export LANGUAGE
  11838. # CDPATH.
  11839. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  11840. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  11841. # ----------------------------------------
  11842. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  11843. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  11844. # script with STATUS, using 1 if that was 0.
  11845. as_fn_error ()
  11846. {
  11847. as_status=$1; test $as_status -eq 0 && as_status=1
  11848. if test "$4"; then
  11849. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  11850. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  11851. fi
  11852. $as_echo "$as_me: error: $2" >&2
  11853. as_fn_exit $as_status
  11854. } # as_fn_error
  11855. # as_fn_set_status STATUS
  11856. # -----------------------
  11857. # Set $? to STATUS, without forking.
  11858. as_fn_set_status ()
  11859. {
  11860. return $1
  11861. } # as_fn_set_status
  11862. # as_fn_exit STATUS
  11863. # -----------------
  11864. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  11865. as_fn_exit ()
  11866. {
  11867. set +e
  11868. as_fn_set_status $1
  11869. exit $1
  11870. } # as_fn_exit
  11871. # as_fn_unset VAR
  11872. # ---------------
  11873. # Portably unset VAR.
  11874. as_fn_unset ()
  11875. {
  11876. { eval $1=; unset $1;}
  11877. }
  11878. as_unset=as_fn_unset
  11879. # as_fn_append VAR VALUE
  11880. # ----------------------
  11881. # Append the text in VALUE to the end of the definition contained in VAR. Take
  11882. # advantage of any shell optimizations that allow amortized linear growth over
  11883. # repeated appends, instead of the typical quadratic growth present in naive
  11884. # implementations.
  11885. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  11886. eval 'as_fn_append ()
  11887. {
  11888. eval $1+=\$2
  11889. }'
  11890. else
  11891. as_fn_append ()
  11892. {
  11893. eval $1=\$$1\$2
  11894. }
  11895. fi # as_fn_append
  11896. # as_fn_arith ARG...
  11897. # ------------------
  11898. # Perform arithmetic evaluation on the ARGs, and store the result in the
  11899. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  11900. # must be portable across $(()) and expr.
  11901. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  11902. eval 'as_fn_arith ()
  11903. {
  11904. as_val=$(( $* ))
  11905. }'
  11906. else
  11907. as_fn_arith ()
  11908. {
  11909. as_val=`expr "$@" || test $? -eq 1`
  11910. }
  11911. fi # as_fn_arith
  11912. if expr a : '\(a\)' >/dev/null 2>&1 &&
  11913. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  11914. as_expr=expr
  11915. else
  11916. as_expr=false
  11917. fi
  11918. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  11919. as_basename=basename
  11920. else
  11921. as_basename=false
  11922. fi
  11923. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  11924. as_dirname=dirname
  11925. else
  11926. as_dirname=false
  11927. fi
  11928. as_me=`$as_basename -- "$0" ||
  11929. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  11930. X"$0" : 'X\(//\)$' \| \
  11931. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  11932. $as_echo X/"$0" |
  11933. sed '/^.*\/\([^/][^/]*\)\/*$/{
  11934. s//\1/
  11935. q
  11936. }
  11937. /^X\/\(\/\/\)$/{
  11938. s//\1/
  11939. q
  11940. }
  11941. /^X\/\(\/\).*/{
  11942. s//\1/
  11943. q
  11944. }
  11945. s/.*/./; q'`
  11946. # Avoid depending upon Character Ranges.
  11947. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  11948. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  11949. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  11950. as_cr_digits='0123456789'
  11951. as_cr_alnum=$as_cr_Letters$as_cr_digits
  11952. ECHO_C= ECHO_N= ECHO_T=
  11953. case `echo -n x` in #(((((
  11954. -n*)
  11955. case `echo 'xy\c'` in
  11956. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  11957. xy) ECHO_C='\c';;
  11958. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  11959. ECHO_T=' ';;
  11960. esac;;
  11961. *)
  11962. ECHO_N='-n';;
  11963. esac
  11964. rm -f conf$$ conf$$.exe conf$$.file
  11965. if test -d conf$$.dir; then
  11966. rm -f conf$$.dir/conf$$.file
  11967. else
  11968. rm -f conf$$.dir
  11969. mkdir conf$$.dir 2>/dev/null
  11970. fi
  11971. if (echo >conf$$.file) 2>/dev/null; then
  11972. if ln -s conf$$.file conf$$ 2>/dev/null; then
  11973. as_ln_s='ln -s'
  11974. # ... but there are two gotchas:
  11975. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  11976. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  11977. # In both cases, we have to default to `cp -pR'.
  11978. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  11979. as_ln_s='cp -pR'
  11980. elif ln conf$$.file conf$$ 2>/dev/null; then
  11981. as_ln_s=ln
  11982. else
  11983. as_ln_s='cp -pR'
  11984. fi
  11985. else
  11986. as_ln_s='cp -pR'
  11987. fi
  11988. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  11989. rmdir conf$$.dir 2>/dev/null
  11990. # as_fn_mkdir_p
  11991. # -------------
  11992. # Create "$as_dir" as a directory, including parents if necessary.
  11993. as_fn_mkdir_p ()
  11994. {
  11995. case $as_dir in #(
  11996. -*) as_dir=./$as_dir;;
  11997. esac
  11998. test -d "$as_dir" || eval $as_mkdir_p || {
  11999. as_dirs=
  12000. while :; do
  12001. case $as_dir in #(
  12002. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  12003. *) as_qdir=$as_dir;;
  12004. esac
  12005. as_dirs="'$as_qdir' $as_dirs"
  12006. as_dir=`$as_dirname -- "$as_dir" ||
  12007. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  12008. X"$as_dir" : 'X\(//\)[^/]' \| \
  12009. X"$as_dir" : 'X\(//\)$' \| \
  12010. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  12011. $as_echo X"$as_dir" |
  12012. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  12013. s//\1/
  12014. q
  12015. }
  12016. /^X\(\/\/\)[^/].*/{
  12017. s//\1/
  12018. q
  12019. }
  12020. /^X\(\/\/\)$/{
  12021. s//\1/
  12022. q
  12023. }
  12024. /^X\(\/\).*/{
  12025. s//\1/
  12026. q
  12027. }
  12028. s/.*/./; q'`
  12029. test -d "$as_dir" && break
  12030. done
  12031. test -z "$as_dirs" || eval "mkdir $as_dirs"
  12032. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  12033. } # as_fn_mkdir_p
  12034. if mkdir -p . 2>/dev/null; then
  12035. as_mkdir_p='mkdir -p "$as_dir"'
  12036. else
  12037. test -d ./-p && rmdir ./-p
  12038. as_mkdir_p=false
  12039. fi
  12040. # as_fn_executable_p FILE
  12041. # -----------------------
  12042. # Test if FILE is an executable regular file.
  12043. as_fn_executable_p ()
  12044. {
  12045. test -f "$1" && test -x "$1"
  12046. } # as_fn_executable_p
  12047. as_test_x='test -x'
  12048. as_executable_p=as_fn_executable_p
  12049. # Sed expression to map a string onto a valid CPP name.
  12050. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  12051. # Sed expression to map a string onto a valid variable name.
  12052. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  12053. exec 6>&1
  12054. ## ----------------------------------- ##
  12055. ## Main body of $CONFIG_STATUS script. ##
  12056. ## ----------------------------------- ##
  12057. _ASEOF
  12058. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  12059. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  12060. # Save the log message, to keep $0 and so on meaningful, and to
  12061. # report actual input values of CONFIG_FILES etc. instead of their
  12062. # values after options handling.
  12063. ac_log="
  12064. This file was extended by file $as_me 5.14, which was
  12065. generated by GNU Autoconf 2.69. Invocation command line was
  12066. CONFIG_FILES = $CONFIG_FILES
  12067. CONFIG_HEADERS = $CONFIG_HEADERS
  12068. CONFIG_LINKS = $CONFIG_LINKS
  12069. CONFIG_COMMANDS = $CONFIG_COMMANDS
  12070. $ $0 $@
  12071. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  12072. "
  12073. _ACEOF
  12074. case $ac_config_files in *"
  12075. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  12076. esac
  12077. case $ac_config_headers in *"
  12078. "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  12079. esac
  12080. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  12081. # Files that config.status was made for.
  12082. config_files="$ac_config_files"
  12083. config_headers="$ac_config_headers"
  12084. config_commands="$ac_config_commands"
  12085. _ACEOF
  12086. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  12087. ac_cs_usage="\
  12088. \`$as_me' instantiates files and other configuration actions
  12089. from templates according to the current configuration. Unless the files
  12090. and actions are specified as TAGs, all are instantiated by default.
  12091. Usage: $0 [OPTION]... [TAG]...
  12092. -h, --help print this help, then exit
  12093. -V, --version print version number and configuration settings, then exit
  12094. --config print configuration, then exit
  12095. -q, --quiet, --silent
  12096. do not print progress messages
  12097. -d, --debug don't remove temporary files
  12098. --recheck update $as_me by reconfiguring in the same conditions
  12099. --file=FILE[:TEMPLATE]
  12100. instantiate the configuration file FILE
  12101. --header=FILE[:TEMPLATE]
  12102. instantiate the configuration header FILE
  12103. Configuration files:
  12104. $config_files
  12105. Configuration headers:
  12106. $config_headers
  12107. Configuration commands:
  12108. $config_commands
  12109. Report bugs to <christos@astron.com>."
  12110. _ACEOF
  12111. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  12112. ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
  12113. ac_cs_version="\\
  12114. file config.status 5.14
  12115. configured by $0, generated by GNU Autoconf 2.69,
  12116. with options \\"\$ac_cs_config\\"
  12117. Copyright (C) 2012 Free Software Foundation, Inc.
  12118. This config.status script is free software; the Free Software Foundation
  12119. gives unlimited permission to copy, distribute and modify it."
  12120. ac_pwd='$ac_pwd'
  12121. srcdir='$srcdir'
  12122. INSTALL='$INSTALL'
  12123. MKDIR_P='$MKDIR_P'
  12124. AWK='$AWK'
  12125. test -n "\$AWK" || AWK=awk
  12126. _ACEOF
  12127. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  12128. # The default lists apply if the user does not specify any file.
  12129. ac_need_defaults=:
  12130. while test $# != 0
  12131. do
  12132. case $1 in
  12133. --*=?*)
  12134. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  12135. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  12136. ac_shift=:
  12137. ;;
  12138. --*=)
  12139. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  12140. ac_optarg=
  12141. ac_shift=:
  12142. ;;
  12143. *)
  12144. ac_option=$1
  12145. ac_optarg=$2
  12146. ac_shift=shift
  12147. ;;
  12148. esac
  12149. case $ac_option in
  12150. # Handling of the options.
  12151. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  12152. ac_cs_recheck=: ;;
  12153. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  12154. $as_echo "$ac_cs_version"; exit ;;
  12155. --config | --confi | --conf | --con | --co | --c )
  12156. $as_echo "$ac_cs_config"; exit ;;
  12157. --debug | --debu | --deb | --de | --d | -d )
  12158. debug=: ;;
  12159. --file | --fil | --fi | --f )
  12160. $ac_shift
  12161. case $ac_optarg in
  12162. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  12163. '') as_fn_error $? "missing file argument" ;;
  12164. esac
  12165. as_fn_append CONFIG_FILES " '$ac_optarg'"
  12166. ac_need_defaults=false;;
  12167. --header | --heade | --head | --hea )
  12168. $ac_shift
  12169. case $ac_optarg in
  12170. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  12171. esac
  12172. as_fn_append CONFIG_HEADERS " '$ac_optarg'"
  12173. ac_need_defaults=false;;
  12174. --he | --h)
  12175. # Conflict between --help and --header
  12176. as_fn_error $? "ambiguous option: \`$1'
  12177. Try \`$0 --help' for more information.";;
  12178. --help | --hel | -h )
  12179. $as_echo "$ac_cs_usage"; exit ;;
  12180. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  12181. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  12182. ac_cs_silent=: ;;
  12183. # This is an error.
  12184. -*) as_fn_error $? "unrecognized option: \`$1'
  12185. Try \`$0 --help' for more information." ;;
  12186. *) as_fn_append ac_config_targets " $1"
  12187. ac_need_defaults=false ;;
  12188. esac
  12189. shift
  12190. done
  12191. ac_configure_extra_args=
  12192. if $ac_cs_silent; then
  12193. exec 6>/dev/null
  12194. ac_configure_extra_args="$ac_configure_extra_args --silent"
  12195. fi
  12196. _ACEOF
  12197. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  12198. if \$ac_cs_recheck; then
  12199. set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  12200. shift
  12201. \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  12202. CONFIG_SHELL='$SHELL'
  12203. export CONFIG_SHELL
  12204. exec "\$@"
  12205. fi
  12206. _ACEOF
  12207. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  12208. exec 5>>config.log
  12209. {
  12210. echo
  12211. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  12212. ## Running $as_me. ##
  12213. _ASBOX
  12214. $as_echo "$ac_log"
  12215. } >&5
  12216. _ACEOF
  12217. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  12218. #
  12219. # INIT-COMMANDS
  12220. #
  12221. AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
  12222. # The HP-UX ksh and POSIX shell print the target directory to stdout
  12223. # if CDPATH is set.
  12224. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  12225. sed_quote_subst='$sed_quote_subst'
  12226. double_quote_subst='$double_quote_subst'
  12227. delay_variable_subst='$delay_variable_subst'
  12228. macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
  12229. macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
  12230. enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
  12231. pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
  12232. enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
  12233. enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
  12234. host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
  12235. host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
  12236. host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
  12237. build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
  12238. build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
  12239. build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
  12240. SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
  12241. Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
  12242. GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
  12243. EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
  12244. FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
  12245. LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
  12246. NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
  12247. LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
  12248. max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
  12249. ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
  12250. exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
  12251. lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
  12252. lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
  12253. lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
  12254. reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
  12255. reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  12256. OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
  12257. deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
  12258. file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
  12259. AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
  12260. AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
  12261. STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
  12262. RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
  12263. old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  12264. old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  12265. old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  12266. CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
  12267. CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
  12268. compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
  12269. GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
  12270. lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
  12271. lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
  12272. 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"`'
  12273. 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"`'
  12274. objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
  12275. SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
  12276. ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
  12277. MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
  12278. lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
  12279. lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
  12280. lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
  12281. lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
  12282. lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
  12283. need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
  12284. DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
  12285. NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
  12286. LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
  12287. OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
  12288. OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
  12289. libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
  12290. shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  12291. extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  12292. archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
  12293. enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
  12294. export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
  12295. whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
  12296. compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
  12297. old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  12298. old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  12299. archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  12300. archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  12301. module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  12302. module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  12303. with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
  12304. allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
  12305. no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
  12306. hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
  12307. hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
  12308. hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
  12309. hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
  12310. hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
  12311. hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
  12312. hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
  12313. hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
  12314. inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
  12315. link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
  12316. fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
  12317. always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
  12318. export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  12319. exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
  12320. include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
  12321. prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  12322. file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
  12323. variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
  12324. need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
  12325. need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
  12326. version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
  12327. runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
  12328. shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
  12329. shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
  12330. libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
  12331. library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
  12332. soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
  12333. postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  12334. postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  12335. finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  12336. finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
  12337. hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
  12338. sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
  12339. sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
  12340. hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
  12341. enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
  12342. enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
  12343. enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
  12344. old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
  12345. striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
  12346. LTCC='$LTCC'
  12347. LTCFLAGS='$LTCFLAGS'
  12348. compiler='$compiler_DEFAULT'
  12349. # Quote evaled strings.
  12350. for var in SED \
  12351. GREP \
  12352. EGREP \
  12353. FGREP \
  12354. LD \
  12355. NM \
  12356. LN_S \
  12357. lt_SP2NL \
  12358. lt_NL2SP \
  12359. reload_flag \
  12360. OBJDUMP \
  12361. deplibs_check_method \
  12362. file_magic_cmd \
  12363. AR \
  12364. AR_FLAGS \
  12365. STRIP \
  12366. RANLIB \
  12367. CC \
  12368. CFLAGS \
  12369. compiler \
  12370. lt_cv_sys_global_symbol_pipe \
  12371. lt_cv_sys_global_symbol_to_cdecl \
  12372. lt_cv_sys_global_symbol_to_c_name_address \
  12373. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
  12374. SHELL \
  12375. ECHO \
  12376. lt_prog_compiler_no_builtin_flag \
  12377. lt_prog_compiler_wl \
  12378. lt_prog_compiler_pic \
  12379. lt_prog_compiler_static \
  12380. lt_cv_prog_compiler_c_o \
  12381. need_locks \
  12382. DSYMUTIL \
  12383. NMEDIT \
  12384. LIPO \
  12385. OTOOL \
  12386. OTOOL64 \
  12387. shrext_cmds \
  12388. export_dynamic_flag_spec \
  12389. whole_archive_flag_spec \
  12390. compiler_needs_object \
  12391. with_gnu_ld \
  12392. allow_undefined_flag \
  12393. no_undefined_flag \
  12394. hardcode_libdir_flag_spec \
  12395. hardcode_libdir_flag_spec_ld \
  12396. hardcode_libdir_separator \
  12397. fix_srcfile_path \
  12398. exclude_expsyms \
  12399. include_expsyms \
  12400. file_list_spec \
  12401. variables_saved_for_relink \
  12402. libname_spec \
  12403. library_names_spec \
  12404. soname_spec \
  12405. finish_eval \
  12406. old_striplib \
  12407. striplib; do
  12408. case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
  12409. *[\\\\\\\`\\"\\\$]*)
  12410. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
  12411. ;;
  12412. *)
  12413. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  12414. ;;
  12415. esac
  12416. done
  12417. # Double-quote double-evaled strings.
  12418. for var in reload_cmds \
  12419. old_postinstall_cmds \
  12420. old_postuninstall_cmds \
  12421. old_archive_cmds \
  12422. extract_expsyms_cmds \
  12423. old_archive_from_new_cmds \
  12424. old_archive_from_expsyms_cmds \
  12425. archive_cmds \
  12426. archive_expsym_cmds \
  12427. module_cmds \
  12428. module_expsym_cmds \
  12429. export_symbols_cmds \
  12430. prelink_cmds \
  12431. postinstall_cmds \
  12432. postuninstall_cmds \
  12433. finish_cmds \
  12434. sys_lib_search_path_spec \
  12435. sys_lib_dlsearch_path_spec; do
  12436. case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
  12437. *[\\\\\\\`\\"\\\$]*)
  12438. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
  12439. ;;
  12440. *)
  12441. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  12442. ;;
  12443. esac
  12444. done
  12445. # Fix-up fallback echo if it was mangled by the above quoting rules.
  12446. case \$lt_ECHO in
  12447. *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
  12448. ;;
  12449. esac
  12450. ac_aux_dir='$ac_aux_dir'
  12451. xsi_shell='$xsi_shell'
  12452. lt_shell_append='$lt_shell_append'
  12453. # See if we are running on zsh, and set the options which allow our
  12454. # commands through without removal of \ escapes INIT.
  12455. if test -n "\${ZSH_VERSION+set}" ; then
  12456. setopt NO_GLOB_SUBST
  12457. fi
  12458. PACKAGE='$PACKAGE'
  12459. VERSION='$VERSION'
  12460. TIMESTAMP='$TIMESTAMP'
  12461. RM='$RM'
  12462. ofile='$ofile'
  12463. _ACEOF
  12464. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  12465. # Handling of arguments.
  12466. for ac_config_target in $ac_config_targets
  12467. do
  12468. case $ac_config_target in
  12469. "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
  12470. "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
  12471. "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
  12472. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  12473. "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
  12474. "magic/Makefile") CONFIG_FILES="$CONFIG_FILES magic/Makefile" ;;
  12475. "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
  12476. "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
  12477. "python/Makefile") CONFIG_FILES="$CONFIG_FILES python/Makefile" ;;
  12478. *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  12479. esac
  12480. done
  12481. # If the user did not use the arguments to specify the items to instantiate,
  12482. # then the envvar interface is used. Set only those that are not.
  12483. # We use the long form for the default assignment because of an extremely
  12484. # bizarre bug on SunOS 4.1.3.
  12485. if $ac_need_defaults; then
  12486. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  12487. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  12488. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  12489. fi
  12490. # Have a temporary directory for convenience. Make it in the build tree
  12491. # simply because there is no reason against having it here, and in addition,
  12492. # creating and moving files from /tmp can sometimes cause problems.
  12493. # Hook for its removal unless debugging.
  12494. # Note that there is a small window in which the directory will not be cleaned:
  12495. # after its creation but before its name has been assigned to `$tmp'.
  12496. $debug ||
  12497. {
  12498. tmp= ac_tmp=
  12499. trap 'exit_status=$?
  12500. : "${ac_tmp:=$tmp}"
  12501. { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
  12502. ' 0
  12503. trap 'as_fn_exit 1' 1 2 13 15
  12504. }
  12505. # Create a (secure) tmp directory for tmp files.
  12506. {
  12507. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  12508. test -d "$tmp"
  12509. } ||
  12510. {
  12511. tmp=./conf$$-$RANDOM
  12512. (umask 077 && mkdir "$tmp")
  12513. } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
  12514. ac_tmp=$tmp
  12515. # Set up the scripts for CONFIG_FILES section.
  12516. # No need to generate them if there are no CONFIG_FILES.
  12517. # This happens for instance with `./config.status config.h'.
  12518. if test -n "$CONFIG_FILES"; then
  12519. ac_cr=`echo X | tr X '\015'`
  12520. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  12521. # But we know of no other shell where ac_cr would be empty at this
  12522. # point, so we can use a bashism as a fallback.
  12523. if test "x$ac_cr" = x; then
  12524. eval ac_cr=\$\'\\r\'
  12525. fi
  12526. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  12527. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  12528. ac_cs_awk_cr='\\r'
  12529. else
  12530. ac_cs_awk_cr=$ac_cr
  12531. fi
  12532. echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
  12533. _ACEOF
  12534. {
  12535. echo "cat >conf$$subs.awk <<_ACEOF" &&
  12536. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  12537. echo "_ACEOF"
  12538. } >conf$$subs.sh ||
  12539. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  12540. ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
  12541. ac_delim='%!_!# '
  12542. for ac_last_try in false false false false false :; do
  12543. . ./conf$$subs.sh ||
  12544. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  12545. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  12546. if test $ac_delim_n = $ac_delim_num; then
  12547. break
  12548. elif $ac_last_try; then
  12549. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  12550. else
  12551. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  12552. fi
  12553. done
  12554. rm -f conf$$subs.sh
  12555. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  12556. cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
  12557. _ACEOF
  12558. sed -n '
  12559. h
  12560. s/^/S["/; s/!.*/"]=/
  12561. p
  12562. g
  12563. s/^[^!]*!//
  12564. :repl
  12565. t repl
  12566. s/'"$ac_delim"'$//
  12567. t delim
  12568. :nl
  12569. h
  12570. s/\(.\{148\}\)..*/\1/
  12571. t more1
  12572. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  12573. p
  12574. n
  12575. b repl
  12576. :more1
  12577. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  12578. p
  12579. g
  12580. s/.\{148\}//
  12581. t nl
  12582. :delim
  12583. h
  12584. s/\(.\{148\}\)..*/\1/
  12585. t more2
  12586. s/["\\]/\\&/g; s/^/"/; s/$/"/
  12587. p
  12588. b
  12589. :more2
  12590. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  12591. p
  12592. g
  12593. s/.\{148\}//
  12594. t delim
  12595. ' <conf$$subs.awk | sed '
  12596. /^[^""]/{
  12597. N
  12598. s/\n//
  12599. }
  12600. ' >>$CONFIG_STATUS || ac_write_fail=1
  12601. rm -f conf$$subs.awk
  12602. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  12603. _ACAWK
  12604. cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
  12605. for (key in S) S_is_set[key] = 1
  12606. FS = ""
  12607. }
  12608. {
  12609. line = $ 0
  12610. nfields = split(line, field, "@")
  12611. substed = 0
  12612. len = length(field[1])
  12613. for (i = 2; i < nfields; i++) {
  12614. key = field[i]
  12615. keylen = length(key)
  12616. if (S_is_set[key]) {
  12617. value = S[key]
  12618. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  12619. len += length(value) + length(field[++i])
  12620. substed = 1
  12621. } else
  12622. len += 1 + keylen
  12623. }
  12624. print line
  12625. }
  12626. _ACAWK
  12627. _ACEOF
  12628. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  12629. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  12630. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  12631. else
  12632. cat
  12633. fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
  12634. || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
  12635. _ACEOF
  12636. # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
  12637. # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
  12638. # trailing colons and then remove the whole line if VPATH becomes empty
  12639. # (actually we leave an empty line to preserve line numbers).
  12640. if test "x$srcdir" = x.; then
  12641. ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
  12642. h
  12643. s///
  12644. s/^/:/
  12645. s/[ ]*$/:/
  12646. s/:\$(srcdir):/:/g
  12647. s/:\${srcdir}:/:/g
  12648. s/:@srcdir@:/:/g
  12649. s/^:*//
  12650. s/:*$//
  12651. x
  12652. s/\(=[ ]*\).*/\1/
  12653. G
  12654. s/\n//
  12655. s/^[^=]*=[ ]*$//
  12656. }'
  12657. fi
  12658. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  12659. fi # test -n "$CONFIG_FILES"
  12660. # Set up the scripts for CONFIG_HEADERS section.
  12661. # No need to generate them if there are no CONFIG_HEADERS.
  12662. # This happens for instance with `./config.status Makefile'.
  12663. if test -n "$CONFIG_HEADERS"; then
  12664. cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
  12665. BEGIN {
  12666. _ACEOF
  12667. # Transform confdefs.h into an awk script `defines.awk', embedded as
  12668. # here-document in config.status, that substitutes the proper values into
  12669. # config.h.in to produce config.h.
  12670. # Create a delimiter string that does not exist in confdefs.h, to ease
  12671. # handling of long lines.
  12672. ac_delim='%!_!# '
  12673. for ac_last_try in false false :; do
  12674. ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
  12675. if test -z "$ac_tt"; then
  12676. break
  12677. elif $ac_last_try; then
  12678. as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
  12679. else
  12680. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  12681. fi
  12682. done
  12683. # For the awk script, D is an array of macro values keyed by name,
  12684. # likewise P contains macro parameters if any. Preserve backslash
  12685. # newline sequences.
  12686. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  12687. sed -n '
  12688. s/.\{148\}/&'"$ac_delim"'/g
  12689. t rset
  12690. :rset
  12691. s/^[ ]*#[ ]*define[ ][ ]*/ /
  12692. t def
  12693. d
  12694. :def
  12695. s/\\$//
  12696. t bsnl
  12697. s/["\\]/\\&/g
  12698. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  12699. D["\1"]=" \3"/p
  12700. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  12701. d
  12702. :bsnl
  12703. s/["\\]/\\&/g
  12704. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  12705. D["\1"]=" \3\\\\\\n"\\/p
  12706. t cont
  12707. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  12708. t cont
  12709. d
  12710. :cont
  12711. n
  12712. s/.\{148\}/&'"$ac_delim"'/g
  12713. t clear
  12714. :clear
  12715. s/\\$//
  12716. t bsnlc
  12717. s/["\\]/\\&/g; s/^/"/; s/$/"/p
  12718. d
  12719. :bsnlc
  12720. s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  12721. b cont
  12722. ' <confdefs.h | sed '
  12723. s/'"$ac_delim"'/"\\\
  12724. "/g' >>$CONFIG_STATUS || ac_write_fail=1
  12725. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  12726. for (key in D) D_is_set[key] = 1
  12727. FS = ""
  12728. }
  12729. /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  12730. line = \$ 0
  12731. split(line, arg, " ")
  12732. if (arg[1] == "#") {
  12733. defundef = arg[2]
  12734. mac1 = arg[3]
  12735. } else {
  12736. defundef = substr(arg[1], 2)
  12737. mac1 = arg[2]
  12738. }
  12739. split(mac1, mac2, "(") #)
  12740. macro = mac2[1]
  12741. prefix = substr(line, 1, index(line, defundef) - 1)
  12742. if (D_is_set[macro]) {
  12743. # Preserve the white space surrounding the "#".
  12744. print prefix "define", macro P[macro] D[macro]
  12745. next
  12746. } else {
  12747. # Replace #undef with comments. This is necessary, for example,
  12748. # in the case of _POSIX_SOURCE, which is predefined and required
  12749. # on some systems where configure will not decide to define it.
  12750. if (defundef == "undef") {
  12751. print "/*", prefix defundef, macro, "*/"
  12752. next
  12753. }
  12754. }
  12755. }
  12756. { print }
  12757. _ACAWK
  12758. _ACEOF
  12759. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  12760. as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
  12761. fi # test -n "$CONFIG_HEADERS"
  12762. eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
  12763. shift
  12764. for ac_tag
  12765. do
  12766. case $ac_tag in
  12767. :[FHLC]) ac_mode=$ac_tag; continue;;
  12768. esac
  12769. case $ac_mode$ac_tag in
  12770. :[FHL]*:*);;
  12771. :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
  12772. :[FH]-) ac_tag=-:-;;
  12773. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  12774. esac
  12775. ac_save_IFS=$IFS
  12776. IFS=:
  12777. set x $ac_tag
  12778. IFS=$ac_save_IFS
  12779. shift
  12780. ac_file=$1
  12781. shift
  12782. case $ac_mode in
  12783. :L) ac_source=$1;;
  12784. :[FH])
  12785. ac_file_inputs=
  12786. for ac_f
  12787. do
  12788. case $ac_f in
  12789. -) ac_f="$ac_tmp/stdin";;
  12790. *) # Look for the file first in the build tree, then in the source tree
  12791. # (if the path is not absolute). The absolute path cannot be DOS-style,
  12792. # because $ac_f cannot contain `:'.
  12793. test -f "$ac_f" ||
  12794. case $ac_f in
  12795. [\\/$]*) false;;
  12796. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  12797. esac ||
  12798. as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  12799. esac
  12800. case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  12801. as_fn_append ac_file_inputs " '$ac_f'"
  12802. done
  12803. # Let's still pretend it is `configure' which instantiates (i.e., don't
  12804. # use $as_me), people would be surprised to read:
  12805. # /* config.h. Generated by config.status. */
  12806. configure_input='Generated from '`
  12807. $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  12808. `' by configure.'
  12809. if test x"$ac_file" != x-; then
  12810. configure_input="$ac_file. $configure_input"
  12811. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  12812. $as_echo "$as_me: creating $ac_file" >&6;}
  12813. fi
  12814. # Neutralize special characters interpreted by sed in replacement strings.
  12815. case $configure_input in #(
  12816. *\&* | *\|* | *\\* )
  12817. ac_sed_conf_input=`$as_echo "$configure_input" |
  12818. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  12819. *) ac_sed_conf_input=$configure_input;;
  12820. esac
  12821. case $ac_tag in
  12822. *:-:* | *:-) cat >"$ac_tmp/stdin" \
  12823. || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
  12824. esac
  12825. ;;
  12826. esac
  12827. ac_dir=`$as_dirname -- "$ac_file" ||
  12828. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  12829. X"$ac_file" : 'X\(//\)[^/]' \| \
  12830. X"$ac_file" : 'X\(//\)$' \| \
  12831. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  12832. $as_echo X"$ac_file" |
  12833. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  12834. s//\1/
  12835. q
  12836. }
  12837. /^X\(\/\/\)[^/].*/{
  12838. s//\1/
  12839. q
  12840. }
  12841. /^X\(\/\/\)$/{
  12842. s//\1/
  12843. q
  12844. }
  12845. /^X\(\/\).*/{
  12846. s//\1/
  12847. q
  12848. }
  12849. s/.*/./; q'`
  12850. as_dir="$ac_dir"; as_fn_mkdir_p
  12851. ac_builddir=.
  12852. case "$ac_dir" in
  12853. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  12854. *)
  12855. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  12856. # A ".." for each directory in $ac_dir_suffix.
  12857. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  12858. case $ac_top_builddir_sub in
  12859. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  12860. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  12861. esac ;;
  12862. esac
  12863. ac_abs_top_builddir=$ac_pwd
  12864. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  12865. # for backward compatibility:
  12866. ac_top_builddir=$ac_top_build_prefix
  12867. case $srcdir in
  12868. .) # We are building in place.
  12869. ac_srcdir=.
  12870. ac_top_srcdir=$ac_top_builddir_sub
  12871. ac_abs_top_srcdir=$ac_pwd ;;
  12872. [\\/]* | ?:[\\/]* ) # Absolute name.
  12873. ac_srcdir=$srcdir$ac_dir_suffix;
  12874. ac_top_srcdir=$srcdir
  12875. ac_abs_top_srcdir=$srcdir ;;
  12876. *) # Relative name.
  12877. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  12878. ac_top_srcdir=$ac_top_build_prefix$srcdir
  12879. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  12880. esac
  12881. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  12882. case $ac_mode in
  12883. :F)
  12884. #
  12885. # CONFIG_FILE
  12886. #
  12887. case $INSTALL in
  12888. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  12889. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  12890. esac
  12891. ac_MKDIR_P=$MKDIR_P
  12892. case $MKDIR_P in
  12893. [\\/$]* | ?:[\\/]* ) ;;
  12894. */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
  12895. esac
  12896. _ACEOF
  12897. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  12898. # If the template does not know about datarootdir, expand it.
  12899. # FIXME: This hack should be removed a few years after 2.60.
  12900. ac_datarootdir_hack=; ac_datarootdir_seen=
  12901. ac_sed_dataroot='
  12902. /datarootdir/ {
  12903. p
  12904. q
  12905. }
  12906. /@datadir@/p
  12907. /@docdir@/p
  12908. /@infodir@/p
  12909. /@localedir@/p
  12910. /@mandir@/p'
  12911. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  12912. *datarootdir*) ac_datarootdir_seen=yes;;
  12913. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  12914. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  12915. $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  12916. _ACEOF
  12917. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  12918. ac_datarootdir_hack='
  12919. s&@datadir@&$datadir&g
  12920. s&@docdir@&$docdir&g
  12921. s&@infodir@&$infodir&g
  12922. s&@localedir@&$localedir&g
  12923. s&@mandir@&$mandir&g
  12924. s&\\\${datarootdir}&$datarootdir&g' ;;
  12925. esac
  12926. _ACEOF
  12927. # Neutralize VPATH when `$srcdir' = `.'.
  12928. # Shell code in configure.ac might set extrasub.
  12929. # FIXME: do we really want to maintain this feature?
  12930. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  12931. ac_sed_extra="$ac_vpsub
  12932. $extrasub
  12933. _ACEOF
  12934. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  12935. :t
  12936. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  12937. s|@configure_input@|$ac_sed_conf_input|;t t
  12938. s&@top_builddir@&$ac_top_builddir_sub&;t t
  12939. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  12940. s&@srcdir@&$ac_srcdir&;t t
  12941. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  12942. s&@top_srcdir@&$ac_top_srcdir&;t t
  12943. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  12944. s&@builddir@&$ac_builddir&;t t
  12945. s&@abs_builddir@&$ac_abs_builddir&;t t
  12946. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  12947. s&@INSTALL@&$ac_INSTALL&;t t
  12948. s&@MKDIR_P@&$ac_MKDIR_P&;t t
  12949. $ac_datarootdir_hack
  12950. "
  12951. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
  12952. >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  12953. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  12954. { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
  12955. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
  12956. "$ac_tmp/out"`; test -z "$ac_out"; } &&
  12957. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  12958. which seems to be undefined. Please make sure it is defined" >&5
  12959. $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  12960. which seems to be undefined. Please make sure it is defined" >&2;}
  12961. rm -f "$ac_tmp/stdin"
  12962. case $ac_file in
  12963. -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
  12964. *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
  12965. esac \
  12966. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  12967. ;;
  12968. :H)
  12969. #
  12970. # CONFIG_HEADER
  12971. #
  12972. if test x"$ac_file" != x-; then
  12973. {
  12974. $as_echo "/* $configure_input */" \
  12975. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
  12976. } >"$ac_tmp/config.h" \
  12977. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  12978. if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
  12979. { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
  12980. $as_echo "$as_me: $ac_file is unchanged" >&6;}
  12981. else
  12982. rm -f "$ac_file"
  12983. mv "$ac_tmp/config.h" "$ac_file" \
  12984. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  12985. fi
  12986. else
  12987. $as_echo "/* $configure_input */" \
  12988. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
  12989. || as_fn_error $? "could not create -" "$LINENO" 5
  12990. fi
  12991. # Compute "$ac_file"'s index in $config_headers.
  12992. _am_arg="$ac_file"
  12993. _am_stamp_count=1
  12994. for _am_header in $config_headers :; do
  12995. case $_am_header in
  12996. $_am_arg | $_am_arg:* )
  12997. break ;;
  12998. * )
  12999. _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  13000. esac
  13001. done
  13002. echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
  13003. $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  13004. X"$_am_arg" : 'X\(//\)[^/]' \| \
  13005. X"$_am_arg" : 'X\(//\)$' \| \
  13006. X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
  13007. $as_echo X"$_am_arg" |
  13008. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  13009. s//\1/
  13010. q
  13011. }
  13012. /^X\(\/\/\)[^/].*/{
  13013. s//\1/
  13014. q
  13015. }
  13016. /^X\(\/\/\)$/{
  13017. s//\1/
  13018. q
  13019. }
  13020. /^X\(\/\).*/{
  13021. s//\1/
  13022. q
  13023. }
  13024. s/.*/./; q'`/stamp-h$_am_stamp_count
  13025. ;;
  13026. :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
  13027. $as_echo "$as_me: executing $ac_file commands" >&6;}
  13028. ;;
  13029. esac
  13030. case $ac_file$ac_mode in
  13031. "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
  13032. # Autoconf 2.62 quotes --file arguments for eval, but not when files
  13033. # are listed without --file. Let's play safe and only enable the eval
  13034. # if we detect the quoting.
  13035. case $CONFIG_FILES in
  13036. *\'*) eval set x "$CONFIG_FILES" ;;
  13037. *) set x $CONFIG_FILES ;;
  13038. esac
  13039. shift
  13040. for mf
  13041. do
  13042. # Strip MF so we end up with the name of the file.
  13043. mf=`echo "$mf" | sed -e 's/:.*$//'`
  13044. # Check whether this is an Automake generated Makefile or not.
  13045. # We used to match only the files named 'Makefile.in', but
  13046. # some people rename them; so instead we look at the file content.
  13047. # Grep'ing the first line is not enough: some people post-process
  13048. # each Makefile.in and add a new line on top of each file to say so.
  13049. # Grep'ing the whole file is not good either: AIX grep has a line
  13050. # limit of 2048, but all sed's we know have understand at least 4000.
  13051. if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
  13052. dirpart=`$as_dirname -- "$mf" ||
  13053. $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  13054. X"$mf" : 'X\(//\)[^/]' \| \
  13055. X"$mf" : 'X\(//\)$' \| \
  13056. X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
  13057. $as_echo X"$mf" |
  13058. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  13059. s//\1/
  13060. q
  13061. }
  13062. /^X\(\/\/\)[^/].*/{
  13063. s//\1/
  13064. q
  13065. }
  13066. /^X\(\/\/\)$/{
  13067. s//\1/
  13068. q
  13069. }
  13070. /^X\(\/\).*/{
  13071. s//\1/
  13072. q
  13073. }
  13074. s/.*/./; q'`
  13075. else
  13076. continue
  13077. fi
  13078. # Extract the definition of DEPDIR, am__include, and am__quote
  13079. # from the Makefile without running 'make'.
  13080. DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  13081. test -z "$DEPDIR" && continue
  13082. am__include=`sed -n 's/^am__include = //p' < "$mf"`
  13083. test -z "am__include" && continue
  13084. am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
  13085. # Find all dependency output files, they are included files with
  13086. # $(DEPDIR) in their names. We invoke sed twice because it is the
  13087. # simplest approach to changing $(DEPDIR) to its actual value in the
  13088. # expansion.
  13089. for file in `sed -n "
  13090. s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
  13091. sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
  13092. # Make sure the directory exists.
  13093. test -f "$dirpart/$file" && continue
  13094. fdir=`$as_dirname -- "$file" ||
  13095. $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  13096. X"$file" : 'X\(//\)[^/]' \| \
  13097. X"$file" : 'X\(//\)$' \| \
  13098. X"$file" : 'X\(/\)' \| . 2>/dev/null ||
  13099. $as_echo X"$file" |
  13100. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  13101. s//\1/
  13102. q
  13103. }
  13104. /^X\(\/\/\)[^/].*/{
  13105. s//\1/
  13106. q
  13107. }
  13108. /^X\(\/\/\)$/{
  13109. s//\1/
  13110. q
  13111. }
  13112. /^X\(\/\).*/{
  13113. s//\1/
  13114. q
  13115. }
  13116. s/.*/./; q'`
  13117. as_dir=$dirpart/$fdir; as_fn_mkdir_p
  13118. # echo "creating $dirpart/$file"
  13119. echo '# dummy' > "$dirpart/$file"
  13120. done
  13121. done
  13122. }
  13123. ;;
  13124. "libtool":C)
  13125. # See if we are running on zsh, and set the options which allow our
  13126. # commands through without removal of \ escapes.
  13127. if test -n "${ZSH_VERSION+set}" ; then
  13128. setopt NO_GLOB_SUBST
  13129. fi
  13130. cfgfile="${ofile}T"
  13131. trap "$RM \"$cfgfile\"; exit 1" 1 2 15
  13132. $RM "$cfgfile"
  13133. cat <<_LT_EOF >> "$cfgfile"
  13134. #! $SHELL
  13135. # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
  13136. # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
  13137. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  13138. # NOTE: Changes made to this file will be lost: look at ltmain.sh.
  13139. #
  13140. # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
  13141. # 2006, 2007, 2008 Free Software Foundation, Inc.
  13142. # Written by Gordon Matzigkeit, 1996
  13143. #
  13144. # This file is part of GNU Libtool.
  13145. #
  13146. # GNU Libtool is free software; you can redistribute it and/or
  13147. # modify it under the terms of the GNU General Public License as
  13148. # published by the Free Software Foundation; either version 2 of
  13149. # the License, or (at your option) any later version.
  13150. #
  13151. # As a special exception to the GNU General Public License,
  13152. # if you distribute this file as part of a program or library that
  13153. # is built using GNU Libtool, you may include this file under the
  13154. # same distribution terms that you use for the rest of that program.
  13155. #
  13156. # GNU Libtool is distributed in the hope that it will be useful,
  13157. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  13158. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  13159. # GNU General Public License for more details.
  13160. #
  13161. # You should have received a copy of the GNU General Public License
  13162. # along with GNU Libtool; see the file COPYING. If not, a copy
  13163. # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
  13164. # obtained by writing to the Free Software Foundation, Inc.,
  13165. # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  13166. # The names of the tagged configurations supported by this script.
  13167. available_tags=""
  13168. # ### BEGIN LIBTOOL CONFIG
  13169. # Which release of libtool.m4 was used?
  13170. macro_version=$macro_version
  13171. macro_revision=$macro_revision
  13172. # Whether or not to build static libraries.
  13173. build_old_libs=$enable_static
  13174. # What type of objects to build.
  13175. pic_mode=$pic_mode
  13176. # Whether or not to build shared libraries.
  13177. build_libtool_libs=$enable_shared
  13178. # Whether or not to optimize for fast installation.
  13179. fast_install=$enable_fast_install
  13180. # The host system.
  13181. host_alias=$host_alias
  13182. host=$host
  13183. host_os=$host_os
  13184. # The build system.
  13185. build_alias=$build_alias
  13186. build=$build
  13187. build_os=$build_os
  13188. # A sed program that does not truncate output.
  13189. SED=$lt_SED
  13190. # Sed that helps us avoid accidentally triggering echo(1) options like -n.
  13191. Xsed="\$SED -e 1s/^X//"
  13192. # A grep program that handles long lines.
  13193. GREP=$lt_GREP
  13194. # An ERE matcher.
  13195. EGREP=$lt_EGREP
  13196. # A literal string matcher.
  13197. FGREP=$lt_FGREP
  13198. # A BSD- or MS-compatible name lister.
  13199. NM=$lt_NM
  13200. # Whether we need soft or hard links.
  13201. LN_S=$lt_LN_S
  13202. # What is the maximum length of a command?
  13203. max_cmd_len=$max_cmd_len
  13204. # Object file suffix (normally "o").
  13205. objext=$ac_objext
  13206. # Executable file suffix (normally "").
  13207. exeext=$exeext
  13208. # whether the shell understands "unset".
  13209. lt_unset=$lt_unset
  13210. # turn spaces into newlines.
  13211. SP2NL=$lt_lt_SP2NL
  13212. # turn newlines into spaces.
  13213. NL2SP=$lt_lt_NL2SP
  13214. # How to create reloadable object files.
  13215. reload_flag=$lt_reload_flag
  13216. reload_cmds=$lt_reload_cmds
  13217. # An object symbol dumper.
  13218. OBJDUMP=$lt_OBJDUMP
  13219. # Method to check whether dependent libraries are shared objects.
  13220. deplibs_check_method=$lt_deplibs_check_method
  13221. # Command to use when deplibs_check_method == "file_magic".
  13222. file_magic_cmd=$lt_file_magic_cmd
  13223. # The archiver.
  13224. AR=$lt_AR
  13225. AR_FLAGS=$lt_AR_FLAGS
  13226. # A symbol stripping program.
  13227. STRIP=$lt_STRIP
  13228. # Commands used to install an old-style archive.
  13229. RANLIB=$lt_RANLIB
  13230. old_postinstall_cmds=$lt_old_postinstall_cmds
  13231. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  13232. # A C compiler.
  13233. LTCC=$lt_CC
  13234. # LTCC compiler flags.
  13235. LTCFLAGS=$lt_CFLAGS
  13236. # Take the output of nm and produce a listing of raw symbols and C names.
  13237. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  13238. # Transform the output of nm in a proper C declaration.
  13239. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  13240. # Transform the output of nm in a C name address pair.
  13241. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  13242. # Transform the output of nm in a C name address pair when lib prefix is needed.
  13243. global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
  13244. # The name of the directory that contains temporary libtool files.
  13245. objdir=$objdir
  13246. # Shell to use when invoking shell scripts.
  13247. SHELL=$lt_SHELL
  13248. # An echo program that does not interpret backslashes.
  13249. ECHO=$lt_ECHO
  13250. # Used to examine libraries when file_magic_cmd begins with "file".
  13251. MAGIC_CMD=$MAGIC_CMD
  13252. # Must we lock files when doing compilation?
  13253. need_locks=$lt_need_locks
  13254. # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
  13255. DSYMUTIL=$lt_DSYMUTIL
  13256. # Tool to change global to local symbols on Mac OS X.
  13257. NMEDIT=$lt_NMEDIT
  13258. # Tool to manipulate fat objects and archives on Mac OS X.
  13259. LIPO=$lt_LIPO
  13260. # ldd/readelf like tool for Mach-O binaries on Mac OS X.
  13261. OTOOL=$lt_OTOOL
  13262. # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
  13263. OTOOL64=$lt_OTOOL64
  13264. # Old archive suffix (normally "a").
  13265. libext=$libext
  13266. # Shared library suffix (normally ".so").
  13267. shrext_cmds=$lt_shrext_cmds
  13268. # The commands to extract the exported symbol list from a shared archive.
  13269. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  13270. # Variables whose values should be saved in libtool wrapper scripts and
  13271. # restored at link time.
  13272. variables_saved_for_relink=$lt_variables_saved_for_relink
  13273. # Do we need the "lib" prefix for modules?
  13274. need_lib_prefix=$need_lib_prefix
  13275. # Do we need a version for libraries?
  13276. need_version=$need_version
  13277. # Library versioning type.
  13278. version_type=$version_type
  13279. # Shared library runtime path variable.
  13280. runpath_var=$runpath_var
  13281. # Shared library path variable.
  13282. shlibpath_var=$shlibpath_var
  13283. # Is shlibpath searched before the hard-coded library search path?
  13284. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  13285. # Format of library name prefix.
  13286. libname_spec=$lt_libname_spec
  13287. # List of archive names. First name is the real one, the rest are links.
  13288. # The last name is the one that the linker finds with -lNAME
  13289. library_names_spec=$lt_library_names_spec
  13290. # The coded name of the library, if different from the real name.
  13291. soname_spec=$lt_soname_spec
  13292. # Command to use after installation of a shared archive.
  13293. postinstall_cmds=$lt_postinstall_cmds
  13294. # Command to use after uninstallation of a shared archive.
  13295. postuninstall_cmds=$lt_postuninstall_cmds
  13296. # Commands used to finish a libtool library installation in a directory.
  13297. finish_cmds=$lt_finish_cmds
  13298. # As "finish_cmds", except a single script fragment to be evaled but
  13299. # not shown.
  13300. finish_eval=$lt_finish_eval
  13301. # Whether we should hardcode library paths into libraries.
  13302. hardcode_into_libs=$hardcode_into_libs
  13303. # Compile-time system search path for libraries.
  13304. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  13305. # Run-time system search path for libraries.
  13306. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  13307. # Whether dlopen is supported.
  13308. dlopen_support=$enable_dlopen
  13309. # Whether dlopen of programs is supported.
  13310. dlopen_self=$enable_dlopen_self
  13311. # Whether dlopen of statically linked programs is supported.
  13312. dlopen_self_static=$enable_dlopen_self_static
  13313. # Commands to strip libraries.
  13314. old_striplib=$lt_old_striplib
  13315. striplib=$lt_striplib
  13316. # The linker used to build libraries.
  13317. LD=$lt_LD
  13318. # Commands used to build an old-style archive.
  13319. old_archive_cmds=$lt_old_archive_cmds
  13320. # A language specific compiler.
  13321. CC=$lt_compiler
  13322. # Is the compiler the GNU compiler?
  13323. with_gcc=$GCC
  13324. # Compiler flag to turn off builtin functions.
  13325. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  13326. # How to pass a linker flag through the compiler.
  13327. wl=$lt_lt_prog_compiler_wl
  13328. # Additional compiler flags for building library objects.
  13329. pic_flag=$lt_lt_prog_compiler_pic
  13330. # Compiler flag to prevent dynamic linking.
  13331. link_static_flag=$lt_lt_prog_compiler_static
  13332. # Does compiler simultaneously support -c and -o options?
  13333. compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  13334. # Whether or not to add -lc for building shared libraries.
  13335. build_libtool_need_lc=$archive_cmds_need_lc
  13336. # Whether or not to disallow shared libs when runtime libs are static.
  13337. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  13338. # Compiler flag to allow reflexive dlopens.
  13339. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  13340. # Compiler flag to generate shared objects directly from archives.
  13341. whole_archive_flag_spec=$lt_whole_archive_flag_spec
  13342. # Whether the compiler copes with passing no objects directly.
  13343. compiler_needs_object=$lt_compiler_needs_object
  13344. # Create an old-style archive from a shared archive.
  13345. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  13346. # Create a temporary old-style archive to link instead of a shared archive.
  13347. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  13348. # Commands used to build a shared archive.
  13349. archive_cmds=$lt_archive_cmds
  13350. archive_expsym_cmds=$lt_archive_expsym_cmds
  13351. # Commands used to build a loadable module if different from building
  13352. # a shared archive.
  13353. module_cmds=$lt_module_cmds
  13354. module_expsym_cmds=$lt_module_expsym_cmds
  13355. # Whether we are building with GNU ld or not.
  13356. with_gnu_ld=$lt_with_gnu_ld
  13357. # Flag that allows shared libraries with undefined symbols to be built.
  13358. allow_undefined_flag=$lt_allow_undefined_flag
  13359. # Flag that enforces no undefined symbols.
  13360. no_undefined_flag=$lt_no_undefined_flag
  13361. # Flag to hardcode \$libdir into a binary during linking.
  13362. # This must work even if \$libdir does not exist
  13363. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  13364. # If ld is used when linking, flag to hardcode \$libdir into a binary
  13365. # during linking. This must work even if \$libdir does not exist.
  13366. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
  13367. # Whether we need a single "-rpath" flag with a separated argument.
  13368. hardcode_libdir_separator=$lt_hardcode_libdir_separator
  13369. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  13370. # DIR into the resulting binary.
  13371. hardcode_direct=$hardcode_direct
  13372. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  13373. # DIR into the resulting binary and the resulting library dependency is
  13374. # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
  13375. # library is relocated.
  13376. hardcode_direct_absolute=$hardcode_direct_absolute
  13377. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  13378. # into the resulting binary.
  13379. hardcode_minus_L=$hardcode_minus_L
  13380. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  13381. # into the resulting binary.
  13382. hardcode_shlibpath_var=$hardcode_shlibpath_var
  13383. # Set to "yes" if building a shared library automatically hardcodes DIR
  13384. # into the library and all subsequent libraries and executables linked
  13385. # against it.
  13386. hardcode_automatic=$hardcode_automatic
  13387. # Set to yes if linker adds runtime paths of dependent libraries
  13388. # to runtime path list.
  13389. inherit_rpath=$inherit_rpath
  13390. # Whether libtool must link a program against all its dependency libraries.
  13391. link_all_deplibs=$link_all_deplibs
  13392. # Fix the shell variable \$srcfile for the compiler.
  13393. fix_srcfile_path=$lt_fix_srcfile_path
  13394. # Set to "yes" if exported symbols are required.
  13395. always_export_symbols=$always_export_symbols
  13396. # The commands to list exported symbols.
  13397. export_symbols_cmds=$lt_export_symbols_cmds
  13398. # Symbols that should not be listed in the preloaded symbols.
  13399. exclude_expsyms=$lt_exclude_expsyms
  13400. # Symbols that must always be exported.
  13401. include_expsyms=$lt_include_expsyms
  13402. # Commands necessary for linking programs (against libraries) with templates.
  13403. prelink_cmds=$lt_prelink_cmds
  13404. # Specify filename containing input files.
  13405. file_list_spec=$lt_file_list_spec
  13406. # How to hardcode a shared library path into an executable.
  13407. hardcode_action=$hardcode_action
  13408. # ### END LIBTOOL CONFIG
  13409. _LT_EOF
  13410. case $host_os in
  13411. aix3*)
  13412. cat <<\_LT_EOF >> "$cfgfile"
  13413. # AIX sometimes has problems with the GCC collect2 program. For some
  13414. # reason, if we set the COLLECT_NAMES environment variable, the problems
  13415. # vanish in a puff of smoke.
  13416. if test "X${COLLECT_NAMES+set}" != Xset; then
  13417. COLLECT_NAMES=
  13418. export COLLECT_NAMES
  13419. fi
  13420. _LT_EOF
  13421. ;;
  13422. esac
  13423. ltmain="$ac_aux_dir/ltmain.sh"
  13424. # We use sed instead of cat because bash on DJGPP gets confused if
  13425. # if finds mixed CR/LF and LF-only lines. Since sed operates in
  13426. # text mode, it properly converts lines to CR/LF. This bash problem
  13427. # is reportedly fixed, but why not run on old versions too?
  13428. sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
  13429. || (rm -f "$cfgfile"; exit 1)
  13430. case $xsi_shell in
  13431. yes)
  13432. cat << \_LT_EOF >> "$cfgfile"
  13433. # func_dirname file append nondir_replacement
  13434. # Compute the dirname of FILE. If nonempty, add APPEND to the result,
  13435. # otherwise set result to NONDIR_REPLACEMENT.
  13436. func_dirname ()
  13437. {
  13438. case ${1} in
  13439. */*) func_dirname_result="${1%/*}${2}" ;;
  13440. * ) func_dirname_result="${3}" ;;
  13441. esac
  13442. }
  13443. # func_basename file
  13444. func_basename ()
  13445. {
  13446. func_basename_result="${1##*/}"
  13447. }
  13448. # func_dirname_and_basename file append nondir_replacement
  13449. # perform func_basename and func_dirname in a single function
  13450. # call:
  13451. # dirname: Compute the dirname of FILE. If nonempty,
  13452. # add APPEND to the result, otherwise set result
  13453. # to NONDIR_REPLACEMENT.
  13454. # value returned in "$func_dirname_result"
  13455. # basename: Compute filename of FILE.
  13456. # value retuned in "$func_basename_result"
  13457. # Implementation must be kept synchronized with func_dirname
  13458. # and func_basename. For efficiency, we do not delegate to
  13459. # those functions but instead duplicate the functionality here.
  13460. func_dirname_and_basename ()
  13461. {
  13462. case ${1} in
  13463. */*) func_dirname_result="${1%/*}${2}" ;;
  13464. * ) func_dirname_result="${3}" ;;
  13465. esac
  13466. func_basename_result="${1##*/}"
  13467. }
  13468. # func_stripname prefix suffix name
  13469. # strip PREFIX and SUFFIX off of NAME.
  13470. # PREFIX and SUFFIX must not contain globbing or regex special
  13471. # characters, hashes, percent signs, but SUFFIX may contain a leading
  13472. # dot (in which case that matches only a dot).
  13473. func_stripname ()
  13474. {
  13475. # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
  13476. # positional parameters, so assign one to ordinary parameter first.
  13477. func_stripname_result=${3}
  13478. func_stripname_result=${func_stripname_result#"${1}"}
  13479. func_stripname_result=${func_stripname_result%"${2}"}
  13480. }
  13481. # func_opt_split
  13482. func_opt_split ()
  13483. {
  13484. func_opt_split_opt=${1%%=*}
  13485. func_opt_split_arg=${1#*=}
  13486. }
  13487. # func_lo2o object
  13488. func_lo2o ()
  13489. {
  13490. case ${1} in
  13491. *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
  13492. *) func_lo2o_result=${1} ;;
  13493. esac
  13494. }
  13495. # func_xform libobj-or-source
  13496. func_xform ()
  13497. {
  13498. func_xform_result=${1%.*}.lo
  13499. }
  13500. # func_arith arithmetic-term...
  13501. func_arith ()
  13502. {
  13503. func_arith_result=$(( $* ))
  13504. }
  13505. # func_len string
  13506. # STRING may not start with a hyphen.
  13507. func_len ()
  13508. {
  13509. func_len_result=${#1}
  13510. }
  13511. _LT_EOF
  13512. ;;
  13513. *) # Bourne compatible functions.
  13514. cat << \_LT_EOF >> "$cfgfile"
  13515. # func_dirname file append nondir_replacement
  13516. # Compute the dirname of FILE. If nonempty, add APPEND to the result,
  13517. # otherwise set result to NONDIR_REPLACEMENT.
  13518. func_dirname ()
  13519. {
  13520. # Extract subdirectory from the argument.
  13521. func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
  13522. if test "X$func_dirname_result" = "X${1}"; then
  13523. func_dirname_result="${3}"
  13524. else
  13525. func_dirname_result="$func_dirname_result${2}"
  13526. fi
  13527. }
  13528. # func_basename file
  13529. func_basename ()
  13530. {
  13531. func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
  13532. }
  13533. # func_stripname prefix suffix name
  13534. # strip PREFIX and SUFFIX off of NAME.
  13535. # PREFIX and SUFFIX must not contain globbing or regex special
  13536. # characters, hashes, percent signs, but SUFFIX may contain a leading
  13537. # dot (in which case that matches only a dot).
  13538. # func_strip_suffix prefix name
  13539. func_stripname ()
  13540. {
  13541. case ${2} in
  13542. .*) func_stripname_result=`$ECHO "X${3}" \
  13543. | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
  13544. *) func_stripname_result=`$ECHO "X${3}" \
  13545. | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
  13546. esac
  13547. }
  13548. # sed scripts:
  13549. my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
  13550. my_sed_long_arg='1s/^-[^=]*=//'
  13551. # func_opt_split
  13552. func_opt_split ()
  13553. {
  13554. func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
  13555. func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
  13556. }
  13557. # func_lo2o object
  13558. func_lo2o ()
  13559. {
  13560. func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
  13561. }
  13562. # func_xform libobj-or-source
  13563. func_xform ()
  13564. {
  13565. func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
  13566. }
  13567. # func_arith arithmetic-term...
  13568. func_arith ()
  13569. {
  13570. func_arith_result=`expr "$@"`
  13571. }
  13572. # func_len string
  13573. # STRING may not start with a hyphen.
  13574. func_len ()
  13575. {
  13576. func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
  13577. }
  13578. _LT_EOF
  13579. esac
  13580. case $lt_shell_append in
  13581. yes)
  13582. cat << \_LT_EOF >> "$cfgfile"
  13583. # func_append var value
  13584. # Append VALUE to the end of shell variable VAR.
  13585. func_append ()
  13586. {
  13587. eval "$1+=\$2"
  13588. }
  13589. _LT_EOF
  13590. ;;
  13591. *)
  13592. cat << \_LT_EOF >> "$cfgfile"
  13593. # func_append var value
  13594. # Append VALUE to the end of shell variable VAR.
  13595. func_append ()
  13596. {
  13597. eval "$1=\$$1\$2"
  13598. }
  13599. _LT_EOF
  13600. ;;
  13601. esac
  13602. sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
  13603. || (rm -f "$cfgfile"; exit 1)
  13604. mv -f "$cfgfile" "$ofile" ||
  13605. (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  13606. chmod +x "$ofile"
  13607. ;;
  13608. esac
  13609. done # for ac_tag
  13610. as_fn_exit 0
  13611. _ACEOF
  13612. ac_clean_files=$ac_clean_files_save
  13613. test $ac_write_fail = 0 ||
  13614. as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
  13615. # configure is writing to config.log, and then calls config.status.
  13616. # config.status does its own redirection, appending to config.log.
  13617. # Unfortunately, on DOS this fails, as config.log is still kept open
  13618. # by configure, so config.status won't be able to write to it; its
  13619. # output is simply discarded. So we exec the FD to /dev/null,
  13620. # effectively closing config.log, so it can be properly (re)opened and
  13621. # appended to by config.status. When coming back to configure, we
  13622. # need to make the FD available again.
  13623. if test "$no_create" != yes; then
  13624. ac_cs_success=:
  13625. ac_config_status_args=
  13626. test "$silent" = yes &&
  13627. ac_config_status_args="$ac_config_status_args --quiet"
  13628. exec 5>/dev/null
  13629. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  13630. exec 5>>config.log
  13631. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  13632. # would make configure fail if this is the last instruction.
  13633. $ac_cs_success || as_fn_exit 1
  13634. fi
  13635. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  13636. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  13637. $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  13638. fi