output.0 406 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166131671316813169131701317113172131731317413175131761317713178131791318013181131821318313184131851318613187131881318913190131911319213193131941319513196131971319813199132001320113202132031320413205132061320713208132091321013211132121321313214132151321613217132181321913220132211322213223132241322513226132271322813229132301323113232132331323413235132361323713238132391324013241132421324313244132451324613247132481324913250132511325213253132541325513256132571325813259132601326113262132631326413265132661326713268132691327013271132721327313274132751327613277132781327913280132811328213283132841328513286132871328813289132901329113292132931329413295132961329713298132991330013301133021330313304133051330613307133081330913310133111331213313133141331513316133171331813319133201332113322133231332413325133261332713328133291333013331133321333313334133351333613337133381333913340133411334213343133441334513346133471334813349133501335113352133531335413355133561335713358133591336013361133621336313364133651336613367133681336913370133711337213373133741337513376133771337813379133801338113382133831338413385133861338713388133891339013391133921339313394133951339613397133981339913400134011340213403134041340513406134071340813409134101341113412134131341413415134161341713418134191342013421134221342313424134251342613427134281342913430134311343213433134341343513436134371343813439134401344113442134431344413445134461344713448134491345013451134521345313454134551345613457134581345913460134611346213463134641346513466134671346813469134701347113472134731347413475134761347713478134791348013481134821348313484134851348613487134881348913490134911349213493134941349513496134971349813499135001350113502135031350413505135061350713508135091351013511135121351313514135151351613517135181351913520135211352213523135241352513526135271352813529135301353113532135331353413535135361353713538135391354013541135421354313544135451354613547135481354913550135511355213553135541355513556135571355813559135601356113562135631356413565135661356713568135691357013571135721357313574135751357613577135781357913580135811358213583135841358513586135871358813589135901359113592135931359413595135961359713598135991360013601136021360313604136051360613607136081360913610136111361213613136141361513616136171361813619136201362113622136231362413625136261362713628136291363013631136321363313634136351363613637136381363913640136411364213643136441364513646136471364813649136501365113652136531365413655136561365713658136591366013661136621366313664136651366613667136681366913670136711367213673136741367513676136771367813679136801368113682136831368413685136861368713688136891369013691136921369313694136951369613697136981369913700137011370213703137041370513706137071370813709137101371113712137131371413715137161371713718137191372013721137221372313724137251372613727137281372913730137311373213733137341373513736137371373813739137401374113742137431374413745137461374713748137491375013751137521375313754137551375613757137581375913760137611376213763137641376513766137671376813769137701377113772137731377413775137761377713778137791378013781137821378313784137851378613787137881378913790137911379213793137941379513796137971379813799138001380113802138031380413805138061380713808138091381013811138121381313814138151381613817138181381913820138211382213823138241382513826138271382813829138301383113832138331383413835138361383713838138391384013841138421384313844138451384613847138481384913850138511385213853138541385513856138571385813859138601386113862138631386413865138661386713868
  1. @%:@! /bin/sh
  2. @%:@ Guess values for system-dependent variables and create Makefiles.
  3. @%:@ Generated by GNU Autoconf 2.68 for OPCUAServer 1.0.
  4. @%:@
  5. @%:@
  6. @%:@ Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
  7. @%:@ 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
  8. @%:@ 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. if test "x$CONFIG_SHELL" = x; then
  126. as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
  127. emulate sh
  128. NULLCMD=:
  129. # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
  130. # is contrary to our usage. Disable this feature.
  131. alias -g '\${1+\"\$@\"}'='\"\$@\"'
  132. setopt NO_GLOB_SUBST
  133. else
  134. case \`(set -o) 2>/dev/null\` in @%:@(
  135. *posix*) :
  136. set -o posix ;; @%:@(
  137. *) :
  138. ;;
  139. esac
  140. fi
  141. "
  142. as_required="as_fn_return () { (exit \$1); }
  143. as_fn_success () { as_fn_return 0; }
  144. as_fn_failure () { as_fn_return 1; }
  145. as_fn_ret_success () { return 0; }
  146. as_fn_ret_failure () { return 1; }
  147. exitcode=0
  148. as_fn_success || { exitcode=1; echo as_fn_success failed.; }
  149. as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
  150. as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
  151. as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
  152. if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
  153. else
  154. exitcode=1; echo positional parameters were not saved.
  155. fi
  156. test x\$exitcode = x0 || exit 1"
  157. as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
  158. as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
  159. eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
  160. test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
  161. test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
  162. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  163. ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
  164. ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
  165. PATH=/empty FPATH=/empty; export PATH FPATH
  166. test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
  167. || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
  168. test \$(( 1 + 1 )) = 2 || exit 1"
  169. if (eval "$as_required") 2>/dev/null; then :
  170. as_have_required=yes
  171. else
  172. as_have_required=no
  173. fi
  174. if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
  175. else
  176. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  177. as_found=false
  178. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  179. do
  180. IFS=$as_save_IFS
  181. test -z "$as_dir" && as_dir=.
  182. as_found=:
  183. case $as_dir in @%:@(
  184. /*)
  185. for as_base in sh bash ksh sh5; do
  186. # Try only shells that exist, to save several forks.
  187. as_shell=$as_dir/$as_base
  188. if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  189. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
  190. CONFIG_SHELL=$as_shell as_have_required=yes
  191. if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
  192. break 2
  193. fi
  194. fi
  195. done;;
  196. esac
  197. as_found=false
  198. done
  199. $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
  200. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
  201. CONFIG_SHELL=$SHELL as_have_required=yes
  202. fi; }
  203. IFS=$as_save_IFS
  204. if test "x$CONFIG_SHELL" != x; then :
  205. # We cannot yet assume a decent shell, so we have to provide a
  206. # neutralization value for shells without unset; and this also
  207. # works around shells that cannot unset nonexistent variables.
  208. # Preserve -v and -x to the replacement shell.
  209. BASH_ENV=/dev/null
  210. ENV=/dev/null
  211. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  212. export CONFIG_SHELL
  213. case $- in @%:@ ((((
  214. *v*x* | *x*v* ) as_opts=-vx ;;
  215. *v* ) as_opts=-v ;;
  216. *x* ) as_opts=-x ;;
  217. * ) as_opts= ;;
  218. esac
  219. exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
  220. fi
  221. if test x$as_have_required = xno; then :
  222. $as_echo "$0: This script requires a shell more modern than all"
  223. $as_echo "$0: the shells that I found on your system."
  224. if test x${ZSH_VERSION+set} = xset ; then
  225. $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
  226. $as_echo "$0: be upgraded to zsh 4.3.4 or later."
  227. else
  228. $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
  229. $0: including any error possibly output before this
  230. $0: message. Then install a modern shell, or manually run
  231. $0: the script under such a shell if you do have one."
  232. fi
  233. exit 1
  234. fi
  235. fi
  236. fi
  237. SHELL=${CONFIG_SHELL-/bin/sh}
  238. export SHELL
  239. # Unset more variables known to interfere with behavior of common tools.
  240. CLICOLOR_FORCE= GREP_OPTIONS=
  241. unset CLICOLOR_FORCE GREP_OPTIONS
  242. ## --------------------- ##
  243. ## M4sh Shell Functions. ##
  244. ## --------------------- ##
  245. @%:@ as_fn_unset VAR
  246. @%:@ ---------------
  247. @%:@ Portably unset VAR.
  248. as_fn_unset ()
  249. {
  250. { eval $1=; unset $1;}
  251. }
  252. as_unset=as_fn_unset
  253. @%:@ as_fn_set_status STATUS
  254. @%:@ -----------------------
  255. @%:@ Set @S|@? to STATUS, without forking.
  256. as_fn_set_status ()
  257. {
  258. return $1
  259. } @%:@ as_fn_set_status
  260. @%:@ as_fn_exit STATUS
  261. @%:@ -----------------
  262. @%:@ Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  263. as_fn_exit ()
  264. {
  265. set +e
  266. as_fn_set_status $1
  267. exit $1
  268. } @%:@ as_fn_exit
  269. @%:@ as_fn_mkdir_p
  270. @%:@ -------------
  271. @%:@ Create "@S|@as_dir" as a directory, including parents if necessary.
  272. as_fn_mkdir_p ()
  273. {
  274. case $as_dir in #(
  275. -*) as_dir=./$as_dir;;
  276. esac
  277. test -d "$as_dir" || eval $as_mkdir_p || {
  278. as_dirs=
  279. while :; do
  280. case $as_dir in #(
  281. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  282. *) as_qdir=$as_dir;;
  283. esac
  284. as_dirs="'$as_qdir' $as_dirs"
  285. as_dir=`$as_dirname -- "$as_dir" ||
  286. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  287. X"$as_dir" : 'X\(//\)[^/]' \| \
  288. X"$as_dir" : 'X\(//\)$' \| \
  289. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  290. $as_echo X"$as_dir" |
  291. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  292. s//\1/
  293. q
  294. }
  295. /^X\(\/\/\)[^/].*/{
  296. s//\1/
  297. q
  298. }
  299. /^X\(\/\/\)$/{
  300. s//\1/
  301. q
  302. }
  303. /^X\(\/\).*/{
  304. s//\1/
  305. q
  306. }
  307. s/.*/./; q'`
  308. test -d "$as_dir" && break
  309. done
  310. test -z "$as_dirs" || eval "mkdir $as_dirs"
  311. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  312. } @%:@ as_fn_mkdir_p
  313. @%:@ as_fn_append VAR VALUE
  314. @%:@ ----------------------
  315. @%:@ Append the text in VALUE to the end of the definition contained in VAR. Take
  316. @%:@ advantage of any shell optimizations that allow amortized linear growth over
  317. @%:@ repeated appends, instead of the typical quadratic growth present in naive
  318. @%:@ implementations.
  319. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  320. eval 'as_fn_append ()
  321. {
  322. eval $1+=\$2
  323. }'
  324. else
  325. as_fn_append ()
  326. {
  327. eval $1=\$$1\$2
  328. }
  329. fi # as_fn_append
  330. @%:@ as_fn_arith ARG...
  331. @%:@ ------------------
  332. @%:@ Perform arithmetic evaluation on the ARGs, and store the result in the
  333. @%:@ global @S|@as_val. Take advantage of shells that can avoid forks. The arguments
  334. @%:@ must be portable across @S|@(()) and expr.
  335. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  336. eval 'as_fn_arith ()
  337. {
  338. as_val=$(( $* ))
  339. }'
  340. else
  341. as_fn_arith ()
  342. {
  343. as_val=`expr "$@" || test $? -eq 1`
  344. }
  345. fi # as_fn_arith
  346. @%:@ as_fn_error STATUS ERROR [LINENO LOG_FD]
  347. @%:@ ----------------------------------------
  348. @%:@ Output "`basename @S|@0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  349. @%:@ provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  350. @%:@ script with STATUS, using 1 if that was 0.
  351. as_fn_error ()
  352. {
  353. as_status=$1; test $as_status -eq 0 && as_status=1
  354. if test "$4"; then
  355. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  356. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  357. fi
  358. $as_echo "$as_me: error: $2" >&2
  359. as_fn_exit $as_status
  360. } @%:@ as_fn_error
  361. if expr a : '\(a\)' >/dev/null 2>&1 &&
  362. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  363. as_expr=expr
  364. else
  365. as_expr=false
  366. fi
  367. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  368. as_basename=basename
  369. else
  370. as_basename=false
  371. fi
  372. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  373. as_dirname=dirname
  374. else
  375. as_dirname=false
  376. fi
  377. as_me=`$as_basename -- "$0" ||
  378. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  379. X"$0" : 'X\(//\)$' \| \
  380. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  381. $as_echo X/"$0" |
  382. sed '/^.*\/\([^/][^/]*\)\/*$/{
  383. s//\1/
  384. q
  385. }
  386. /^X\/\(\/\/\)$/{
  387. s//\1/
  388. q
  389. }
  390. /^X\/\(\/\).*/{
  391. s//\1/
  392. q
  393. }
  394. s/.*/./; q'`
  395. # Avoid depending upon Character Ranges.
  396. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  397. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  398. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  399. as_cr_digits='0123456789'
  400. as_cr_alnum=$as_cr_Letters$as_cr_digits
  401. as_lineno_1=$LINENO as_lineno_1a=$LINENO
  402. as_lineno_2=$LINENO as_lineno_2a=$LINENO
  403. eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
  404. test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
  405. # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
  406. sed -n '
  407. p
  408. /[$]LINENO/=
  409. ' <$as_myself |
  410. sed '
  411. s/[$]LINENO.*/&-/
  412. t lineno
  413. b
  414. :lineno
  415. N
  416. :loop
  417. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  418. t loop
  419. s/-\n.*//
  420. ' >$as_me.lineno &&
  421. chmod +x "$as_me.lineno" ||
  422. { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
  423. # Don't try to exec as it changes $[0], causing all sort of problems
  424. # (the dirname of $[0] is not the place where we might find the
  425. # original and so on. Autoconf is especially sensitive to this).
  426. . "./$as_me.lineno"
  427. # Exit status is that of the last command.
  428. exit
  429. }
  430. ECHO_C= ECHO_N= ECHO_T=
  431. case `echo -n x` in @%:@(((((
  432. -n*)
  433. case `echo 'xy\c'` in
  434. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  435. xy) ECHO_C='\c';;
  436. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  437. ECHO_T=' ';;
  438. esac;;
  439. *)
  440. ECHO_N='-n';;
  441. esac
  442. rm -f conf$$ conf$$.exe conf$$.file
  443. if test -d conf$$.dir; then
  444. rm -f conf$$.dir/conf$$.file
  445. else
  446. rm -f conf$$.dir
  447. mkdir conf$$.dir 2>/dev/null
  448. fi
  449. if (echo >conf$$.file) 2>/dev/null; then
  450. if ln -s conf$$.file conf$$ 2>/dev/null; then
  451. as_ln_s='ln -s'
  452. # ... but there are two gotchas:
  453. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  454. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  455. # In both cases, we have to default to `cp -p'.
  456. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  457. as_ln_s='cp -p'
  458. elif ln conf$$.file conf$$ 2>/dev/null; then
  459. as_ln_s=ln
  460. else
  461. as_ln_s='cp -p'
  462. fi
  463. else
  464. as_ln_s='cp -p'
  465. fi
  466. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  467. rmdir conf$$.dir 2>/dev/null
  468. if mkdir -p . 2>/dev/null; then
  469. as_mkdir_p='mkdir -p "$as_dir"'
  470. else
  471. test -d ./-p && rmdir ./-p
  472. as_mkdir_p=false
  473. fi
  474. if test -x / >/dev/null 2>&1; then
  475. as_test_x='test -x'
  476. else
  477. if ls -dL / >/dev/null 2>&1; then
  478. as_ls_L_option=L
  479. else
  480. as_ls_L_option=
  481. fi
  482. as_test_x='
  483. eval sh -c '\''
  484. if test -d "$1"; then
  485. test -d "$1/.";
  486. else
  487. case $1 in @%:@(
  488. -*)set "./$1";;
  489. esac;
  490. case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in @%:@((
  491. ???[sx]*):;;*)false;;esac;fi
  492. '\'' sh
  493. '
  494. fi
  495. as_executable_p=$as_test_x
  496. # Sed expression to map a string onto a valid CPP name.
  497. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  498. # Sed expression to map a string onto a valid variable name.
  499. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  500. SHELL=${CONFIG_SHELL-/bin/sh}
  501. test -n "$DJDIR" || exec 7<&0 </dev/null
  502. exec 6>&1
  503. # Name of the host.
  504. # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
  505. # so uname gets run too.
  506. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  507. #
  508. # Initializations.
  509. #
  510. ac_default_prefix=/usr/local
  511. ac_clean_files=
  512. ac_config_libobj_dir=.
  513. LIB@&t@OBJS=
  514. cross_compiling=no
  515. subdirs=
  516. MFLAGS=
  517. MAKEFLAGS=
  518. # Identity of this package.
  519. PACKAGE_NAME='OPCUAServer'
  520. PACKAGE_TARNAME='opcuaserver'
  521. PACKAGE_VERSION='1.0'
  522. PACKAGE_STRING='OPCUAServer 1.0'
  523. PACKAGE_BUGREPORT=''
  524. PACKAGE_URL=''
  525. # Factoring default headers for most tests.
  526. ac_includes_default="\
  527. #include <stdio.h>
  528. #ifdef HAVE_SYS_TYPES_H
  529. # include <sys/types.h>
  530. #endif
  531. #ifdef HAVE_SYS_STAT_H
  532. # include <sys/stat.h>
  533. #endif
  534. #ifdef STDC_HEADERS
  535. # include <stdlib.h>
  536. # include <stddef.h>
  537. #else
  538. # ifdef HAVE_STDLIB_H
  539. # include <stdlib.h>
  540. # endif
  541. #endif
  542. #ifdef HAVE_STRING_H
  543. # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
  544. # include <memory.h>
  545. # endif
  546. # include <string.h>
  547. #endif
  548. #ifdef HAVE_STRINGS_H
  549. # include <strings.h>
  550. #endif
  551. #ifdef HAVE_INTTYPES_H
  552. # include <inttypes.h>
  553. #endif
  554. #ifdef HAVE_STDINT_H
  555. # include <stdint.h>
  556. #endif
  557. #ifdef HAVE_UNISTD_H
  558. # include <unistd.h>
  559. #endif"
  560. ac_subst_vars='am__EXEEXT_FALSE
  561. am__EXEEXT_TRUE
  562. LTLIBOBJS
  563. LIB@&t@OBJS
  564. CPP
  565. OTOOL64
  566. OTOOL
  567. LIPO
  568. NMEDIT
  569. DSYMUTIL
  570. MANIFEST_TOOL
  571. RANLIB
  572. ac_ct_AR
  573. AR
  574. DLLTOOL
  575. OBJDUMP
  576. LN_S
  577. NM
  578. ac_ct_DUMPBIN
  579. DUMPBIN
  580. LD
  581. FGREP
  582. EGREP
  583. GREP
  584. SED
  585. LIBTOOL
  586. TARGET_LINUX_FALSE
  587. TARGET_LINUX_TRUE
  588. TARGET_WIN_FALSE
  589. TARGET_WIN_TRUE
  590. HAVE_CHECK_FALSE
  591. HAVE_CHECK_TRUE
  592. CHECK_LIBS
  593. CHECK_CFLAGS
  594. PKG_CONFIG_LIBDIR
  595. PKG_CONFIG_PATH
  596. PKG_CONFIG
  597. am__fastdepCC_FALSE
  598. am__fastdepCC_TRUE
  599. CCDEPMODE
  600. am__nodep
  601. AMDEPBACKSLASH
  602. AMDEP_FALSE
  603. AMDEP_TRUE
  604. am__quote
  605. am__include
  606. DEPDIR
  607. OBJEXT
  608. EXEEXT
  609. ac_ct_CC
  610. CPPFLAGS
  611. LDFLAGS
  612. CFLAGS
  613. CC
  614. am__untar
  615. am__tar
  616. AMTAR
  617. am__leading_dot
  618. SET_MAKE
  619. AWK
  620. mkdir_p
  621. MKDIR_P
  622. INSTALL_STRIP_PROGRAM
  623. STRIP
  624. install_sh
  625. MAKEINFO
  626. AUTOHEADER
  627. AUTOMAKE
  628. AUTOCONF
  629. ACLOCAL
  630. VERSION
  631. PACKAGE
  632. CYGPATH_W
  633. am__isrc
  634. INSTALL_DATA
  635. INSTALL_SCRIPT
  636. INSTALL_PROGRAM
  637. target_os
  638. target_vendor
  639. target_cpu
  640. target
  641. host_os
  642. host_vendor
  643. host_cpu
  644. host
  645. build_os
  646. build_vendor
  647. build_cpu
  648. build
  649. target_alias
  650. host_alias
  651. build_alias
  652. LIBS
  653. ECHO_T
  654. ECHO_N
  655. ECHO_C
  656. DEFS
  657. mandir
  658. localedir
  659. libdir
  660. psdir
  661. pdfdir
  662. dvidir
  663. htmldir
  664. infodir
  665. docdir
  666. oldincludedir
  667. includedir
  668. localstatedir
  669. sharedstatedir
  670. sysconfdir
  671. datadir
  672. datarootdir
  673. libexecdir
  674. sbindir
  675. bindir
  676. program_transform_name
  677. prefix
  678. exec_prefix
  679. PACKAGE_URL
  680. PACKAGE_BUGREPORT
  681. PACKAGE_STRING
  682. PACKAGE_VERSION
  683. PACKAGE_TARNAME
  684. PACKAGE_NAME
  685. PATH_SEPARATOR
  686. SHELL'
  687. ac_subst_files=''
  688. ac_user_opts='
  689. enable_option_checking
  690. enable_dependency_tracking
  691. enable_shared
  692. enable_static
  693. with_pic
  694. enable_fast_install
  695. with_gnu_ld
  696. with_sysroot
  697. enable_libtool_lock
  698. '
  699. ac_precious_vars='build_alias
  700. host_alias
  701. target_alias
  702. CC
  703. CFLAGS
  704. LDFLAGS
  705. LIBS
  706. CPPFLAGS
  707. PKG_CONFIG
  708. PKG_CONFIG_PATH
  709. PKG_CONFIG_LIBDIR
  710. CHECK_CFLAGS
  711. CHECK_LIBS
  712. CPP'
  713. # Initialize some variables set by options.
  714. ac_init_help=
  715. ac_init_version=false
  716. ac_unrecognized_opts=
  717. ac_unrecognized_sep=
  718. # The variables have the same names as the options, with
  719. # dashes changed to underlines.
  720. cache_file=/dev/null
  721. exec_prefix=NONE
  722. no_create=
  723. no_recursion=
  724. prefix=NONE
  725. program_prefix=NONE
  726. program_suffix=NONE
  727. program_transform_name=s,x,x,
  728. silent=
  729. site=
  730. srcdir=
  731. verbose=
  732. x_includes=NONE
  733. x_libraries=NONE
  734. # Installation directory options.
  735. # These are left unexpanded so users can "make install exec_prefix=/foo"
  736. # and all the variables that are supposed to be based on exec_prefix
  737. # by default will actually change.
  738. # Use braces instead of parens because sh, perl, etc. also accept them.
  739. # (The list follows the same order as the GNU Coding Standards.)
  740. bindir='${exec_prefix}/bin'
  741. sbindir='${exec_prefix}/sbin'
  742. libexecdir='${exec_prefix}/libexec'
  743. datarootdir='${prefix}/share'
  744. datadir='${datarootdir}'
  745. sysconfdir='${prefix}/etc'
  746. sharedstatedir='${prefix}/com'
  747. localstatedir='${prefix}/var'
  748. includedir='${prefix}/include'
  749. oldincludedir='/usr/include'
  750. docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
  751. infodir='${datarootdir}/info'
  752. htmldir='${docdir}'
  753. dvidir='${docdir}'
  754. pdfdir='${docdir}'
  755. psdir='${docdir}'
  756. libdir='${exec_prefix}/lib'
  757. localedir='${datarootdir}/locale'
  758. mandir='${datarootdir}/man'
  759. ac_prev=
  760. ac_dashdash=
  761. for ac_option
  762. do
  763. # If the previous option needs an argument, assign it.
  764. if test -n "$ac_prev"; then
  765. eval $ac_prev=\$ac_option
  766. ac_prev=
  767. continue
  768. fi
  769. case $ac_option in
  770. *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  771. *=) ac_optarg= ;;
  772. *) ac_optarg=yes ;;
  773. esac
  774. # Accept the important Cygnus configure options, so we can diagnose typos.
  775. case $ac_dashdash$ac_option in
  776. --)
  777. ac_dashdash=yes ;;
  778. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  779. ac_prev=bindir ;;
  780. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  781. bindir=$ac_optarg ;;
  782. -build | --build | --buil | --bui | --bu)
  783. ac_prev=build_alias ;;
  784. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  785. build_alias=$ac_optarg ;;
  786. -cache-file | --cache-file | --cache-fil | --cache-fi \
  787. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  788. ac_prev=cache_file ;;
  789. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  790. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  791. cache_file=$ac_optarg ;;
  792. --config-cache | -C)
  793. cache_file=config.cache ;;
  794. -datadir | --datadir | --datadi | --datad)
  795. ac_prev=datadir ;;
  796. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  797. datadir=$ac_optarg ;;
  798. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  799. | --dataroo | --dataro | --datar)
  800. ac_prev=datarootdir ;;
  801. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  802. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  803. datarootdir=$ac_optarg ;;
  804. -disable-* | --disable-*)
  805. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  806. # Reject names that are not valid shell variable names.
  807. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  808. as_fn_error $? "invalid feature name: $ac_useropt"
  809. ac_useropt_orig=$ac_useropt
  810. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  811. case $ac_user_opts in
  812. *"
  813. "enable_$ac_useropt"
  814. "*) ;;
  815. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  816. ac_unrecognized_sep=', ';;
  817. esac
  818. eval enable_$ac_useropt=no ;;
  819. -docdir | --docdir | --docdi | --doc | --do)
  820. ac_prev=docdir ;;
  821. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  822. docdir=$ac_optarg ;;
  823. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  824. ac_prev=dvidir ;;
  825. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  826. dvidir=$ac_optarg ;;
  827. -enable-* | --enable-*)
  828. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  829. # Reject names that are not valid shell variable names.
  830. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  831. as_fn_error $? "invalid feature name: $ac_useropt"
  832. ac_useropt_orig=$ac_useropt
  833. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  834. case $ac_user_opts in
  835. *"
  836. "enable_$ac_useropt"
  837. "*) ;;
  838. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  839. ac_unrecognized_sep=', ';;
  840. esac
  841. eval enable_$ac_useropt=\$ac_optarg ;;
  842. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  843. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  844. | --exec | --exe | --ex)
  845. ac_prev=exec_prefix ;;
  846. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  847. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  848. | --exec=* | --exe=* | --ex=*)
  849. exec_prefix=$ac_optarg ;;
  850. -gas | --gas | --ga | --g)
  851. # Obsolete; use --with-gas.
  852. with_gas=yes ;;
  853. -help | --help | --hel | --he | -h)
  854. ac_init_help=long ;;
  855. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  856. ac_init_help=recursive ;;
  857. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  858. ac_init_help=short ;;
  859. -host | --host | --hos | --ho)
  860. ac_prev=host_alias ;;
  861. -host=* | --host=* | --hos=* | --ho=*)
  862. host_alias=$ac_optarg ;;
  863. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  864. ac_prev=htmldir ;;
  865. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  866. | --ht=*)
  867. htmldir=$ac_optarg ;;
  868. -includedir | --includedir | --includedi | --included | --include \
  869. | --includ | --inclu | --incl | --inc)
  870. ac_prev=includedir ;;
  871. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  872. | --includ=* | --inclu=* | --incl=* | --inc=*)
  873. includedir=$ac_optarg ;;
  874. -infodir | --infodir | --infodi | --infod | --info | --inf)
  875. ac_prev=infodir ;;
  876. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  877. infodir=$ac_optarg ;;
  878. -libdir | --libdir | --libdi | --libd)
  879. ac_prev=libdir ;;
  880. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  881. libdir=$ac_optarg ;;
  882. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  883. | --libexe | --libex | --libe)
  884. ac_prev=libexecdir ;;
  885. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  886. | --libexe=* | --libex=* | --libe=*)
  887. libexecdir=$ac_optarg ;;
  888. -localedir | --localedir | --localedi | --localed | --locale)
  889. ac_prev=localedir ;;
  890. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  891. localedir=$ac_optarg ;;
  892. -localstatedir | --localstatedir | --localstatedi | --localstated \
  893. | --localstate | --localstat | --localsta | --localst | --locals)
  894. ac_prev=localstatedir ;;
  895. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  896. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  897. localstatedir=$ac_optarg ;;
  898. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  899. ac_prev=mandir ;;
  900. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  901. mandir=$ac_optarg ;;
  902. -nfp | --nfp | --nf)
  903. # Obsolete; use --without-fp.
  904. with_fp=no ;;
  905. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  906. | --no-cr | --no-c | -n)
  907. no_create=yes ;;
  908. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  909. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  910. no_recursion=yes ;;
  911. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  912. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  913. | --oldin | --oldi | --old | --ol | --o)
  914. ac_prev=oldincludedir ;;
  915. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  916. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  917. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  918. oldincludedir=$ac_optarg ;;
  919. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  920. ac_prev=prefix ;;
  921. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  922. prefix=$ac_optarg ;;
  923. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  924. | --program-pre | --program-pr | --program-p)
  925. ac_prev=program_prefix ;;
  926. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  927. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  928. program_prefix=$ac_optarg ;;
  929. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  930. | --program-suf | --program-su | --program-s)
  931. ac_prev=program_suffix ;;
  932. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  933. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  934. program_suffix=$ac_optarg ;;
  935. -program-transform-name | --program-transform-name \
  936. | --program-transform-nam | --program-transform-na \
  937. | --program-transform-n | --program-transform- \
  938. | --program-transform | --program-transfor \
  939. | --program-transfo | --program-transf \
  940. | --program-trans | --program-tran \
  941. | --progr-tra | --program-tr | --program-t)
  942. ac_prev=program_transform_name ;;
  943. -program-transform-name=* | --program-transform-name=* \
  944. | --program-transform-nam=* | --program-transform-na=* \
  945. | --program-transform-n=* | --program-transform-=* \
  946. | --program-transform=* | --program-transfor=* \
  947. | --program-transfo=* | --program-transf=* \
  948. | --program-trans=* | --program-tran=* \
  949. | --progr-tra=* | --program-tr=* | --program-t=*)
  950. program_transform_name=$ac_optarg ;;
  951. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  952. ac_prev=pdfdir ;;
  953. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  954. pdfdir=$ac_optarg ;;
  955. -psdir | --psdir | --psdi | --psd | --ps)
  956. ac_prev=psdir ;;
  957. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  958. psdir=$ac_optarg ;;
  959. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  960. | -silent | --silent | --silen | --sile | --sil)
  961. silent=yes ;;
  962. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  963. ac_prev=sbindir ;;
  964. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  965. | --sbi=* | --sb=*)
  966. sbindir=$ac_optarg ;;
  967. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  968. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  969. | --sharedst | --shareds | --shared | --share | --shar \
  970. | --sha | --sh)
  971. ac_prev=sharedstatedir ;;
  972. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  973. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  974. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  975. | --sha=* | --sh=*)
  976. sharedstatedir=$ac_optarg ;;
  977. -site | --site | --sit)
  978. ac_prev=site ;;
  979. -site=* | --site=* | --sit=*)
  980. site=$ac_optarg ;;
  981. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  982. ac_prev=srcdir ;;
  983. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  984. srcdir=$ac_optarg ;;
  985. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  986. | --syscon | --sysco | --sysc | --sys | --sy)
  987. ac_prev=sysconfdir ;;
  988. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  989. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  990. sysconfdir=$ac_optarg ;;
  991. -target | --target | --targe | --targ | --tar | --ta | --t)
  992. ac_prev=target_alias ;;
  993. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  994. target_alias=$ac_optarg ;;
  995. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  996. verbose=yes ;;
  997. -version | --version | --versio | --versi | --vers | -V)
  998. ac_init_version=: ;;
  999. -with-* | --with-*)
  1000. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1001. # Reject names that are not valid shell variable names.
  1002. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1003. as_fn_error $? "invalid package name: $ac_useropt"
  1004. ac_useropt_orig=$ac_useropt
  1005. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1006. case $ac_user_opts in
  1007. *"
  1008. "with_$ac_useropt"
  1009. "*) ;;
  1010. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  1011. ac_unrecognized_sep=', ';;
  1012. esac
  1013. eval with_$ac_useropt=\$ac_optarg ;;
  1014. -without-* | --without-*)
  1015. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1016. # Reject names that are not valid shell variable names.
  1017. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1018. as_fn_error $? "invalid package name: $ac_useropt"
  1019. ac_useropt_orig=$ac_useropt
  1020. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1021. case $ac_user_opts in
  1022. *"
  1023. "with_$ac_useropt"
  1024. "*) ;;
  1025. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1026. ac_unrecognized_sep=', ';;
  1027. esac
  1028. eval with_$ac_useropt=no ;;
  1029. --x)
  1030. # Obsolete; use --with-x.
  1031. with_x=yes ;;
  1032. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1033. | --x-incl | --x-inc | --x-in | --x-i)
  1034. ac_prev=x_includes ;;
  1035. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1036. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1037. x_includes=$ac_optarg ;;
  1038. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1039. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1040. ac_prev=x_libraries ;;
  1041. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1042. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1043. x_libraries=$ac_optarg ;;
  1044. -*) as_fn_error $? "unrecognized option: \`$ac_option'
  1045. Try \`$0 --help' for more information"
  1046. ;;
  1047. *=*)
  1048. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1049. # Reject names that are not valid shell variable names.
  1050. case $ac_envvar in #(
  1051. '' | [0-9]* | *[!_$as_cr_alnum]* )
  1052. as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
  1053. esac
  1054. eval $ac_envvar=\$ac_optarg
  1055. export $ac_envvar ;;
  1056. *)
  1057. # FIXME: should be removed in autoconf 3.0.
  1058. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1059. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1060. $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1061. : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
  1062. ;;
  1063. esac
  1064. done
  1065. if test -n "$ac_prev"; then
  1066. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1067. as_fn_error $? "missing argument to $ac_option"
  1068. fi
  1069. if test -n "$ac_unrecognized_opts"; then
  1070. case $enable_option_checking in
  1071. no) ;;
  1072. fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
  1073. *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1074. esac
  1075. fi
  1076. # Check all directory arguments for consistency.
  1077. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1078. datadir sysconfdir sharedstatedir localstatedir includedir \
  1079. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1080. libdir localedir mandir
  1081. do
  1082. eval ac_val=\$$ac_var
  1083. # Remove trailing slashes.
  1084. case $ac_val in
  1085. */ )
  1086. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1087. eval $ac_var=\$ac_val;;
  1088. esac
  1089. # Be sure to have absolute directory names.
  1090. case $ac_val in
  1091. [\\/$]* | ?:[\\/]* ) continue;;
  1092. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1093. esac
  1094. as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
  1095. done
  1096. # There might be people who depend on the old broken behavior: `$host'
  1097. # used to hold the argument of --host etc.
  1098. # FIXME: To remove some day.
  1099. build=$build_alias
  1100. host=$host_alias
  1101. target=$target_alias
  1102. # FIXME: To remove some day.
  1103. if test "x$host_alias" != x; then
  1104. if test "x$build_alias" = x; then
  1105. cross_compiling=maybe
  1106. $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
  1107. If a cross compiler is detected then cross compile mode will be used" >&2
  1108. elif test "x$build_alias" != "x$host_alias"; then
  1109. cross_compiling=yes
  1110. fi
  1111. fi
  1112. ac_tool_prefix=
  1113. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1114. test "$silent" = yes && exec 6>/dev/null
  1115. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1116. ac_ls_di=`ls -di .` &&
  1117. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1118. as_fn_error $? "working directory cannot be determined"
  1119. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1120. as_fn_error $? "pwd does not report name of working directory"
  1121. # Find the source files, if location was not specified.
  1122. if test -z "$srcdir"; then
  1123. ac_srcdir_defaulted=yes
  1124. # Try the directory containing this script, then the parent directory.
  1125. ac_confdir=`$as_dirname -- "$as_myself" ||
  1126. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1127. X"$as_myself" : 'X\(//\)[^/]' \| \
  1128. X"$as_myself" : 'X\(//\)$' \| \
  1129. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1130. $as_echo X"$as_myself" |
  1131. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1132. s//\1/
  1133. q
  1134. }
  1135. /^X\(\/\/\)[^/].*/{
  1136. s//\1/
  1137. q
  1138. }
  1139. /^X\(\/\/\)$/{
  1140. s//\1/
  1141. q
  1142. }
  1143. /^X\(\/\).*/{
  1144. s//\1/
  1145. q
  1146. }
  1147. s/.*/./; q'`
  1148. srcdir=$ac_confdir
  1149. if test ! -r "$srcdir/$ac_unique_file"; then
  1150. srcdir=..
  1151. fi
  1152. else
  1153. ac_srcdir_defaulted=no
  1154. fi
  1155. if test ! -r "$srcdir/$ac_unique_file"; then
  1156. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1157. as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
  1158. fi
  1159. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1160. ac_abs_confdir=`(
  1161. cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
  1162. pwd)`
  1163. # When building in place, set srcdir=.
  1164. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1165. srcdir=.
  1166. fi
  1167. # Remove unnecessary trailing slashes from srcdir.
  1168. # Double slashes in file names in object file debugging info
  1169. # mess up M-x gdb in Emacs.
  1170. case $srcdir in
  1171. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1172. esac
  1173. for ac_var in $ac_precious_vars; do
  1174. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1175. eval ac_env_${ac_var}_value=\$${ac_var}
  1176. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1177. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1178. done
  1179. #
  1180. # Report the --help message.
  1181. #
  1182. if test "$ac_init_help" = "long"; then
  1183. # Omit some internal or obsolete options to make the list less imposing.
  1184. # This message is too long to be a string in the A/UX 3.1 sh.
  1185. cat <<_ACEOF
  1186. \`configure' configures OPCUAServer 1.0 to adapt to many kinds of systems.
  1187. Usage: $0 [OPTION]... [VAR=VALUE]...
  1188. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1189. VAR=VALUE. See below for descriptions of some of the useful variables.
  1190. Defaults for the options are specified in brackets.
  1191. Configuration:
  1192. -h, --help display this help and exit
  1193. --help=short display options specific to this package
  1194. --help=recursive display the short help of all the included packages
  1195. -V, --version display version information and exit
  1196. -q, --quiet, --silent do not print \`checking ...' messages
  1197. --cache-file=FILE cache test results in FILE [disabled]
  1198. -C, --config-cache alias for \`--cache-file=config.cache'
  1199. -n, --no-create do not create output files
  1200. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1201. Installation directories:
  1202. --prefix=PREFIX install architecture-independent files in PREFIX
  1203. @<:@@S|@ac_default_prefix@:>@
  1204. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1205. @<:@PREFIX@:>@
  1206. By default, \`make install' will install all the files in
  1207. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1208. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1209. for instance \`--prefix=\$HOME'.
  1210. For better control, use the options below.
  1211. Fine tuning of the installation directories:
  1212. --bindir=DIR user executables [EPREFIX/bin]
  1213. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1214. --libexecdir=DIR program executables [EPREFIX/libexec]
  1215. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1216. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1217. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1218. --libdir=DIR object code libraries [EPREFIX/lib]
  1219. --includedir=DIR C header files [PREFIX/include]
  1220. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1221. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1222. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1223. --infodir=DIR info documentation [DATAROOTDIR/info]
  1224. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1225. --mandir=DIR man documentation [DATAROOTDIR/man]
  1226. --docdir=DIR documentation root @<:@DATAROOTDIR/doc/opcuaserver@:>@
  1227. --htmldir=DIR html documentation [DOCDIR]
  1228. --dvidir=DIR dvi documentation [DOCDIR]
  1229. --pdfdir=DIR pdf documentation [DOCDIR]
  1230. --psdir=DIR ps documentation [DOCDIR]
  1231. _ACEOF
  1232. cat <<\_ACEOF
  1233. Program names:
  1234. --program-prefix=PREFIX prepend PREFIX to installed program names
  1235. --program-suffix=SUFFIX append SUFFIX to installed program names
  1236. --program-transform-name=PROGRAM run sed PROGRAM on installed program names
  1237. System types:
  1238. --build=BUILD configure for building on BUILD [guessed]
  1239. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1240. --target=TARGET configure for building compilers for TARGET [HOST]
  1241. _ACEOF
  1242. fi
  1243. if test -n "$ac_init_help"; then
  1244. case $ac_init_help in
  1245. short | recursive ) echo "Configuration of OPCUAServer 1.0:";;
  1246. esac
  1247. cat <<\_ACEOF
  1248. Optional Features:
  1249. --disable-option-checking ignore unrecognized --enable/--with options
  1250. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1251. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1252. --disable-dependency-tracking speeds up one-time build
  1253. --enable-dependency-tracking do not reject slow dependency extractors
  1254. --enable-shared@<:@=PKGS@:>@ build shared libraries @<:@default=yes@:>@
  1255. --enable-static@<:@=PKGS@:>@ build static libraries @<:@default=yes@:>@
  1256. --enable-fast-install@<:@=PKGS@:>@
  1257. optimize for fast installation @<:@default=yes@:>@
  1258. --disable-libtool-lock avoid locking (might break parallel builds)
  1259. Optional Packages:
  1260. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1261. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1262. --with-pic@<:@=PKGS@:>@ try to use only PIC/non-PIC objects @<:@default=use
  1263. both@:>@
  1264. --with-gnu-ld assume the C compiler uses GNU ld @<:@default=no@:>@
  1265. --with-sysroot=DIR Search for dependent libraries within DIR
  1266. (or the compiler's sysroot if not specified).
  1267. Some influential environment variables:
  1268. CC C compiler command
  1269. CFLAGS C compiler flags
  1270. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1271. nonstandard directory <lib dir>
  1272. LIBS libraries to pass to the linker, e.g. -l<library>
  1273. CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
  1274. you have headers in a nonstandard directory <include dir>
  1275. PKG_CONFIG path to pkg-config utility
  1276. PKG_CONFIG_PATH
  1277. directories to add to pkg-config's search path
  1278. PKG_CONFIG_LIBDIR
  1279. path overriding pkg-config's built-in search path
  1280. CHECK_CFLAGS
  1281. C compiler flags for CHECK, overriding pkg-config
  1282. CHECK_LIBS linker flags for CHECK, overriding pkg-config
  1283. CPP C preprocessor
  1284. Use these variables to override the choices made by `configure' or to help
  1285. it to find libraries and programs with nonstandard names/locations.
  1286. Report bugs to the package provider.
  1287. _ACEOF
  1288. ac_status=$?
  1289. fi
  1290. if test "$ac_init_help" = "recursive"; then
  1291. # If there are subdirs, report their specific --help.
  1292. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1293. test -d "$ac_dir" ||
  1294. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1295. continue
  1296. ac_builddir=.
  1297. case "$ac_dir" in
  1298. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1299. *)
  1300. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  1301. # A ".." for each directory in $ac_dir_suffix.
  1302. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1303. case $ac_top_builddir_sub in
  1304. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1305. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1306. esac ;;
  1307. esac
  1308. ac_abs_top_builddir=$ac_pwd
  1309. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1310. # for backward compatibility:
  1311. ac_top_builddir=$ac_top_build_prefix
  1312. case $srcdir in
  1313. .) # We are building in place.
  1314. ac_srcdir=.
  1315. ac_top_srcdir=$ac_top_builddir_sub
  1316. ac_abs_top_srcdir=$ac_pwd ;;
  1317. [\\/]* | ?:[\\/]* ) # Absolute name.
  1318. ac_srcdir=$srcdir$ac_dir_suffix;
  1319. ac_top_srcdir=$srcdir
  1320. ac_abs_top_srcdir=$srcdir ;;
  1321. *) # Relative name.
  1322. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1323. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1324. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1325. esac
  1326. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1327. cd "$ac_dir" || { ac_status=$?; continue; }
  1328. # Check for guested configure.
  1329. if test -f "$ac_srcdir/configure.gnu"; then
  1330. echo &&
  1331. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1332. elif test -f "$ac_srcdir/configure"; then
  1333. echo &&
  1334. $SHELL "$ac_srcdir/configure" --help=recursive
  1335. else
  1336. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1337. fi || ac_status=$?
  1338. cd "$ac_pwd" || { ac_status=$?; break; }
  1339. done
  1340. fi
  1341. test -n "$ac_init_help" && exit $ac_status
  1342. if $ac_init_version; then
  1343. cat <<\_ACEOF
  1344. OPCUAServer configure 1.0
  1345. generated by GNU Autoconf 2.68
  1346. Copyright (C) 2010 Free Software Foundation, Inc.
  1347. This configure script is free software; the Free Software Foundation
  1348. gives unlimited permission to copy, distribute and modify it.
  1349. _ACEOF
  1350. exit
  1351. fi
  1352. ## ------------------------ ##
  1353. ## Autoconf initialization. ##
  1354. ## ------------------------ ##
  1355. @%:@ ac_fn_c_try_compile LINENO
  1356. @%:@ --------------------------
  1357. @%:@ Try to compile conftest.@S|@ac_ext, and return whether this succeeded.
  1358. ac_fn_c_try_compile ()
  1359. {
  1360. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1361. rm -f conftest.$ac_objext
  1362. if { { ac_try="$ac_compile"
  1363. case "(($ac_try" in
  1364. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1365. *) ac_try_echo=$ac_try;;
  1366. esac
  1367. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1368. $as_echo "$ac_try_echo"; } >&5
  1369. (eval "$ac_compile") 2>conftest.err
  1370. ac_status=$?
  1371. if test -s conftest.err; then
  1372. grep -v '^ *+' conftest.err >conftest.er1
  1373. cat conftest.er1 >&5
  1374. mv -f conftest.er1 conftest.err
  1375. fi
  1376. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1377. test $ac_status = 0; } && {
  1378. test -z "$ac_c_werror_flag" ||
  1379. test ! -s conftest.err
  1380. } && test -s conftest.$ac_objext; then :
  1381. ac_retval=0
  1382. else
  1383. $as_echo "$as_me: failed program was:" >&5
  1384. sed 's/^/| /' conftest.$ac_ext >&5
  1385. ac_retval=1
  1386. fi
  1387. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1388. as_fn_set_status $ac_retval
  1389. } @%:@ ac_fn_c_try_compile
  1390. @%:@ ac_fn_c_try_link LINENO
  1391. @%:@ -----------------------
  1392. @%:@ Try to link conftest.@S|@ac_ext, and return whether this succeeded.
  1393. ac_fn_c_try_link ()
  1394. {
  1395. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1396. rm -f conftest.$ac_objext conftest$ac_exeext
  1397. if { { ac_try="$ac_link"
  1398. case "(($ac_try" in
  1399. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1400. *) ac_try_echo=$ac_try;;
  1401. esac
  1402. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1403. $as_echo "$ac_try_echo"; } >&5
  1404. (eval "$ac_link") 2>conftest.err
  1405. ac_status=$?
  1406. if test -s conftest.err; then
  1407. grep -v '^ *+' conftest.err >conftest.er1
  1408. cat conftest.er1 >&5
  1409. mv -f conftest.er1 conftest.err
  1410. fi
  1411. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1412. test $ac_status = 0; } && {
  1413. test -z "$ac_c_werror_flag" ||
  1414. test ! -s conftest.err
  1415. } && test -s conftest$ac_exeext && {
  1416. test "$cross_compiling" = yes ||
  1417. $as_test_x conftest$ac_exeext
  1418. }; then :
  1419. ac_retval=0
  1420. else
  1421. $as_echo "$as_me: failed program was:" >&5
  1422. sed 's/^/| /' conftest.$ac_ext >&5
  1423. ac_retval=1
  1424. fi
  1425. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1426. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1427. # interfere with the next link command; also delete a directory that is
  1428. # left behind by Apple's compiler. We do this before executing the actions.
  1429. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1430. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1431. as_fn_set_status $ac_retval
  1432. } @%:@ ac_fn_c_try_link
  1433. @%:@ ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
  1434. @%:@ -------------------------------------------------------
  1435. @%:@ Tests whether HEADER exists and can be compiled using the include files in
  1436. @%:@ INCLUDES, setting the cache variable VAR accordingly.
  1437. ac_fn_c_check_header_compile ()
  1438. {
  1439. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1440. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1441. $as_echo_n "checking for $2... " >&6; }
  1442. if eval \${$3+:} false; then :
  1443. $as_echo_n "(cached) " >&6
  1444. else
  1445. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1446. /* end confdefs.h. */
  1447. $4
  1448. @%:@include <$2>
  1449. _ACEOF
  1450. if ac_fn_c_try_compile "$LINENO"; then :
  1451. eval "$3=yes"
  1452. else
  1453. eval "$3=no"
  1454. fi
  1455. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1456. fi
  1457. eval ac_res=\$$3
  1458. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1459. $as_echo "$ac_res" >&6; }
  1460. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1461. } @%:@ ac_fn_c_check_header_compile
  1462. @%:@ ac_fn_c_try_cpp LINENO
  1463. @%:@ ----------------------
  1464. @%:@ Try to preprocess conftest.@S|@ac_ext, and return whether this succeeded.
  1465. ac_fn_c_try_cpp ()
  1466. {
  1467. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1468. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1469. case "(($ac_try" in
  1470. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1471. *) ac_try_echo=$ac_try;;
  1472. esac
  1473. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1474. $as_echo "$ac_try_echo"; } >&5
  1475. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1476. ac_status=$?
  1477. if test -s conftest.err; then
  1478. grep -v '^ *+' conftest.err >conftest.er1
  1479. cat conftest.er1 >&5
  1480. mv -f conftest.er1 conftest.err
  1481. fi
  1482. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1483. test $ac_status = 0; } > conftest.i && {
  1484. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  1485. test ! -s conftest.err
  1486. }; then :
  1487. ac_retval=0
  1488. else
  1489. $as_echo "$as_me: failed program was:" >&5
  1490. sed 's/^/| /' conftest.$ac_ext >&5
  1491. ac_retval=1
  1492. fi
  1493. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1494. as_fn_set_status $ac_retval
  1495. } @%:@ ac_fn_c_try_cpp
  1496. @%:@ ac_fn_c_try_run LINENO
  1497. @%:@ ----------------------
  1498. @%:@ Try to link conftest.@S|@ac_ext, and return whether this succeeded. Assumes
  1499. @%:@ that executables *can* be run.
  1500. ac_fn_c_try_run ()
  1501. {
  1502. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1503. if { { ac_try="$ac_link"
  1504. case "(($ac_try" in
  1505. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1506. *) ac_try_echo=$ac_try;;
  1507. esac
  1508. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1509. $as_echo "$ac_try_echo"; } >&5
  1510. (eval "$ac_link") 2>&5
  1511. ac_status=$?
  1512. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1513. test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  1514. { { case "(($ac_try" in
  1515. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1516. *) ac_try_echo=$ac_try;;
  1517. esac
  1518. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1519. $as_echo "$ac_try_echo"; } >&5
  1520. (eval "$ac_try") 2>&5
  1521. ac_status=$?
  1522. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1523. test $ac_status = 0; }; }; then :
  1524. ac_retval=0
  1525. else
  1526. $as_echo "$as_me: program exited with status $ac_status" >&5
  1527. $as_echo "$as_me: failed program was:" >&5
  1528. sed 's/^/| /' conftest.$ac_ext >&5
  1529. ac_retval=$ac_status
  1530. fi
  1531. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1532. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1533. as_fn_set_status $ac_retval
  1534. } @%:@ ac_fn_c_try_run
  1535. @%:@ ac_fn_c_check_func LINENO FUNC VAR
  1536. @%:@ ----------------------------------
  1537. @%:@ Tests whether FUNC exists, setting the cache variable VAR accordingly
  1538. ac_fn_c_check_func ()
  1539. {
  1540. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1541. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1542. $as_echo_n "checking for $2... " >&6; }
  1543. if eval \${$3+:} false; then :
  1544. $as_echo_n "(cached) " >&6
  1545. else
  1546. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1547. /* end confdefs.h. */
  1548. /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  1549. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  1550. #define $2 innocuous_$2
  1551. /* System header to define __stub macros and hopefully few prototypes,
  1552. which can conflict with char $2 (); below.
  1553. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  1554. <limits.h> exists even on freestanding compilers. */
  1555. #ifdef __STDC__
  1556. # include <limits.h>
  1557. #else
  1558. # include <assert.h>
  1559. #endif
  1560. #undef $2
  1561. /* Override any GCC internal prototype to avoid an error.
  1562. Use char because int might match the return type of a GCC
  1563. builtin and then its argument prototype would still apply. */
  1564. #ifdef __cplusplus
  1565. extern "C"
  1566. #endif
  1567. char $2 ();
  1568. /* The GNU C library defines this for functions which it implements
  1569. to always fail with ENOSYS. Some functions are actually named
  1570. something starting with __ and the normal name is an alias. */
  1571. #if defined __stub_$2 || defined __stub___$2
  1572. choke me
  1573. #endif
  1574. int
  1575. main ()
  1576. {
  1577. return $2 ();
  1578. ;
  1579. return 0;
  1580. }
  1581. _ACEOF
  1582. if ac_fn_c_try_link "$LINENO"; then :
  1583. eval "$3=yes"
  1584. else
  1585. eval "$3=no"
  1586. fi
  1587. rm -f core conftest.err conftest.$ac_objext \
  1588. conftest$ac_exeext conftest.$ac_ext
  1589. fi
  1590. eval ac_res=\$$3
  1591. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1592. $as_echo "$ac_res" >&6; }
  1593. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1594. } @%:@ ac_fn_c_check_func
  1595. cat >config.log <<_ACEOF
  1596. This file contains any messages produced by compilers while
  1597. running configure, to aid debugging if configure makes a mistake.
  1598. It was created by OPCUAServer $as_me 1.0, which was
  1599. generated by GNU Autoconf 2.68. Invocation command line was
  1600. $ $0 $@
  1601. _ACEOF
  1602. exec 5>>config.log
  1603. {
  1604. cat <<_ASUNAME
  1605. ## --------- ##
  1606. ## Platform. ##
  1607. ## --------- ##
  1608. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  1609. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  1610. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  1611. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  1612. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  1613. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  1614. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  1615. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  1616. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  1617. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  1618. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  1619. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  1620. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  1621. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  1622. _ASUNAME
  1623. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1624. for as_dir in $PATH
  1625. do
  1626. IFS=$as_save_IFS
  1627. test -z "$as_dir" && as_dir=.
  1628. $as_echo "PATH: $as_dir"
  1629. done
  1630. IFS=$as_save_IFS
  1631. } >&5
  1632. cat >&5 <<_ACEOF
  1633. ## ----------- ##
  1634. ## Core tests. ##
  1635. ## ----------- ##
  1636. _ACEOF
  1637. # Keep a trace of the command line.
  1638. # Strip out --no-create and --no-recursion so they do not pile up.
  1639. # Strip out --silent because we don't want to record it for future runs.
  1640. # Also quote any args containing shell meta-characters.
  1641. # Make two passes to allow for proper duplicate-argument suppression.
  1642. ac_configure_args=
  1643. ac_configure_args0=
  1644. ac_configure_args1=
  1645. ac_must_keep_next=false
  1646. for ac_pass in 1 2
  1647. do
  1648. for ac_arg
  1649. do
  1650. case $ac_arg in
  1651. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  1652. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1653. | -silent | --silent | --silen | --sile | --sil)
  1654. continue ;;
  1655. *\'*)
  1656. ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  1657. esac
  1658. case $ac_pass in
  1659. 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  1660. 2)
  1661. as_fn_append ac_configure_args1 " '$ac_arg'"
  1662. if test $ac_must_keep_next = true; then
  1663. ac_must_keep_next=false # Got value, back to normal.
  1664. else
  1665. case $ac_arg in
  1666. *=* | --config-cache | -C | -disable-* | --disable-* \
  1667. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  1668. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  1669. | -with-* | --with-* | -without-* | --without-* | --x)
  1670. case "$ac_configure_args0 " in
  1671. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  1672. esac
  1673. ;;
  1674. -* ) ac_must_keep_next=true ;;
  1675. esac
  1676. fi
  1677. as_fn_append ac_configure_args " '$ac_arg'"
  1678. ;;
  1679. esac
  1680. done
  1681. done
  1682. { ac_configure_args0=; unset ac_configure_args0;}
  1683. { ac_configure_args1=; unset ac_configure_args1;}
  1684. # When interrupted or exit'd, cleanup temporary files, and complete
  1685. # config.log. We remove comments because anyway the quotes in there
  1686. # would cause problems or look ugly.
  1687. # WARNING: Use '\'' to represent an apostrophe within the trap.
  1688. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  1689. trap 'exit_status=$?
  1690. # Save into config.log some information that might help in debugging.
  1691. {
  1692. echo
  1693. $as_echo "## ---------------- ##
  1694. ## Cache variables. ##
  1695. ## ---------------- ##"
  1696. echo
  1697. # The following way of writing the cache mishandles newlines in values,
  1698. (
  1699. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  1700. eval ac_val=\$$ac_var
  1701. case $ac_val in #(
  1702. *${as_nl}*)
  1703. case $ac_var in #(
  1704. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  1705. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  1706. esac
  1707. case $ac_var in #(
  1708. _ | IFS | as_nl) ;; #(
  1709. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  1710. *) { eval $ac_var=; unset $ac_var;} ;;
  1711. esac ;;
  1712. esac
  1713. done
  1714. (set) 2>&1 |
  1715. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  1716. *${as_nl}ac_space=\ *)
  1717. sed -n \
  1718. "s/'\''/'\''\\\\'\'''\''/g;
  1719. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  1720. ;; #(
  1721. *)
  1722. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  1723. ;;
  1724. esac |
  1725. sort
  1726. )
  1727. echo
  1728. $as_echo "## ----------------- ##
  1729. ## Output variables. ##
  1730. ## ----------------- ##"
  1731. echo
  1732. for ac_var in $ac_subst_vars
  1733. do
  1734. eval ac_val=\$$ac_var
  1735. case $ac_val in
  1736. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1737. esac
  1738. $as_echo "$ac_var='\''$ac_val'\''"
  1739. done | sort
  1740. echo
  1741. if test -n "$ac_subst_files"; then
  1742. $as_echo "## ------------------- ##
  1743. ## File substitutions. ##
  1744. ## ------------------- ##"
  1745. echo
  1746. for ac_var in $ac_subst_files
  1747. do
  1748. eval ac_val=\$$ac_var
  1749. case $ac_val in
  1750. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1751. esac
  1752. $as_echo "$ac_var='\''$ac_val'\''"
  1753. done | sort
  1754. echo
  1755. fi
  1756. if test -s confdefs.h; then
  1757. $as_echo "## ----------- ##
  1758. ## confdefs.h. ##
  1759. ## ----------- ##"
  1760. echo
  1761. cat confdefs.h
  1762. echo
  1763. fi
  1764. test "$ac_signal" != 0 &&
  1765. $as_echo "$as_me: caught signal $ac_signal"
  1766. $as_echo "$as_me: exit $exit_status"
  1767. } >&5
  1768. rm -f core *.core core.conftest.* &&
  1769. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  1770. exit $exit_status
  1771. ' 0
  1772. for ac_signal in 1 2 13 15; do
  1773. trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  1774. done
  1775. ac_signal=0
  1776. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  1777. rm -f -r conftest* confdefs.h
  1778. $as_echo "/* confdefs.h */" > confdefs.h
  1779. # Predefined preprocessor variables.
  1780. cat >>confdefs.h <<_ACEOF
  1781. @%:@define PACKAGE_NAME "$PACKAGE_NAME"
  1782. _ACEOF
  1783. cat >>confdefs.h <<_ACEOF
  1784. @%:@define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  1785. _ACEOF
  1786. cat >>confdefs.h <<_ACEOF
  1787. @%:@define PACKAGE_VERSION "$PACKAGE_VERSION"
  1788. _ACEOF
  1789. cat >>confdefs.h <<_ACEOF
  1790. @%:@define PACKAGE_STRING "$PACKAGE_STRING"
  1791. _ACEOF
  1792. cat >>confdefs.h <<_ACEOF
  1793. @%:@define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  1794. _ACEOF
  1795. cat >>confdefs.h <<_ACEOF
  1796. @%:@define PACKAGE_URL "$PACKAGE_URL"
  1797. _ACEOF
  1798. # Let the site file select an alternate cache file if it wants to.
  1799. # Prefer an explicitly selected file to automatically selected ones.
  1800. ac_site_file1=NONE
  1801. ac_site_file2=NONE
  1802. if test -n "$CONFIG_SITE"; then
  1803. # We do not want a PATH search for config.site.
  1804. case $CONFIG_SITE in @%:@((
  1805. -*) ac_site_file1=./$CONFIG_SITE;;
  1806. */*) ac_site_file1=$CONFIG_SITE;;
  1807. *) ac_site_file1=./$CONFIG_SITE;;
  1808. esac
  1809. elif test "x$prefix" != xNONE; then
  1810. ac_site_file1=$prefix/share/config.site
  1811. ac_site_file2=$prefix/etc/config.site
  1812. else
  1813. ac_site_file1=$ac_default_prefix/share/config.site
  1814. ac_site_file2=$ac_default_prefix/etc/config.site
  1815. fi
  1816. for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  1817. do
  1818. test "x$ac_site_file" = xNONE && continue
  1819. if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
  1820. { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  1821. $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  1822. sed 's/^/| /' "$ac_site_file" >&5
  1823. . "$ac_site_file" \
  1824. || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  1825. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  1826. as_fn_error $? "failed to load site script $ac_site_file
  1827. See \`config.log' for more details" "$LINENO" 5; }
  1828. fi
  1829. done
  1830. if test -r "$cache_file"; then
  1831. # Some versions of bash will fail to source /dev/null (special files
  1832. # actually), so we avoid doing that. DJGPP emulates it as a regular file.
  1833. if test /dev/null != "$cache_file" && test -f "$cache_file"; then
  1834. { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  1835. $as_echo "$as_me: loading cache $cache_file" >&6;}
  1836. case $cache_file in
  1837. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  1838. *) . "./$cache_file";;
  1839. esac
  1840. fi
  1841. else
  1842. { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  1843. $as_echo "$as_me: creating cache $cache_file" >&6;}
  1844. >$cache_file
  1845. fi
  1846. # Check that the precious variables saved in the cache have kept the same
  1847. # value.
  1848. ac_cache_corrupted=false
  1849. for ac_var in $ac_precious_vars; do
  1850. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  1851. eval ac_new_set=\$ac_env_${ac_var}_set
  1852. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  1853. eval ac_new_val=\$ac_env_${ac_var}_value
  1854. case $ac_old_set,$ac_new_set in
  1855. set,)
  1856. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  1857. $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  1858. ac_cache_corrupted=: ;;
  1859. ,set)
  1860. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  1861. $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  1862. ac_cache_corrupted=: ;;
  1863. ,);;
  1864. *)
  1865. if test "x$ac_old_val" != "x$ac_new_val"; then
  1866. # differences in whitespace do not lead to failure.
  1867. ac_old_val_w=`echo x $ac_old_val`
  1868. ac_new_val_w=`echo x $ac_new_val`
  1869. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  1870. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  1871. $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  1872. ac_cache_corrupted=:
  1873. else
  1874. { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  1875. $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  1876. eval $ac_var=\$ac_old_val
  1877. fi
  1878. { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  1879. $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  1880. { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  1881. $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  1882. fi;;
  1883. esac
  1884. # Pass precious variables to config.status.
  1885. if test "$ac_new_set" = set; then
  1886. case $ac_new_val in
  1887. *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  1888. *) ac_arg=$ac_var=$ac_new_val ;;
  1889. esac
  1890. case " $ac_configure_args " in
  1891. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  1892. *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  1893. esac
  1894. fi
  1895. done
  1896. if $ac_cache_corrupted; then
  1897. { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  1898. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  1899. { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  1900. $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  1901. as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
  1902. fi
  1903. ## -------------------- ##
  1904. ## Main body of script. ##
  1905. ## -------------------- ##
  1906. ac_ext=c
  1907. ac_cpp='$CPP $CPPFLAGS'
  1908. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  1909. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  1910. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  1911. ac_aux_dir=
  1912. for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
  1913. if test -f "$ac_dir/install-sh"; then
  1914. ac_aux_dir=$ac_dir
  1915. ac_install_sh="$ac_aux_dir/install-sh -c"
  1916. break
  1917. elif test -f "$ac_dir/install.sh"; then
  1918. ac_aux_dir=$ac_dir
  1919. ac_install_sh="$ac_aux_dir/install.sh -c"
  1920. break
  1921. elif test -f "$ac_dir/shtool"; then
  1922. ac_aux_dir=$ac_dir
  1923. ac_install_sh="$ac_aux_dir/shtool install -c"
  1924. break
  1925. fi
  1926. done
  1927. if test -z "$ac_aux_dir"; then
  1928. as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
  1929. fi
  1930. # These three variables are undocumented and unsupported,
  1931. # and are intended to be withdrawn in a future Autoconf release.
  1932. # They can cause serious problems if a builder's source tree is in a directory
  1933. # whose full name contains unusual characters.
  1934. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  1935. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  1936. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  1937. # Make sure we can run config.sub.
  1938. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  1939. as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
  1940. { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  1941. $as_echo_n "checking build system type... " >&6; }
  1942. if ${ac_cv_build+:} false; then :
  1943. $as_echo_n "(cached) " >&6
  1944. else
  1945. ac_build_alias=$build_alias
  1946. test "x$ac_build_alias" = x &&
  1947. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  1948. test "x$ac_build_alias" = x &&
  1949. as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
  1950. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  1951. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
  1952. fi
  1953. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  1954. $as_echo "$ac_cv_build" >&6; }
  1955. case $ac_cv_build in
  1956. *-*-*) ;;
  1957. *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
  1958. esac
  1959. build=$ac_cv_build
  1960. ac_save_IFS=$IFS; IFS='-'
  1961. set x $ac_cv_build
  1962. shift
  1963. build_cpu=$1
  1964. build_vendor=$2
  1965. shift; shift
  1966. # Remember, the first character of IFS is used to create $*,
  1967. # except with old shells:
  1968. build_os=$*
  1969. IFS=$ac_save_IFS
  1970. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  1971. { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  1972. $as_echo_n "checking host system type... " >&6; }
  1973. if ${ac_cv_host+:} false; then :
  1974. $as_echo_n "(cached) " >&6
  1975. else
  1976. if test "x$host_alias" = x; then
  1977. ac_cv_host=$ac_cv_build
  1978. else
  1979. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  1980. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
  1981. fi
  1982. fi
  1983. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  1984. $as_echo "$ac_cv_host" >&6; }
  1985. case $ac_cv_host in
  1986. *-*-*) ;;
  1987. *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
  1988. esac
  1989. host=$ac_cv_host
  1990. ac_save_IFS=$IFS; IFS='-'
  1991. set x $ac_cv_host
  1992. shift
  1993. host_cpu=$1
  1994. host_vendor=$2
  1995. shift; shift
  1996. # Remember, the first character of IFS is used to create $*,
  1997. # except with old shells:
  1998. host_os=$*
  1999. IFS=$ac_save_IFS
  2000. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  2001. { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
  2002. $as_echo_n "checking target system type... " >&6; }
  2003. if ${ac_cv_target+:} false; then :
  2004. $as_echo_n "(cached) " >&6
  2005. else
  2006. if test "x$target_alias" = x; then
  2007. ac_cv_target=$ac_cv_host
  2008. else
  2009. ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
  2010. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
  2011. fi
  2012. fi
  2013. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
  2014. $as_echo "$ac_cv_target" >&6; }
  2015. case $ac_cv_target in
  2016. *-*-*) ;;
  2017. *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
  2018. esac
  2019. target=$ac_cv_target
  2020. ac_save_IFS=$IFS; IFS='-'
  2021. set x $ac_cv_target
  2022. shift
  2023. target_cpu=$1
  2024. target_vendor=$2
  2025. shift; shift
  2026. # Remember, the first character of IFS is used to create $*,
  2027. # except with old shells:
  2028. target_os=$*
  2029. IFS=$ac_save_IFS
  2030. case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
  2031. # The aliases save the names the user supplied, while $host etc.
  2032. # will get canonicalized.
  2033. test -n "$target_alias" &&
  2034. test "$program_prefix$program_suffix$program_transform_name" = \
  2035. NONENONEs,x,x, &&
  2036. program_prefix=${target_alias}-
  2037. am__api_version='1.11'
  2038. # Find a good install program. We prefer a C program (faster),
  2039. # so one script is as good as another. But avoid the broken or
  2040. # incompatible versions:
  2041. # SysV /etc/install, /usr/sbin/install
  2042. # SunOS /usr/etc/install
  2043. # IRIX /sbin/install
  2044. # AIX /bin/install
  2045. # AmigaOS /C/install, which installs bootblocks on floppy discs
  2046. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  2047. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  2048. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  2049. # OS/2's system install, which has a completely different semantic
  2050. # ./install, which can be erroneously created by make from ./install.sh.
  2051. # Reject install programs that cannot install multiple files.
  2052. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  2053. $as_echo_n "checking for a BSD-compatible install... " >&6; }
  2054. if test -z "$INSTALL"; then
  2055. if ${ac_cv_path_install+:} false; then :
  2056. $as_echo_n "(cached) " >&6
  2057. else
  2058. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2059. for as_dir in $PATH
  2060. do
  2061. IFS=$as_save_IFS
  2062. test -z "$as_dir" && as_dir=.
  2063. # Account for people who put trailing slashes in PATH elements.
  2064. case $as_dir/ in @%:@((
  2065. ./ | .// | /[cC]/* | \
  2066. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  2067. ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  2068. /usr/ucb/* ) ;;
  2069. *)
  2070. # OSF1 and SCO ODT 3.0 have their own names for install.
  2071. # Don't use installbsd from OSF since it installs stuff as root
  2072. # by default.
  2073. for ac_prog in ginstall scoinst install; do
  2074. for ac_exec_ext in '' $ac_executable_extensions; do
  2075. if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
  2076. if test $ac_prog = install &&
  2077. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2078. # AIX install. It has an incompatible calling convention.
  2079. :
  2080. elif test $ac_prog = install &&
  2081. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2082. # program-specific install script used by HP pwplus--don't use.
  2083. :
  2084. else
  2085. rm -rf conftest.one conftest.two conftest.dir
  2086. echo one > conftest.one
  2087. echo two > conftest.two
  2088. mkdir conftest.dir
  2089. if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
  2090. test -s conftest.one && test -s conftest.two &&
  2091. test -s conftest.dir/conftest.one &&
  2092. test -s conftest.dir/conftest.two
  2093. then
  2094. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  2095. break 3
  2096. fi
  2097. fi
  2098. fi
  2099. done
  2100. done
  2101. ;;
  2102. esac
  2103. done
  2104. IFS=$as_save_IFS
  2105. rm -rf conftest.one conftest.two conftest.dir
  2106. fi
  2107. if test "${ac_cv_path_install+set}" = set; then
  2108. INSTALL=$ac_cv_path_install
  2109. else
  2110. # As a last resort, use the slow shell script. Don't cache a
  2111. # value for INSTALL within a source directory, because that will
  2112. # break other packages using the cache if that directory is
  2113. # removed, or if the value is a relative name.
  2114. INSTALL=$ac_install_sh
  2115. fi
  2116. fi
  2117. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  2118. $as_echo "$INSTALL" >&6; }
  2119. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  2120. # It thinks the first close brace ends the variable substitution.
  2121. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  2122. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  2123. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  2124. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
  2125. $as_echo_n "checking whether build environment is sane... " >&6; }
  2126. # Just in case
  2127. sleep 1
  2128. echo timestamp > conftest.file
  2129. # Reject unsafe characters in $srcdir or the absolute working directory
  2130. # name. Accept space and tab only in the latter.
  2131. am_lf='
  2132. '
  2133. case `pwd` in
  2134. *[\\\"\#\$\&\'\`$am_lf]*)
  2135. as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
  2136. esac
  2137. case $srcdir in
  2138. *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
  2139. as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
  2140. esac
  2141. # Do `set' in a subshell so we don't clobber the current shell's
  2142. # arguments. Must try -L first in case configure is actually a
  2143. # symlink; some systems play weird games with the mod time of symlinks
  2144. # (eg FreeBSD returns the mod time of the symlink's containing
  2145. # directory).
  2146. if (
  2147. set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
  2148. if test "$*" = "X"; then
  2149. # -L didn't work.
  2150. set X `ls -t "$srcdir/configure" conftest.file`
  2151. fi
  2152. rm -f conftest.file
  2153. if test "$*" != "X $srcdir/configure conftest.file" \
  2154. && test "$*" != "X conftest.file $srcdir/configure"; then
  2155. # If neither matched, then we have a broken ls. This can happen
  2156. # if, for instance, CONFIG_SHELL is bash and it inherits a
  2157. # broken ls alias from the environment. This has actually
  2158. # happened. Such a system could not be considered "sane".
  2159. as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
  2160. alias in your environment" "$LINENO" 5
  2161. fi
  2162. test "$2" = conftest.file
  2163. )
  2164. then
  2165. # Ok.
  2166. :
  2167. else
  2168. as_fn_error $? "newly created file is older than distributed files!
  2169. Check your system clock" "$LINENO" 5
  2170. fi
  2171. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2172. $as_echo "yes" >&6; }
  2173. test "$program_prefix" != NONE &&
  2174. program_transform_name="s&^&$program_prefix&;$program_transform_name"
  2175. # Use a double $ so make ignores it.
  2176. test "$program_suffix" != NONE &&
  2177. program_transform_name="s&\$&$program_suffix&;$program_transform_name"
  2178. # Double any \ or $.
  2179. # By default was `s,x,x', remove it if useless.
  2180. ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
  2181. program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
  2182. # expand $ac_aux_dir to an absolute path
  2183. am_aux_dir=`cd $ac_aux_dir && pwd`
  2184. if test x"${MISSING+set}" != xset; then
  2185. case $am_aux_dir in
  2186. *\ * | *\ *)
  2187. MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
  2188. *)
  2189. MISSING="\${SHELL} $am_aux_dir/missing" ;;
  2190. esac
  2191. fi
  2192. # Use eval to expand $SHELL
  2193. if eval "$MISSING --run true"; then
  2194. am_missing_run="$MISSING --run "
  2195. else
  2196. am_missing_run=
  2197. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
  2198. $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
  2199. fi
  2200. if test x"${install_sh}" != xset; then
  2201. case $am_aux_dir in
  2202. *\ * | *\ *)
  2203. install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
  2204. *)
  2205. install_sh="\${SHELL} $am_aux_dir/install-sh"
  2206. esac
  2207. fi
  2208. # Installed binaries are usually stripped using `strip' when the user
  2209. # run `make install-strip'. However `strip' might not be the right
  2210. # tool to use in cross-compilation environments, therefore Automake
  2211. # will honor the `STRIP' environment variable to overrule this program.
  2212. if test "$cross_compiling" != no; then
  2213. if test -n "$ac_tool_prefix"; then
  2214. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  2215. set dummy ${ac_tool_prefix}strip; ac_word=$2
  2216. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2217. $as_echo_n "checking for $ac_word... " >&6; }
  2218. if ${ac_cv_prog_STRIP+:} false; then :
  2219. $as_echo_n "(cached) " >&6
  2220. else
  2221. if test -n "$STRIP"; then
  2222. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  2223. else
  2224. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2225. for as_dir in $PATH
  2226. do
  2227. IFS=$as_save_IFS
  2228. test -z "$as_dir" && as_dir=.
  2229. for ac_exec_ext in '' $ac_executable_extensions; do
  2230. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2231. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  2232. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2233. break 2
  2234. fi
  2235. done
  2236. done
  2237. IFS=$as_save_IFS
  2238. fi
  2239. fi
  2240. STRIP=$ac_cv_prog_STRIP
  2241. if test -n "$STRIP"; then
  2242. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  2243. $as_echo "$STRIP" >&6; }
  2244. else
  2245. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2246. $as_echo "no" >&6; }
  2247. fi
  2248. fi
  2249. if test -z "$ac_cv_prog_STRIP"; then
  2250. ac_ct_STRIP=$STRIP
  2251. # Extract the first word of "strip", so it can be a program name with args.
  2252. set dummy strip; ac_word=$2
  2253. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2254. $as_echo_n "checking for $ac_word... " >&6; }
  2255. if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
  2256. $as_echo_n "(cached) " >&6
  2257. else
  2258. if test -n "$ac_ct_STRIP"; then
  2259. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  2260. else
  2261. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2262. for as_dir in $PATH
  2263. do
  2264. IFS=$as_save_IFS
  2265. test -z "$as_dir" && as_dir=.
  2266. for ac_exec_ext in '' $ac_executable_extensions; do
  2267. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2268. ac_cv_prog_ac_ct_STRIP="strip"
  2269. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2270. break 2
  2271. fi
  2272. done
  2273. done
  2274. IFS=$as_save_IFS
  2275. fi
  2276. fi
  2277. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  2278. if test -n "$ac_ct_STRIP"; then
  2279. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  2280. $as_echo "$ac_ct_STRIP" >&6; }
  2281. else
  2282. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2283. $as_echo "no" >&6; }
  2284. fi
  2285. if test "x$ac_ct_STRIP" = x; then
  2286. STRIP=":"
  2287. else
  2288. case $cross_compiling:$ac_tool_warned in
  2289. yes:)
  2290. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2291. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2292. ac_tool_warned=yes ;;
  2293. esac
  2294. STRIP=$ac_ct_STRIP
  2295. fi
  2296. else
  2297. STRIP="$ac_cv_prog_STRIP"
  2298. fi
  2299. fi
  2300. INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
  2301. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
  2302. $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
  2303. if test -z "$MKDIR_P"; then
  2304. if ${ac_cv_path_mkdir+:} false; then :
  2305. $as_echo_n "(cached) " >&6
  2306. else
  2307. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2308. for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
  2309. do
  2310. IFS=$as_save_IFS
  2311. test -z "$as_dir" && as_dir=.
  2312. for ac_prog in mkdir gmkdir; do
  2313. for ac_exec_ext in '' $ac_executable_extensions; do
  2314. { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
  2315. case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
  2316. 'mkdir (GNU coreutils) '* | \
  2317. 'mkdir (coreutils) '* | \
  2318. 'mkdir (fileutils) '4.1*)
  2319. ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
  2320. break 3;;
  2321. esac
  2322. done
  2323. done
  2324. done
  2325. IFS=$as_save_IFS
  2326. fi
  2327. test -d ./--version && rmdir ./--version
  2328. if test "${ac_cv_path_mkdir+set}" = set; then
  2329. MKDIR_P="$ac_cv_path_mkdir -p"
  2330. else
  2331. # As a last resort, use the slow shell script. Don't cache a
  2332. # value for MKDIR_P within a source directory, because that will
  2333. # break other packages using the cache if that directory is
  2334. # removed, or if the value is a relative name.
  2335. MKDIR_P="$ac_install_sh -d"
  2336. fi
  2337. fi
  2338. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
  2339. $as_echo "$MKDIR_P" >&6; }
  2340. mkdir_p="$MKDIR_P"
  2341. case $mkdir_p in
  2342. [\\/$]* | ?:[\\/]*) ;;
  2343. */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
  2344. esac
  2345. for ac_prog in gawk mawk nawk awk
  2346. do
  2347. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2348. set dummy $ac_prog; ac_word=$2
  2349. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2350. $as_echo_n "checking for $ac_word... " >&6; }
  2351. if ${ac_cv_prog_AWK+:} false; then :
  2352. $as_echo_n "(cached) " >&6
  2353. else
  2354. if test -n "$AWK"; then
  2355. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  2356. else
  2357. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2358. for as_dir in $PATH
  2359. do
  2360. IFS=$as_save_IFS
  2361. test -z "$as_dir" && as_dir=.
  2362. for ac_exec_ext in '' $ac_executable_extensions; do
  2363. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2364. ac_cv_prog_AWK="$ac_prog"
  2365. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2366. break 2
  2367. fi
  2368. done
  2369. done
  2370. IFS=$as_save_IFS
  2371. fi
  2372. fi
  2373. AWK=$ac_cv_prog_AWK
  2374. if test -n "$AWK"; then
  2375. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  2376. $as_echo "$AWK" >&6; }
  2377. else
  2378. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2379. $as_echo "no" >&6; }
  2380. fi
  2381. test -n "$AWK" && break
  2382. done
  2383. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  2384. $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  2385. set x ${MAKE-make}
  2386. ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  2387. if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
  2388. $as_echo_n "(cached) " >&6
  2389. else
  2390. cat >conftest.make <<\_ACEOF
  2391. SHELL = /bin/sh
  2392. all:
  2393. @echo '@@@%%%=$(MAKE)=@@@%%%'
  2394. _ACEOF
  2395. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  2396. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  2397. *@@@%%%=?*=@@@%%%*)
  2398. eval ac_cv_prog_make_${ac_make}_set=yes;;
  2399. *)
  2400. eval ac_cv_prog_make_${ac_make}_set=no;;
  2401. esac
  2402. rm -f conftest.make
  2403. fi
  2404. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  2405. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2406. $as_echo "yes" >&6; }
  2407. SET_MAKE=
  2408. else
  2409. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2410. $as_echo "no" >&6; }
  2411. SET_MAKE="MAKE=${MAKE-make}"
  2412. fi
  2413. rm -rf .tst 2>/dev/null
  2414. mkdir .tst 2>/dev/null
  2415. if test -d .tst; then
  2416. am__leading_dot=.
  2417. else
  2418. am__leading_dot=_
  2419. fi
  2420. rmdir .tst 2>/dev/null
  2421. if test "`cd $srcdir && pwd`" != "`pwd`"; then
  2422. # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
  2423. # is not polluted with repeated "-I."
  2424. am__isrc=' -I$(srcdir)'
  2425. # test to see if srcdir already configured
  2426. if test -f $srcdir/config.status; then
  2427. as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
  2428. fi
  2429. fi
  2430. # test whether we have cygpath
  2431. if test -z "$CYGPATH_W"; then
  2432. if (cygpath --version) >/dev/null 2>/dev/null; then
  2433. CYGPATH_W='cygpath -w'
  2434. else
  2435. CYGPATH_W=echo
  2436. fi
  2437. fi
  2438. # Define the identity of the package.
  2439. PACKAGE='opcuaserver'
  2440. VERSION='1.0'
  2441. cat >>confdefs.h <<_ACEOF
  2442. @%:@define PACKAGE "$PACKAGE"
  2443. _ACEOF
  2444. cat >>confdefs.h <<_ACEOF
  2445. @%:@define VERSION "$VERSION"
  2446. _ACEOF
  2447. # Some tools Automake needs.
  2448. ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
  2449. AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
  2450. AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
  2451. AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
  2452. MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
  2453. # We need awk for the "check" target. The system "awk" is bad on
  2454. # some platforms.
  2455. # Always define AMTAR for backward compatibility. Yes, it's still used
  2456. # in the wild :-( We should find a proper way to deprecate it ...
  2457. AMTAR='$${TAR-tar}'
  2458. am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
  2459. ac_ext=c
  2460. ac_cpp='$CPP $CPPFLAGS'
  2461. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2462. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2463. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2464. if test -n "$ac_tool_prefix"; then
  2465. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  2466. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  2467. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2468. $as_echo_n "checking for $ac_word... " >&6; }
  2469. if ${ac_cv_prog_CC+:} false; then :
  2470. $as_echo_n "(cached) " >&6
  2471. else
  2472. if test -n "$CC"; then
  2473. ac_cv_prog_CC="$CC" # Let the user override the test.
  2474. else
  2475. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2476. for as_dir in $PATH
  2477. do
  2478. IFS=$as_save_IFS
  2479. test -z "$as_dir" && as_dir=.
  2480. for ac_exec_ext in '' $ac_executable_extensions; do
  2481. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2482. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  2483. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2484. break 2
  2485. fi
  2486. done
  2487. done
  2488. IFS=$as_save_IFS
  2489. fi
  2490. fi
  2491. CC=$ac_cv_prog_CC
  2492. if test -n "$CC"; then
  2493. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2494. $as_echo "$CC" >&6; }
  2495. else
  2496. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2497. $as_echo "no" >&6; }
  2498. fi
  2499. fi
  2500. if test -z "$ac_cv_prog_CC"; then
  2501. ac_ct_CC=$CC
  2502. # Extract the first word of "gcc", so it can be a program name with args.
  2503. set dummy gcc; ac_word=$2
  2504. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2505. $as_echo_n "checking for $ac_word... " >&6; }
  2506. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  2507. $as_echo_n "(cached) " >&6
  2508. else
  2509. if test -n "$ac_ct_CC"; then
  2510. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2511. else
  2512. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2513. for as_dir in $PATH
  2514. do
  2515. IFS=$as_save_IFS
  2516. test -z "$as_dir" && as_dir=.
  2517. for ac_exec_ext in '' $ac_executable_extensions; do
  2518. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2519. ac_cv_prog_ac_ct_CC="gcc"
  2520. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2521. break 2
  2522. fi
  2523. done
  2524. done
  2525. IFS=$as_save_IFS
  2526. fi
  2527. fi
  2528. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2529. if test -n "$ac_ct_CC"; then
  2530. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2531. $as_echo "$ac_ct_CC" >&6; }
  2532. else
  2533. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2534. $as_echo "no" >&6; }
  2535. fi
  2536. if test "x$ac_ct_CC" = x; then
  2537. CC=""
  2538. else
  2539. case $cross_compiling:$ac_tool_warned in
  2540. yes:)
  2541. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2542. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2543. ac_tool_warned=yes ;;
  2544. esac
  2545. CC=$ac_ct_CC
  2546. fi
  2547. else
  2548. CC="$ac_cv_prog_CC"
  2549. fi
  2550. if test -z "$CC"; then
  2551. if test -n "$ac_tool_prefix"; then
  2552. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  2553. set dummy ${ac_tool_prefix}cc; ac_word=$2
  2554. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2555. $as_echo_n "checking for $ac_word... " >&6; }
  2556. if ${ac_cv_prog_CC+:} false; then :
  2557. $as_echo_n "(cached) " >&6
  2558. else
  2559. if test -n "$CC"; then
  2560. ac_cv_prog_CC="$CC" # Let the user override the test.
  2561. else
  2562. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2563. for as_dir in $PATH
  2564. do
  2565. IFS=$as_save_IFS
  2566. test -z "$as_dir" && as_dir=.
  2567. for ac_exec_ext in '' $ac_executable_extensions; do
  2568. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2569. ac_cv_prog_CC="${ac_tool_prefix}cc"
  2570. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2571. break 2
  2572. fi
  2573. done
  2574. done
  2575. IFS=$as_save_IFS
  2576. fi
  2577. fi
  2578. CC=$ac_cv_prog_CC
  2579. if test -n "$CC"; then
  2580. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2581. $as_echo "$CC" >&6; }
  2582. else
  2583. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2584. $as_echo "no" >&6; }
  2585. fi
  2586. fi
  2587. fi
  2588. if test -z "$CC"; then
  2589. # Extract the first word of "cc", so it can be a program name with args.
  2590. set dummy cc; ac_word=$2
  2591. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2592. $as_echo_n "checking for $ac_word... " >&6; }
  2593. if ${ac_cv_prog_CC+:} false; then :
  2594. $as_echo_n "(cached) " >&6
  2595. else
  2596. if test -n "$CC"; then
  2597. ac_cv_prog_CC="$CC" # Let the user override the test.
  2598. else
  2599. ac_prog_rejected=no
  2600. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2601. for as_dir in $PATH
  2602. do
  2603. IFS=$as_save_IFS
  2604. test -z "$as_dir" && as_dir=.
  2605. for ac_exec_ext in '' $ac_executable_extensions; do
  2606. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2607. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  2608. ac_prog_rejected=yes
  2609. continue
  2610. fi
  2611. ac_cv_prog_CC="cc"
  2612. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2613. break 2
  2614. fi
  2615. done
  2616. done
  2617. IFS=$as_save_IFS
  2618. if test $ac_prog_rejected = yes; then
  2619. # We found a bogon in the path, so make sure we never use it.
  2620. set dummy $ac_cv_prog_CC
  2621. shift
  2622. if test $@%:@ != 0; then
  2623. # We chose a different compiler from the bogus one.
  2624. # However, it has the same basename, so the bogon will be chosen
  2625. # first if we set CC to just the basename; use the full file name.
  2626. shift
  2627. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  2628. fi
  2629. fi
  2630. fi
  2631. fi
  2632. CC=$ac_cv_prog_CC
  2633. if test -n "$CC"; then
  2634. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2635. $as_echo "$CC" >&6; }
  2636. else
  2637. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2638. $as_echo "no" >&6; }
  2639. fi
  2640. fi
  2641. if test -z "$CC"; then
  2642. if test -n "$ac_tool_prefix"; then
  2643. for ac_prog in cl.exe
  2644. do
  2645. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  2646. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  2647. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2648. $as_echo_n "checking for $ac_word... " >&6; }
  2649. if ${ac_cv_prog_CC+:} false; then :
  2650. $as_echo_n "(cached) " >&6
  2651. else
  2652. if test -n "$CC"; then
  2653. ac_cv_prog_CC="$CC" # Let the user override the test.
  2654. else
  2655. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2656. for as_dir in $PATH
  2657. do
  2658. IFS=$as_save_IFS
  2659. test -z "$as_dir" && as_dir=.
  2660. for ac_exec_ext in '' $ac_executable_extensions; do
  2661. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2662. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  2663. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2664. break 2
  2665. fi
  2666. done
  2667. done
  2668. IFS=$as_save_IFS
  2669. fi
  2670. fi
  2671. CC=$ac_cv_prog_CC
  2672. if test -n "$CC"; then
  2673. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2674. $as_echo "$CC" >&6; }
  2675. else
  2676. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2677. $as_echo "no" >&6; }
  2678. fi
  2679. test -n "$CC" && break
  2680. done
  2681. fi
  2682. if test -z "$CC"; then
  2683. ac_ct_CC=$CC
  2684. for ac_prog in cl.exe
  2685. do
  2686. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2687. set dummy $ac_prog; ac_word=$2
  2688. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2689. $as_echo_n "checking for $ac_word... " >&6; }
  2690. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  2691. $as_echo_n "(cached) " >&6
  2692. else
  2693. if test -n "$ac_ct_CC"; then
  2694. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2695. else
  2696. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2697. for as_dir in $PATH
  2698. do
  2699. IFS=$as_save_IFS
  2700. test -z "$as_dir" && as_dir=.
  2701. for ac_exec_ext in '' $ac_executable_extensions; do
  2702. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2703. ac_cv_prog_ac_ct_CC="$ac_prog"
  2704. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2705. break 2
  2706. fi
  2707. done
  2708. done
  2709. IFS=$as_save_IFS
  2710. fi
  2711. fi
  2712. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2713. if test -n "$ac_ct_CC"; then
  2714. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2715. $as_echo "$ac_ct_CC" >&6; }
  2716. else
  2717. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2718. $as_echo "no" >&6; }
  2719. fi
  2720. test -n "$ac_ct_CC" && break
  2721. done
  2722. if test "x$ac_ct_CC" = x; then
  2723. CC=""
  2724. else
  2725. case $cross_compiling:$ac_tool_warned in
  2726. yes:)
  2727. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2728. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2729. ac_tool_warned=yes ;;
  2730. esac
  2731. CC=$ac_ct_CC
  2732. fi
  2733. fi
  2734. fi
  2735. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2736. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2737. as_fn_error $? "no acceptable C compiler found in \$PATH
  2738. See \`config.log' for more details" "$LINENO" 5; }
  2739. # Provide some information about the compiler.
  2740. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  2741. set X $ac_compile
  2742. ac_compiler=$2
  2743. for ac_option in --version -v -V -qversion; do
  2744. { { ac_try="$ac_compiler $ac_option >&5"
  2745. case "(($ac_try" in
  2746. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2747. *) ac_try_echo=$ac_try;;
  2748. esac
  2749. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2750. $as_echo "$ac_try_echo"; } >&5
  2751. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  2752. ac_status=$?
  2753. if test -s conftest.err; then
  2754. sed '10a\
  2755. ... rest of stderr output deleted ...
  2756. 10q' conftest.err >conftest.er1
  2757. cat conftest.er1 >&5
  2758. fi
  2759. rm -f conftest.er1 conftest.err
  2760. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2761. test $ac_status = 0; }
  2762. done
  2763. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2764. /* end confdefs.h. */
  2765. int
  2766. main ()
  2767. {
  2768. ;
  2769. return 0;
  2770. }
  2771. _ACEOF
  2772. ac_clean_files_save=$ac_clean_files
  2773. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  2774. # Try to create an executable without -o first, disregard a.out.
  2775. # It will help us diagnose broken compilers, and finding out an intuition
  2776. # of exeext.
  2777. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
  2778. $as_echo_n "checking whether the C compiler works... " >&6; }
  2779. ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  2780. # The possible output files:
  2781. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  2782. ac_rmfiles=
  2783. for ac_file in $ac_files
  2784. do
  2785. case $ac_file in
  2786. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  2787. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  2788. esac
  2789. done
  2790. rm -f $ac_rmfiles
  2791. if { { ac_try="$ac_link_default"
  2792. case "(($ac_try" in
  2793. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2794. *) ac_try_echo=$ac_try;;
  2795. esac
  2796. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2797. $as_echo "$ac_try_echo"; } >&5
  2798. (eval "$ac_link_default") 2>&5
  2799. ac_status=$?
  2800. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2801. test $ac_status = 0; }; then :
  2802. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  2803. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  2804. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  2805. # so that the user can short-circuit this test for compilers unknown to
  2806. # Autoconf.
  2807. for ac_file in $ac_files ''
  2808. do
  2809. test -f "$ac_file" || continue
  2810. case $ac_file in
  2811. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  2812. ;;
  2813. [ab].out )
  2814. # We found the default executable, but exeext='' is most
  2815. # certainly right.
  2816. break;;
  2817. *.* )
  2818. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  2819. then :; else
  2820. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2821. fi
  2822. # We set ac_cv_exeext here because the later test for it is not
  2823. # safe: cross compilers may not add the suffix if given an `-o'
  2824. # argument, so we may need to know it at that point already.
  2825. # Even if this section looks crufty: it has the advantage of
  2826. # actually working.
  2827. break;;
  2828. * )
  2829. break;;
  2830. esac
  2831. done
  2832. test "$ac_cv_exeext" = no && ac_cv_exeext=
  2833. else
  2834. ac_file=''
  2835. fi
  2836. if test -z "$ac_file"; then :
  2837. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2838. $as_echo "no" >&6; }
  2839. $as_echo "$as_me: failed program was:" >&5
  2840. sed 's/^/| /' conftest.$ac_ext >&5
  2841. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2842. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2843. as_fn_error 77 "C compiler cannot create executables
  2844. See \`config.log' for more details" "$LINENO" 5; }
  2845. else
  2846. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2847. $as_echo "yes" >&6; }
  2848. fi
  2849. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
  2850. $as_echo_n "checking for C compiler default output file name... " >&6; }
  2851. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  2852. $as_echo "$ac_file" >&6; }
  2853. ac_exeext=$ac_cv_exeext
  2854. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  2855. ac_clean_files=$ac_clean_files_save
  2856. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  2857. $as_echo_n "checking for suffix of executables... " >&6; }
  2858. if { { ac_try="$ac_link"
  2859. case "(($ac_try" in
  2860. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2861. *) ac_try_echo=$ac_try;;
  2862. esac
  2863. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2864. $as_echo "$ac_try_echo"; } >&5
  2865. (eval "$ac_link") 2>&5
  2866. ac_status=$?
  2867. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2868. test $ac_status = 0; }; then :
  2869. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  2870. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  2871. # work properly (i.e., refer to `conftest.exe'), while it won't with
  2872. # `rm'.
  2873. for ac_file in conftest.exe conftest conftest.*; do
  2874. test -f "$ac_file" || continue
  2875. case $ac_file in
  2876. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  2877. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2878. break;;
  2879. * ) break;;
  2880. esac
  2881. done
  2882. else
  2883. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2884. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2885. as_fn_error $? "cannot compute suffix of executables: cannot compile and link
  2886. See \`config.log' for more details" "$LINENO" 5; }
  2887. fi
  2888. rm -f conftest conftest$ac_cv_exeext
  2889. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  2890. $as_echo "$ac_cv_exeext" >&6; }
  2891. rm -f conftest.$ac_ext
  2892. EXEEXT=$ac_cv_exeext
  2893. ac_exeext=$EXEEXT
  2894. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2895. /* end confdefs.h. */
  2896. @%:@include <stdio.h>
  2897. int
  2898. main ()
  2899. {
  2900. FILE *f = fopen ("conftest.out", "w");
  2901. return ferror (f) || fclose (f) != 0;
  2902. ;
  2903. return 0;
  2904. }
  2905. _ACEOF
  2906. ac_clean_files="$ac_clean_files conftest.out"
  2907. # Check that the compiler produces executables we can run. If not, either
  2908. # the compiler is broken, or we cross compile.
  2909. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  2910. $as_echo_n "checking whether we are cross compiling... " >&6; }
  2911. if test "$cross_compiling" != yes; then
  2912. { { ac_try="$ac_link"
  2913. case "(($ac_try" in
  2914. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2915. *) ac_try_echo=$ac_try;;
  2916. esac
  2917. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2918. $as_echo "$ac_try_echo"; } >&5
  2919. (eval "$ac_link") 2>&5
  2920. ac_status=$?
  2921. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2922. test $ac_status = 0; }
  2923. if { ac_try='./conftest$ac_cv_exeext'
  2924. { { case "(($ac_try" in
  2925. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2926. *) ac_try_echo=$ac_try;;
  2927. esac
  2928. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2929. $as_echo "$ac_try_echo"; } >&5
  2930. (eval "$ac_try") 2>&5
  2931. ac_status=$?
  2932. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2933. test $ac_status = 0; }; }; then
  2934. cross_compiling=no
  2935. else
  2936. if test "$cross_compiling" = maybe; then
  2937. cross_compiling=yes
  2938. else
  2939. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2940. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2941. as_fn_error $? "cannot run C compiled programs.
  2942. If you meant to cross compile, use \`--host'.
  2943. See \`config.log' for more details" "$LINENO" 5; }
  2944. fi
  2945. fi
  2946. fi
  2947. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  2948. $as_echo "$cross_compiling" >&6; }
  2949. rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
  2950. ac_clean_files=$ac_clean_files_save
  2951. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  2952. $as_echo_n "checking for suffix of object files... " >&6; }
  2953. if ${ac_cv_objext+:} false; then :
  2954. $as_echo_n "(cached) " >&6
  2955. else
  2956. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2957. /* end confdefs.h. */
  2958. int
  2959. main ()
  2960. {
  2961. ;
  2962. return 0;
  2963. }
  2964. _ACEOF
  2965. rm -f conftest.o conftest.obj
  2966. if { { ac_try="$ac_compile"
  2967. case "(($ac_try" in
  2968. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2969. *) ac_try_echo=$ac_try;;
  2970. esac
  2971. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2972. $as_echo "$ac_try_echo"; } >&5
  2973. (eval "$ac_compile") 2>&5
  2974. ac_status=$?
  2975. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2976. test $ac_status = 0; }; then :
  2977. for ac_file in conftest.o conftest.obj conftest.*; do
  2978. test -f "$ac_file" || continue;
  2979. case $ac_file in
  2980. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  2981. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  2982. break;;
  2983. esac
  2984. done
  2985. else
  2986. $as_echo "$as_me: failed program was:" >&5
  2987. sed 's/^/| /' conftest.$ac_ext >&5
  2988. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2989. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2990. as_fn_error $? "cannot compute suffix of object files: cannot compile
  2991. See \`config.log' for more details" "$LINENO" 5; }
  2992. fi
  2993. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  2994. fi
  2995. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  2996. $as_echo "$ac_cv_objext" >&6; }
  2997. OBJEXT=$ac_cv_objext
  2998. ac_objext=$OBJEXT
  2999. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  3000. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  3001. if ${ac_cv_c_compiler_gnu+:} false; then :
  3002. $as_echo_n "(cached) " >&6
  3003. else
  3004. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3005. /* end confdefs.h. */
  3006. int
  3007. main ()
  3008. {
  3009. #ifndef __GNUC__
  3010. choke me
  3011. #endif
  3012. ;
  3013. return 0;
  3014. }
  3015. _ACEOF
  3016. if ac_fn_c_try_compile "$LINENO"; then :
  3017. ac_compiler_gnu=yes
  3018. else
  3019. ac_compiler_gnu=no
  3020. fi
  3021. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3022. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  3023. fi
  3024. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  3025. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  3026. if test $ac_compiler_gnu = yes; then
  3027. GCC=yes
  3028. else
  3029. GCC=
  3030. fi
  3031. ac_test_CFLAGS=${CFLAGS+set}
  3032. ac_save_CFLAGS=$CFLAGS
  3033. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  3034. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  3035. if ${ac_cv_prog_cc_g+:} false; then :
  3036. $as_echo_n "(cached) " >&6
  3037. else
  3038. ac_save_c_werror_flag=$ac_c_werror_flag
  3039. ac_c_werror_flag=yes
  3040. ac_cv_prog_cc_g=no
  3041. CFLAGS="-g"
  3042. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3043. /* end confdefs.h. */
  3044. int
  3045. main ()
  3046. {
  3047. ;
  3048. return 0;
  3049. }
  3050. _ACEOF
  3051. if ac_fn_c_try_compile "$LINENO"; then :
  3052. ac_cv_prog_cc_g=yes
  3053. else
  3054. CFLAGS=""
  3055. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3056. /* end confdefs.h. */
  3057. int
  3058. main ()
  3059. {
  3060. ;
  3061. return 0;
  3062. }
  3063. _ACEOF
  3064. if ac_fn_c_try_compile "$LINENO"; then :
  3065. else
  3066. ac_c_werror_flag=$ac_save_c_werror_flag
  3067. CFLAGS="-g"
  3068. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3069. /* end confdefs.h. */
  3070. int
  3071. main ()
  3072. {
  3073. ;
  3074. return 0;
  3075. }
  3076. _ACEOF
  3077. if ac_fn_c_try_compile "$LINENO"; then :
  3078. ac_cv_prog_cc_g=yes
  3079. fi
  3080. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3081. fi
  3082. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3083. fi
  3084. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3085. ac_c_werror_flag=$ac_save_c_werror_flag
  3086. fi
  3087. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  3088. $as_echo "$ac_cv_prog_cc_g" >&6; }
  3089. if test "$ac_test_CFLAGS" = set; then
  3090. CFLAGS=$ac_save_CFLAGS
  3091. elif test $ac_cv_prog_cc_g = yes; then
  3092. if test "$GCC" = yes; then
  3093. CFLAGS="-g -O2"
  3094. else
  3095. CFLAGS="-g"
  3096. fi
  3097. else
  3098. if test "$GCC" = yes; then
  3099. CFLAGS="-O2"
  3100. else
  3101. CFLAGS=
  3102. fi
  3103. fi
  3104. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  3105. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  3106. if ${ac_cv_prog_cc_c89+:} false; then :
  3107. $as_echo_n "(cached) " >&6
  3108. else
  3109. ac_cv_prog_cc_c89=no
  3110. ac_save_CC=$CC
  3111. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3112. /* end confdefs.h. */
  3113. #include <stdarg.h>
  3114. #include <stdio.h>
  3115. #include <sys/types.h>
  3116. #include <sys/stat.h>
  3117. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  3118. struct buf { int x; };
  3119. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  3120. static char *e (p, i)
  3121. char **p;
  3122. int i;
  3123. {
  3124. return p[i];
  3125. }
  3126. static char *f (char * (*g) (char **, int), char **p, ...)
  3127. {
  3128. char *s;
  3129. va_list v;
  3130. va_start (v,p);
  3131. s = g (p, va_arg (v,int));
  3132. va_end (v);
  3133. return s;
  3134. }
  3135. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  3136. function prototypes and stuff, but not '\xHH' hex character constants.
  3137. These don't provoke an error unfortunately, instead are silently treated
  3138. as 'x'. The following induces an error, until -std is added to get
  3139. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  3140. array size at least. It's necessary to write '\x00'==0 to get something
  3141. that's true only with -std. */
  3142. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  3143. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  3144. inside strings and character constants. */
  3145. #define FOO(x) 'x'
  3146. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  3147. int test (int i, double x);
  3148. struct s1 {int (*f) (int a);};
  3149. struct s2 {int (*f) (double a);};
  3150. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  3151. int argc;
  3152. char **argv;
  3153. int
  3154. main ()
  3155. {
  3156. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  3157. ;
  3158. return 0;
  3159. }
  3160. _ACEOF
  3161. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  3162. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  3163. do
  3164. CC="$ac_save_CC $ac_arg"
  3165. if ac_fn_c_try_compile "$LINENO"; then :
  3166. ac_cv_prog_cc_c89=$ac_arg
  3167. fi
  3168. rm -f core conftest.err conftest.$ac_objext
  3169. test "x$ac_cv_prog_cc_c89" != "xno" && break
  3170. done
  3171. rm -f conftest.$ac_ext
  3172. CC=$ac_save_CC
  3173. fi
  3174. # AC_CACHE_VAL
  3175. case "x$ac_cv_prog_cc_c89" in
  3176. x)
  3177. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  3178. $as_echo "none needed" >&6; } ;;
  3179. xno)
  3180. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  3181. $as_echo "unsupported" >&6; } ;;
  3182. *)
  3183. CC="$CC $ac_cv_prog_cc_c89"
  3184. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  3185. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  3186. esac
  3187. if test "x$ac_cv_prog_cc_c89" != xno; then :
  3188. fi
  3189. ac_ext=c
  3190. ac_cpp='$CPP $CPPFLAGS'
  3191. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3192. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3193. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3194. DEPDIR="${am__leading_dot}deps"
  3195. ac_config_commands="$ac_config_commands depfiles"
  3196. am_make=${MAKE-make}
  3197. cat > confinc << 'END'
  3198. am__doit:
  3199. @echo this is the am__doit target
  3200. .PHONY: am__doit
  3201. END
  3202. # If we don't find an include directive, just comment out the code.
  3203. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
  3204. $as_echo_n "checking for style of include used by $am_make... " >&6; }
  3205. am__include="#"
  3206. am__quote=
  3207. _am_result=none
  3208. # First try GNU make style include.
  3209. echo "include confinc" > confmf
  3210. # Ignore all kinds of additional output from `make'.
  3211. case `$am_make -s -f confmf 2> /dev/null` in #(
  3212. *the\ am__doit\ target*)
  3213. am__include=include
  3214. am__quote=
  3215. _am_result=GNU
  3216. ;;
  3217. esac
  3218. # Now try BSD make style include.
  3219. if test "$am__include" = "#"; then
  3220. echo '.include "confinc"' > confmf
  3221. case `$am_make -s -f confmf 2> /dev/null` in #(
  3222. *the\ am__doit\ target*)
  3223. am__include=.include
  3224. am__quote="\""
  3225. _am_result=BSD
  3226. ;;
  3227. esac
  3228. fi
  3229. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
  3230. $as_echo "$_am_result" >&6; }
  3231. rm -f confinc confmf
  3232. @%:@ Check whether --enable-dependency-tracking was given.
  3233. if test "${enable_dependency_tracking+set}" = set; then :
  3234. enableval=$enable_dependency_tracking;
  3235. fi
  3236. if test "x$enable_dependency_tracking" != xno; then
  3237. am_depcomp="$ac_aux_dir/depcomp"
  3238. AMDEPBACKSLASH='\'
  3239. am__nodep='_no'
  3240. fi
  3241. if test "x$enable_dependency_tracking" != xno; then
  3242. AMDEP_TRUE=
  3243. AMDEP_FALSE='#'
  3244. else
  3245. AMDEP_TRUE='#'
  3246. AMDEP_FALSE=
  3247. fi
  3248. depcc="$CC" am_compiler_list=
  3249. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  3250. $as_echo_n "checking dependency style of $depcc... " >&6; }
  3251. if ${am_cv_CC_dependencies_compiler_type+:} false; then :
  3252. $as_echo_n "(cached) " >&6
  3253. else
  3254. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  3255. # We make a subdir and do the tests there. Otherwise we can end up
  3256. # making bogus files that we don't know about and never remove. For
  3257. # instance it was reported that on HP-UX the gcc test will end up
  3258. # making a dummy file named `D' -- because `-MD' means `put the output
  3259. # in D'.
  3260. rm -rf conftest.dir
  3261. mkdir conftest.dir
  3262. # Copy depcomp to subdir because otherwise we won't find it if we're
  3263. # using a relative directory.
  3264. cp "$am_depcomp" conftest.dir
  3265. cd conftest.dir
  3266. # We will build objects and dependencies in a subdirectory because
  3267. # it helps to detect inapplicable dependency modes. For instance
  3268. # both Tru64's cc and ICC support -MD to output dependencies as a
  3269. # side effect of compilation, but ICC will put the dependencies in
  3270. # the current directory while Tru64 will put them in the object
  3271. # directory.
  3272. mkdir sub
  3273. am_cv_CC_dependencies_compiler_type=none
  3274. if test "$am_compiler_list" = ""; then
  3275. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  3276. fi
  3277. am__universal=false
  3278. case " $depcc " in #(
  3279. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  3280. esac
  3281. for depmode in $am_compiler_list; do
  3282. # Setup a source with many dependencies, because some compilers
  3283. # like to wrap large dependency lists on column 80 (with \), and
  3284. # we should not choose a depcomp mode which is confused by this.
  3285. #
  3286. # We need to recreate these files for each test, as the compiler may
  3287. # overwrite some of them when testing with obscure command lines.
  3288. # This happens at least with the AIX C compiler.
  3289. : > sub/conftest.c
  3290. for i in 1 2 3 4 5 6; do
  3291. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  3292. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  3293. # Solaris 8's {/usr,}/bin/sh.
  3294. touch sub/conftst$i.h
  3295. done
  3296. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  3297. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  3298. # mode. It turns out that the SunPro C++ compiler does not properly
  3299. # handle `-M -o', and we need to detect this. Also, some Intel
  3300. # versions had trouble with output in subdirs
  3301. am__obj=sub/conftest.${OBJEXT-o}
  3302. am__minus_obj="-o $am__obj"
  3303. case $depmode in
  3304. gcc)
  3305. # This depmode causes a compiler race in universal mode.
  3306. test "$am__universal" = false || continue
  3307. ;;
  3308. nosideeffect)
  3309. # after this tag, mechanisms are not by side-effect, so they'll
  3310. # only be used when explicitly requested
  3311. if test "x$enable_dependency_tracking" = xyes; then
  3312. continue
  3313. else
  3314. break
  3315. fi
  3316. ;;
  3317. msvc7 | msvc7msys | msvisualcpp | msvcmsys)
  3318. # This compiler won't grok `-c -o', but also, the minuso test has
  3319. # not run yet. These depmodes are late enough in the game, and
  3320. # so weak that their functioning should not be impacted.
  3321. am__obj=conftest.${OBJEXT-o}
  3322. am__minus_obj=
  3323. ;;
  3324. none) break ;;
  3325. esac
  3326. if depmode=$depmode \
  3327. source=sub/conftest.c object=$am__obj \
  3328. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  3329. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  3330. >/dev/null 2>conftest.err &&
  3331. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  3332. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  3333. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  3334. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  3335. # icc doesn't choke on unknown options, it will just issue warnings
  3336. # or remarks (even with -Werror). So we grep stderr for any message
  3337. # that says an option was ignored or not supported.
  3338. # When given -MP, icc 7.0 and 7.1 complain thusly:
  3339. # icc: Command line warning: ignoring option '-M'; no argument required
  3340. # The diagnosis changed in icc 8.0:
  3341. # icc: Command line remark: option '-MP' not supported
  3342. if (grep 'ignoring option' conftest.err ||
  3343. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  3344. am_cv_CC_dependencies_compiler_type=$depmode
  3345. break
  3346. fi
  3347. fi
  3348. done
  3349. cd ..
  3350. rm -rf conftest.dir
  3351. else
  3352. am_cv_CC_dependencies_compiler_type=none
  3353. fi
  3354. fi
  3355. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
  3356. $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
  3357. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  3358. if
  3359. test "x$enable_dependency_tracking" != xno \
  3360. && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  3361. am__fastdepCC_TRUE=
  3362. am__fastdepCC_FALSE='#'
  3363. else
  3364. am__fastdepCC_TRUE='#'
  3365. am__fastdepCC_FALSE=
  3366. fi
  3367. if test "x$CC" != xcc; then
  3368. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
  3369. $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
  3370. else
  3371. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
  3372. $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
  3373. fi
  3374. set dummy $CC; ac_cc=`$as_echo "$2" |
  3375. sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
  3376. if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
  3377. $as_echo_n "(cached) " >&6
  3378. else
  3379. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3380. /* end confdefs.h. */
  3381. int
  3382. main ()
  3383. {
  3384. ;
  3385. return 0;
  3386. }
  3387. _ACEOF
  3388. # Make sure it works both with $CC and with simple cc.
  3389. # We do the test twice because some compilers refuse to overwrite an
  3390. # existing .o file with -o, though they will create one.
  3391. ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
  3392. rm -f conftest2.*
  3393. if { { case "(($ac_try" in
  3394. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3395. *) ac_try_echo=$ac_try;;
  3396. esac
  3397. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3398. $as_echo "$ac_try_echo"; } >&5
  3399. (eval "$ac_try") 2>&5
  3400. ac_status=$?
  3401. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3402. test $ac_status = 0; } &&
  3403. test -f conftest2.$ac_objext && { { case "(($ac_try" in
  3404. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3405. *) ac_try_echo=$ac_try;;
  3406. esac
  3407. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3408. $as_echo "$ac_try_echo"; } >&5
  3409. (eval "$ac_try") 2>&5
  3410. ac_status=$?
  3411. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3412. test $ac_status = 0; };
  3413. then
  3414. eval ac_cv_prog_cc_${ac_cc}_c_o=yes
  3415. if test "x$CC" != xcc; then
  3416. # Test first that cc exists at all.
  3417. if { ac_try='cc -c conftest.$ac_ext >&5'
  3418. { { case "(($ac_try" in
  3419. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3420. *) ac_try_echo=$ac_try;;
  3421. esac
  3422. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3423. $as_echo "$ac_try_echo"; } >&5
  3424. (eval "$ac_try") 2>&5
  3425. ac_status=$?
  3426. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3427. test $ac_status = 0; }; }; then
  3428. ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
  3429. rm -f conftest2.*
  3430. if { { case "(($ac_try" in
  3431. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3432. *) ac_try_echo=$ac_try;;
  3433. esac
  3434. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3435. $as_echo "$ac_try_echo"; } >&5
  3436. (eval "$ac_try") 2>&5
  3437. ac_status=$?
  3438. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3439. test $ac_status = 0; } &&
  3440. test -f conftest2.$ac_objext && { { case "(($ac_try" in
  3441. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3442. *) ac_try_echo=$ac_try;;
  3443. esac
  3444. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3445. $as_echo "$ac_try_echo"; } >&5
  3446. (eval "$ac_try") 2>&5
  3447. ac_status=$?
  3448. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3449. test $ac_status = 0; };
  3450. then
  3451. # cc works too.
  3452. :
  3453. else
  3454. # cc exists but doesn't like -o.
  3455. eval ac_cv_prog_cc_${ac_cc}_c_o=no
  3456. fi
  3457. fi
  3458. fi
  3459. else
  3460. eval ac_cv_prog_cc_${ac_cc}_c_o=no
  3461. fi
  3462. rm -f core conftest*
  3463. fi
  3464. if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
  3465. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3466. $as_echo "yes" >&6; }
  3467. else
  3468. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3469. $as_echo "no" >&6; }
  3470. $as_echo "@%:@define NO_MINUS_C_MINUS_O 1" >>confdefs.h
  3471. fi
  3472. # FIXME: we rely on the cache variable name because
  3473. # there is no other way.
  3474. set dummy $CC
  3475. am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
  3476. eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
  3477. if test "$am_t" != yes; then
  3478. # Losing compiler, so override with the script.
  3479. # FIXME: It is wrong to rewrite CC.
  3480. # But if we don't then we get into trouble of one sort or another.
  3481. # A longer-term fix would be to have automake use am__CC in this case,
  3482. # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
  3483. CC="$am_aux_dir/compile $CC"
  3484. fi
  3485. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exp in -lm" >&5
  3486. $as_echo_n "checking for exp in -lm... " >&6; }
  3487. if ${ac_cv_lib_m_exp+:} false; then :
  3488. $as_echo_n "(cached) " >&6
  3489. else
  3490. ac_check_lib_save_LIBS=$LIBS
  3491. LIBS="-lm $LIBS"
  3492. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3493. /* end confdefs.h. */
  3494. /* Override any GCC internal prototype to avoid an error.
  3495. Use char because int might match the return type of a GCC
  3496. builtin and then its argument prototype would still apply. */
  3497. #ifdef __cplusplus
  3498. extern "C"
  3499. #endif
  3500. char exp ();
  3501. int
  3502. main ()
  3503. {
  3504. return exp ();
  3505. ;
  3506. return 0;
  3507. }
  3508. _ACEOF
  3509. if ac_fn_c_try_link "$LINENO"; then :
  3510. ac_cv_lib_m_exp=yes
  3511. else
  3512. ac_cv_lib_m_exp=no
  3513. fi
  3514. rm -f core conftest.err conftest.$ac_objext \
  3515. conftest$ac_exeext conftest.$ac_ext
  3516. LIBS=$ac_check_lib_save_LIBS
  3517. fi
  3518. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_exp" >&5
  3519. $as_echo "$ac_cv_lib_m_exp" >&6; }
  3520. if test "x$ac_cv_lib_m_exp" = xyes; then :
  3521. cat >>confdefs.h <<_ACEOF
  3522. @%:@define HAVE_LIBM 1
  3523. _ACEOF
  3524. LIBS="-lm $LIBS"
  3525. else
  3526. as_fn_error $? "Libm missing" "$LINENO" 5
  3527. fi
  3528. if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
  3529. if test -n "$ac_tool_prefix"; then
  3530. # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
  3531. set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
  3532. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3533. $as_echo_n "checking for $ac_word... " >&6; }
  3534. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  3535. $as_echo_n "(cached) " >&6
  3536. else
  3537. case $PKG_CONFIG in
  3538. [\\/]* | ?:[\\/]*)
  3539. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  3540. ;;
  3541. *)
  3542. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3543. for as_dir in $PATH
  3544. do
  3545. IFS=$as_save_IFS
  3546. test -z "$as_dir" && as_dir=.
  3547. for ac_exec_ext in '' $ac_executable_extensions; do
  3548. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3549. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  3550. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3551. break 2
  3552. fi
  3553. done
  3554. done
  3555. IFS=$as_save_IFS
  3556. ;;
  3557. esac
  3558. fi
  3559. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  3560. if test -n "$PKG_CONFIG"; then
  3561. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  3562. $as_echo "$PKG_CONFIG" >&6; }
  3563. else
  3564. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3565. $as_echo "no" >&6; }
  3566. fi
  3567. fi
  3568. if test -z "$ac_cv_path_PKG_CONFIG"; then
  3569. ac_pt_PKG_CONFIG=$PKG_CONFIG
  3570. # Extract the first word of "pkg-config", so it can be a program name with args.
  3571. set dummy pkg-config; ac_word=$2
  3572. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3573. $as_echo_n "checking for $ac_word... " >&6; }
  3574. if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
  3575. $as_echo_n "(cached) " >&6
  3576. else
  3577. case $ac_pt_PKG_CONFIG in
  3578. [\\/]* | ?:[\\/]*)
  3579. ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
  3580. ;;
  3581. *)
  3582. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3583. for as_dir in $PATH
  3584. do
  3585. IFS=$as_save_IFS
  3586. test -z "$as_dir" && as_dir=.
  3587. for ac_exec_ext in '' $ac_executable_extensions; do
  3588. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3589. ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  3590. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3591. break 2
  3592. fi
  3593. done
  3594. done
  3595. IFS=$as_save_IFS
  3596. ;;
  3597. esac
  3598. fi
  3599. ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
  3600. if test -n "$ac_pt_PKG_CONFIG"; then
  3601. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
  3602. $as_echo "$ac_pt_PKG_CONFIG" >&6; }
  3603. else
  3604. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3605. $as_echo "no" >&6; }
  3606. fi
  3607. if test "x$ac_pt_PKG_CONFIG" = x; then
  3608. PKG_CONFIG=""
  3609. else
  3610. case $cross_compiling:$ac_tool_warned in
  3611. yes:)
  3612. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3613. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3614. ac_tool_warned=yes ;;
  3615. esac
  3616. PKG_CONFIG=$ac_pt_PKG_CONFIG
  3617. fi
  3618. else
  3619. PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
  3620. fi
  3621. fi
  3622. if test -n "$PKG_CONFIG"; then
  3623. _pkg_min_version=0.9.0
  3624. { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
  3625. $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
  3626. if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
  3627. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3628. $as_echo "yes" >&6; }
  3629. else
  3630. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3631. $as_echo "no" >&6; }
  3632. PKG_CONFIG=""
  3633. fi
  3634. fi
  3635. pkg_failed=no
  3636. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHECK" >&5
  3637. $as_echo_n "checking for CHECK... " >&6; }
  3638. if test -n "$CHECK_CFLAGS"; then
  3639. pkg_cv_CHECK_CFLAGS="$CHECK_CFLAGS"
  3640. elif test -n "$PKG_CONFIG"; then
  3641. if test -n "$PKG_CONFIG" && \
  3642. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"check >= 0.9.4\""; } >&5
  3643. ($PKG_CONFIG --exists --print-errors "check >= 0.9.4") 2>&5
  3644. ac_status=$?
  3645. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3646. test $ac_status = 0; }; then
  3647. pkg_cv_CHECK_CFLAGS=`$PKG_CONFIG --cflags "check >= 0.9.4" 2>/dev/null`
  3648. test "x$?" != "x0" && pkg_failed=yes
  3649. else
  3650. pkg_failed=yes
  3651. fi
  3652. else
  3653. pkg_failed=untried
  3654. fi
  3655. if test -n "$CHECK_LIBS"; then
  3656. pkg_cv_CHECK_LIBS="$CHECK_LIBS"
  3657. elif test -n "$PKG_CONFIG"; then
  3658. if test -n "$PKG_CONFIG" && \
  3659. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"check >= 0.9.4\""; } >&5
  3660. ($PKG_CONFIG --exists --print-errors "check >= 0.9.4") 2>&5
  3661. ac_status=$?
  3662. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3663. test $ac_status = 0; }; then
  3664. pkg_cv_CHECK_LIBS=`$PKG_CONFIG --libs "check >= 0.9.4" 2>/dev/null`
  3665. test "x$?" != "x0" && pkg_failed=yes
  3666. else
  3667. pkg_failed=yes
  3668. fi
  3669. else
  3670. pkg_failed=untried
  3671. fi
  3672. if test $pkg_failed = yes; then
  3673. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3674. $as_echo "no" >&6; }
  3675. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  3676. _pkg_short_errors_supported=yes
  3677. else
  3678. _pkg_short_errors_supported=no
  3679. fi
  3680. if test $_pkg_short_errors_supported = yes; then
  3681. CHECK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "check >= 0.9.4" 2>&1`
  3682. else
  3683. CHECK_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "check >= 0.9.4" 2>&1`
  3684. fi
  3685. # Put the nasty error message in config.log where it belongs
  3686. echo "$CHECK_PKG_ERRORS" >&5
  3687. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Check not found; cannot run unit tests!" >&5
  3688. $as_echo "$as_me: WARNING: Check not found; cannot run unit tests!" >&2;}
  3689. have_check="no"
  3690. elif test $pkg_failed = untried; then
  3691. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3692. $as_echo "no" >&6; }
  3693. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Check not found; cannot run unit tests!" >&5
  3694. $as_echo "$as_me: WARNING: Check not found; cannot run unit tests!" >&2;}
  3695. have_check="no"
  3696. else
  3697. CHECK_CFLAGS=$pkg_cv_CHECK_CFLAGS
  3698. CHECK_LIBS=$pkg_cv_CHECK_LIBS
  3699. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3700. $as_echo "yes" >&6; }
  3701. have_check="yes"
  3702. fi
  3703. if test x"$have_check" = "xyes"; then
  3704. HAVE_CHECK_TRUE=
  3705. HAVE_CHECK_FALSE='#'
  3706. else
  3707. HAVE_CHECK_TRUE='#'
  3708. HAVE_CHECK_FALSE=
  3709. fi
  3710. if test "${host_os}" = "mingw32"; then
  3711. TARGET_WIN_TRUE=
  3712. TARGET_WIN_FALSE='#'
  3713. else
  3714. TARGET_WIN_TRUE='#'
  3715. TARGET_WIN_FALSE=
  3716. fi
  3717. if test "${host_os}" = "linux-gnu" || test "${host_os}" = "linux"; then
  3718. TARGET_LINUX_TRUE=
  3719. TARGET_LINUX_FALSE='#'
  3720. else
  3721. TARGET_LINUX_TRUE='#'
  3722. TARGET_LINUX_FALSE=
  3723. fi
  3724. case `pwd` in
  3725. *\ * | *\ *)
  3726. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
  3727. $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
  3728. esac
  3729. macro_version='2.4.2'
  3730. macro_revision='1.3337'
  3731. ltmain="$ac_aux_dir/ltmain.sh"
  3732. # Backslashify metacharacters that are still active within
  3733. # double-quoted strings.
  3734. sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
  3735. # Same as above, but do not quote variable references.
  3736. double_quote_subst='s/\(["`\\]\)/\\\1/g'
  3737. # Sed substitution to delay expansion of an escaped shell variable in a
  3738. # double_quote_subst'ed string.
  3739. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  3740. # Sed substitution to delay expansion of an escaped single quote.
  3741. delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
  3742. # Sed substitution to avoid accidental globbing in evaled expressions
  3743. no_glob_subst='s/\*/\\\*/g'
  3744. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  3745. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
  3746. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
  3747. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
  3748. $as_echo_n "checking how to print strings... " >&6; }
  3749. # Test print first, because it will be a builtin if present.
  3750. if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
  3751. test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
  3752. ECHO='print -r --'
  3753. elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
  3754. ECHO='printf %s\n'
  3755. else
  3756. # Use this function as a fallback that always works.
  3757. func_fallback_echo ()
  3758. {
  3759. eval 'cat <<_LTECHO_EOF
  3760. $1
  3761. _LTECHO_EOF'
  3762. }
  3763. ECHO='func_fallback_echo'
  3764. fi
  3765. # func_echo_all arg...
  3766. # Invoke $ECHO with all args, space-separated.
  3767. func_echo_all ()
  3768. {
  3769. $ECHO ""
  3770. }
  3771. case "$ECHO" in
  3772. printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
  3773. $as_echo "printf" >&6; } ;;
  3774. print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
  3775. $as_echo "print -r" >&6; } ;;
  3776. *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
  3777. $as_echo "cat" >&6; } ;;
  3778. esac
  3779. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
  3780. $as_echo_n "checking for a sed that does not truncate output... " >&6; }
  3781. if ${ac_cv_path_SED+:} false; then :
  3782. $as_echo_n "(cached) " >&6
  3783. else
  3784. ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  3785. for ac_i in 1 2 3 4 5 6 7; do
  3786. ac_script="$ac_script$as_nl$ac_script"
  3787. done
  3788. echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  3789. { ac_script=; unset ac_script;}
  3790. if test -z "$SED"; then
  3791. ac_path_SED_found=false
  3792. # Loop through the user's path and test for each of PROGNAME-LIST
  3793. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3794. for as_dir in $PATH
  3795. do
  3796. IFS=$as_save_IFS
  3797. test -z "$as_dir" && as_dir=.
  3798. for ac_prog in sed gsed; do
  3799. for ac_exec_ext in '' $ac_executable_extensions; do
  3800. ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
  3801. { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
  3802. # Check for GNU ac_path_SED and select it if it is found.
  3803. # Check for GNU $ac_path_SED
  3804. case `"$ac_path_SED" --version 2>&1` in
  3805. *GNU*)
  3806. ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  3807. *)
  3808. ac_count=0
  3809. $as_echo_n 0123456789 >"conftest.in"
  3810. while :
  3811. do
  3812. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3813. mv "conftest.tmp" "conftest.in"
  3814. cp "conftest.in" "conftest.nl"
  3815. $as_echo '' >> "conftest.nl"
  3816. "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3817. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3818. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3819. if test $ac_count -gt ${ac_path_SED_max-0}; then
  3820. # Best one so far, save it but keep looking for a better one
  3821. ac_cv_path_SED="$ac_path_SED"
  3822. ac_path_SED_max=$ac_count
  3823. fi
  3824. # 10*(2^10) chars as input seems more than enough
  3825. test $ac_count -gt 10 && break
  3826. done
  3827. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3828. esac
  3829. $ac_path_SED_found && break 3
  3830. done
  3831. done
  3832. done
  3833. IFS=$as_save_IFS
  3834. if test -z "$ac_cv_path_SED"; then
  3835. as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
  3836. fi
  3837. else
  3838. ac_cv_path_SED=$SED
  3839. fi
  3840. fi
  3841. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
  3842. $as_echo "$ac_cv_path_SED" >&6; }
  3843. SED="$ac_cv_path_SED"
  3844. rm -f conftest.sed
  3845. test -z "$SED" && SED=sed
  3846. Xsed="$SED -e 1s/^X//"
  3847. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  3848. $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  3849. if ${ac_cv_path_GREP+:} false; then :
  3850. $as_echo_n "(cached) " >&6
  3851. else
  3852. if test -z "$GREP"; then
  3853. ac_path_GREP_found=false
  3854. # Loop through the user's path and test for each of PROGNAME-LIST
  3855. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3856. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3857. do
  3858. IFS=$as_save_IFS
  3859. test -z "$as_dir" && as_dir=.
  3860. for ac_prog in grep ggrep; do
  3861. for ac_exec_ext in '' $ac_executable_extensions; do
  3862. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  3863. { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
  3864. # Check for GNU ac_path_GREP and select it if it is found.
  3865. # Check for GNU $ac_path_GREP
  3866. case `"$ac_path_GREP" --version 2>&1` in
  3867. *GNU*)
  3868. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  3869. *)
  3870. ac_count=0
  3871. $as_echo_n 0123456789 >"conftest.in"
  3872. while :
  3873. do
  3874. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3875. mv "conftest.tmp" "conftest.in"
  3876. cp "conftest.in" "conftest.nl"
  3877. $as_echo 'GREP' >> "conftest.nl"
  3878. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3879. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3880. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3881. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  3882. # Best one so far, save it but keep looking for a better one
  3883. ac_cv_path_GREP="$ac_path_GREP"
  3884. ac_path_GREP_max=$ac_count
  3885. fi
  3886. # 10*(2^10) chars as input seems more than enough
  3887. test $ac_count -gt 10 && break
  3888. done
  3889. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3890. esac
  3891. $ac_path_GREP_found && break 3
  3892. done
  3893. done
  3894. done
  3895. IFS=$as_save_IFS
  3896. if test -z "$ac_cv_path_GREP"; then
  3897. as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3898. fi
  3899. else
  3900. ac_cv_path_GREP=$GREP
  3901. fi
  3902. fi
  3903. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  3904. $as_echo "$ac_cv_path_GREP" >&6; }
  3905. GREP="$ac_cv_path_GREP"
  3906. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  3907. $as_echo_n "checking for egrep... " >&6; }
  3908. if ${ac_cv_path_EGREP+:} false; then :
  3909. $as_echo_n "(cached) " >&6
  3910. else
  3911. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  3912. then ac_cv_path_EGREP="$GREP -E"
  3913. else
  3914. if test -z "$EGREP"; then
  3915. ac_path_EGREP_found=false
  3916. # Loop through the user's path and test for each of PROGNAME-LIST
  3917. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3918. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3919. do
  3920. IFS=$as_save_IFS
  3921. test -z "$as_dir" && as_dir=.
  3922. for ac_prog in egrep; do
  3923. for ac_exec_ext in '' $ac_executable_extensions; do
  3924. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  3925. { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
  3926. # Check for GNU ac_path_EGREP and select it if it is found.
  3927. # Check for GNU $ac_path_EGREP
  3928. case `"$ac_path_EGREP" --version 2>&1` in
  3929. *GNU*)
  3930. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  3931. *)
  3932. ac_count=0
  3933. $as_echo_n 0123456789 >"conftest.in"
  3934. while :
  3935. do
  3936. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3937. mv "conftest.tmp" "conftest.in"
  3938. cp "conftest.in" "conftest.nl"
  3939. $as_echo 'EGREP' >> "conftest.nl"
  3940. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3941. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3942. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3943. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  3944. # Best one so far, save it but keep looking for a better one
  3945. ac_cv_path_EGREP="$ac_path_EGREP"
  3946. ac_path_EGREP_max=$ac_count
  3947. fi
  3948. # 10*(2^10) chars as input seems more than enough
  3949. test $ac_count -gt 10 && break
  3950. done
  3951. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3952. esac
  3953. $ac_path_EGREP_found && break 3
  3954. done
  3955. done
  3956. done
  3957. IFS=$as_save_IFS
  3958. if test -z "$ac_cv_path_EGREP"; then
  3959. as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3960. fi
  3961. else
  3962. ac_cv_path_EGREP=$EGREP
  3963. fi
  3964. fi
  3965. fi
  3966. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  3967. $as_echo "$ac_cv_path_EGREP" >&6; }
  3968. EGREP="$ac_cv_path_EGREP"
  3969. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
  3970. $as_echo_n "checking for fgrep... " >&6; }
  3971. if ${ac_cv_path_FGREP+:} false; then :
  3972. $as_echo_n "(cached) " >&6
  3973. else
  3974. if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
  3975. then ac_cv_path_FGREP="$GREP -F"
  3976. else
  3977. if test -z "$FGREP"; then
  3978. ac_path_FGREP_found=false
  3979. # Loop through the user's path and test for each of PROGNAME-LIST
  3980. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3981. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3982. do
  3983. IFS=$as_save_IFS
  3984. test -z "$as_dir" && as_dir=.
  3985. for ac_prog in fgrep; do
  3986. for ac_exec_ext in '' $ac_executable_extensions; do
  3987. ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
  3988. { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
  3989. # Check for GNU ac_path_FGREP and select it if it is found.
  3990. # Check for GNU $ac_path_FGREP
  3991. case `"$ac_path_FGREP" --version 2>&1` in
  3992. *GNU*)
  3993. ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
  3994. *)
  3995. ac_count=0
  3996. $as_echo_n 0123456789 >"conftest.in"
  3997. while :
  3998. do
  3999. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4000. mv "conftest.tmp" "conftest.in"
  4001. cp "conftest.in" "conftest.nl"
  4002. $as_echo 'FGREP' >> "conftest.nl"
  4003. "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4004. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4005. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4006. if test $ac_count -gt ${ac_path_FGREP_max-0}; then
  4007. # Best one so far, save it but keep looking for a better one
  4008. ac_cv_path_FGREP="$ac_path_FGREP"
  4009. ac_path_FGREP_max=$ac_count
  4010. fi
  4011. # 10*(2^10) chars as input seems more than enough
  4012. test $ac_count -gt 10 && break
  4013. done
  4014. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4015. esac
  4016. $ac_path_FGREP_found && break 3
  4017. done
  4018. done
  4019. done
  4020. IFS=$as_save_IFS
  4021. if test -z "$ac_cv_path_FGREP"; then
  4022. as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4023. fi
  4024. else
  4025. ac_cv_path_FGREP=$FGREP
  4026. fi
  4027. fi
  4028. fi
  4029. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
  4030. $as_echo "$ac_cv_path_FGREP" >&6; }
  4031. FGREP="$ac_cv_path_FGREP"
  4032. test -z "$GREP" && GREP=grep
  4033. @%:@ Check whether --with-gnu-ld was given.
  4034. if test "${with_gnu_ld+set}" = set; then :
  4035. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  4036. else
  4037. with_gnu_ld=no
  4038. fi
  4039. ac_prog=ld
  4040. if test "$GCC" = yes; then
  4041. # Check if gcc -print-prog-name=ld gives a path.
  4042. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  4043. $as_echo_n "checking for ld used by $CC... " >&6; }
  4044. case $host in
  4045. *-*-mingw*)
  4046. # gcc leaves a trailing carriage return which upsets mingw
  4047. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  4048. *)
  4049. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  4050. esac
  4051. case $ac_prog in
  4052. # Accept absolute paths.
  4053. [\\/]* | ?:[\\/]*)
  4054. re_direlt='/[^/][^/]*/\.\./'
  4055. # Canonicalize the pathname of ld
  4056. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  4057. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  4058. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  4059. done
  4060. test -z "$LD" && LD="$ac_prog"
  4061. ;;
  4062. "")
  4063. # If it fails, then pretend we aren't using GCC.
  4064. ac_prog=ld
  4065. ;;
  4066. *)
  4067. # If it is relative, then search for the first ld in PATH.
  4068. with_gnu_ld=unknown
  4069. ;;
  4070. esac
  4071. elif test "$with_gnu_ld" = yes; then
  4072. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  4073. $as_echo_n "checking for GNU ld... " >&6; }
  4074. else
  4075. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  4076. $as_echo_n "checking for non-GNU ld... " >&6; }
  4077. fi
  4078. if ${lt_cv_path_LD+:} false; then :
  4079. $as_echo_n "(cached) " >&6
  4080. else
  4081. if test -z "$LD"; then
  4082. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  4083. for ac_dir in $PATH; do
  4084. IFS="$lt_save_ifs"
  4085. test -z "$ac_dir" && ac_dir=.
  4086. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  4087. lt_cv_path_LD="$ac_dir/$ac_prog"
  4088. # Check to see if the program is GNU ld. I'd rather use --version,
  4089. # but apparently some variants of GNU ld only accept -v.
  4090. # Break only if it was the GNU/non-GNU ld that we prefer.
  4091. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  4092. *GNU* | *'with BFD'*)
  4093. test "$with_gnu_ld" != no && break
  4094. ;;
  4095. *)
  4096. test "$with_gnu_ld" != yes && break
  4097. ;;
  4098. esac
  4099. fi
  4100. done
  4101. IFS="$lt_save_ifs"
  4102. else
  4103. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  4104. fi
  4105. fi
  4106. LD="$lt_cv_path_LD"
  4107. if test -n "$LD"; then
  4108. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  4109. $as_echo "$LD" >&6; }
  4110. else
  4111. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4112. $as_echo "no" >&6; }
  4113. fi
  4114. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  4115. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  4116. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  4117. if ${lt_cv_prog_gnu_ld+:} false; then :
  4118. $as_echo_n "(cached) " >&6
  4119. else
  4120. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  4121. case `$LD -v 2>&1 </dev/null` in
  4122. *GNU* | *'with BFD'*)
  4123. lt_cv_prog_gnu_ld=yes
  4124. ;;
  4125. *)
  4126. lt_cv_prog_gnu_ld=no
  4127. ;;
  4128. esac
  4129. fi
  4130. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  4131. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  4132. with_gnu_ld=$lt_cv_prog_gnu_ld
  4133. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
  4134. $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
  4135. if ${lt_cv_path_NM+:} false; then :
  4136. $as_echo_n "(cached) " >&6
  4137. else
  4138. if test -n "$NM"; then
  4139. # Let the user override the test.
  4140. lt_cv_path_NM="$NM"
  4141. else
  4142. lt_nm_to_check="${ac_tool_prefix}nm"
  4143. if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  4144. lt_nm_to_check="$lt_nm_to_check nm"
  4145. fi
  4146. for lt_tmp_nm in $lt_nm_to_check; do
  4147. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  4148. for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  4149. IFS="$lt_save_ifs"
  4150. test -z "$ac_dir" && ac_dir=.
  4151. tmp_nm="$ac_dir/$lt_tmp_nm"
  4152. if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
  4153. # Check to see if the nm accepts a BSD-compat flag.
  4154. # Adding the `sed 1q' prevents false positives on HP-UX, which says:
  4155. # nm: unknown option "B" ignored
  4156. # Tru64's nm complains that /dev/null is an invalid object file
  4157. case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
  4158. */dev/null* | *'Invalid file or object type'*)
  4159. lt_cv_path_NM="$tmp_nm -B"
  4160. break
  4161. ;;
  4162. *)
  4163. case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  4164. */dev/null*)
  4165. lt_cv_path_NM="$tmp_nm -p"
  4166. break
  4167. ;;
  4168. *)
  4169. lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  4170. continue # so that we can try to find one that supports BSD flags
  4171. ;;
  4172. esac
  4173. ;;
  4174. esac
  4175. fi
  4176. done
  4177. IFS="$lt_save_ifs"
  4178. done
  4179. : ${lt_cv_path_NM=no}
  4180. fi
  4181. fi
  4182. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
  4183. $as_echo "$lt_cv_path_NM" >&6; }
  4184. if test "$lt_cv_path_NM" != "no"; then
  4185. NM="$lt_cv_path_NM"
  4186. else
  4187. # Didn't find any BSD compatible name lister, look for dumpbin.
  4188. if test -n "$DUMPBIN"; then :
  4189. # Let the user override the test.
  4190. else
  4191. if test -n "$ac_tool_prefix"; then
  4192. for ac_prog in dumpbin "link -dump"
  4193. do
  4194. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  4195. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  4196. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4197. $as_echo_n "checking for $ac_word... " >&6; }
  4198. if ${ac_cv_prog_DUMPBIN+:} false; then :
  4199. $as_echo_n "(cached) " >&6
  4200. else
  4201. if test -n "$DUMPBIN"; then
  4202. ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
  4203. else
  4204. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4205. for as_dir in $PATH
  4206. do
  4207. IFS=$as_save_IFS
  4208. test -z "$as_dir" && as_dir=.
  4209. for ac_exec_ext in '' $ac_executable_extensions; do
  4210. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4211. ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
  4212. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4213. break 2
  4214. fi
  4215. done
  4216. done
  4217. IFS=$as_save_IFS
  4218. fi
  4219. fi
  4220. DUMPBIN=$ac_cv_prog_DUMPBIN
  4221. if test -n "$DUMPBIN"; then
  4222. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
  4223. $as_echo "$DUMPBIN" >&6; }
  4224. else
  4225. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4226. $as_echo "no" >&6; }
  4227. fi
  4228. test -n "$DUMPBIN" && break
  4229. done
  4230. fi
  4231. if test -z "$DUMPBIN"; then
  4232. ac_ct_DUMPBIN=$DUMPBIN
  4233. for ac_prog in dumpbin "link -dump"
  4234. do
  4235. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4236. set dummy $ac_prog; ac_word=$2
  4237. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4238. $as_echo_n "checking for $ac_word... " >&6; }
  4239. if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
  4240. $as_echo_n "(cached) " >&6
  4241. else
  4242. if test -n "$ac_ct_DUMPBIN"; then
  4243. ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
  4244. else
  4245. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4246. for as_dir in $PATH
  4247. do
  4248. IFS=$as_save_IFS
  4249. test -z "$as_dir" && as_dir=.
  4250. for ac_exec_ext in '' $ac_executable_extensions; do
  4251. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4252. ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
  4253. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4254. break 2
  4255. fi
  4256. done
  4257. done
  4258. IFS=$as_save_IFS
  4259. fi
  4260. fi
  4261. ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
  4262. if test -n "$ac_ct_DUMPBIN"; then
  4263. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
  4264. $as_echo "$ac_ct_DUMPBIN" >&6; }
  4265. else
  4266. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4267. $as_echo "no" >&6; }
  4268. fi
  4269. test -n "$ac_ct_DUMPBIN" && break
  4270. done
  4271. if test "x$ac_ct_DUMPBIN" = x; then
  4272. DUMPBIN=":"
  4273. else
  4274. case $cross_compiling:$ac_tool_warned in
  4275. yes:)
  4276. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4277. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4278. ac_tool_warned=yes ;;
  4279. esac
  4280. DUMPBIN=$ac_ct_DUMPBIN
  4281. fi
  4282. fi
  4283. case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
  4284. *COFF*)
  4285. DUMPBIN="$DUMPBIN -symbols"
  4286. ;;
  4287. *)
  4288. DUMPBIN=:
  4289. ;;
  4290. esac
  4291. fi
  4292. if test "$DUMPBIN" != ":"; then
  4293. NM="$DUMPBIN"
  4294. fi
  4295. fi
  4296. test -z "$NM" && NM=nm
  4297. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
  4298. $as_echo_n "checking the name lister ($NM) interface... " >&6; }
  4299. if ${lt_cv_nm_interface+:} false; then :
  4300. $as_echo_n "(cached) " >&6
  4301. else
  4302. lt_cv_nm_interface="BSD nm"
  4303. echo "int some_variable = 0;" > conftest.$ac_ext
  4304. (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
  4305. (eval "$ac_compile" 2>conftest.err)
  4306. cat conftest.err >&5
  4307. (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
  4308. (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  4309. cat conftest.err >&5
  4310. (eval echo "\"\$as_me:$LINENO: output\"" >&5)
  4311. cat conftest.out >&5
  4312. if $GREP 'External.*some_variable' conftest.out > /dev/null; then
  4313. lt_cv_nm_interface="MS dumpbin"
  4314. fi
  4315. rm -f conftest*
  4316. fi
  4317. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
  4318. $as_echo "$lt_cv_nm_interface" >&6; }
  4319. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
  4320. $as_echo_n "checking whether ln -s works... " >&6; }
  4321. LN_S=$as_ln_s
  4322. if test "$LN_S" = "ln -s"; then
  4323. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4324. $as_echo "yes" >&6; }
  4325. else
  4326. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
  4327. $as_echo "no, using $LN_S" >&6; }
  4328. fi
  4329. # find the maximum length of command line arguments
  4330. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
  4331. $as_echo_n "checking the maximum length of command line arguments... " >&6; }
  4332. if ${lt_cv_sys_max_cmd_len+:} false; then :
  4333. $as_echo_n "(cached) " >&6
  4334. else
  4335. i=0
  4336. teststring="ABCD"
  4337. case $build_os in
  4338. msdosdjgpp*)
  4339. # On DJGPP, this test can blow up pretty badly due to problems in libc
  4340. # (any single argument exceeding 2000 bytes causes a buffer overrun
  4341. # during glob expansion). Even if it were fixed, the result of this
  4342. # check would be larger than it should be.
  4343. lt_cv_sys_max_cmd_len=12288; # 12K is about right
  4344. ;;
  4345. gnu*)
  4346. # Under GNU Hurd, this test is not required because there is
  4347. # no limit to the length of command line arguments.
  4348. # Libtool will interpret -1 as no limit whatsoever
  4349. lt_cv_sys_max_cmd_len=-1;
  4350. ;;
  4351. cygwin* | mingw* | cegcc*)
  4352. # On Win9x/ME, this test blows up -- it succeeds, but takes
  4353. # about 5 minutes as the teststring grows exponentially.
  4354. # Worse, since 9x/ME are not pre-emptively multitasking,
  4355. # you end up with a "frozen" computer, even though with patience
  4356. # the test eventually succeeds (with a max line length of 256k).
  4357. # Instead, let's just punt: use the minimum linelength reported by
  4358. # all of the supported platforms: 8192 (on NT/2K/XP).
  4359. lt_cv_sys_max_cmd_len=8192;
  4360. ;;
  4361. mint*)
  4362. # On MiNT this can take a long time and run out of memory.
  4363. lt_cv_sys_max_cmd_len=8192;
  4364. ;;
  4365. amigaos*)
  4366. # On AmigaOS with pdksh, this test takes hours, literally.
  4367. # So we just punt and use a minimum line length of 8192.
  4368. lt_cv_sys_max_cmd_len=8192;
  4369. ;;
  4370. netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
  4371. # This has been around since 386BSD, at least. Likely further.
  4372. if test -x /sbin/sysctl; then
  4373. lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  4374. elif test -x /usr/sbin/sysctl; then
  4375. lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  4376. else
  4377. lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  4378. fi
  4379. # And add a safety zone
  4380. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  4381. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  4382. ;;
  4383. interix*)
  4384. # We know the value 262144 and hardcode it with a safety zone (like BSD)
  4385. lt_cv_sys_max_cmd_len=196608
  4386. ;;
  4387. os2*)
  4388. # The test takes a long time on OS/2.
  4389. lt_cv_sys_max_cmd_len=8192
  4390. ;;
  4391. osf*)
  4392. # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  4393. # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  4394. # nice to cause kernel panics so lets avoid the loop below.
  4395. # First set a reasonable default.
  4396. lt_cv_sys_max_cmd_len=16384
  4397. #
  4398. if test -x /sbin/sysconfig; then
  4399. case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  4400. *1*) lt_cv_sys_max_cmd_len=-1 ;;
  4401. esac
  4402. fi
  4403. ;;
  4404. sco3.2v5*)
  4405. lt_cv_sys_max_cmd_len=102400
  4406. ;;
  4407. sysv5* | sco5v6* | sysv4.2uw2*)
  4408. kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  4409. if test -n "$kargmax"; then
  4410. lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
  4411. else
  4412. lt_cv_sys_max_cmd_len=32768
  4413. fi
  4414. ;;
  4415. *)
  4416. lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  4417. if test -n "$lt_cv_sys_max_cmd_len"; then
  4418. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  4419. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  4420. else
  4421. # Make teststring a little bigger before we do anything with it.
  4422. # a 1K string should be a reasonable start.
  4423. for i in 1 2 3 4 5 6 7 8 ; do
  4424. teststring=$teststring$teststring
  4425. done
  4426. SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  4427. # If test is not a shell built-in, we'll probably end up computing a
  4428. # maximum length that is only half of the actual maximum length, but
  4429. # we can't tell.
  4430. while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
  4431. = "X$teststring$teststring"; } >/dev/null 2>&1 &&
  4432. test $i != 17 # 1/2 MB should be enough
  4433. do
  4434. i=`expr $i + 1`
  4435. teststring=$teststring$teststring
  4436. done
  4437. # Only check the string length outside the loop.
  4438. lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
  4439. teststring=
  4440. # Add a significant safety factor because C++ compilers can tack on
  4441. # massive amounts of additional arguments before passing them to the
  4442. # linker. It appears as though 1/2 is a usable value.
  4443. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  4444. fi
  4445. ;;
  4446. esac
  4447. fi
  4448. if test -n $lt_cv_sys_max_cmd_len ; then
  4449. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
  4450. $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
  4451. else
  4452. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
  4453. $as_echo "none" >&6; }
  4454. fi
  4455. max_cmd_len=$lt_cv_sys_max_cmd_len
  4456. : ${CP="cp -f"}
  4457. : ${MV="mv -f"}
  4458. : ${RM="rm -f"}
  4459. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
  4460. $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
  4461. # Try some XSI features
  4462. xsi_shell=no
  4463. ( _lt_dummy="a/b/c"
  4464. test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
  4465. = c,a/b,b/c, \
  4466. && eval 'test $(( 1 + 1 )) -eq 2 \
  4467. && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
  4468. && xsi_shell=yes
  4469. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
  4470. $as_echo "$xsi_shell" >&6; }
  4471. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
  4472. $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
  4473. lt_shell_append=no
  4474. ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
  4475. >/dev/null 2>&1 \
  4476. && lt_shell_append=yes
  4477. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
  4478. $as_echo "$lt_shell_append" >&6; }
  4479. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  4480. lt_unset=unset
  4481. else
  4482. lt_unset=false
  4483. fi
  4484. # test EBCDIC or ASCII
  4485. case `echo X|tr X '\101'` in
  4486. A) # ASCII based system
  4487. # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  4488. lt_SP2NL='tr \040 \012'
  4489. lt_NL2SP='tr \015\012 \040\040'
  4490. ;;
  4491. *) # EBCDIC based system
  4492. lt_SP2NL='tr \100 \n'
  4493. lt_NL2SP='tr \r\n \100\100'
  4494. ;;
  4495. esac
  4496. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
  4497. $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
  4498. if ${lt_cv_to_host_file_cmd+:} false; then :
  4499. $as_echo_n "(cached) " >&6
  4500. else
  4501. case $host in
  4502. *-*-mingw* )
  4503. case $build in
  4504. *-*-mingw* ) # actually msys
  4505. lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
  4506. ;;
  4507. *-*-cygwin* )
  4508. lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
  4509. ;;
  4510. * ) # otherwise, assume *nix
  4511. lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
  4512. ;;
  4513. esac
  4514. ;;
  4515. *-*-cygwin* )
  4516. case $build in
  4517. *-*-mingw* ) # actually msys
  4518. lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
  4519. ;;
  4520. *-*-cygwin* )
  4521. lt_cv_to_host_file_cmd=func_convert_file_noop
  4522. ;;
  4523. * ) # otherwise, assume *nix
  4524. lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
  4525. ;;
  4526. esac
  4527. ;;
  4528. * ) # unhandled hosts (and "normal" native builds)
  4529. lt_cv_to_host_file_cmd=func_convert_file_noop
  4530. ;;
  4531. esac
  4532. fi
  4533. to_host_file_cmd=$lt_cv_to_host_file_cmd
  4534. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
  4535. $as_echo "$lt_cv_to_host_file_cmd" >&6; }
  4536. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
  4537. $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
  4538. if ${lt_cv_to_tool_file_cmd+:} false; then :
  4539. $as_echo_n "(cached) " >&6
  4540. else
  4541. #assume ordinary cross tools, or native build.
  4542. lt_cv_to_tool_file_cmd=func_convert_file_noop
  4543. case $host in
  4544. *-*-mingw* )
  4545. case $build in
  4546. *-*-mingw* ) # actually msys
  4547. lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
  4548. ;;
  4549. esac
  4550. ;;
  4551. esac
  4552. fi
  4553. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  4554. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
  4555. $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
  4556. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
  4557. $as_echo_n "checking for $LD option to reload object files... " >&6; }
  4558. if ${lt_cv_ld_reload_flag+:} false; then :
  4559. $as_echo_n "(cached) " >&6
  4560. else
  4561. lt_cv_ld_reload_flag='-r'
  4562. fi
  4563. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
  4564. $as_echo "$lt_cv_ld_reload_flag" >&6; }
  4565. reload_flag=$lt_cv_ld_reload_flag
  4566. case $reload_flag in
  4567. "" | " "*) ;;
  4568. *) reload_flag=" $reload_flag" ;;
  4569. esac
  4570. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  4571. case $host_os in
  4572. cygwin* | mingw* | pw32* | cegcc*)
  4573. if test "$GCC" != yes; then
  4574. reload_cmds=false
  4575. fi
  4576. ;;
  4577. darwin*)
  4578. if test "$GCC" = yes; then
  4579. reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
  4580. else
  4581. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  4582. fi
  4583. ;;
  4584. esac
  4585. if test -n "$ac_tool_prefix"; then
  4586. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  4587. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  4588. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4589. $as_echo_n "checking for $ac_word... " >&6; }
  4590. if ${ac_cv_prog_OBJDUMP+:} false; then :
  4591. $as_echo_n "(cached) " >&6
  4592. else
  4593. if test -n "$OBJDUMP"; then
  4594. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  4595. else
  4596. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4597. for as_dir in $PATH
  4598. do
  4599. IFS=$as_save_IFS
  4600. test -z "$as_dir" && as_dir=.
  4601. for ac_exec_ext in '' $ac_executable_extensions; do
  4602. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4603. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  4604. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4605. break 2
  4606. fi
  4607. done
  4608. done
  4609. IFS=$as_save_IFS
  4610. fi
  4611. fi
  4612. OBJDUMP=$ac_cv_prog_OBJDUMP
  4613. if test -n "$OBJDUMP"; then
  4614. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  4615. $as_echo "$OBJDUMP" >&6; }
  4616. else
  4617. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4618. $as_echo "no" >&6; }
  4619. fi
  4620. fi
  4621. if test -z "$ac_cv_prog_OBJDUMP"; then
  4622. ac_ct_OBJDUMP=$OBJDUMP
  4623. # Extract the first word of "objdump", so it can be a program name with args.
  4624. set dummy objdump; ac_word=$2
  4625. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4626. $as_echo_n "checking for $ac_word... " >&6; }
  4627. if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
  4628. $as_echo_n "(cached) " >&6
  4629. else
  4630. if test -n "$ac_ct_OBJDUMP"; then
  4631. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  4632. else
  4633. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4634. for as_dir in $PATH
  4635. do
  4636. IFS=$as_save_IFS
  4637. test -z "$as_dir" && as_dir=.
  4638. for ac_exec_ext in '' $ac_executable_extensions; do
  4639. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4640. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  4641. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4642. break 2
  4643. fi
  4644. done
  4645. done
  4646. IFS=$as_save_IFS
  4647. fi
  4648. fi
  4649. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  4650. if test -n "$ac_ct_OBJDUMP"; then
  4651. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  4652. $as_echo "$ac_ct_OBJDUMP" >&6; }
  4653. else
  4654. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4655. $as_echo "no" >&6; }
  4656. fi
  4657. if test "x$ac_ct_OBJDUMP" = x; then
  4658. OBJDUMP="false"
  4659. else
  4660. case $cross_compiling:$ac_tool_warned in
  4661. yes:)
  4662. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4663. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4664. ac_tool_warned=yes ;;
  4665. esac
  4666. OBJDUMP=$ac_ct_OBJDUMP
  4667. fi
  4668. else
  4669. OBJDUMP="$ac_cv_prog_OBJDUMP"
  4670. fi
  4671. test -z "$OBJDUMP" && OBJDUMP=objdump
  4672. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
  4673. $as_echo_n "checking how to recognize dependent libraries... " >&6; }
  4674. if ${lt_cv_deplibs_check_method+:} false; then :
  4675. $as_echo_n "(cached) " >&6
  4676. else
  4677. lt_cv_file_magic_cmd='$MAGIC_CMD'
  4678. lt_cv_file_magic_test_file=
  4679. lt_cv_deplibs_check_method='unknown'
  4680. # Need to set the preceding variable on all platforms that support
  4681. # interlibrary dependencies.
  4682. # 'none' -- dependencies not supported.
  4683. # `unknown' -- same as none, but documents that we really don't know.
  4684. # 'pass_all' -- all dependencies passed with no checks.
  4685. # 'test_compile' -- check by making test program.
  4686. # 'file_magic [[regex]]' -- check by looking for files in library path
  4687. # which responds to the $file_magic_cmd with a given extended regex.
  4688. # If you have `file' or equivalent on your system and you're not sure
  4689. # whether `pass_all' will *always* work, you probably want this one.
  4690. case $host_os in
  4691. aix[4-9]*)
  4692. lt_cv_deplibs_check_method=pass_all
  4693. ;;
  4694. beos*)
  4695. lt_cv_deplibs_check_method=pass_all
  4696. ;;
  4697. bsdi[45]*)
  4698. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  4699. lt_cv_file_magic_cmd='/usr/bin/file -L'
  4700. lt_cv_file_magic_test_file=/shlib/libc.so
  4701. ;;
  4702. cygwin*)
  4703. # func_win32_libid is a shell function defined in ltmain.sh
  4704. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  4705. lt_cv_file_magic_cmd='func_win32_libid'
  4706. ;;
  4707. mingw* | pw32*)
  4708. # Base MSYS/MinGW do not provide the 'file' command needed by
  4709. # func_win32_libid shell function, so use a weaker test based on 'objdump',
  4710. # unless we find 'file', for example because we are cross-compiling.
  4711. # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
  4712. if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
  4713. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  4714. lt_cv_file_magic_cmd='func_win32_libid'
  4715. else
  4716. # Keep this pattern in sync with the one in func_win32_libid.
  4717. lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
  4718. lt_cv_file_magic_cmd='$OBJDUMP -f'
  4719. fi
  4720. ;;
  4721. cegcc*)
  4722. # use the weaker test based on 'objdump'. See mingw*.
  4723. lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
  4724. lt_cv_file_magic_cmd='$OBJDUMP -f'
  4725. ;;
  4726. darwin* | rhapsody*)
  4727. lt_cv_deplibs_check_method=pass_all
  4728. ;;
  4729. freebsd* | dragonfly*)
  4730. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  4731. case $host_cpu in
  4732. i*86 )
  4733. # Not sure whether the presence of OpenBSD here was a mistake.
  4734. # Let's accept both of them until this is cleared up.
  4735. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
  4736. lt_cv_file_magic_cmd=/usr/bin/file
  4737. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  4738. ;;
  4739. esac
  4740. else
  4741. lt_cv_deplibs_check_method=pass_all
  4742. fi
  4743. ;;
  4744. gnu*)
  4745. lt_cv_deplibs_check_method=pass_all
  4746. ;;
  4747. haiku*)
  4748. lt_cv_deplibs_check_method=pass_all
  4749. ;;
  4750. hpux10.20* | hpux11*)
  4751. lt_cv_file_magic_cmd=/usr/bin/file
  4752. case $host_cpu in
  4753. ia64*)
  4754. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  4755. lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  4756. ;;
  4757. hppa*64*)
  4758. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'
  4759. lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  4760. ;;
  4761. *)
  4762. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
  4763. lt_cv_file_magic_test_file=/usr/lib/libc.sl
  4764. ;;
  4765. esac
  4766. ;;
  4767. interix[3-9]*)
  4768. # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  4769. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
  4770. ;;
  4771. irix5* | irix6* | nonstopux*)
  4772. case $LD in
  4773. *-32|*"-32 ") libmagic=32-bit;;
  4774. *-n32|*"-n32 ") libmagic=N32;;
  4775. *-64|*"-64 ") libmagic=64-bit;;
  4776. *) libmagic=never-match;;
  4777. esac
  4778. lt_cv_deplibs_check_method=pass_all
  4779. ;;
  4780. # This must be glibc/ELF.
  4781. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  4782. lt_cv_deplibs_check_method=pass_all
  4783. ;;
  4784. netbsd* | netbsdelf*-gnu)
  4785. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  4786. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  4787. else
  4788. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  4789. fi
  4790. ;;
  4791. newos6*)
  4792. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  4793. lt_cv_file_magic_cmd=/usr/bin/file
  4794. lt_cv_file_magic_test_file=/usr/lib/libnls.so
  4795. ;;
  4796. *nto* | *qnx*)
  4797. lt_cv_deplibs_check_method=pass_all
  4798. ;;
  4799. openbsd*)
  4800. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  4801. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  4802. else
  4803. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  4804. fi
  4805. ;;
  4806. osf3* | osf4* | osf5*)
  4807. lt_cv_deplibs_check_method=pass_all
  4808. ;;
  4809. rdos*)
  4810. lt_cv_deplibs_check_method=pass_all
  4811. ;;
  4812. solaris*)
  4813. lt_cv_deplibs_check_method=pass_all
  4814. ;;
  4815. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  4816. lt_cv_deplibs_check_method=pass_all
  4817. ;;
  4818. sysv4 | sysv4.3*)
  4819. case $host_vendor in
  4820. motorola)
  4821. 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]'
  4822. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  4823. ;;
  4824. ncr)
  4825. lt_cv_deplibs_check_method=pass_all
  4826. ;;
  4827. sequent)
  4828. lt_cv_file_magic_cmd='/bin/file'
  4829. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  4830. ;;
  4831. sni)
  4832. lt_cv_file_magic_cmd='/bin/file'
  4833. lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  4834. lt_cv_file_magic_test_file=/lib/libc.so
  4835. ;;
  4836. siemens)
  4837. lt_cv_deplibs_check_method=pass_all
  4838. ;;
  4839. pc)
  4840. lt_cv_deplibs_check_method=pass_all
  4841. ;;
  4842. esac
  4843. ;;
  4844. tpf*)
  4845. lt_cv_deplibs_check_method=pass_all
  4846. ;;
  4847. esac
  4848. fi
  4849. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
  4850. $as_echo "$lt_cv_deplibs_check_method" >&6; }
  4851. file_magic_glob=
  4852. want_nocaseglob=no
  4853. if test "$build" = "$host"; then
  4854. case $host_os in
  4855. mingw* | pw32*)
  4856. if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
  4857. want_nocaseglob=yes
  4858. else
  4859. file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
  4860. fi
  4861. ;;
  4862. esac
  4863. fi
  4864. file_magic_cmd=$lt_cv_file_magic_cmd
  4865. deplibs_check_method=$lt_cv_deplibs_check_method
  4866. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  4867. if test -n "$ac_tool_prefix"; then
  4868. # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
  4869. set dummy ${ac_tool_prefix}dlltool; ac_word=$2
  4870. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4871. $as_echo_n "checking for $ac_word... " >&6; }
  4872. if ${ac_cv_prog_DLLTOOL+:} false; then :
  4873. $as_echo_n "(cached) " >&6
  4874. else
  4875. if test -n "$DLLTOOL"; then
  4876. ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  4877. else
  4878. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4879. for as_dir in $PATH
  4880. do
  4881. IFS=$as_save_IFS
  4882. test -z "$as_dir" && as_dir=.
  4883. for ac_exec_ext in '' $ac_executable_extensions; do
  4884. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4885. ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
  4886. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4887. break 2
  4888. fi
  4889. done
  4890. done
  4891. IFS=$as_save_IFS
  4892. fi
  4893. fi
  4894. DLLTOOL=$ac_cv_prog_DLLTOOL
  4895. if test -n "$DLLTOOL"; then
  4896. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
  4897. $as_echo "$DLLTOOL" >&6; }
  4898. else
  4899. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4900. $as_echo "no" >&6; }
  4901. fi
  4902. fi
  4903. if test -z "$ac_cv_prog_DLLTOOL"; then
  4904. ac_ct_DLLTOOL=$DLLTOOL
  4905. # Extract the first word of "dlltool", so it can be a program name with args.
  4906. set dummy dlltool; ac_word=$2
  4907. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4908. $as_echo_n "checking for $ac_word... " >&6; }
  4909. if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
  4910. $as_echo_n "(cached) " >&6
  4911. else
  4912. if test -n "$ac_ct_DLLTOOL"; then
  4913. ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
  4914. else
  4915. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4916. for as_dir in $PATH
  4917. do
  4918. IFS=$as_save_IFS
  4919. test -z "$as_dir" && as_dir=.
  4920. for ac_exec_ext in '' $ac_executable_extensions; do
  4921. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4922. ac_cv_prog_ac_ct_DLLTOOL="dlltool"
  4923. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4924. break 2
  4925. fi
  4926. done
  4927. done
  4928. IFS=$as_save_IFS
  4929. fi
  4930. fi
  4931. ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
  4932. if test -n "$ac_ct_DLLTOOL"; then
  4933. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
  4934. $as_echo "$ac_ct_DLLTOOL" >&6; }
  4935. else
  4936. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4937. $as_echo "no" >&6; }
  4938. fi
  4939. if test "x$ac_ct_DLLTOOL" = x; then
  4940. DLLTOOL="false"
  4941. else
  4942. case $cross_compiling:$ac_tool_warned in
  4943. yes:)
  4944. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4945. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4946. ac_tool_warned=yes ;;
  4947. esac
  4948. DLLTOOL=$ac_ct_DLLTOOL
  4949. fi
  4950. else
  4951. DLLTOOL="$ac_cv_prog_DLLTOOL"
  4952. fi
  4953. test -z "$DLLTOOL" && DLLTOOL=dlltool
  4954. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
  4955. $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
  4956. if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
  4957. $as_echo_n "(cached) " >&6
  4958. else
  4959. lt_cv_sharedlib_from_linklib_cmd='unknown'
  4960. case $host_os in
  4961. cygwin* | mingw* | pw32* | cegcc*)
  4962. # two different shell functions defined in ltmain.sh
  4963. # decide which to use based on capabilities of $DLLTOOL
  4964. case `$DLLTOOL --help 2>&1` in
  4965. *--identify-strict*)
  4966. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
  4967. ;;
  4968. *)
  4969. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
  4970. ;;
  4971. esac
  4972. ;;
  4973. *)
  4974. # fallback: assume linklib IS sharedlib
  4975. lt_cv_sharedlib_from_linklib_cmd="$ECHO"
  4976. ;;
  4977. esac
  4978. fi
  4979. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
  4980. $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
  4981. sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
  4982. test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
  4983. if test -n "$ac_tool_prefix"; then
  4984. for ac_prog in ar
  4985. do
  4986. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  4987. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  4988. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4989. $as_echo_n "checking for $ac_word... " >&6; }
  4990. if ${ac_cv_prog_AR+:} false; then :
  4991. $as_echo_n "(cached) " >&6
  4992. else
  4993. if test -n "$AR"; then
  4994. ac_cv_prog_AR="$AR" # Let the user override the test.
  4995. else
  4996. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4997. for as_dir in $PATH
  4998. do
  4999. IFS=$as_save_IFS
  5000. test -z "$as_dir" && as_dir=.
  5001. for ac_exec_ext in '' $ac_executable_extensions; do
  5002. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5003. ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
  5004. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5005. break 2
  5006. fi
  5007. done
  5008. done
  5009. IFS=$as_save_IFS
  5010. fi
  5011. fi
  5012. AR=$ac_cv_prog_AR
  5013. if test -n "$AR"; then
  5014. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  5015. $as_echo "$AR" >&6; }
  5016. else
  5017. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5018. $as_echo "no" >&6; }
  5019. fi
  5020. test -n "$AR" && break
  5021. done
  5022. fi
  5023. if test -z "$AR"; then
  5024. ac_ct_AR=$AR
  5025. for ac_prog in ar
  5026. do
  5027. # Extract the first word of "$ac_prog", so it can be a program name with args.
  5028. set dummy $ac_prog; ac_word=$2
  5029. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5030. $as_echo_n "checking for $ac_word... " >&6; }
  5031. if ${ac_cv_prog_ac_ct_AR+:} false; then :
  5032. $as_echo_n "(cached) " >&6
  5033. else
  5034. if test -n "$ac_ct_AR"; then
  5035. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  5036. else
  5037. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5038. for as_dir in $PATH
  5039. do
  5040. IFS=$as_save_IFS
  5041. test -z "$as_dir" && as_dir=.
  5042. for ac_exec_ext in '' $ac_executable_extensions; do
  5043. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5044. ac_cv_prog_ac_ct_AR="$ac_prog"
  5045. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5046. break 2
  5047. fi
  5048. done
  5049. done
  5050. IFS=$as_save_IFS
  5051. fi
  5052. fi
  5053. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  5054. if test -n "$ac_ct_AR"; then
  5055. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
  5056. $as_echo "$ac_ct_AR" >&6; }
  5057. else
  5058. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5059. $as_echo "no" >&6; }
  5060. fi
  5061. test -n "$ac_ct_AR" && break
  5062. done
  5063. if test "x$ac_ct_AR" = x; then
  5064. AR="false"
  5065. else
  5066. case $cross_compiling:$ac_tool_warned in
  5067. yes:)
  5068. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5069. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5070. ac_tool_warned=yes ;;
  5071. esac
  5072. AR=$ac_ct_AR
  5073. fi
  5074. fi
  5075. : ${AR=ar}
  5076. : ${AR_FLAGS=cru}
  5077. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
  5078. $as_echo_n "checking for archiver @FILE support... " >&6; }
  5079. if ${lt_cv_ar_at_file+:} false; then :
  5080. $as_echo_n "(cached) " >&6
  5081. else
  5082. lt_cv_ar_at_file=no
  5083. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5084. /* end confdefs.h. */
  5085. int
  5086. main ()
  5087. {
  5088. ;
  5089. return 0;
  5090. }
  5091. _ACEOF
  5092. if ac_fn_c_try_compile "$LINENO"; then :
  5093. echo conftest.$ac_objext > conftest.lst
  5094. lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
  5095. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  5096. (eval $lt_ar_try) 2>&5
  5097. ac_status=$?
  5098. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5099. test $ac_status = 0; }
  5100. if test "$ac_status" -eq 0; then
  5101. # Ensure the archiver fails upon bogus file names.
  5102. rm -f conftest.$ac_objext libconftest.a
  5103. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  5104. (eval $lt_ar_try) 2>&5
  5105. ac_status=$?
  5106. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5107. test $ac_status = 0; }
  5108. if test "$ac_status" -ne 0; then
  5109. lt_cv_ar_at_file=@
  5110. fi
  5111. fi
  5112. rm -f conftest.* libconftest.a
  5113. fi
  5114. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5115. fi
  5116. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
  5117. $as_echo "$lt_cv_ar_at_file" >&6; }
  5118. if test "x$lt_cv_ar_at_file" = xno; then
  5119. archiver_list_spec=
  5120. else
  5121. archiver_list_spec=$lt_cv_ar_at_file
  5122. fi
  5123. if test -n "$ac_tool_prefix"; then
  5124. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  5125. set dummy ${ac_tool_prefix}strip; ac_word=$2
  5126. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5127. $as_echo_n "checking for $ac_word... " >&6; }
  5128. if ${ac_cv_prog_STRIP+:} false; then :
  5129. $as_echo_n "(cached) " >&6
  5130. else
  5131. if test -n "$STRIP"; then
  5132. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  5133. else
  5134. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5135. for as_dir in $PATH
  5136. do
  5137. IFS=$as_save_IFS
  5138. test -z "$as_dir" && as_dir=.
  5139. for ac_exec_ext in '' $ac_executable_extensions; do
  5140. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5141. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  5142. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5143. break 2
  5144. fi
  5145. done
  5146. done
  5147. IFS=$as_save_IFS
  5148. fi
  5149. fi
  5150. STRIP=$ac_cv_prog_STRIP
  5151. if test -n "$STRIP"; then
  5152. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  5153. $as_echo "$STRIP" >&6; }
  5154. else
  5155. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5156. $as_echo "no" >&6; }
  5157. fi
  5158. fi
  5159. if test -z "$ac_cv_prog_STRIP"; then
  5160. ac_ct_STRIP=$STRIP
  5161. # Extract the first word of "strip", so it can be a program name with args.
  5162. set dummy strip; ac_word=$2
  5163. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5164. $as_echo_n "checking for $ac_word... " >&6; }
  5165. if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
  5166. $as_echo_n "(cached) " >&6
  5167. else
  5168. if test -n "$ac_ct_STRIP"; then
  5169. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  5170. else
  5171. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5172. for as_dir in $PATH
  5173. do
  5174. IFS=$as_save_IFS
  5175. test -z "$as_dir" && as_dir=.
  5176. for ac_exec_ext in '' $ac_executable_extensions; do
  5177. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5178. ac_cv_prog_ac_ct_STRIP="strip"
  5179. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5180. break 2
  5181. fi
  5182. done
  5183. done
  5184. IFS=$as_save_IFS
  5185. fi
  5186. fi
  5187. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  5188. if test -n "$ac_ct_STRIP"; then
  5189. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  5190. $as_echo "$ac_ct_STRIP" >&6; }
  5191. else
  5192. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5193. $as_echo "no" >&6; }
  5194. fi
  5195. if test "x$ac_ct_STRIP" = x; then
  5196. STRIP=":"
  5197. else
  5198. case $cross_compiling:$ac_tool_warned in
  5199. yes:)
  5200. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5201. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5202. ac_tool_warned=yes ;;
  5203. esac
  5204. STRIP=$ac_ct_STRIP
  5205. fi
  5206. else
  5207. STRIP="$ac_cv_prog_STRIP"
  5208. fi
  5209. test -z "$STRIP" && STRIP=:
  5210. if test -n "$ac_tool_prefix"; then
  5211. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  5212. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  5213. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5214. $as_echo_n "checking for $ac_word... " >&6; }
  5215. if ${ac_cv_prog_RANLIB+:} false; then :
  5216. $as_echo_n "(cached) " >&6
  5217. else
  5218. if test -n "$RANLIB"; then
  5219. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  5220. else
  5221. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5222. for as_dir in $PATH
  5223. do
  5224. IFS=$as_save_IFS
  5225. test -z "$as_dir" && as_dir=.
  5226. for ac_exec_ext in '' $ac_executable_extensions; do
  5227. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5228. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  5229. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5230. break 2
  5231. fi
  5232. done
  5233. done
  5234. IFS=$as_save_IFS
  5235. fi
  5236. fi
  5237. RANLIB=$ac_cv_prog_RANLIB
  5238. if test -n "$RANLIB"; then
  5239. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  5240. $as_echo "$RANLIB" >&6; }
  5241. else
  5242. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5243. $as_echo "no" >&6; }
  5244. fi
  5245. fi
  5246. if test -z "$ac_cv_prog_RANLIB"; then
  5247. ac_ct_RANLIB=$RANLIB
  5248. # Extract the first word of "ranlib", so it can be a program name with args.
  5249. set dummy ranlib; ac_word=$2
  5250. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5251. $as_echo_n "checking for $ac_word... " >&6; }
  5252. if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
  5253. $as_echo_n "(cached) " >&6
  5254. else
  5255. if test -n "$ac_ct_RANLIB"; then
  5256. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  5257. else
  5258. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5259. for as_dir in $PATH
  5260. do
  5261. IFS=$as_save_IFS
  5262. test -z "$as_dir" && as_dir=.
  5263. for ac_exec_ext in '' $ac_executable_extensions; do
  5264. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5265. ac_cv_prog_ac_ct_RANLIB="ranlib"
  5266. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5267. break 2
  5268. fi
  5269. done
  5270. done
  5271. IFS=$as_save_IFS
  5272. fi
  5273. fi
  5274. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  5275. if test -n "$ac_ct_RANLIB"; then
  5276. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  5277. $as_echo "$ac_ct_RANLIB" >&6; }
  5278. else
  5279. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5280. $as_echo "no" >&6; }
  5281. fi
  5282. if test "x$ac_ct_RANLIB" = x; then
  5283. RANLIB=":"
  5284. else
  5285. case $cross_compiling:$ac_tool_warned in
  5286. yes:)
  5287. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5288. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5289. ac_tool_warned=yes ;;
  5290. esac
  5291. RANLIB=$ac_ct_RANLIB
  5292. fi
  5293. else
  5294. RANLIB="$ac_cv_prog_RANLIB"
  5295. fi
  5296. test -z "$RANLIB" && RANLIB=:
  5297. # Determine commands to create old-style static archives.
  5298. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  5299. old_postinstall_cmds='chmod 644 $oldlib'
  5300. old_postuninstall_cmds=
  5301. if test -n "$RANLIB"; then
  5302. case $host_os in
  5303. openbsd*)
  5304. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
  5305. ;;
  5306. *)
  5307. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
  5308. ;;
  5309. esac
  5310. old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
  5311. fi
  5312. case $host_os in
  5313. darwin*)
  5314. lock_old_archive_extraction=yes ;;
  5315. *)
  5316. lock_old_archive_extraction=no ;;
  5317. esac
  5318. # If no C compiler was specified, use CC.
  5319. LTCC=${LTCC-"$CC"}
  5320. # If no C compiler flags were specified, use CFLAGS.
  5321. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  5322. # Allow CC to be a program name with arguments.
  5323. compiler=$CC
  5324. # Check for command to grab the raw symbol name followed by C symbol from nm.
  5325. { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
  5326. $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
  5327. if ${lt_cv_sys_global_symbol_pipe+:} false; then :
  5328. $as_echo_n "(cached) " >&6
  5329. else
  5330. # These are sane defaults that work on at least a few old systems.
  5331. # [They come from Ultrix. What could be older than Ultrix?!! ;)]
  5332. # Character class describing NM global symbol codes.
  5333. symcode='[BCDEGRST]'
  5334. # Regexp to match symbols that can be accessed directly from C.
  5335. sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  5336. # Define system-specific variables.
  5337. case $host_os in
  5338. aix*)
  5339. symcode='[BCDT]'
  5340. ;;
  5341. cygwin* | mingw* | pw32* | cegcc*)
  5342. symcode='[ABCDGISTW]'
  5343. ;;
  5344. hpux*)
  5345. if test "$host_cpu" = ia64; then
  5346. symcode='[ABCDEGRST]'
  5347. fi
  5348. ;;
  5349. irix* | nonstopux*)
  5350. symcode='[BCDEGRST]'
  5351. ;;
  5352. osf*)
  5353. symcode='[BCDEGQRST]'
  5354. ;;
  5355. solaris*)
  5356. symcode='[BDRT]'
  5357. ;;
  5358. sco3.2v5*)
  5359. symcode='[DT]'
  5360. ;;
  5361. sysv4.2uw2*)
  5362. symcode='[DT]'
  5363. ;;
  5364. sysv5* | sco5v6* | unixware* | OpenUNIX*)
  5365. symcode='[ABDT]'
  5366. ;;
  5367. sysv4)
  5368. symcode='[DFNSTU]'
  5369. ;;
  5370. esac
  5371. # If we're using GNU nm, then use its standard symbol codes.
  5372. case `$NM -V 2>&1` in
  5373. *GNU* | *'with BFD'*)
  5374. symcode='[ABCDGIRSTW]' ;;
  5375. esac
  5376. # Transform an extracted symbol line into a proper C declaration.
  5377. # Some systems (esp. on ia64) link data and code symbols differently,
  5378. # so use this general approach.
  5379. lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  5380. # Transform an extracted symbol line into symbol name and symbol address
  5381. lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
  5382. 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'"
  5383. # Handle CRLF in mingw tool chain
  5384. opt_cr=
  5385. case $build_os in
  5386. mingw*)
  5387. opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  5388. ;;
  5389. esac
  5390. # Try without a prefix underscore, then with it.
  5391. for ac_symprfx in "" "_"; do
  5392. # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  5393. symxfrm="\\1 $ac_symprfx\\2 \\2"
  5394. # Write the raw and C identifiers.
  5395. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  5396. # Fake it for dumpbin and say T for any non-static function
  5397. # and D for any global variable.
  5398. # Also find C++ and __fastcall symbols from MSVC++,
  5399. # which start with @ or ?.
  5400. lt_cv_sys_global_symbol_pipe="$AWK '"\
  5401. " {last_section=section; section=\$ 3};"\
  5402. " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
  5403. " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
  5404. " \$ 0!~/External *\|/{next};"\
  5405. " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
  5406. " {if(hide[section]) next};"\
  5407. " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
  5408. " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
  5409. " s[1]~/^[@?]/{print s[1], s[1]; next};"\
  5410. " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
  5411. " ' prfx=^$ac_symprfx"
  5412. else
  5413. lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  5414. fi
  5415. lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
  5416. # Check to see that the pipe works correctly.
  5417. pipe_works=no
  5418. rm -f conftest*
  5419. cat > conftest.$ac_ext <<_LT_EOF
  5420. #ifdef __cplusplus
  5421. extern "C" {
  5422. #endif
  5423. char nm_test_var;
  5424. void nm_test_func(void);
  5425. void nm_test_func(void){}
  5426. #ifdef __cplusplus
  5427. }
  5428. #endif
  5429. int main(){nm_test_var='a';nm_test_func();return(0);}
  5430. _LT_EOF
  5431. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5432. (eval $ac_compile) 2>&5
  5433. ac_status=$?
  5434. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5435. test $ac_status = 0; }; then
  5436. # Now try to grab the symbols.
  5437. nlist=conftest.nm
  5438. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
  5439. (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
  5440. ac_status=$?
  5441. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5442. test $ac_status = 0; } && test -s "$nlist"; then
  5443. # Try sorting and uniquifying the output.
  5444. if sort "$nlist" | uniq > "$nlist"T; then
  5445. mv -f "$nlist"T "$nlist"
  5446. else
  5447. rm -f "$nlist"T
  5448. fi
  5449. # Make sure that we snagged all the symbols we need.
  5450. if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
  5451. if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
  5452. cat <<_LT_EOF > conftest.$ac_ext
  5453. /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
  5454. #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
  5455. /* DATA imports from DLLs on WIN32 con't be const, because runtime
  5456. relocations are performed -- see ld's documentation on pseudo-relocs. */
  5457. # define LT@&t@_DLSYM_CONST
  5458. #elif defined(__osf__)
  5459. /* This system does not cope well with relocations in const data. */
  5460. # define LT@&t@_DLSYM_CONST
  5461. #else
  5462. # define LT@&t@_DLSYM_CONST const
  5463. #endif
  5464. #ifdef __cplusplus
  5465. extern "C" {
  5466. #endif
  5467. _LT_EOF
  5468. # Now generate the symbol file.
  5469. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
  5470. cat <<_LT_EOF >> conftest.$ac_ext
  5471. /* The mapping between symbol names and symbols. */
  5472. LT@&t@_DLSYM_CONST struct {
  5473. const char *name;
  5474. void *address;
  5475. }
  5476. lt__PROGRAM__LTX_preloaded_symbols[] =
  5477. {
  5478. { "@PROGRAM@", (void *) 0 },
  5479. _LT_EOF
  5480. $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
  5481. cat <<\_LT_EOF >> conftest.$ac_ext
  5482. {0, (void *) 0}
  5483. };
  5484. /* This works around a problem in FreeBSD linker */
  5485. #ifdef FREEBSD_WORKAROUND
  5486. static const void *lt_preloaded_setup() {
  5487. return lt__PROGRAM__LTX_preloaded_symbols;
  5488. }
  5489. #endif
  5490. #ifdef __cplusplus
  5491. }
  5492. #endif
  5493. _LT_EOF
  5494. # Now try linking the two files.
  5495. mv conftest.$ac_objext conftstm.$ac_objext
  5496. lt_globsym_save_LIBS=$LIBS
  5497. lt_globsym_save_CFLAGS=$CFLAGS
  5498. LIBS="conftstm.$ac_objext"
  5499. CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
  5500. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  5501. (eval $ac_link) 2>&5
  5502. ac_status=$?
  5503. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5504. test $ac_status = 0; } && test -s conftest${ac_exeext}; then
  5505. pipe_works=yes
  5506. fi
  5507. LIBS=$lt_globsym_save_LIBS
  5508. CFLAGS=$lt_globsym_save_CFLAGS
  5509. else
  5510. echo "cannot find nm_test_func in $nlist" >&5
  5511. fi
  5512. else
  5513. echo "cannot find nm_test_var in $nlist" >&5
  5514. fi
  5515. else
  5516. echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
  5517. fi
  5518. else
  5519. echo "$progname: failed program was:" >&5
  5520. cat conftest.$ac_ext >&5
  5521. fi
  5522. rm -rf conftest* conftst*
  5523. # Do not use the global_symbol_pipe unless it works.
  5524. if test "$pipe_works" = yes; then
  5525. break
  5526. else
  5527. lt_cv_sys_global_symbol_pipe=
  5528. fi
  5529. done
  5530. fi
  5531. if test -z "$lt_cv_sys_global_symbol_pipe"; then
  5532. lt_cv_sys_global_symbol_to_cdecl=
  5533. fi
  5534. if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  5535. { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
  5536. $as_echo "failed" >&6; }
  5537. else
  5538. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
  5539. $as_echo "ok" >&6; }
  5540. fi
  5541. # Response file support.
  5542. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  5543. nm_file_list_spec='@'
  5544. elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
  5545. nm_file_list_spec='@'
  5546. fi
  5547. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
  5548. $as_echo_n "checking for sysroot... " >&6; }
  5549. @%:@ Check whether --with-sysroot was given.
  5550. if test "${with_sysroot+set}" = set; then :
  5551. withval=$with_sysroot;
  5552. else
  5553. with_sysroot=no
  5554. fi
  5555. lt_sysroot=
  5556. case ${with_sysroot} in #(
  5557. yes)
  5558. if test "$GCC" = yes; then
  5559. lt_sysroot=`$CC --print-sysroot 2>/dev/null`
  5560. fi
  5561. ;; #(
  5562. /*)
  5563. lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
  5564. ;; #(
  5565. no|'')
  5566. ;; #(
  5567. *)
  5568. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
  5569. $as_echo "${with_sysroot}" >&6; }
  5570. as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
  5571. ;;
  5572. esac
  5573. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
  5574. $as_echo "${lt_sysroot:-no}" >&6; }
  5575. @%:@ Check whether --enable-libtool-lock was given.
  5576. if test "${enable_libtool_lock+set}" = set; then :
  5577. enableval=$enable_libtool_lock;
  5578. fi
  5579. test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  5580. # Some flags need to be propagated to the compiler or linker for good
  5581. # libtool support.
  5582. case $host in
  5583. ia64-*-hpux*)
  5584. # Find out which ABI we are using.
  5585. echo 'int i;' > conftest.$ac_ext
  5586. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5587. (eval $ac_compile) 2>&5
  5588. ac_status=$?
  5589. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5590. test $ac_status = 0; }; then
  5591. case `/usr/bin/file conftest.$ac_objext` in
  5592. *ELF-32*)
  5593. HPUX_IA64_MODE="32"
  5594. ;;
  5595. *ELF-64*)
  5596. HPUX_IA64_MODE="64"
  5597. ;;
  5598. esac
  5599. fi
  5600. rm -rf conftest*
  5601. ;;
  5602. *-*-irix6*)
  5603. # Find out which ABI we are using.
  5604. echo '#line '$LINENO' "configure"' > conftest.$ac_ext
  5605. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5606. (eval $ac_compile) 2>&5
  5607. ac_status=$?
  5608. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5609. test $ac_status = 0; }; then
  5610. if test "$lt_cv_prog_gnu_ld" = yes; then
  5611. case `/usr/bin/file conftest.$ac_objext` in
  5612. *32-bit*)
  5613. LD="${LD-ld} -melf32bsmip"
  5614. ;;
  5615. *N32*)
  5616. LD="${LD-ld} -melf32bmipn32"
  5617. ;;
  5618. *64-bit*)
  5619. LD="${LD-ld} -melf64bmip"
  5620. ;;
  5621. esac
  5622. else
  5623. case `/usr/bin/file conftest.$ac_objext` in
  5624. *32-bit*)
  5625. LD="${LD-ld} -32"
  5626. ;;
  5627. *N32*)
  5628. LD="${LD-ld} -n32"
  5629. ;;
  5630. *64-bit*)
  5631. LD="${LD-ld} -64"
  5632. ;;
  5633. esac
  5634. fi
  5635. fi
  5636. rm -rf conftest*
  5637. ;;
  5638. x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
  5639. s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
  5640. # Find out which ABI we are using.
  5641. echo 'int i;' > conftest.$ac_ext
  5642. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5643. (eval $ac_compile) 2>&5
  5644. ac_status=$?
  5645. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5646. test $ac_status = 0; }; then
  5647. case `/usr/bin/file conftest.o` in
  5648. *32-bit*)
  5649. case $host in
  5650. x86_64-*kfreebsd*-gnu)
  5651. LD="${LD-ld} -m elf_i386_fbsd"
  5652. ;;
  5653. x86_64-*linux*)
  5654. LD="${LD-ld} -m elf_i386"
  5655. ;;
  5656. ppc64-*linux*|powerpc64-*linux*)
  5657. LD="${LD-ld} -m elf32ppclinux"
  5658. ;;
  5659. s390x-*linux*)
  5660. LD="${LD-ld} -m elf_s390"
  5661. ;;
  5662. sparc64-*linux*)
  5663. LD="${LD-ld} -m elf32_sparc"
  5664. ;;
  5665. esac
  5666. ;;
  5667. *64-bit*)
  5668. case $host in
  5669. x86_64-*kfreebsd*-gnu)
  5670. LD="${LD-ld} -m elf_x86_64_fbsd"
  5671. ;;
  5672. x86_64-*linux*)
  5673. LD="${LD-ld} -m elf_x86_64"
  5674. ;;
  5675. ppc*-*linux*|powerpc*-*linux*)
  5676. LD="${LD-ld} -m elf64ppc"
  5677. ;;
  5678. s390*-*linux*|s390*-*tpf*)
  5679. LD="${LD-ld} -m elf64_s390"
  5680. ;;
  5681. sparc*-*linux*)
  5682. LD="${LD-ld} -m elf64_sparc"
  5683. ;;
  5684. esac
  5685. ;;
  5686. esac
  5687. fi
  5688. rm -rf conftest*
  5689. ;;
  5690. *-*-sco3.2v5*)
  5691. # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  5692. SAVE_CFLAGS="$CFLAGS"
  5693. CFLAGS="$CFLAGS -belf"
  5694. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
  5695. $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
  5696. if ${lt_cv_cc_needs_belf+:} false; then :
  5697. $as_echo_n "(cached) " >&6
  5698. else
  5699. ac_ext=c
  5700. ac_cpp='$CPP $CPPFLAGS'
  5701. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5702. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5703. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5704. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5705. /* end confdefs.h. */
  5706. int
  5707. main ()
  5708. {
  5709. ;
  5710. return 0;
  5711. }
  5712. _ACEOF
  5713. if ac_fn_c_try_link "$LINENO"; then :
  5714. lt_cv_cc_needs_belf=yes
  5715. else
  5716. lt_cv_cc_needs_belf=no
  5717. fi
  5718. rm -f core conftest.err conftest.$ac_objext \
  5719. conftest$ac_exeext conftest.$ac_ext
  5720. ac_ext=c
  5721. ac_cpp='$CPP $CPPFLAGS'
  5722. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5723. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5724. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5725. fi
  5726. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
  5727. $as_echo "$lt_cv_cc_needs_belf" >&6; }
  5728. if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  5729. # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  5730. CFLAGS="$SAVE_CFLAGS"
  5731. fi
  5732. ;;
  5733. *-*solaris*)
  5734. # Find out which ABI we are using.
  5735. echo 'int i;' > conftest.$ac_ext
  5736. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5737. (eval $ac_compile) 2>&5
  5738. ac_status=$?
  5739. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5740. test $ac_status = 0; }; then
  5741. case `/usr/bin/file conftest.o` in
  5742. *64-bit*)
  5743. case $lt_cv_prog_gnu_ld in
  5744. yes*)
  5745. case $host in
  5746. i?86-*-solaris*)
  5747. LD="${LD-ld} -m elf_x86_64"
  5748. ;;
  5749. sparc*-*-solaris*)
  5750. LD="${LD-ld} -m elf64_sparc"
  5751. ;;
  5752. esac
  5753. # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
  5754. if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
  5755. LD="${LD-ld}_sol2"
  5756. fi
  5757. ;;
  5758. *)
  5759. if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  5760. LD="${LD-ld} -64"
  5761. fi
  5762. ;;
  5763. esac
  5764. ;;
  5765. esac
  5766. fi
  5767. rm -rf conftest*
  5768. ;;
  5769. esac
  5770. need_locks="$enable_libtool_lock"
  5771. if test -n "$ac_tool_prefix"; then
  5772. # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
  5773. set dummy ${ac_tool_prefix}mt; ac_word=$2
  5774. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5775. $as_echo_n "checking for $ac_word... " >&6; }
  5776. if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
  5777. $as_echo_n "(cached) " >&6
  5778. else
  5779. if test -n "$MANIFEST_TOOL"; then
  5780. ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
  5781. else
  5782. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5783. for as_dir in $PATH
  5784. do
  5785. IFS=$as_save_IFS
  5786. test -z "$as_dir" && as_dir=.
  5787. for ac_exec_ext in '' $ac_executable_extensions; do
  5788. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5789. ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
  5790. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5791. break 2
  5792. fi
  5793. done
  5794. done
  5795. IFS=$as_save_IFS
  5796. fi
  5797. fi
  5798. MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
  5799. if test -n "$MANIFEST_TOOL"; then
  5800. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
  5801. $as_echo "$MANIFEST_TOOL" >&6; }
  5802. else
  5803. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5804. $as_echo "no" >&6; }
  5805. fi
  5806. fi
  5807. if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
  5808. ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
  5809. # Extract the first word of "mt", so it can be a program name with args.
  5810. set dummy mt; ac_word=$2
  5811. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5812. $as_echo_n "checking for $ac_word... " >&6; }
  5813. if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
  5814. $as_echo_n "(cached) " >&6
  5815. else
  5816. if test -n "$ac_ct_MANIFEST_TOOL"; then
  5817. ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
  5818. else
  5819. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5820. for as_dir in $PATH
  5821. do
  5822. IFS=$as_save_IFS
  5823. test -z "$as_dir" && as_dir=.
  5824. for ac_exec_ext in '' $ac_executable_extensions; do
  5825. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5826. ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
  5827. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5828. break 2
  5829. fi
  5830. done
  5831. done
  5832. IFS=$as_save_IFS
  5833. fi
  5834. fi
  5835. ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
  5836. if test -n "$ac_ct_MANIFEST_TOOL"; then
  5837. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
  5838. $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
  5839. else
  5840. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5841. $as_echo "no" >&6; }
  5842. fi
  5843. if test "x$ac_ct_MANIFEST_TOOL" = x; then
  5844. MANIFEST_TOOL=":"
  5845. else
  5846. case $cross_compiling:$ac_tool_warned in
  5847. yes:)
  5848. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5849. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5850. ac_tool_warned=yes ;;
  5851. esac
  5852. MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
  5853. fi
  5854. else
  5855. MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
  5856. fi
  5857. test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
  5858. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
  5859. $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
  5860. if ${lt_cv_path_mainfest_tool+:} false; then :
  5861. $as_echo_n "(cached) " >&6
  5862. else
  5863. lt_cv_path_mainfest_tool=no
  5864. echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
  5865. $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
  5866. cat conftest.err >&5
  5867. if $GREP 'Manifest Tool' conftest.out > /dev/null; then
  5868. lt_cv_path_mainfest_tool=yes
  5869. fi
  5870. rm -f conftest*
  5871. fi
  5872. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
  5873. $as_echo "$lt_cv_path_mainfest_tool" >&6; }
  5874. if test "x$lt_cv_path_mainfest_tool" != xyes; then
  5875. MANIFEST_TOOL=:
  5876. fi
  5877. case $host_os in
  5878. rhapsody* | darwin*)
  5879. if test -n "$ac_tool_prefix"; then
  5880. # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
  5881. set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
  5882. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5883. $as_echo_n "checking for $ac_word... " >&6; }
  5884. if ${ac_cv_prog_DSYMUTIL+:} false; then :
  5885. $as_echo_n "(cached) " >&6
  5886. else
  5887. if test -n "$DSYMUTIL"; then
  5888. ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
  5889. else
  5890. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5891. for as_dir in $PATH
  5892. do
  5893. IFS=$as_save_IFS
  5894. test -z "$as_dir" && as_dir=.
  5895. for ac_exec_ext in '' $ac_executable_extensions; do
  5896. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5897. ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
  5898. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5899. break 2
  5900. fi
  5901. done
  5902. done
  5903. IFS=$as_save_IFS
  5904. fi
  5905. fi
  5906. DSYMUTIL=$ac_cv_prog_DSYMUTIL
  5907. if test -n "$DSYMUTIL"; then
  5908. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
  5909. $as_echo "$DSYMUTIL" >&6; }
  5910. else
  5911. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5912. $as_echo "no" >&6; }
  5913. fi
  5914. fi
  5915. if test -z "$ac_cv_prog_DSYMUTIL"; then
  5916. ac_ct_DSYMUTIL=$DSYMUTIL
  5917. # Extract the first word of "dsymutil", so it can be a program name with args.
  5918. set dummy dsymutil; ac_word=$2
  5919. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5920. $as_echo_n "checking for $ac_word... " >&6; }
  5921. if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
  5922. $as_echo_n "(cached) " >&6
  5923. else
  5924. if test -n "$ac_ct_DSYMUTIL"; then
  5925. ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
  5926. else
  5927. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5928. for as_dir in $PATH
  5929. do
  5930. IFS=$as_save_IFS
  5931. test -z "$as_dir" && as_dir=.
  5932. for ac_exec_ext in '' $ac_executable_extensions; do
  5933. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5934. ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
  5935. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5936. break 2
  5937. fi
  5938. done
  5939. done
  5940. IFS=$as_save_IFS
  5941. fi
  5942. fi
  5943. ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
  5944. if test -n "$ac_ct_DSYMUTIL"; then
  5945. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
  5946. $as_echo "$ac_ct_DSYMUTIL" >&6; }
  5947. else
  5948. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5949. $as_echo "no" >&6; }
  5950. fi
  5951. if test "x$ac_ct_DSYMUTIL" = x; then
  5952. DSYMUTIL=":"
  5953. else
  5954. case $cross_compiling:$ac_tool_warned in
  5955. yes:)
  5956. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5957. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5958. ac_tool_warned=yes ;;
  5959. esac
  5960. DSYMUTIL=$ac_ct_DSYMUTIL
  5961. fi
  5962. else
  5963. DSYMUTIL="$ac_cv_prog_DSYMUTIL"
  5964. fi
  5965. if test -n "$ac_tool_prefix"; then
  5966. # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
  5967. set dummy ${ac_tool_prefix}nmedit; ac_word=$2
  5968. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5969. $as_echo_n "checking for $ac_word... " >&6; }
  5970. if ${ac_cv_prog_NMEDIT+:} false; then :
  5971. $as_echo_n "(cached) " >&6
  5972. else
  5973. if test -n "$NMEDIT"; then
  5974. ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
  5975. else
  5976. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5977. for as_dir in $PATH
  5978. do
  5979. IFS=$as_save_IFS
  5980. test -z "$as_dir" && as_dir=.
  5981. for ac_exec_ext in '' $ac_executable_extensions; do
  5982. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5983. ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
  5984. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5985. break 2
  5986. fi
  5987. done
  5988. done
  5989. IFS=$as_save_IFS
  5990. fi
  5991. fi
  5992. NMEDIT=$ac_cv_prog_NMEDIT
  5993. if test -n "$NMEDIT"; then
  5994. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
  5995. $as_echo "$NMEDIT" >&6; }
  5996. else
  5997. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5998. $as_echo "no" >&6; }
  5999. fi
  6000. fi
  6001. if test -z "$ac_cv_prog_NMEDIT"; then
  6002. ac_ct_NMEDIT=$NMEDIT
  6003. # Extract the first word of "nmedit", so it can be a program name with args.
  6004. set dummy nmedit; ac_word=$2
  6005. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6006. $as_echo_n "checking for $ac_word... " >&6; }
  6007. if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
  6008. $as_echo_n "(cached) " >&6
  6009. else
  6010. if test -n "$ac_ct_NMEDIT"; then
  6011. ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
  6012. else
  6013. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6014. for as_dir in $PATH
  6015. do
  6016. IFS=$as_save_IFS
  6017. test -z "$as_dir" && as_dir=.
  6018. for ac_exec_ext in '' $ac_executable_extensions; do
  6019. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6020. ac_cv_prog_ac_ct_NMEDIT="nmedit"
  6021. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6022. break 2
  6023. fi
  6024. done
  6025. done
  6026. IFS=$as_save_IFS
  6027. fi
  6028. fi
  6029. ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
  6030. if test -n "$ac_ct_NMEDIT"; then
  6031. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
  6032. $as_echo "$ac_ct_NMEDIT" >&6; }
  6033. else
  6034. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6035. $as_echo "no" >&6; }
  6036. fi
  6037. if test "x$ac_ct_NMEDIT" = x; then
  6038. NMEDIT=":"
  6039. else
  6040. case $cross_compiling:$ac_tool_warned in
  6041. yes:)
  6042. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6043. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6044. ac_tool_warned=yes ;;
  6045. esac
  6046. NMEDIT=$ac_ct_NMEDIT
  6047. fi
  6048. else
  6049. NMEDIT="$ac_cv_prog_NMEDIT"
  6050. fi
  6051. if test -n "$ac_tool_prefix"; then
  6052. # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
  6053. set dummy ${ac_tool_prefix}lipo; ac_word=$2
  6054. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6055. $as_echo_n "checking for $ac_word... " >&6; }
  6056. if ${ac_cv_prog_LIPO+:} false; then :
  6057. $as_echo_n "(cached) " >&6
  6058. else
  6059. if test -n "$LIPO"; then
  6060. ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
  6061. else
  6062. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6063. for as_dir in $PATH
  6064. do
  6065. IFS=$as_save_IFS
  6066. test -z "$as_dir" && as_dir=.
  6067. for ac_exec_ext in '' $ac_executable_extensions; do
  6068. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6069. ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
  6070. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6071. break 2
  6072. fi
  6073. done
  6074. done
  6075. IFS=$as_save_IFS
  6076. fi
  6077. fi
  6078. LIPO=$ac_cv_prog_LIPO
  6079. if test -n "$LIPO"; then
  6080. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
  6081. $as_echo "$LIPO" >&6; }
  6082. else
  6083. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6084. $as_echo "no" >&6; }
  6085. fi
  6086. fi
  6087. if test -z "$ac_cv_prog_LIPO"; then
  6088. ac_ct_LIPO=$LIPO
  6089. # Extract the first word of "lipo", so it can be a program name with args.
  6090. set dummy lipo; ac_word=$2
  6091. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6092. $as_echo_n "checking for $ac_word... " >&6; }
  6093. if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
  6094. $as_echo_n "(cached) " >&6
  6095. else
  6096. if test -n "$ac_ct_LIPO"; then
  6097. ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
  6098. else
  6099. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6100. for as_dir in $PATH
  6101. do
  6102. IFS=$as_save_IFS
  6103. test -z "$as_dir" && as_dir=.
  6104. for ac_exec_ext in '' $ac_executable_extensions; do
  6105. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6106. ac_cv_prog_ac_ct_LIPO="lipo"
  6107. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6108. break 2
  6109. fi
  6110. done
  6111. done
  6112. IFS=$as_save_IFS
  6113. fi
  6114. fi
  6115. ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
  6116. if test -n "$ac_ct_LIPO"; then
  6117. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
  6118. $as_echo "$ac_ct_LIPO" >&6; }
  6119. else
  6120. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6121. $as_echo "no" >&6; }
  6122. fi
  6123. if test "x$ac_ct_LIPO" = x; then
  6124. LIPO=":"
  6125. else
  6126. case $cross_compiling:$ac_tool_warned in
  6127. yes:)
  6128. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6129. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6130. ac_tool_warned=yes ;;
  6131. esac
  6132. LIPO=$ac_ct_LIPO
  6133. fi
  6134. else
  6135. LIPO="$ac_cv_prog_LIPO"
  6136. fi
  6137. if test -n "$ac_tool_prefix"; then
  6138. # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
  6139. set dummy ${ac_tool_prefix}otool; ac_word=$2
  6140. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6141. $as_echo_n "checking for $ac_word... " >&6; }
  6142. if ${ac_cv_prog_OTOOL+:} false; then :
  6143. $as_echo_n "(cached) " >&6
  6144. else
  6145. if test -n "$OTOOL"; then
  6146. ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
  6147. else
  6148. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6149. for as_dir in $PATH
  6150. do
  6151. IFS=$as_save_IFS
  6152. test -z "$as_dir" && as_dir=.
  6153. for ac_exec_ext in '' $ac_executable_extensions; do
  6154. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6155. ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
  6156. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6157. break 2
  6158. fi
  6159. done
  6160. done
  6161. IFS=$as_save_IFS
  6162. fi
  6163. fi
  6164. OTOOL=$ac_cv_prog_OTOOL
  6165. if test -n "$OTOOL"; then
  6166. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
  6167. $as_echo "$OTOOL" >&6; }
  6168. else
  6169. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6170. $as_echo "no" >&6; }
  6171. fi
  6172. fi
  6173. if test -z "$ac_cv_prog_OTOOL"; then
  6174. ac_ct_OTOOL=$OTOOL
  6175. # Extract the first word of "otool", so it can be a program name with args.
  6176. set dummy otool; ac_word=$2
  6177. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6178. $as_echo_n "checking for $ac_word... " >&6; }
  6179. if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
  6180. $as_echo_n "(cached) " >&6
  6181. else
  6182. if test -n "$ac_ct_OTOOL"; then
  6183. ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
  6184. else
  6185. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6186. for as_dir in $PATH
  6187. do
  6188. IFS=$as_save_IFS
  6189. test -z "$as_dir" && as_dir=.
  6190. for ac_exec_ext in '' $ac_executable_extensions; do
  6191. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6192. ac_cv_prog_ac_ct_OTOOL="otool"
  6193. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6194. break 2
  6195. fi
  6196. done
  6197. done
  6198. IFS=$as_save_IFS
  6199. fi
  6200. fi
  6201. ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
  6202. if test -n "$ac_ct_OTOOL"; then
  6203. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
  6204. $as_echo "$ac_ct_OTOOL" >&6; }
  6205. else
  6206. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6207. $as_echo "no" >&6; }
  6208. fi
  6209. if test "x$ac_ct_OTOOL" = x; then
  6210. OTOOL=":"
  6211. else
  6212. case $cross_compiling:$ac_tool_warned in
  6213. yes:)
  6214. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6215. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6216. ac_tool_warned=yes ;;
  6217. esac
  6218. OTOOL=$ac_ct_OTOOL
  6219. fi
  6220. else
  6221. OTOOL="$ac_cv_prog_OTOOL"
  6222. fi
  6223. if test -n "$ac_tool_prefix"; then
  6224. # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
  6225. set dummy ${ac_tool_prefix}otool64; ac_word=$2
  6226. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6227. $as_echo_n "checking for $ac_word... " >&6; }
  6228. if ${ac_cv_prog_OTOOL64+:} false; then :
  6229. $as_echo_n "(cached) " >&6
  6230. else
  6231. if test -n "$OTOOL64"; then
  6232. ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
  6233. else
  6234. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6235. for as_dir in $PATH
  6236. do
  6237. IFS=$as_save_IFS
  6238. test -z "$as_dir" && as_dir=.
  6239. for ac_exec_ext in '' $ac_executable_extensions; do
  6240. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6241. ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
  6242. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6243. break 2
  6244. fi
  6245. done
  6246. done
  6247. IFS=$as_save_IFS
  6248. fi
  6249. fi
  6250. OTOOL64=$ac_cv_prog_OTOOL64
  6251. if test -n "$OTOOL64"; then
  6252. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
  6253. $as_echo "$OTOOL64" >&6; }
  6254. else
  6255. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6256. $as_echo "no" >&6; }
  6257. fi
  6258. fi
  6259. if test -z "$ac_cv_prog_OTOOL64"; then
  6260. ac_ct_OTOOL64=$OTOOL64
  6261. # Extract the first word of "otool64", so it can be a program name with args.
  6262. set dummy otool64; ac_word=$2
  6263. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6264. $as_echo_n "checking for $ac_word... " >&6; }
  6265. if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
  6266. $as_echo_n "(cached) " >&6
  6267. else
  6268. if test -n "$ac_ct_OTOOL64"; then
  6269. ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
  6270. else
  6271. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6272. for as_dir in $PATH
  6273. do
  6274. IFS=$as_save_IFS
  6275. test -z "$as_dir" && as_dir=.
  6276. for ac_exec_ext in '' $ac_executable_extensions; do
  6277. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6278. ac_cv_prog_ac_ct_OTOOL64="otool64"
  6279. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6280. break 2
  6281. fi
  6282. done
  6283. done
  6284. IFS=$as_save_IFS
  6285. fi
  6286. fi
  6287. ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
  6288. if test -n "$ac_ct_OTOOL64"; then
  6289. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
  6290. $as_echo "$ac_ct_OTOOL64" >&6; }
  6291. else
  6292. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6293. $as_echo "no" >&6; }
  6294. fi
  6295. if test "x$ac_ct_OTOOL64" = x; then
  6296. OTOOL64=":"
  6297. else
  6298. case $cross_compiling:$ac_tool_warned in
  6299. yes:)
  6300. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6301. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6302. ac_tool_warned=yes ;;
  6303. esac
  6304. OTOOL64=$ac_ct_OTOOL64
  6305. fi
  6306. else
  6307. OTOOL64="$ac_cv_prog_OTOOL64"
  6308. fi
  6309. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
  6310. $as_echo_n "checking for -single_module linker flag... " >&6; }
  6311. if ${lt_cv_apple_cc_single_mod+:} false; then :
  6312. $as_echo_n "(cached) " >&6
  6313. else
  6314. lt_cv_apple_cc_single_mod=no
  6315. if test -z "${LT_MULTI_MODULE}"; then
  6316. # By default we will add the -single_module flag. You can override
  6317. # by either setting the environment variable LT_MULTI_MODULE
  6318. # non-empty at configure time, or by adding -multi_module to the
  6319. # link flags.
  6320. rm -rf libconftest.dylib*
  6321. echo "int foo(void){return 1;}" > conftest.c
  6322. echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  6323. -dynamiclib -Wl,-single_module conftest.c" >&5
  6324. $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  6325. -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
  6326. _lt_result=$?
  6327. # If there is a non-empty error log, and "single_module"
  6328. # appears in it, assume the flag caused a linker warning
  6329. if test -s conftest.err && $GREP single_module conftest.err; then
  6330. cat conftest.err >&5
  6331. # Otherwise, if the output was created with a 0 exit code from
  6332. # the compiler, it worked.
  6333. elif test -f libconftest.dylib && test $_lt_result -eq 0; then
  6334. lt_cv_apple_cc_single_mod=yes
  6335. else
  6336. cat conftest.err >&5
  6337. fi
  6338. rm -rf libconftest.dylib*
  6339. rm -f conftest.*
  6340. fi
  6341. fi
  6342. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
  6343. $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
  6344. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
  6345. $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
  6346. if ${lt_cv_ld_exported_symbols_list+:} false; then :
  6347. $as_echo_n "(cached) " >&6
  6348. else
  6349. lt_cv_ld_exported_symbols_list=no
  6350. save_LDFLAGS=$LDFLAGS
  6351. echo "_main" > conftest.sym
  6352. LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  6353. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6354. /* end confdefs.h. */
  6355. int
  6356. main ()
  6357. {
  6358. ;
  6359. return 0;
  6360. }
  6361. _ACEOF
  6362. if ac_fn_c_try_link "$LINENO"; then :
  6363. lt_cv_ld_exported_symbols_list=yes
  6364. else
  6365. lt_cv_ld_exported_symbols_list=no
  6366. fi
  6367. rm -f core conftest.err conftest.$ac_objext \
  6368. conftest$ac_exeext conftest.$ac_ext
  6369. LDFLAGS="$save_LDFLAGS"
  6370. fi
  6371. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
  6372. $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
  6373. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
  6374. $as_echo_n "checking for -force_load linker flag... " >&6; }
  6375. if ${lt_cv_ld_force_load+:} false; then :
  6376. $as_echo_n "(cached) " >&6
  6377. else
  6378. lt_cv_ld_force_load=no
  6379. cat > conftest.c << _LT_EOF
  6380. int forced_loaded() { return 2;}
  6381. _LT_EOF
  6382. echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
  6383. $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
  6384. echo "$AR cru libconftest.a conftest.o" >&5
  6385. $AR cru libconftest.a conftest.o 2>&5
  6386. echo "$RANLIB libconftest.a" >&5
  6387. $RANLIB libconftest.a 2>&5
  6388. cat > conftest.c << _LT_EOF
  6389. int main() { return 0;}
  6390. _LT_EOF
  6391. echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
  6392. $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
  6393. _lt_result=$?
  6394. if test -s conftest.err && $GREP force_load conftest.err; then
  6395. cat conftest.err >&5
  6396. elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
  6397. lt_cv_ld_force_load=yes
  6398. else
  6399. cat conftest.err >&5
  6400. fi
  6401. rm -f conftest.err libconftest.a conftest conftest.c
  6402. rm -rf conftest.dSYM
  6403. fi
  6404. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
  6405. $as_echo "$lt_cv_ld_force_load" >&6; }
  6406. case $host_os in
  6407. rhapsody* | darwin1.[012])
  6408. _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
  6409. darwin1.*)
  6410. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  6411. darwin*) # darwin 5.x on
  6412. # if running on 10.5 or later, the deployment target defaults
  6413. # to the OS version, if on x86, and 10.4, the deployment
  6414. # target defaults to 10.4. Don't you love it?
  6415. case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
  6416. 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
  6417. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  6418. 10.[012]*)
  6419. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  6420. 10.*)
  6421. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  6422. esac
  6423. ;;
  6424. esac
  6425. if test "$lt_cv_apple_cc_single_mod" = "yes"; then
  6426. _lt_dar_single_mod='$single_module'
  6427. fi
  6428. if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
  6429. _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
  6430. else
  6431. _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
  6432. fi
  6433. if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
  6434. _lt_dsymutil='~$DSYMUTIL $lib || :'
  6435. else
  6436. _lt_dsymutil=
  6437. fi
  6438. ;;
  6439. esac
  6440. ac_ext=c
  6441. ac_cpp='$CPP $CPPFLAGS'
  6442. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6443. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6444. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6445. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  6446. $as_echo_n "checking how to run the C preprocessor... " >&6; }
  6447. # On Suns, sometimes $CPP names a directory.
  6448. if test -n "$CPP" && test -d "$CPP"; then
  6449. CPP=
  6450. fi
  6451. if test -z "$CPP"; then
  6452. if ${ac_cv_prog_CPP+:} false; then :
  6453. $as_echo_n "(cached) " >&6
  6454. else
  6455. # Double quotes because CPP needs to be expanded
  6456. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  6457. do
  6458. ac_preproc_ok=false
  6459. for ac_c_preproc_warn_flag in '' yes
  6460. do
  6461. # Use a header file that comes with gcc, so configuring glibc
  6462. # with a fresh cross-compiler works.
  6463. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6464. # <limits.h> exists even on freestanding compilers.
  6465. # On the NeXT, cc -E runs the code through the compiler's parser,
  6466. # not just through cpp. "Syntax error" is here to catch this case.
  6467. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6468. /* end confdefs.h. */
  6469. @%:@ifdef __STDC__
  6470. @%:@ include <limits.h>
  6471. @%:@else
  6472. @%:@ include <assert.h>
  6473. @%:@endif
  6474. Syntax error
  6475. _ACEOF
  6476. if ac_fn_c_try_cpp "$LINENO"; then :
  6477. else
  6478. # Broken: fails on valid input.
  6479. continue
  6480. fi
  6481. rm -f conftest.err conftest.i conftest.$ac_ext
  6482. # OK, works on sane cases. Now check whether nonexistent headers
  6483. # can be detected and how.
  6484. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6485. /* end confdefs.h. */
  6486. @%:@include <ac_nonexistent.h>
  6487. _ACEOF
  6488. if ac_fn_c_try_cpp "$LINENO"; then :
  6489. # Broken: success on invalid input.
  6490. continue
  6491. else
  6492. # Passes both tests.
  6493. ac_preproc_ok=:
  6494. break
  6495. fi
  6496. rm -f conftest.err conftest.i conftest.$ac_ext
  6497. done
  6498. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  6499. rm -f conftest.i conftest.err conftest.$ac_ext
  6500. if $ac_preproc_ok; then :
  6501. break
  6502. fi
  6503. done
  6504. ac_cv_prog_CPP=$CPP
  6505. fi
  6506. CPP=$ac_cv_prog_CPP
  6507. else
  6508. ac_cv_prog_CPP=$CPP
  6509. fi
  6510. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  6511. $as_echo "$CPP" >&6; }
  6512. ac_preproc_ok=false
  6513. for ac_c_preproc_warn_flag in '' yes
  6514. do
  6515. # Use a header file that comes with gcc, so configuring glibc
  6516. # with a fresh cross-compiler works.
  6517. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6518. # <limits.h> exists even on freestanding compilers.
  6519. # On the NeXT, cc -E runs the code through the compiler's parser,
  6520. # not just through cpp. "Syntax error" is here to catch this case.
  6521. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6522. /* end confdefs.h. */
  6523. @%:@ifdef __STDC__
  6524. @%:@ include <limits.h>
  6525. @%:@else
  6526. @%:@ include <assert.h>
  6527. @%:@endif
  6528. Syntax error
  6529. _ACEOF
  6530. if ac_fn_c_try_cpp "$LINENO"; then :
  6531. else
  6532. # Broken: fails on valid input.
  6533. continue
  6534. fi
  6535. rm -f conftest.err conftest.i conftest.$ac_ext
  6536. # OK, works on sane cases. Now check whether nonexistent headers
  6537. # can be detected and how.
  6538. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6539. /* end confdefs.h. */
  6540. @%:@include <ac_nonexistent.h>
  6541. _ACEOF
  6542. if ac_fn_c_try_cpp "$LINENO"; then :
  6543. # Broken: success on invalid input.
  6544. continue
  6545. else
  6546. # Passes both tests.
  6547. ac_preproc_ok=:
  6548. break
  6549. fi
  6550. rm -f conftest.err conftest.i conftest.$ac_ext
  6551. done
  6552. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  6553. rm -f conftest.i conftest.err conftest.$ac_ext
  6554. if $ac_preproc_ok; then :
  6555. else
  6556. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  6557. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  6558. as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
  6559. See \`config.log' for more details" "$LINENO" 5; }
  6560. fi
  6561. ac_ext=c
  6562. ac_cpp='$CPP $CPPFLAGS'
  6563. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6564. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6565. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6566. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  6567. $as_echo_n "checking for ANSI C header files... " >&6; }
  6568. if ${ac_cv_header_stdc+:} false; then :
  6569. $as_echo_n "(cached) " >&6
  6570. else
  6571. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6572. /* end confdefs.h. */
  6573. #include <stdlib.h>
  6574. #include <stdarg.h>
  6575. #include <string.h>
  6576. #include <float.h>
  6577. int
  6578. main ()
  6579. {
  6580. ;
  6581. return 0;
  6582. }
  6583. _ACEOF
  6584. if ac_fn_c_try_compile "$LINENO"; then :
  6585. ac_cv_header_stdc=yes
  6586. else
  6587. ac_cv_header_stdc=no
  6588. fi
  6589. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6590. if test $ac_cv_header_stdc = yes; then
  6591. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  6592. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6593. /* end confdefs.h. */
  6594. #include <string.h>
  6595. _ACEOF
  6596. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6597. $EGREP "memchr" >/dev/null 2>&1; then :
  6598. else
  6599. ac_cv_header_stdc=no
  6600. fi
  6601. rm -f conftest*
  6602. fi
  6603. if test $ac_cv_header_stdc = yes; then
  6604. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  6605. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6606. /* end confdefs.h. */
  6607. #include <stdlib.h>
  6608. _ACEOF
  6609. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6610. $EGREP "free" >/dev/null 2>&1; then :
  6611. else
  6612. ac_cv_header_stdc=no
  6613. fi
  6614. rm -f conftest*
  6615. fi
  6616. if test $ac_cv_header_stdc = yes; then
  6617. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  6618. if test "$cross_compiling" = yes; then :
  6619. :
  6620. else
  6621. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6622. /* end confdefs.h. */
  6623. #include <ctype.h>
  6624. #include <stdlib.h>
  6625. #if ((' ' & 0x0FF) == 0x020)
  6626. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  6627. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  6628. #else
  6629. # define ISLOWER(c) \
  6630. (('a' <= (c) && (c) <= 'i') \
  6631. || ('j' <= (c) && (c) <= 'r') \
  6632. || ('s' <= (c) && (c) <= 'z'))
  6633. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  6634. #endif
  6635. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  6636. int
  6637. main ()
  6638. {
  6639. int i;
  6640. for (i = 0; i < 256; i++)
  6641. if (XOR (islower (i), ISLOWER (i))
  6642. || toupper (i) != TOUPPER (i))
  6643. return 2;
  6644. return 0;
  6645. }
  6646. _ACEOF
  6647. if ac_fn_c_try_run "$LINENO"; then :
  6648. else
  6649. ac_cv_header_stdc=no
  6650. fi
  6651. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  6652. conftest.$ac_objext conftest.beam conftest.$ac_ext
  6653. fi
  6654. fi
  6655. fi
  6656. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  6657. $as_echo "$ac_cv_header_stdc" >&6; }
  6658. if test $ac_cv_header_stdc = yes; then
  6659. $as_echo "@%:@define STDC_HEADERS 1" >>confdefs.h
  6660. fi
  6661. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  6662. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  6663. inttypes.h stdint.h unistd.h
  6664. do :
  6665. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  6666. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  6667. "
  6668. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  6669. cat >>confdefs.h <<_ACEOF
  6670. @%:@define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  6671. _ACEOF
  6672. fi
  6673. done
  6674. for ac_header in dlfcn.h
  6675. do :
  6676. ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
  6677. "
  6678. if test "x$ac_cv_header_dlfcn_h" = xyes; then :
  6679. cat >>confdefs.h <<_ACEOF
  6680. @%:@define HAVE_DLFCN_H 1
  6681. _ACEOF
  6682. fi
  6683. done
  6684. # Set options
  6685. enable_dlopen=no
  6686. enable_win32_dll=no
  6687. @%:@ Check whether --enable-shared was given.
  6688. if test "${enable_shared+set}" = set; then :
  6689. enableval=$enable_shared; p=${PACKAGE-default}
  6690. case $enableval in
  6691. yes) enable_shared=yes ;;
  6692. no) enable_shared=no ;;
  6693. *)
  6694. enable_shared=no
  6695. # Look at the argument we got. We use all the common list separators.
  6696. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  6697. for pkg in $enableval; do
  6698. IFS="$lt_save_ifs"
  6699. if test "X$pkg" = "X$p"; then
  6700. enable_shared=yes
  6701. fi
  6702. done
  6703. IFS="$lt_save_ifs"
  6704. ;;
  6705. esac
  6706. else
  6707. enable_shared=yes
  6708. fi
  6709. @%:@ Check whether --enable-static was given.
  6710. if test "${enable_static+set}" = set; then :
  6711. enableval=$enable_static; p=${PACKAGE-default}
  6712. case $enableval in
  6713. yes) enable_static=yes ;;
  6714. no) enable_static=no ;;
  6715. *)
  6716. enable_static=no
  6717. # Look at the argument we got. We use all the common list separators.
  6718. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  6719. for pkg in $enableval; do
  6720. IFS="$lt_save_ifs"
  6721. if test "X$pkg" = "X$p"; then
  6722. enable_static=yes
  6723. fi
  6724. done
  6725. IFS="$lt_save_ifs"
  6726. ;;
  6727. esac
  6728. else
  6729. enable_static=yes
  6730. fi
  6731. @%:@ Check whether --with-pic was given.
  6732. if test "${with_pic+set}" = set; then :
  6733. withval=$with_pic; lt_p=${PACKAGE-default}
  6734. case $withval in
  6735. yes|no) pic_mode=$withval ;;
  6736. *)
  6737. pic_mode=default
  6738. # Look at the argument we got. We use all the common list separators.
  6739. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  6740. for lt_pkg in $withval; do
  6741. IFS="$lt_save_ifs"
  6742. if test "X$lt_pkg" = "X$lt_p"; then
  6743. pic_mode=yes
  6744. fi
  6745. done
  6746. IFS="$lt_save_ifs"
  6747. ;;
  6748. esac
  6749. else
  6750. pic_mode=default
  6751. fi
  6752. test -z "$pic_mode" && pic_mode=default
  6753. @%:@ Check whether --enable-fast-install was given.
  6754. if test "${enable_fast_install+set}" = set; then :
  6755. enableval=$enable_fast_install; p=${PACKAGE-default}
  6756. case $enableval in
  6757. yes) enable_fast_install=yes ;;
  6758. no) enable_fast_install=no ;;
  6759. *)
  6760. enable_fast_install=no
  6761. # Look at the argument we got. We use all the common list separators.
  6762. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  6763. for pkg in $enableval; do
  6764. IFS="$lt_save_ifs"
  6765. if test "X$pkg" = "X$p"; then
  6766. enable_fast_install=yes
  6767. fi
  6768. done
  6769. IFS="$lt_save_ifs"
  6770. ;;
  6771. esac
  6772. else
  6773. enable_fast_install=yes
  6774. fi
  6775. # This can be used to rebuild libtool when needed
  6776. LIBTOOL_DEPS="$ltmain"
  6777. # Always use our own libtool.
  6778. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  6779. test -z "$LN_S" && LN_S="ln -s"
  6780. if test -n "${ZSH_VERSION+set}" ; then
  6781. setopt NO_GLOB_SUBST
  6782. fi
  6783. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
  6784. $as_echo_n "checking for objdir... " >&6; }
  6785. if ${lt_cv_objdir+:} false; then :
  6786. $as_echo_n "(cached) " >&6
  6787. else
  6788. rm -f .libs 2>/dev/null
  6789. mkdir .libs 2>/dev/null
  6790. if test -d .libs; then
  6791. lt_cv_objdir=.libs
  6792. else
  6793. # MS-DOS does not allow filenames that begin with a dot.
  6794. lt_cv_objdir=_libs
  6795. fi
  6796. rmdir .libs 2>/dev/null
  6797. fi
  6798. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
  6799. $as_echo "$lt_cv_objdir" >&6; }
  6800. objdir=$lt_cv_objdir
  6801. cat >>confdefs.h <<_ACEOF
  6802. @%:@define LT_OBJDIR "$lt_cv_objdir/"
  6803. _ACEOF
  6804. case $host_os in
  6805. aix3*)
  6806. # AIX sometimes has problems with the GCC collect2 program. For some
  6807. # reason, if we set the COLLECT_NAMES environment variable, the problems
  6808. # vanish in a puff of smoke.
  6809. if test "X${COLLECT_NAMES+set}" != Xset; then
  6810. COLLECT_NAMES=
  6811. export COLLECT_NAMES
  6812. fi
  6813. ;;
  6814. esac
  6815. # Global variables:
  6816. ofile=libtool
  6817. can_build_shared=yes
  6818. # All known linkers require a `.a' archive for static linking (except MSVC,
  6819. # which needs '.lib').
  6820. libext=a
  6821. with_gnu_ld="$lt_cv_prog_gnu_ld"
  6822. old_CC="$CC"
  6823. old_CFLAGS="$CFLAGS"
  6824. # Set sane defaults for various variables
  6825. test -z "$CC" && CC=cc
  6826. test -z "$LTCC" && LTCC=$CC
  6827. test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  6828. test -z "$LD" && LD=ld
  6829. test -z "$ac_objext" && ac_objext=o
  6830. for cc_temp in $compiler""; do
  6831. case $cc_temp in
  6832. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  6833. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  6834. \-*) ;;
  6835. *) break;;
  6836. esac
  6837. done
  6838. cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  6839. # Only perform the check for file, if the check method requires it
  6840. test -z "$MAGIC_CMD" && MAGIC_CMD=file
  6841. case $deplibs_check_method in
  6842. file_magic*)
  6843. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  6844. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
  6845. $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
  6846. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  6847. $as_echo_n "(cached) " >&6
  6848. else
  6849. case $MAGIC_CMD in
  6850. [\\/*] | ?:[\\/]*)
  6851. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  6852. ;;
  6853. *)
  6854. lt_save_MAGIC_CMD="$MAGIC_CMD"
  6855. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  6856. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  6857. for ac_dir in $ac_dummy; do
  6858. IFS="$lt_save_ifs"
  6859. test -z "$ac_dir" && ac_dir=.
  6860. if test -f $ac_dir/${ac_tool_prefix}file; then
  6861. lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
  6862. if test -n "$file_magic_test_file"; then
  6863. case $deplibs_check_method in
  6864. "file_magic "*)
  6865. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  6866. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6867. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  6868. $EGREP "$file_magic_regex" > /dev/null; then
  6869. :
  6870. else
  6871. cat <<_LT_EOF 1>&2
  6872. *** Warning: the command libtool uses to detect shared libraries,
  6873. *** $file_magic_cmd, produces output that libtool cannot recognize.
  6874. *** The result is that libtool may fail to recognize shared libraries
  6875. *** as such. This will affect the creation of libtool libraries that
  6876. *** depend on shared libraries, but programs linked with such libtool
  6877. *** libraries will work regardless of this problem. Nevertheless, you
  6878. *** may want to report the problem to your system manager and/or to
  6879. *** bug-libtool@gnu.org
  6880. _LT_EOF
  6881. fi ;;
  6882. esac
  6883. fi
  6884. break
  6885. fi
  6886. done
  6887. IFS="$lt_save_ifs"
  6888. MAGIC_CMD="$lt_save_MAGIC_CMD"
  6889. ;;
  6890. esac
  6891. fi
  6892. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6893. if test -n "$MAGIC_CMD"; then
  6894. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  6895. $as_echo "$MAGIC_CMD" >&6; }
  6896. else
  6897. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6898. $as_echo "no" >&6; }
  6899. fi
  6900. if test -z "$lt_cv_path_MAGIC_CMD"; then
  6901. if test -n "$ac_tool_prefix"; then
  6902. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
  6903. $as_echo_n "checking for file... " >&6; }
  6904. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  6905. $as_echo_n "(cached) " >&6
  6906. else
  6907. case $MAGIC_CMD in
  6908. [\\/*] | ?:[\\/]*)
  6909. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  6910. ;;
  6911. *)
  6912. lt_save_MAGIC_CMD="$MAGIC_CMD"
  6913. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  6914. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  6915. for ac_dir in $ac_dummy; do
  6916. IFS="$lt_save_ifs"
  6917. test -z "$ac_dir" && ac_dir=.
  6918. if test -f $ac_dir/file; then
  6919. lt_cv_path_MAGIC_CMD="$ac_dir/file"
  6920. if test -n "$file_magic_test_file"; then
  6921. case $deplibs_check_method in
  6922. "file_magic "*)
  6923. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  6924. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6925. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  6926. $EGREP "$file_magic_regex" > /dev/null; then
  6927. :
  6928. else
  6929. cat <<_LT_EOF 1>&2
  6930. *** Warning: the command libtool uses to detect shared libraries,
  6931. *** $file_magic_cmd, produces output that libtool cannot recognize.
  6932. *** The result is that libtool may fail to recognize shared libraries
  6933. *** as such. This will affect the creation of libtool libraries that
  6934. *** depend on shared libraries, but programs linked with such libtool
  6935. *** libraries will work regardless of this problem. Nevertheless, you
  6936. *** may want to report the problem to your system manager and/or to
  6937. *** bug-libtool@gnu.org
  6938. _LT_EOF
  6939. fi ;;
  6940. esac
  6941. fi
  6942. break
  6943. fi
  6944. done
  6945. IFS="$lt_save_ifs"
  6946. MAGIC_CMD="$lt_save_MAGIC_CMD"
  6947. ;;
  6948. esac
  6949. fi
  6950. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6951. if test -n "$MAGIC_CMD"; then
  6952. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  6953. $as_echo "$MAGIC_CMD" >&6; }
  6954. else
  6955. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6956. $as_echo "no" >&6; }
  6957. fi
  6958. else
  6959. MAGIC_CMD=:
  6960. fi
  6961. fi
  6962. fi
  6963. ;;
  6964. esac
  6965. # Use C for the default configuration in the libtool script
  6966. lt_save_CC="$CC"
  6967. ac_ext=c
  6968. ac_cpp='$CPP $CPPFLAGS'
  6969. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6970. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6971. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6972. # Source file extension for C test sources.
  6973. ac_ext=c
  6974. # Object file extension for compiled C test sources.
  6975. objext=o
  6976. objext=$objext
  6977. # Code to be used in simple compile tests
  6978. lt_simple_compile_test_code="int some_variable = 0;"
  6979. # Code to be used in simple link tests
  6980. lt_simple_link_test_code='int main(){return(0);}'
  6981. # If no C compiler was specified, use CC.
  6982. LTCC=${LTCC-"$CC"}
  6983. # If no C compiler flags were specified, use CFLAGS.
  6984. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  6985. # Allow CC to be a program name with arguments.
  6986. compiler=$CC
  6987. # Save the default compiler, since it gets overwritten when the other
  6988. # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
  6989. compiler_DEFAULT=$CC
  6990. # save warnings/boilerplate of simple test code
  6991. ac_outfile=conftest.$ac_objext
  6992. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  6993. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  6994. _lt_compiler_boilerplate=`cat conftest.err`
  6995. $RM conftest*
  6996. ac_outfile=conftest.$ac_objext
  6997. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  6998. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  6999. _lt_linker_boilerplate=`cat conftest.err`
  7000. $RM -r conftest*
  7001. ## CAVEAT EMPTOR:
  7002. ## There is no encapsulation within the following macros, do not change
  7003. ## the running order or otherwise move them around unless you know exactly
  7004. ## what you are doing...
  7005. if test -n "$compiler"; then
  7006. lt_prog_compiler_no_builtin_flag=
  7007. if test "$GCC" = yes; then
  7008. case $cc_basename in
  7009. nvcc*)
  7010. lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
  7011. *)
  7012. lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
  7013. esac
  7014. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  7015. $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
  7016. if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
  7017. $as_echo_n "(cached) " >&6
  7018. else
  7019. lt_cv_prog_compiler_rtti_exceptions=no
  7020. ac_outfile=conftest.$ac_objext
  7021. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7022. lt_compiler_flag="-fno-rtti -fno-exceptions"
  7023. # Insert the option either (1) after the last *FLAGS variable, or
  7024. # (2) before a word containing "conftest.", or (3) at the end.
  7025. # Note that $ac_compile itself does not contain backslashes and begins
  7026. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7027. # The option is referenced via a variable to avoid confusing sed.
  7028. lt_compile=`echo "$ac_compile" | $SED \
  7029. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7030. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7031. -e 's:$: $lt_compiler_flag:'`
  7032. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7033. (eval "$lt_compile" 2>conftest.err)
  7034. ac_status=$?
  7035. cat conftest.err >&5
  7036. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7037. if (exit $ac_status) && test -s "$ac_outfile"; then
  7038. # The compiler can only warn and ignore the option if not recognized
  7039. # So say no if there are warnings other than the usual output.
  7040. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  7041. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7042. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  7043. lt_cv_prog_compiler_rtti_exceptions=yes
  7044. fi
  7045. fi
  7046. $RM conftest*
  7047. fi
  7048. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  7049. $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  7050. if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
  7051. lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  7052. else
  7053. :
  7054. fi
  7055. fi
  7056. lt_prog_compiler_wl=
  7057. lt_prog_compiler_pic=
  7058. lt_prog_compiler_static=
  7059. if test "$GCC" = yes; then
  7060. lt_prog_compiler_wl='-Wl,'
  7061. lt_prog_compiler_static='-static'
  7062. case $host_os in
  7063. aix*)
  7064. # All AIX code is PIC.
  7065. if test "$host_cpu" = ia64; then
  7066. # AIX 5 now supports IA64 processor
  7067. lt_prog_compiler_static='-Bstatic'
  7068. fi
  7069. ;;
  7070. amigaos*)
  7071. case $host_cpu in
  7072. powerpc)
  7073. # see comment about AmigaOS4 .so support
  7074. lt_prog_compiler_pic='-fPIC'
  7075. ;;
  7076. m68k)
  7077. # FIXME: we need at least 68020 code to build shared libraries, but
  7078. # adding the `-m68020' flag to GCC prevents building anything better,
  7079. # like `-m68040'.
  7080. lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  7081. ;;
  7082. esac
  7083. ;;
  7084. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  7085. # PIC is the default for these OSes.
  7086. ;;
  7087. mingw* | cygwin* | pw32* | os2* | cegcc*)
  7088. # This hack is so that the source file can tell whether it is being
  7089. # built for inclusion in a dll (and should export symbols for example).
  7090. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  7091. # (--disable-auto-import) libraries
  7092. lt_prog_compiler_pic='-DDLL_EXPORT'
  7093. ;;
  7094. darwin* | rhapsody*)
  7095. # PIC is the default on this platform
  7096. # Common symbols not allowed in MH_DYLIB files
  7097. lt_prog_compiler_pic='-fno-common'
  7098. ;;
  7099. haiku*)
  7100. # PIC is the default for Haiku.
  7101. # The "-static" flag exists, but is broken.
  7102. lt_prog_compiler_static=
  7103. ;;
  7104. hpux*)
  7105. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  7106. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  7107. # sets the default TLS model and affects inlining.
  7108. case $host_cpu in
  7109. hppa*64*)
  7110. # +Z the default
  7111. ;;
  7112. *)
  7113. lt_prog_compiler_pic='-fPIC'
  7114. ;;
  7115. esac
  7116. ;;
  7117. interix[3-9]*)
  7118. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  7119. # Instead, we relocate shared libraries at runtime.
  7120. ;;
  7121. msdosdjgpp*)
  7122. # Just because we use GCC doesn't mean we suddenly get shared libraries
  7123. # on systems that don't support them.
  7124. lt_prog_compiler_can_build_shared=no
  7125. enable_shared=no
  7126. ;;
  7127. *nto* | *qnx*)
  7128. # QNX uses GNU C++, but need to define -shared option too, otherwise
  7129. # it will coredump.
  7130. lt_prog_compiler_pic='-fPIC -shared'
  7131. ;;
  7132. sysv4*MP*)
  7133. if test -d /usr/nec; then
  7134. lt_prog_compiler_pic=-Kconform_pic
  7135. fi
  7136. ;;
  7137. *)
  7138. lt_prog_compiler_pic='-fPIC'
  7139. ;;
  7140. esac
  7141. case $cc_basename in
  7142. nvcc*) # Cuda Compiler Driver 2.2
  7143. lt_prog_compiler_wl='-Xlinker '
  7144. if test -n "$lt_prog_compiler_pic"; then
  7145. lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
  7146. fi
  7147. ;;
  7148. esac
  7149. else
  7150. # PORTME Check for flag to pass linker flags through the system compiler.
  7151. case $host_os in
  7152. aix*)
  7153. lt_prog_compiler_wl='-Wl,'
  7154. if test "$host_cpu" = ia64; then
  7155. # AIX 5 now supports IA64 processor
  7156. lt_prog_compiler_static='-Bstatic'
  7157. else
  7158. lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  7159. fi
  7160. ;;
  7161. mingw* | cygwin* | pw32* | os2* | cegcc*)
  7162. # This hack is so that the source file can tell whether it is being
  7163. # built for inclusion in a dll (and should export symbols for example).
  7164. lt_prog_compiler_pic='-DDLL_EXPORT'
  7165. ;;
  7166. hpux9* | hpux10* | hpux11*)
  7167. lt_prog_compiler_wl='-Wl,'
  7168. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  7169. # not for PA HP-UX.
  7170. case $host_cpu in
  7171. hppa*64*|ia64*)
  7172. # +Z the default
  7173. ;;
  7174. *)
  7175. lt_prog_compiler_pic='+Z'
  7176. ;;
  7177. esac
  7178. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  7179. lt_prog_compiler_static='${wl}-a ${wl}archive'
  7180. ;;
  7181. irix5* | irix6* | nonstopux*)
  7182. lt_prog_compiler_wl='-Wl,'
  7183. # PIC (with -KPIC) is the default.
  7184. lt_prog_compiler_static='-non_shared'
  7185. ;;
  7186. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  7187. case $cc_basename in
  7188. # old Intel for x86_64 which still supported -KPIC.
  7189. ecc*)
  7190. lt_prog_compiler_wl='-Wl,'
  7191. lt_prog_compiler_pic='-KPIC'
  7192. lt_prog_compiler_static='-static'
  7193. ;;
  7194. # icc used to be incompatible with GCC.
  7195. # ICC 10 doesn't accept -KPIC any more.
  7196. icc* | ifort*)
  7197. lt_prog_compiler_wl='-Wl,'
  7198. lt_prog_compiler_pic='-fPIC'
  7199. lt_prog_compiler_static='-static'
  7200. ;;
  7201. # Lahey Fortran 8.1.
  7202. lf95*)
  7203. lt_prog_compiler_wl='-Wl,'
  7204. lt_prog_compiler_pic='--shared'
  7205. lt_prog_compiler_static='--static'
  7206. ;;
  7207. nagfor*)
  7208. # NAG Fortran compiler
  7209. lt_prog_compiler_wl='-Wl,-Wl,,'
  7210. lt_prog_compiler_pic='-PIC'
  7211. lt_prog_compiler_static='-Bstatic'
  7212. ;;
  7213. pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
  7214. # Portland Group compilers (*not* the Pentium gcc compiler,
  7215. # which looks to be a dead project)
  7216. lt_prog_compiler_wl='-Wl,'
  7217. lt_prog_compiler_pic='-fpic'
  7218. lt_prog_compiler_static='-Bstatic'
  7219. ;;
  7220. ccc*)
  7221. lt_prog_compiler_wl='-Wl,'
  7222. # All Alpha code is PIC.
  7223. lt_prog_compiler_static='-non_shared'
  7224. ;;
  7225. xl* | bgxl* | bgf* | mpixl*)
  7226. # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
  7227. lt_prog_compiler_wl='-Wl,'
  7228. lt_prog_compiler_pic='-qpic'
  7229. lt_prog_compiler_static='-qstaticlink'
  7230. ;;
  7231. *)
  7232. case `$CC -V 2>&1 | sed 5q` in
  7233. *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
  7234. # Sun Fortran 8.3 passes all unrecognized flags to the linker
  7235. lt_prog_compiler_pic='-KPIC'
  7236. lt_prog_compiler_static='-Bstatic'
  7237. lt_prog_compiler_wl=''
  7238. ;;
  7239. *Sun\ F* | *Sun*Fortran*)
  7240. lt_prog_compiler_pic='-KPIC'
  7241. lt_prog_compiler_static='-Bstatic'
  7242. lt_prog_compiler_wl='-Qoption ld '
  7243. ;;
  7244. *Sun\ C*)
  7245. # Sun C 5.9
  7246. lt_prog_compiler_pic='-KPIC'
  7247. lt_prog_compiler_static='-Bstatic'
  7248. lt_prog_compiler_wl='-Wl,'
  7249. ;;
  7250. *Intel*\ [CF]*Compiler*)
  7251. lt_prog_compiler_wl='-Wl,'
  7252. lt_prog_compiler_pic='-fPIC'
  7253. lt_prog_compiler_static='-static'
  7254. ;;
  7255. *Portland\ Group*)
  7256. lt_prog_compiler_wl='-Wl,'
  7257. lt_prog_compiler_pic='-fpic'
  7258. lt_prog_compiler_static='-Bstatic'
  7259. ;;
  7260. esac
  7261. ;;
  7262. esac
  7263. ;;
  7264. newsos6)
  7265. lt_prog_compiler_pic='-KPIC'
  7266. lt_prog_compiler_static='-Bstatic'
  7267. ;;
  7268. *nto* | *qnx*)
  7269. # QNX uses GNU C++, but need to define -shared option too, otherwise
  7270. # it will coredump.
  7271. lt_prog_compiler_pic='-fPIC -shared'
  7272. ;;
  7273. osf3* | osf4* | osf5*)
  7274. lt_prog_compiler_wl='-Wl,'
  7275. # All OSF/1 code is PIC.
  7276. lt_prog_compiler_static='-non_shared'
  7277. ;;
  7278. rdos*)
  7279. lt_prog_compiler_static='-non_shared'
  7280. ;;
  7281. solaris*)
  7282. lt_prog_compiler_pic='-KPIC'
  7283. lt_prog_compiler_static='-Bstatic'
  7284. case $cc_basename in
  7285. f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
  7286. lt_prog_compiler_wl='-Qoption ld ';;
  7287. *)
  7288. lt_prog_compiler_wl='-Wl,';;
  7289. esac
  7290. ;;
  7291. sunos4*)
  7292. lt_prog_compiler_wl='-Qoption ld '
  7293. lt_prog_compiler_pic='-PIC'
  7294. lt_prog_compiler_static='-Bstatic'
  7295. ;;
  7296. sysv4 | sysv4.2uw2* | sysv4.3*)
  7297. lt_prog_compiler_wl='-Wl,'
  7298. lt_prog_compiler_pic='-KPIC'
  7299. lt_prog_compiler_static='-Bstatic'
  7300. ;;
  7301. sysv4*MP*)
  7302. if test -d /usr/nec ;then
  7303. lt_prog_compiler_pic='-Kconform_pic'
  7304. lt_prog_compiler_static='-Bstatic'
  7305. fi
  7306. ;;
  7307. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  7308. lt_prog_compiler_wl='-Wl,'
  7309. lt_prog_compiler_pic='-KPIC'
  7310. lt_prog_compiler_static='-Bstatic'
  7311. ;;
  7312. unicos*)
  7313. lt_prog_compiler_wl='-Wl,'
  7314. lt_prog_compiler_can_build_shared=no
  7315. ;;
  7316. uts4*)
  7317. lt_prog_compiler_pic='-pic'
  7318. lt_prog_compiler_static='-Bstatic'
  7319. ;;
  7320. *)
  7321. lt_prog_compiler_can_build_shared=no
  7322. ;;
  7323. esac
  7324. fi
  7325. case $host_os in
  7326. # For platforms which do not support PIC, -DPIC is meaningless:
  7327. *djgpp*)
  7328. lt_prog_compiler_pic=
  7329. ;;
  7330. *)
  7331. lt_prog_compiler_pic="$lt_prog_compiler_pic@&t@ -DPIC"
  7332. ;;
  7333. esac
  7334. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  7335. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  7336. if ${lt_cv_prog_compiler_pic+:} false; then :
  7337. $as_echo_n "(cached) " >&6
  7338. else
  7339. lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
  7340. fi
  7341. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
  7342. $as_echo "$lt_cv_prog_compiler_pic" >&6; }
  7343. lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
  7344. #
  7345. # Check to make sure the PIC flag actually works.
  7346. #
  7347. if test -n "$lt_prog_compiler_pic"; then
  7348. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  7349. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
  7350. if ${lt_cv_prog_compiler_pic_works+:} false; then :
  7351. $as_echo_n "(cached) " >&6
  7352. else
  7353. lt_cv_prog_compiler_pic_works=no
  7354. ac_outfile=conftest.$ac_objext
  7355. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7356. lt_compiler_flag="$lt_prog_compiler_pic@&t@ -DPIC"
  7357. # Insert the option either (1) after the last *FLAGS variable, or
  7358. # (2) before a word containing "conftest.", or (3) at the end.
  7359. # Note that $ac_compile itself does not contain backslashes and begins
  7360. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7361. # The option is referenced via a variable to avoid confusing sed.
  7362. lt_compile=`echo "$ac_compile" | $SED \
  7363. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7364. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7365. -e 's:$: $lt_compiler_flag:'`
  7366. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7367. (eval "$lt_compile" 2>conftest.err)
  7368. ac_status=$?
  7369. cat conftest.err >&5
  7370. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7371. if (exit $ac_status) && test -s "$ac_outfile"; then
  7372. # The compiler can only warn and ignore the option if not recognized
  7373. # So say no if there are warnings other than the usual output.
  7374. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  7375. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7376. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  7377. lt_cv_prog_compiler_pic_works=yes
  7378. fi
  7379. fi
  7380. $RM conftest*
  7381. fi
  7382. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
  7383. $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
  7384. if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
  7385. case $lt_prog_compiler_pic in
  7386. "" | " "*) ;;
  7387. *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  7388. esac
  7389. else
  7390. lt_prog_compiler_pic=
  7391. lt_prog_compiler_can_build_shared=no
  7392. fi
  7393. fi
  7394. #
  7395. # Check to make sure the static flag actually works.
  7396. #
  7397. wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
  7398. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  7399. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  7400. if ${lt_cv_prog_compiler_static_works+:} false; then :
  7401. $as_echo_n "(cached) " >&6
  7402. else
  7403. lt_cv_prog_compiler_static_works=no
  7404. save_LDFLAGS="$LDFLAGS"
  7405. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  7406. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  7407. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  7408. # The linker can only warn and ignore the option if not recognized
  7409. # So say no if there are warnings
  7410. if test -s conftest.err; then
  7411. # Append any errors to the config.log.
  7412. cat conftest.err 1>&5
  7413. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  7414. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7415. if diff conftest.exp conftest.er2 >/dev/null; then
  7416. lt_cv_prog_compiler_static_works=yes
  7417. fi
  7418. else
  7419. lt_cv_prog_compiler_static_works=yes
  7420. fi
  7421. fi
  7422. $RM -r conftest*
  7423. LDFLAGS="$save_LDFLAGS"
  7424. fi
  7425. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
  7426. $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
  7427. if test x"$lt_cv_prog_compiler_static_works" = xyes; then
  7428. :
  7429. else
  7430. lt_prog_compiler_static=
  7431. fi
  7432. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  7433. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  7434. if ${lt_cv_prog_compiler_c_o+:} false; then :
  7435. $as_echo_n "(cached) " >&6
  7436. else
  7437. lt_cv_prog_compiler_c_o=no
  7438. $RM -r conftest 2>/dev/null
  7439. mkdir conftest
  7440. cd conftest
  7441. mkdir out
  7442. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7443. lt_compiler_flag="-o out/conftest2.$ac_objext"
  7444. # Insert the option either (1) after the last *FLAGS variable, or
  7445. # (2) before a word containing "conftest.", or (3) at the end.
  7446. # Note that $ac_compile itself does not contain backslashes and begins
  7447. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7448. lt_compile=`echo "$ac_compile" | $SED \
  7449. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7450. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7451. -e 's:$: $lt_compiler_flag:'`
  7452. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7453. (eval "$lt_compile" 2>out/conftest.err)
  7454. ac_status=$?
  7455. cat out/conftest.err >&5
  7456. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7457. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  7458. then
  7459. # The compiler can only warn and ignore the option if not recognized
  7460. # So say no if there are warnings
  7461. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  7462. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  7463. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  7464. lt_cv_prog_compiler_c_o=yes
  7465. fi
  7466. fi
  7467. chmod u+w . 2>&5
  7468. $RM conftest*
  7469. # SGI C++ compiler will create directory out/ii_files/ for
  7470. # template instantiation
  7471. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  7472. $RM out/* && rmdir out
  7473. cd ..
  7474. $RM -r conftest
  7475. $RM conftest*
  7476. fi
  7477. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  7478. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  7479. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  7480. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  7481. if ${lt_cv_prog_compiler_c_o+:} false; then :
  7482. $as_echo_n "(cached) " >&6
  7483. else
  7484. lt_cv_prog_compiler_c_o=no
  7485. $RM -r conftest 2>/dev/null
  7486. mkdir conftest
  7487. cd conftest
  7488. mkdir out
  7489. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7490. lt_compiler_flag="-o out/conftest2.$ac_objext"
  7491. # Insert the option either (1) after the last *FLAGS variable, or
  7492. # (2) before a word containing "conftest.", or (3) at the end.
  7493. # Note that $ac_compile itself does not contain backslashes and begins
  7494. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7495. lt_compile=`echo "$ac_compile" | $SED \
  7496. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7497. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7498. -e 's:$: $lt_compiler_flag:'`
  7499. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7500. (eval "$lt_compile" 2>out/conftest.err)
  7501. ac_status=$?
  7502. cat out/conftest.err >&5
  7503. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7504. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  7505. then
  7506. # The compiler can only warn and ignore the option if not recognized
  7507. # So say no if there are warnings
  7508. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  7509. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  7510. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  7511. lt_cv_prog_compiler_c_o=yes
  7512. fi
  7513. fi
  7514. chmod u+w . 2>&5
  7515. $RM conftest*
  7516. # SGI C++ compiler will create directory out/ii_files/ for
  7517. # template instantiation
  7518. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  7519. $RM out/* && rmdir out
  7520. cd ..
  7521. $RM -r conftest
  7522. $RM conftest*
  7523. fi
  7524. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  7525. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  7526. hard_links="nottested"
  7527. if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
  7528. # do not overwrite the value of need_locks provided by the user
  7529. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  7530. $as_echo_n "checking if we can lock with hard links... " >&6; }
  7531. hard_links=yes
  7532. $RM conftest*
  7533. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  7534. touch conftest.a
  7535. ln conftest.a conftest.b 2>&5 || hard_links=no
  7536. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  7537. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  7538. $as_echo "$hard_links" >&6; }
  7539. if test "$hard_links" = no; then
  7540. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  7541. $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  7542. need_locks=warn
  7543. fi
  7544. else
  7545. need_locks=no
  7546. fi
  7547. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  7548. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  7549. runpath_var=
  7550. allow_undefined_flag=
  7551. always_export_symbols=no
  7552. archive_cmds=
  7553. archive_expsym_cmds=
  7554. compiler_needs_object=no
  7555. enable_shared_with_static_runtimes=no
  7556. export_dynamic_flag_spec=
  7557. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  7558. hardcode_automatic=no
  7559. hardcode_direct=no
  7560. hardcode_direct_absolute=no
  7561. hardcode_libdir_flag_spec=
  7562. hardcode_libdir_separator=
  7563. hardcode_minus_L=no
  7564. hardcode_shlibpath_var=unsupported
  7565. inherit_rpath=no
  7566. link_all_deplibs=unknown
  7567. module_cmds=
  7568. module_expsym_cmds=
  7569. old_archive_from_new_cmds=
  7570. old_archive_from_expsyms_cmds=
  7571. thread_safe_flag_spec=
  7572. whole_archive_flag_spec=
  7573. # include_expsyms should be a list of space-separated symbols to be *always*
  7574. # included in the symbol list
  7575. include_expsyms=
  7576. # exclude_expsyms can be an extended regexp of symbols to exclude
  7577. # it will be wrapped by ` (' and `)$', so one must not match beginning or
  7578. # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  7579. # as well as any symbol that contains `d'.
  7580. exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  7581. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  7582. # platforms (ab)use it in PIC code, but their linkers get confused if
  7583. # the symbol is explicitly referenced. Since portable code cannot
  7584. # rely on this symbol name, it's probably fine to never include it in
  7585. # preloaded symbol tables.
  7586. # Exclude shared library initialization/finalization symbols.
  7587. extract_expsyms_cmds=
  7588. case $host_os in
  7589. cygwin* | mingw* | pw32* | cegcc*)
  7590. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  7591. # When not using gcc, we currently assume that we are using
  7592. # Microsoft Visual C++.
  7593. if test "$GCC" != yes; then
  7594. with_gnu_ld=no
  7595. fi
  7596. ;;
  7597. interix*)
  7598. # we just hope/assume this is gcc and not c89 (= MSVC++)
  7599. with_gnu_ld=yes
  7600. ;;
  7601. openbsd*)
  7602. with_gnu_ld=no
  7603. ;;
  7604. linux* | k*bsd*-gnu | gnu*)
  7605. link_all_deplibs=no
  7606. ;;
  7607. esac
  7608. ld_shlibs=yes
  7609. # On some targets, GNU ld is compatible enough with the native linker
  7610. # that we're better off using the native interface for both.
  7611. lt_use_gnu_ld_interface=no
  7612. if test "$with_gnu_ld" = yes; then
  7613. case $host_os in
  7614. aix*)
  7615. # The AIX port of GNU ld has always aspired to compatibility
  7616. # with the native linker. However, as the warning in the GNU ld
  7617. # block says, versions before 2.19.5* couldn't really create working
  7618. # shared libraries, regardless of the interface used.
  7619. case `$LD -v 2>&1` in
  7620. *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
  7621. *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
  7622. *\ \(GNU\ Binutils\)\ [3-9]*) ;;
  7623. *)
  7624. lt_use_gnu_ld_interface=yes
  7625. ;;
  7626. esac
  7627. ;;
  7628. *)
  7629. lt_use_gnu_ld_interface=yes
  7630. ;;
  7631. esac
  7632. fi
  7633. if test "$lt_use_gnu_ld_interface" = yes; then
  7634. # If archive_cmds runs LD, not CC, wlarc should be empty
  7635. wlarc='${wl}'
  7636. # Set some defaults for GNU ld with shared library support. These
  7637. # are reset later if shared libraries are not supported. Putting them
  7638. # here allows them to be overridden if necessary.
  7639. runpath_var=LD_RUN_PATH
  7640. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7641. export_dynamic_flag_spec='${wl}--export-dynamic'
  7642. # ancient GNU ld didn't support --whole-archive et. al.
  7643. if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
  7644. whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  7645. else
  7646. whole_archive_flag_spec=
  7647. fi
  7648. supports_anon_versioning=no
  7649. case `$LD -v 2>&1` in
  7650. *GNU\ gold*) supports_anon_versioning=yes ;;
  7651. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  7652. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  7653. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  7654. *\ 2.11.*) ;; # other 2.11 versions
  7655. *) supports_anon_versioning=yes ;;
  7656. esac
  7657. # See if GNU ld supports shared libraries.
  7658. case $host_os in
  7659. aix[3-9]*)
  7660. # On AIX/PPC, the GNU linker is very broken
  7661. if test "$host_cpu" != ia64; then
  7662. ld_shlibs=no
  7663. cat <<_LT_EOF 1>&2
  7664. *** Warning: the GNU linker, at least up to release 2.19, is reported
  7665. *** to be unable to reliably create shared libraries on AIX.
  7666. *** Therefore, libtool is disabling shared libraries support. If you
  7667. *** really care for shared libraries, you may want to install binutils
  7668. *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
  7669. *** You will then need to restart the configuration process.
  7670. _LT_EOF
  7671. fi
  7672. ;;
  7673. amigaos*)
  7674. case $host_cpu in
  7675. powerpc)
  7676. # see comment about AmigaOS4 .so support
  7677. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7678. archive_expsym_cmds=''
  7679. ;;
  7680. m68k)
  7681. 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)'
  7682. hardcode_libdir_flag_spec='-L$libdir'
  7683. hardcode_minus_L=yes
  7684. ;;
  7685. esac
  7686. ;;
  7687. beos*)
  7688. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7689. allow_undefined_flag=unsupported
  7690. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  7691. # support --undefined. This deserves some investigation. FIXME
  7692. archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7693. else
  7694. ld_shlibs=no
  7695. fi
  7696. ;;
  7697. cygwin* | mingw* | pw32* | cegcc*)
  7698. # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  7699. # as there is no search path for DLLs.
  7700. hardcode_libdir_flag_spec='-L$libdir'
  7701. export_dynamic_flag_spec='${wl}--export-all-symbols'
  7702. allow_undefined_flag=unsupported
  7703. always_export_symbols=no
  7704. enable_shared_with_static_runtimes=yes
  7705. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
  7706. exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
  7707. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  7708. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  7709. # If the export-symbols file already is a .def file (1st line
  7710. # is EXPORTS), use it as is; otherwise, prepend...
  7711. archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  7712. cp $export_symbols $output_objdir/$soname.def;
  7713. else
  7714. echo EXPORTS > $output_objdir/$soname.def;
  7715. cat $export_symbols >> $output_objdir/$soname.def;
  7716. fi~
  7717. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  7718. else
  7719. ld_shlibs=no
  7720. fi
  7721. ;;
  7722. haiku*)
  7723. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7724. link_all_deplibs=yes
  7725. ;;
  7726. interix[3-9]*)
  7727. hardcode_direct=no
  7728. hardcode_shlibpath_var=no
  7729. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  7730. export_dynamic_flag_spec='${wl}-E'
  7731. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  7732. # Instead, shared libraries are loaded at an image base (0x10000000 by
  7733. # default) and relocated if they conflict, which is a slow very memory
  7734. # consuming and fragmenting process. To avoid this, we pick a random,
  7735. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  7736. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  7737. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  7738. 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'
  7739. ;;
  7740. gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
  7741. tmp_diet=no
  7742. if test "$host_os" = linux-dietlibc; then
  7743. case $cc_basename in
  7744. diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
  7745. esac
  7746. fi
  7747. if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
  7748. && test "$tmp_diet" = no
  7749. then
  7750. tmp_addflag=' $pic_flag'
  7751. tmp_sharedflag='-shared'
  7752. case $cc_basename,$host_cpu in
  7753. pgcc*) # Portland Group C compiler
  7754. whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
  7755. tmp_addflag=' $pic_flag'
  7756. ;;
  7757. pgf77* | pgf90* | pgf95* | pgfortran*)
  7758. # Portland Group f77 and f90 compilers
  7759. whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
  7760. tmp_addflag=' $pic_flag -Mnomain' ;;
  7761. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  7762. tmp_addflag=' -i_dynamic' ;;
  7763. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  7764. tmp_addflag=' -i_dynamic -nofor_main' ;;
  7765. ifc* | ifort*) # Intel Fortran compiler
  7766. tmp_addflag=' -nofor_main' ;;
  7767. lf95*) # Lahey Fortran 8.1
  7768. whole_archive_flag_spec=
  7769. tmp_sharedflag='--shared' ;;
  7770. xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
  7771. tmp_sharedflag='-qmkshrobj'
  7772. tmp_addflag= ;;
  7773. nvcc*) # Cuda Compiler Driver 2.2
  7774. whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
  7775. compiler_needs_object=yes
  7776. ;;
  7777. esac
  7778. case `$CC -V 2>&1 | sed 5q` in
  7779. *Sun\ C*) # Sun C 5.9
  7780. whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
  7781. compiler_needs_object=yes
  7782. tmp_sharedflag='-G' ;;
  7783. *Sun\ F*) # Sun Fortran 8.3
  7784. tmp_sharedflag='-G' ;;
  7785. esac
  7786. archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7787. if test "x$supports_anon_versioning" = xyes; then
  7788. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  7789. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  7790. echo "local: *; };" >> $output_objdir/$libname.ver~
  7791. $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  7792. fi
  7793. case $cc_basename in
  7794. xlf* | bgf* | bgxlf* | mpixlf*)
  7795. # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
  7796. whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
  7797. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7798. archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
  7799. if test "x$supports_anon_versioning" = xyes; then
  7800. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  7801. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  7802. echo "local: *; };" >> $output_objdir/$libname.ver~
  7803. $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
  7804. fi
  7805. ;;
  7806. esac
  7807. else
  7808. ld_shlibs=no
  7809. fi
  7810. ;;
  7811. netbsd* | netbsdelf*-gnu)
  7812. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  7813. archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  7814. wlarc=
  7815. else
  7816. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7817. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7818. fi
  7819. ;;
  7820. solaris*)
  7821. if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
  7822. ld_shlibs=no
  7823. cat <<_LT_EOF 1>&2
  7824. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  7825. *** create shared libraries on Solaris systems. Therefore, libtool
  7826. *** is disabling shared libraries support. We urge you to upgrade GNU
  7827. *** binutils to release 2.9.1 or newer. Another option is to modify
  7828. *** your PATH or compiler configuration so that the native linker is
  7829. *** used, and then restart.
  7830. _LT_EOF
  7831. elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7832. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7833. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7834. else
  7835. ld_shlibs=no
  7836. fi
  7837. ;;
  7838. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  7839. case `$LD -v 2>&1` in
  7840. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  7841. ld_shlibs=no
  7842. cat <<_LT_EOF 1>&2
  7843. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  7844. *** reliably create shared libraries on SCO systems. Therefore, libtool
  7845. *** is disabling shared libraries support. We urge you to upgrade GNU
  7846. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  7847. *** your PATH or compiler configuration so that the native linker is
  7848. *** used, and then restart.
  7849. _LT_EOF
  7850. ;;
  7851. *)
  7852. # For security reasons, it is highly recommended that you always
  7853. # use absolute paths for naming shared libraries, and exclude the
  7854. # DT_RUNPATH tag from executables and libraries. But doing so
  7855. # requires that you compile everything twice, which is a pain.
  7856. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7857. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7858. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7859. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7860. else
  7861. ld_shlibs=no
  7862. fi
  7863. ;;
  7864. esac
  7865. ;;
  7866. sunos4*)
  7867. archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  7868. wlarc=
  7869. hardcode_direct=yes
  7870. hardcode_shlibpath_var=no
  7871. ;;
  7872. *)
  7873. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7874. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7875. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7876. else
  7877. ld_shlibs=no
  7878. fi
  7879. ;;
  7880. esac
  7881. if test "$ld_shlibs" = no; then
  7882. runpath_var=
  7883. hardcode_libdir_flag_spec=
  7884. export_dynamic_flag_spec=
  7885. whole_archive_flag_spec=
  7886. fi
  7887. else
  7888. # PORTME fill in a description of your system's linker (not GNU ld)
  7889. case $host_os in
  7890. aix3*)
  7891. allow_undefined_flag=unsupported
  7892. always_export_symbols=yes
  7893. 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'
  7894. # Note: this linker hardcodes the directories in LIBPATH if there
  7895. # are no directories specified by -L.
  7896. hardcode_minus_L=yes
  7897. if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  7898. # Neither direct hardcoding nor static linking is supported with a
  7899. # broken collect2.
  7900. hardcode_direct=unsupported
  7901. fi
  7902. ;;
  7903. aix[4-9]*)
  7904. if test "$host_cpu" = ia64; then
  7905. # On IA64, the linker does run time linking by default, so we don't
  7906. # have to do anything special.
  7907. aix_use_runtimelinking=no
  7908. exp_sym_flag='-Bexport'
  7909. no_entry_flag=""
  7910. else
  7911. # If we're using GNU nm, then we don't want the "-C" option.
  7912. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  7913. # Also, AIX nm treats weak defined symbols like other global
  7914. # defined symbols, whereas GNU nm marks them as "W".
  7915. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  7916. export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
  7917. else
  7918. 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'
  7919. fi
  7920. aix_use_runtimelinking=no
  7921. # Test if we are trying to use run time linking or normal
  7922. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  7923. # need to do runtime linking.
  7924. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  7925. for ld_flag in $LDFLAGS; do
  7926. if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  7927. aix_use_runtimelinking=yes
  7928. break
  7929. fi
  7930. done
  7931. ;;
  7932. esac
  7933. exp_sym_flag='-bexport'
  7934. no_entry_flag='-bnoentry'
  7935. fi
  7936. # When large executables or shared objects are built, AIX ld can
  7937. # have problems creating the table of contents. If linking a library
  7938. # or program results in "error TOC overflow" add -mminimal-toc to
  7939. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  7940. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  7941. archive_cmds=''
  7942. hardcode_direct=yes
  7943. hardcode_direct_absolute=yes
  7944. hardcode_libdir_separator=':'
  7945. link_all_deplibs=yes
  7946. file_list_spec='${wl}-f,'
  7947. if test "$GCC" = yes; then
  7948. case $host_os in aix4.[012]|aix4.[012].*)
  7949. # We only want to do this on AIX 4.2 and lower, the check
  7950. # below for broken collect2 doesn't work under 4.3+
  7951. collect2name=`${CC} -print-prog-name=collect2`
  7952. if test -f "$collect2name" &&
  7953. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  7954. then
  7955. # We have reworked collect2
  7956. :
  7957. else
  7958. # We have old collect2
  7959. hardcode_direct=unsupported
  7960. # It fails to find uninstalled libraries when the uninstalled
  7961. # path is not listed in the libpath. Setting hardcode_minus_L
  7962. # to unsupported forces relinking
  7963. hardcode_minus_L=yes
  7964. hardcode_libdir_flag_spec='-L$libdir'
  7965. hardcode_libdir_separator=
  7966. fi
  7967. ;;
  7968. esac
  7969. shared_flag='-shared'
  7970. if test "$aix_use_runtimelinking" = yes; then
  7971. shared_flag="$shared_flag "'${wl}-G'
  7972. fi
  7973. link_all_deplibs=no
  7974. else
  7975. # not using gcc
  7976. if test "$host_cpu" = ia64; then
  7977. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  7978. # chokes on -Wl,-G. The following line is correct:
  7979. shared_flag='-G'
  7980. else
  7981. if test "$aix_use_runtimelinking" = yes; then
  7982. shared_flag='${wl}-G'
  7983. else
  7984. shared_flag='${wl}-bM:SRE'
  7985. fi
  7986. fi
  7987. fi
  7988. export_dynamic_flag_spec='${wl}-bexpall'
  7989. # It seems that -bexpall does not export symbols beginning with
  7990. # underscore (_), so it is better to generate a list of symbols to export.
  7991. always_export_symbols=yes
  7992. if test "$aix_use_runtimelinking" = yes; then
  7993. # Warning - without using the other runtime loading flags (-brtl),
  7994. # -berok will link without error, but may produce a broken library.
  7995. allow_undefined_flag='-berok'
  7996. # Determine the default libpath from the value encoded in an
  7997. # empty executable.
  7998. if test "${lt_cv_aix_libpath+set}" = set; then
  7999. aix_libpath=$lt_cv_aix_libpath
  8000. else
  8001. if ${lt_cv_aix_libpath_+:} false; then :
  8002. $as_echo_n "(cached) " >&6
  8003. else
  8004. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8005. /* end confdefs.h. */
  8006. int
  8007. main ()
  8008. {
  8009. ;
  8010. return 0;
  8011. }
  8012. _ACEOF
  8013. if ac_fn_c_try_link "$LINENO"; then :
  8014. lt_aix_libpath_sed='
  8015. /Import File Strings/,/^$/ {
  8016. /^0/ {
  8017. s/^0 *\([^ ]*\) *$/\1/
  8018. p
  8019. }
  8020. }'
  8021. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8022. # Check for a 64-bit object if we didn't find anything.
  8023. if test -z "$lt_cv_aix_libpath_"; then
  8024. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8025. fi
  8026. fi
  8027. rm -f core conftest.err conftest.$ac_objext \
  8028. conftest$ac_exeext conftest.$ac_ext
  8029. if test -z "$lt_cv_aix_libpath_"; then
  8030. lt_cv_aix_libpath_="/usr/lib:/lib"
  8031. fi
  8032. fi
  8033. aix_libpath=$lt_cv_aix_libpath_
  8034. fi
  8035. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  8036. archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
  8037. else
  8038. if test "$host_cpu" = ia64; then
  8039. hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
  8040. allow_undefined_flag="-z nodefs"
  8041. 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"
  8042. else
  8043. # Determine the default libpath from the value encoded in an
  8044. # empty executable.
  8045. if test "${lt_cv_aix_libpath+set}" = set; then
  8046. aix_libpath=$lt_cv_aix_libpath
  8047. else
  8048. if ${lt_cv_aix_libpath_+:} false; then :
  8049. $as_echo_n "(cached) " >&6
  8050. else
  8051. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8052. /* end confdefs.h. */
  8053. int
  8054. main ()
  8055. {
  8056. ;
  8057. return 0;
  8058. }
  8059. _ACEOF
  8060. if ac_fn_c_try_link "$LINENO"; then :
  8061. lt_aix_libpath_sed='
  8062. /Import File Strings/,/^$/ {
  8063. /^0/ {
  8064. s/^0 *\([^ ]*\) *$/\1/
  8065. p
  8066. }
  8067. }'
  8068. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8069. # Check for a 64-bit object if we didn't find anything.
  8070. if test -z "$lt_cv_aix_libpath_"; then
  8071. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8072. fi
  8073. fi
  8074. rm -f core conftest.err conftest.$ac_objext \
  8075. conftest$ac_exeext conftest.$ac_ext
  8076. if test -z "$lt_cv_aix_libpath_"; then
  8077. lt_cv_aix_libpath_="/usr/lib:/lib"
  8078. fi
  8079. fi
  8080. aix_libpath=$lt_cv_aix_libpath_
  8081. fi
  8082. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  8083. # Warning - without using the other run time loading flags,
  8084. # -berok will link without error, but may produce a broken library.
  8085. no_undefined_flag=' ${wl}-bernotok'
  8086. allow_undefined_flag=' ${wl}-berok'
  8087. if test "$with_gnu_ld" = yes; then
  8088. # We only use this code for GNU lds that support --whole-archive.
  8089. whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  8090. else
  8091. # Exported symbols can be pulled into shared objects from archives
  8092. whole_archive_flag_spec='$convenience'
  8093. fi
  8094. archive_cmds_need_lc=yes
  8095. # This is similar to how AIX traditionally builds its shared libraries.
  8096. 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'
  8097. fi
  8098. fi
  8099. ;;
  8100. amigaos*)
  8101. case $host_cpu in
  8102. powerpc)
  8103. # see comment about AmigaOS4 .so support
  8104. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8105. archive_expsym_cmds=''
  8106. ;;
  8107. m68k)
  8108. 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)'
  8109. hardcode_libdir_flag_spec='-L$libdir'
  8110. hardcode_minus_L=yes
  8111. ;;
  8112. esac
  8113. ;;
  8114. bsdi[45]*)
  8115. export_dynamic_flag_spec=-rdynamic
  8116. ;;
  8117. cygwin* | mingw* | pw32* | cegcc*)
  8118. # When not using gcc, we currently assume that we are using
  8119. # Microsoft Visual C++.
  8120. # hardcode_libdir_flag_spec is actually meaningless, as there is
  8121. # no search path for DLLs.
  8122. case $cc_basename in
  8123. cl*)
  8124. # Native MSVC
  8125. hardcode_libdir_flag_spec=' '
  8126. allow_undefined_flag=unsupported
  8127. always_export_symbols=yes
  8128. file_list_spec='@'
  8129. # Tell ltmain to make .lib files, not .a files.
  8130. libext=lib
  8131. # Tell ltmain to make .dll files, not .so files.
  8132. shrext_cmds=".dll"
  8133. # FIXME: Setting linknames here is a bad hack.
  8134. archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
  8135. archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  8136. sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
  8137. else
  8138. sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
  8139. fi~
  8140. $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  8141. linknames='
  8142. # The linker will not automatically build a static lib if we build a DLL.
  8143. # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
  8144. enable_shared_with_static_runtimes=yes
  8145. exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
  8146. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  8147. # Don't use ranlib
  8148. old_postinstall_cmds='chmod 644 $oldlib'
  8149. postlink_cmds='lt_outputfile="@OUTPUT@"~
  8150. lt_tool_outputfile="@TOOL_OUTPUT@"~
  8151. case $lt_outputfile in
  8152. *.exe|*.EXE) ;;
  8153. *)
  8154. lt_outputfile="$lt_outputfile.exe"
  8155. lt_tool_outputfile="$lt_tool_outputfile.exe"
  8156. ;;
  8157. esac~
  8158. if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
  8159. $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  8160. $RM "$lt_outputfile.manifest";
  8161. fi'
  8162. ;;
  8163. *)
  8164. # Assume MSVC wrapper
  8165. hardcode_libdir_flag_spec=' '
  8166. allow_undefined_flag=unsupported
  8167. # Tell ltmain to make .lib files, not .a files.
  8168. libext=lib
  8169. # Tell ltmain to make .dll files, not .so files.
  8170. shrext_cmds=".dll"
  8171. # FIXME: Setting linknames here is a bad hack.
  8172. archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
  8173. # The linker will automatically build a .lib file if we build a DLL.
  8174. old_archive_from_new_cmds='true'
  8175. # FIXME: Should let the user specify the lib program.
  8176. old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
  8177. enable_shared_with_static_runtimes=yes
  8178. ;;
  8179. esac
  8180. ;;
  8181. darwin* | rhapsody*)
  8182. archive_cmds_need_lc=no
  8183. hardcode_direct=no
  8184. hardcode_automatic=yes
  8185. hardcode_shlibpath_var=unsupported
  8186. if test "$lt_cv_ld_force_load" = "yes"; then
  8187. whole_archive_flag_spec='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
  8188. else
  8189. whole_archive_flag_spec=''
  8190. fi
  8191. link_all_deplibs=yes
  8192. allow_undefined_flag="$_lt_dar_allow_undefined"
  8193. case $cc_basename in
  8194. ifort*) _lt_dar_can_shared=yes ;;
  8195. *) _lt_dar_can_shared=$GCC ;;
  8196. esac
  8197. if test "$_lt_dar_can_shared" = "yes"; then
  8198. output_verbose_link_cmd=func_echo_all
  8199. archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
  8200. module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  8201. 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}"
  8202. 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}"
  8203. else
  8204. ld_shlibs=no
  8205. fi
  8206. ;;
  8207. dgux*)
  8208. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8209. hardcode_libdir_flag_spec='-L$libdir'
  8210. hardcode_shlibpath_var=no
  8211. ;;
  8212. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  8213. # support. Future versions do this automatically, but an explicit c++rt0.o
  8214. # does not break anything, and helps significantly (at the cost of a little
  8215. # extra space).
  8216. freebsd2.2*)
  8217. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  8218. hardcode_libdir_flag_spec='-R$libdir'
  8219. hardcode_direct=yes
  8220. hardcode_shlibpath_var=no
  8221. ;;
  8222. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  8223. freebsd2.*)
  8224. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8225. hardcode_direct=yes
  8226. hardcode_minus_L=yes
  8227. hardcode_shlibpath_var=no
  8228. ;;
  8229. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  8230. freebsd* | dragonfly*)
  8231. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8232. hardcode_libdir_flag_spec='-R$libdir'
  8233. hardcode_direct=yes
  8234. hardcode_shlibpath_var=no
  8235. ;;
  8236. hpux9*)
  8237. if test "$GCC" = yes; then
  8238. archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  8239. else
  8240. 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'
  8241. fi
  8242. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8243. hardcode_libdir_separator=:
  8244. hardcode_direct=yes
  8245. # hardcode_minus_L: Not really in the search PATH,
  8246. # but as the default location of the library.
  8247. hardcode_minus_L=yes
  8248. export_dynamic_flag_spec='${wl}-E'
  8249. ;;
  8250. hpux10*)
  8251. if test "$GCC" = yes && test "$with_gnu_ld" = no; then
  8252. archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8253. else
  8254. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  8255. fi
  8256. if test "$with_gnu_ld" = no; then
  8257. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8258. hardcode_libdir_separator=:
  8259. hardcode_direct=yes
  8260. hardcode_direct_absolute=yes
  8261. export_dynamic_flag_spec='${wl}-E'
  8262. # hardcode_minus_L: Not really in the search PATH,
  8263. # but as the default location of the library.
  8264. hardcode_minus_L=yes
  8265. fi
  8266. ;;
  8267. hpux11*)
  8268. if test "$GCC" = yes && test "$with_gnu_ld" = no; then
  8269. case $host_cpu in
  8270. hppa*64*)
  8271. archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8272. ;;
  8273. ia64*)
  8274. archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  8275. ;;
  8276. *)
  8277. archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8278. ;;
  8279. esac
  8280. else
  8281. case $host_cpu in
  8282. hppa*64*)
  8283. archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8284. ;;
  8285. ia64*)
  8286. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  8287. ;;
  8288. *)
  8289. # Older versions of the 11.00 compiler do not understand -b yet
  8290. # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
  8291. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
  8292. $as_echo_n "checking if $CC understands -b... " >&6; }
  8293. if ${lt_cv_prog_compiler__b+:} false; then :
  8294. $as_echo_n "(cached) " >&6
  8295. else
  8296. lt_cv_prog_compiler__b=no
  8297. save_LDFLAGS="$LDFLAGS"
  8298. LDFLAGS="$LDFLAGS -b"
  8299. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  8300. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  8301. # The linker can only warn and ignore the option if not recognized
  8302. # So say no if there are warnings
  8303. if test -s conftest.err; then
  8304. # Append any errors to the config.log.
  8305. cat conftest.err 1>&5
  8306. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  8307. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  8308. if diff conftest.exp conftest.er2 >/dev/null; then
  8309. lt_cv_prog_compiler__b=yes
  8310. fi
  8311. else
  8312. lt_cv_prog_compiler__b=yes
  8313. fi
  8314. fi
  8315. $RM -r conftest*
  8316. LDFLAGS="$save_LDFLAGS"
  8317. fi
  8318. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
  8319. $as_echo "$lt_cv_prog_compiler__b" >&6; }
  8320. if test x"$lt_cv_prog_compiler__b" = xyes; then
  8321. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8322. else
  8323. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  8324. fi
  8325. ;;
  8326. esac
  8327. fi
  8328. if test "$with_gnu_ld" = no; then
  8329. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8330. hardcode_libdir_separator=:
  8331. case $host_cpu in
  8332. hppa*64*|ia64*)
  8333. hardcode_direct=no
  8334. hardcode_shlibpath_var=no
  8335. ;;
  8336. *)
  8337. hardcode_direct=yes
  8338. hardcode_direct_absolute=yes
  8339. export_dynamic_flag_spec='${wl}-E'
  8340. # hardcode_minus_L: Not really in the search PATH,
  8341. # but as the default location of the library.
  8342. hardcode_minus_L=yes
  8343. ;;
  8344. esac
  8345. fi
  8346. ;;
  8347. irix5* | irix6* | nonstopux*)
  8348. if test "$GCC" = yes; then
  8349. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  8350. # Try to use the -exported_symbol ld option, if it does not
  8351. # work, assume that -exports_file does not work either and
  8352. # implicitly export all symbols.
  8353. # This should be the same for all languages, so no per-tag cache variable.
  8354. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
  8355. $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
  8356. if ${lt_cv_irix_exported_symbol+:} false; then :
  8357. $as_echo_n "(cached) " >&6
  8358. else
  8359. save_LDFLAGS="$LDFLAGS"
  8360. LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
  8361. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8362. /* end confdefs.h. */
  8363. int foo (void) { return 0; }
  8364. _ACEOF
  8365. if ac_fn_c_try_link "$LINENO"; then :
  8366. lt_cv_irix_exported_symbol=yes
  8367. else
  8368. lt_cv_irix_exported_symbol=no
  8369. fi
  8370. rm -f core conftest.err conftest.$ac_objext \
  8371. conftest$ac_exeext conftest.$ac_ext
  8372. LDFLAGS="$save_LDFLAGS"
  8373. fi
  8374. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
  8375. $as_echo "$lt_cv_irix_exported_symbol" >&6; }
  8376. if test "$lt_cv_irix_exported_symbol" = yes; then
  8377. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
  8378. fi
  8379. else
  8380. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
  8381. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
  8382. fi
  8383. archive_cmds_need_lc='no'
  8384. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8385. hardcode_libdir_separator=:
  8386. inherit_rpath=yes
  8387. link_all_deplibs=yes
  8388. ;;
  8389. netbsd* | netbsdelf*-gnu)
  8390. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  8391. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  8392. else
  8393. archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  8394. fi
  8395. hardcode_libdir_flag_spec='-R$libdir'
  8396. hardcode_direct=yes
  8397. hardcode_shlibpath_var=no
  8398. ;;
  8399. newsos6)
  8400. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8401. hardcode_direct=yes
  8402. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8403. hardcode_libdir_separator=:
  8404. hardcode_shlibpath_var=no
  8405. ;;
  8406. *nto* | *qnx*)
  8407. ;;
  8408. openbsd*)
  8409. if test -f /usr/libexec/ld.so; then
  8410. hardcode_direct=yes
  8411. hardcode_shlibpath_var=no
  8412. hardcode_direct_absolute=yes
  8413. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  8414. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8415. archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  8416. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  8417. export_dynamic_flag_spec='${wl}-E'
  8418. else
  8419. case $host_os in
  8420. openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  8421. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8422. hardcode_libdir_flag_spec='-R$libdir'
  8423. ;;
  8424. *)
  8425. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8426. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  8427. ;;
  8428. esac
  8429. fi
  8430. else
  8431. ld_shlibs=no
  8432. fi
  8433. ;;
  8434. os2*)
  8435. hardcode_libdir_flag_spec='-L$libdir'
  8436. hardcode_minus_L=yes
  8437. allow_undefined_flag=unsupported
  8438. 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'
  8439. old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  8440. ;;
  8441. osf3*)
  8442. if test "$GCC" = yes; then
  8443. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  8444. archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  8445. else
  8446. allow_undefined_flag=' -expect_unresolved \*'
  8447. archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
  8448. fi
  8449. archive_cmds_need_lc='no'
  8450. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8451. hardcode_libdir_separator=:
  8452. ;;
  8453. osf4* | osf5*) # as osf3* with the addition of -msym flag
  8454. if test "$GCC" = yes; then
  8455. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  8456. archive_cmds='$CC -shared${allow_undefined_flag} $pic_flag $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  8457. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8458. else
  8459. allow_undefined_flag=' -expect_unresolved \*'
  8460. archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
  8461. 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~
  8462. $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
  8463. # Both c and cxx compiler support -rpath directly
  8464. hardcode_libdir_flag_spec='-rpath $libdir'
  8465. fi
  8466. archive_cmds_need_lc='no'
  8467. hardcode_libdir_separator=:
  8468. ;;
  8469. solaris*)
  8470. no_undefined_flag=' -z defs'
  8471. if test "$GCC" = yes; then
  8472. wlarc='${wl}'
  8473. archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8474. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8475. $CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  8476. else
  8477. case `$CC -V 2>&1` in
  8478. *"Compilers 5.0"*)
  8479. wlarc=''
  8480. archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8481. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8482. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
  8483. ;;
  8484. *)
  8485. wlarc='${wl}'
  8486. archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
  8487. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8488. $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  8489. ;;
  8490. esac
  8491. fi
  8492. hardcode_libdir_flag_spec='-R$libdir'
  8493. hardcode_shlibpath_var=no
  8494. case $host_os in
  8495. solaris2.[0-5] | solaris2.[0-5].*) ;;
  8496. *)
  8497. # The compiler driver will combine and reorder linker options,
  8498. # but understands `-z linker_flag'. GCC discards it without `$wl',
  8499. # but is careful enough not to reorder.
  8500. # Supported since Solaris 2.6 (maybe 2.5.1?)
  8501. if test "$GCC" = yes; then
  8502. whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  8503. else
  8504. whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
  8505. fi
  8506. ;;
  8507. esac
  8508. link_all_deplibs=yes
  8509. ;;
  8510. sunos4*)
  8511. if test "x$host_vendor" = xsequent; then
  8512. # Use $CC to link under sequent, because it throws in some extra .o
  8513. # files that make .init and .fini sections work.
  8514. archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  8515. else
  8516. archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  8517. fi
  8518. hardcode_libdir_flag_spec='-L$libdir'
  8519. hardcode_direct=yes
  8520. hardcode_minus_L=yes
  8521. hardcode_shlibpath_var=no
  8522. ;;
  8523. sysv4)
  8524. case $host_vendor in
  8525. sni)
  8526. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8527. hardcode_direct=yes # is this really true???
  8528. ;;
  8529. siemens)
  8530. ## LD is ld it makes a PLAMLIB
  8531. ## CC just makes a GrossModule.
  8532. archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  8533. reload_cmds='$CC -r -o $output$reload_objs'
  8534. hardcode_direct=no
  8535. ;;
  8536. motorola)
  8537. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8538. hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  8539. ;;
  8540. esac
  8541. runpath_var='LD_RUN_PATH'
  8542. hardcode_shlibpath_var=no
  8543. ;;
  8544. sysv4.3*)
  8545. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8546. hardcode_shlibpath_var=no
  8547. export_dynamic_flag_spec='-Bexport'
  8548. ;;
  8549. sysv4*MP*)
  8550. if test -d /usr/nec; then
  8551. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8552. hardcode_shlibpath_var=no
  8553. runpath_var=LD_RUN_PATH
  8554. hardcode_runpath_var=yes
  8555. ld_shlibs=yes
  8556. fi
  8557. ;;
  8558. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  8559. no_undefined_flag='${wl}-z,text'
  8560. archive_cmds_need_lc=no
  8561. hardcode_shlibpath_var=no
  8562. runpath_var='LD_RUN_PATH'
  8563. if test "$GCC" = yes; then
  8564. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8565. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8566. else
  8567. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8568. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8569. fi
  8570. ;;
  8571. sysv5* | sco3.2v5* | sco5v6*)
  8572. # Note: We can NOT use -z defs as we might desire, because we do not
  8573. # link with -lc, and that would cause any symbols used from libc to
  8574. # always be unresolved, which means just about no library would
  8575. # ever link correctly. If we're not using GNU ld we use -z text
  8576. # though, which does catch some bad symbols but isn't as heavy-handed
  8577. # as -z defs.
  8578. no_undefined_flag='${wl}-z,text'
  8579. allow_undefined_flag='${wl}-z,nodefs'
  8580. archive_cmds_need_lc=no
  8581. hardcode_shlibpath_var=no
  8582. hardcode_libdir_flag_spec='${wl}-R,$libdir'
  8583. hardcode_libdir_separator=':'
  8584. link_all_deplibs=yes
  8585. export_dynamic_flag_spec='${wl}-Bexport'
  8586. runpath_var='LD_RUN_PATH'
  8587. if test "$GCC" = yes; then
  8588. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8589. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8590. else
  8591. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8592. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8593. fi
  8594. ;;
  8595. uts4*)
  8596. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8597. hardcode_libdir_flag_spec='-L$libdir'
  8598. hardcode_shlibpath_var=no
  8599. ;;
  8600. *)
  8601. ld_shlibs=no
  8602. ;;
  8603. esac
  8604. if test x$host_vendor = xsni; then
  8605. case $host in
  8606. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  8607. export_dynamic_flag_spec='${wl}-Blargedynsym'
  8608. ;;
  8609. esac
  8610. fi
  8611. fi
  8612. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
  8613. $as_echo "$ld_shlibs" >&6; }
  8614. test "$ld_shlibs" = no && can_build_shared=no
  8615. with_gnu_ld=$with_gnu_ld
  8616. #
  8617. # Do we need to explicitly link libc?
  8618. #
  8619. case "x$archive_cmds_need_lc" in
  8620. x|xyes)
  8621. # Assume -lc should be added
  8622. archive_cmds_need_lc=yes
  8623. if test "$enable_shared" = yes && test "$GCC" = yes; then
  8624. case $archive_cmds in
  8625. *'~'*)
  8626. # FIXME: we may have to deal with multi-command sequences.
  8627. ;;
  8628. '$CC '*)
  8629. # Test whether the compiler implicitly links with -lc since on some
  8630. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  8631. # to ld, don't add -lc before -lgcc.
  8632. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  8633. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  8634. if ${lt_cv_archive_cmds_need_lc+:} false; then :
  8635. $as_echo_n "(cached) " >&6
  8636. else
  8637. $RM conftest*
  8638. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8639. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  8640. (eval $ac_compile) 2>&5
  8641. ac_status=$?
  8642. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8643. test $ac_status = 0; } 2>conftest.err; then
  8644. soname=conftest
  8645. lib=conftest
  8646. libobjs=conftest.$ac_objext
  8647. deplibs=
  8648. wl=$lt_prog_compiler_wl
  8649. pic_flag=$lt_prog_compiler_pic
  8650. compiler_flags=-v
  8651. linker_flags=-v
  8652. verstring=
  8653. output_objdir=.
  8654. libname=conftest
  8655. lt_save_allow_undefined_flag=$allow_undefined_flag
  8656. allow_undefined_flag=
  8657. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  8658. (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  8659. ac_status=$?
  8660. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8661. test $ac_status = 0; }
  8662. then
  8663. lt_cv_archive_cmds_need_lc=no
  8664. else
  8665. lt_cv_archive_cmds_need_lc=yes
  8666. fi
  8667. allow_undefined_flag=$lt_save_allow_undefined_flag
  8668. else
  8669. cat conftest.err 1>&5
  8670. fi
  8671. $RM conftest*
  8672. fi
  8673. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
  8674. $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
  8675. archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
  8676. ;;
  8677. esac
  8678. fi
  8679. ;;
  8680. esac
  8681. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  8682. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  8683. if test "$GCC" = yes; then
  8684. case $host_os in
  8685. darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
  8686. *) lt_awk_arg="/^libraries:/" ;;
  8687. esac
  8688. case $host_os in
  8689. mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
  8690. *) lt_sed_strip_eq="s,=/,/,g" ;;
  8691. esac
  8692. lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
  8693. case $lt_search_path_spec in
  8694. *\;*)
  8695. # if the path contains ";" then we assume it to be the separator
  8696. # otherwise default to the standard path separator (i.e. ":") - it is
  8697. # assumed that no part of a normal pathname contains ";" but that should
  8698. # okay in the real world where ";" in dirpaths is itself problematic.
  8699. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
  8700. ;;
  8701. *)
  8702. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
  8703. ;;
  8704. esac
  8705. # Ok, now we have the path, separated by spaces, we can step through it
  8706. # and add multilib dir if necessary.
  8707. lt_tmp_lt_search_path_spec=
  8708. lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  8709. for lt_sys_path in $lt_search_path_spec; do
  8710. if test -d "$lt_sys_path/$lt_multi_os_dir"; then
  8711. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
  8712. else
  8713. test -d "$lt_sys_path" && \
  8714. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  8715. fi
  8716. done
  8717. lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
  8718. BEGIN {RS=" "; FS="/|\n";} {
  8719. lt_foo="";
  8720. lt_count=0;
  8721. for (lt_i = NF; lt_i > 0; lt_i--) {
  8722. if ($lt_i != "" && $lt_i != ".") {
  8723. if ($lt_i == "..") {
  8724. lt_count++;
  8725. } else {
  8726. if (lt_count == 0) {
  8727. lt_foo="/" $lt_i lt_foo;
  8728. } else {
  8729. lt_count--;
  8730. }
  8731. }
  8732. }
  8733. }
  8734. if (lt_foo != "") { lt_freq[lt_foo]++; }
  8735. if (lt_freq[lt_foo] == 1) { print lt_foo; }
  8736. }'`
  8737. # AWK program above erroneously prepends '/' to C:/dos/paths
  8738. # for these hosts.
  8739. case $host_os in
  8740. mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
  8741. $SED 's,/\([A-Za-z]:\),\1,g'` ;;
  8742. esac
  8743. sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
  8744. else
  8745. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  8746. fi
  8747. library_names_spec=
  8748. libname_spec='lib$name'
  8749. soname_spec=
  8750. shrext_cmds=".so"
  8751. postinstall_cmds=
  8752. postuninstall_cmds=
  8753. finish_cmds=
  8754. finish_eval=
  8755. shlibpath_var=
  8756. shlibpath_overrides_runpath=unknown
  8757. version_type=none
  8758. dynamic_linker="$host_os ld.so"
  8759. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  8760. need_lib_prefix=unknown
  8761. hardcode_into_libs=no
  8762. # when you set need_version to no, make sure it does not cause -set_version
  8763. # flags to be left without arguments
  8764. need_version=unknown
  8765. case $host_os in
  8766. aix3*)
  8767. version_type=linux # correct to gnu/linux during the next big refactor
  8768. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  8769. shlibpath_var=LIBPATH
  8770. # AIX 3 has no versioning support, so we append a major version to the name.
  8771. soname_spec='${libname}${release}${shared_ext}$major'
  8772. ;;
  8773. aix[4-9]*)
  8774. version_type=linux # correct to gnu/linux during the next big refactor
  8775. need_lib_prefix=no
  8776. need_version=no
  8777. hardcode_into_libs=yes
  8778. if test "$host_cpu" = ia64; then
  8779. # AIX 5 supports IA64
  8780. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  8781. shlibpath_var=LD_LIBRARY_PATH
  8782. else
  8783. # With GCC up to 2.95.x, collect2 would create an import file
  8784. # for dependence libraries. The import file would start with
  8785. # the line `#! .'. This would cause the generated library to
  8786. # depend on `.', always an invalid library. This was fixed in
  8787. # development snapshots of GCC prior to 3.0.
  8788. case $host_os in
  8789. aix4 | aix4.[01] | aix4.[01].*)
  8790. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  8791. echo ' yes '
  8792. echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  8793. :
  8794. else
  8795. can_build_shared=no
  8796. fi
  8797. ;;
  8798. esac
  8799. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  8800. # soname into executable. Probably we can add versioning support to
  8801. # collect2, so additional links can be useful in future.
  8802. if test "$aix_use_runtimelinking" = yes; then
  8803. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  8804. # instead of lib<name>.a to let people know that these are not
  8805. # typical AIX shared libraries.
  8806. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8807. else
  8808. # We preserve .a as extension for shared libraries through AIX4.2
  8809. # and later when we are not doing run time linking.
  8810. library_names_spec='${libname}${release}.a $libname.a'
  8811. soname_spec='${libname}${release}${shared_ext}$major'
  8812. fi
  8813. shlibpath_var=LIBPATH
  8814. fi
  8815. ;;
  8816. amigaos*)
  8817. case $host_cpu in
  8818. powerpc)
  8819. # Since July 2007 AmigaOS4 officially supports .so libraries.
  8820. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  8821. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8822. ;;
  8823. m68k)
  8824. library_names_spec='$libname.ixlibrary $libname.a'
  8825. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  8826. finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
  8827. ;;
  8828. esac
  8829. ;;
  8830. beos*)
  8831. library_names_spec='${libname}${shared_ext}'
  8832. dynamic_linker="$host_os ld.so"
  8833. shlibpath_var=LIBRARY_PATH
  8834. ;;
  8835. bsdi[45]*)
  8836. version_type=linux # correct to gnu/linux during the next big refactor
  8837. need_version=no
  8838. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8839. soname_spec='${libname}${release}${shared_ext}$major'
  8840. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  8841. shlibpath_var=LD_LIBRARY_PATH
  8842. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  8843. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  8844. # the default ld.so.conf also contains /usr/contrib/lib and
  8845. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  8846. # libtool to hard-code these into programs
  8847. ;;
  8848. cygwin* | mingw* | pw32* | cegcc*)
  8849. version_type=windows
  8850. shrext_cmds=".dll"
  8851. need_version=no
  8852. need_lib_prefix=no
  8853. case $GCC,$cc_basename in
  8854. yes,*)
  8855. # gcc
  8856. library_names_spec='$libname.dll.a'
  8857. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  8858. postinstall_cmds='base_file=`basename \${file}`~
  8859. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  8860. dldir=$destdir/`dirname \$dlpath`~
  8861. test -d \$dldir || mkdir -p \$dldir~
  8862. $install_prog $dir/$dlname \$dldir/$dlname~
  8863. chmod a+x \$dldir/$dlname~
  8864. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  8865. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  8866. fi'
  8867. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  8868. dlpath=$dir/\$dldll~
  8869. $RM \$dlpath'
  8870. shlibpath_overrides_runpath=yes
  8871. case $host_os in
  8872. cygwin*)
  8873. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  8874. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  8875. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
  8876. ;;
  8877. mingw* | cegcc*)
  8878. # MinGW DLLs use traditional 'lib' prefix
  8879. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  8880. ;;
  8881. pw32*)
  8882. # pw32 DLLs use 'pw' prefix rather than 'lib'
  8883. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  8884. ;;
  8885. esac
  8886. dynamic_linker='Win32 ld.exe'
  8887. ;;
  8888. *,cl*)
  8889. # Native MSVC
  8890. libname_spec='$name'
  8891. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  8892. library_names_spec='${libname}.dll.lib'
  8893. case $build_os in
  8894. mingw*)
  8895. sys_lib_search_path_spec=
  8896. lt_save_ifs=$IFS
  8897. IFS=';'
  8898. for lt_path in $LIB
  8899. do
  8900. IFS=$lt_save_ifs
  8901. # Let DOS variable expansion print the short 8.3 style file name.
  8902. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
  8903. sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
  8904. done
  8905. IFS=$lt_save_ifs
  8906. # Convert to MSYS style.
  8907. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
  8908. ;;
  8909. cygwin*)
  8910. # Convert to unix form, then to dos form, then back to unix form
  8911. # but this time dos style (no spaces!) so that the unix form looks
  8912. # like /cygdrive/c/PROGRA~1:/cygdr...
  8913. sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
  8914. sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
  8915. sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  8916. ;;
  8917. *)
  8918. sys_lib_search_path_spec="$LIB"
  8919. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  8920. # It is most probably a Windows format PATH.
  8921. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  8922. else
  8923. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  8924. fi
  8925. # FIXME: find the short name or the path components, as spaces are
  8926. # common. (e.g. "Program Files" -> "PROGRA~1")
  8927. ;;
  8928. esac
  8929. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  8930. postinstall_cmds='base_file=`basename \${file}`~
  8931. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  8932. dldir=$destdir/`dirname \$dlpath`~
  8933. test -d \$dldir || mkdir -p \$dldir~
  8934. $install_prog $dir/$dlname \$dldir/$dlname'
  8935. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  8936. dlpath=$dir/\$dldll~
  8937. $RM \$dlpath'
  8938. shlibpath_overrides_runpath=yes
  8939. dynamic_linker='Win32 link.exe'
  8940. ;;
  8941. *)
  8942. # Assume MSVC wrapper
  8943. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  8944. dynamic_linker='Win32 ld.exe'
  8945. ;;
  8946. esac
  8947. # FIXME: first we should search . and the directory the executable is in
  8948. shlibpath_var=PATH
  8949. ;;
  8950. darwin* | rhapsody*)
  8951. dynamic_linker="$host_os dyld"
  8952. version_type=darwin
  8953. need_lib_prefix=no
  8954. need_version=no
  8955. library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  8956. soname_spec='${libname}${release}${major}$shared_ext'
  8957. shlibpath_overrides_runpath=yes
  8958. shlibpath_var=DYLD_LIBRARY_PATH
  8959. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  8960. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
  8961. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  8962. ;;
  8963. dgux*)
  8964. version_type=linux # correct to gnu/linux during the next big refactor
  8965. need_lib_prefix=no
  8966. need_version=no
  8967. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  8968. soname_spec='${libname}${release}${shared_ext}$major'
  8969. shlibpath_var=LD_LIBRARY_PATH
  8970. ;;
  8971. freebsd* | dragonfly*)
  8972. # DragonFly does not have aout. When/if they implement a new
  8973. # versioning mechanism, adjust this.
  8974. if test -x /usr/bin/objformat; then
  8975. objformat=`/usr/bin/objformat`
  8976. else
  8977. case $host_os in
  8978. freebsd[23].*) objformat=aout ;;
  8979. *) objformat=elf ;;
  8980. esac
  8981. fi
  8982. version_type=freebsd-$objformat
  8983. case $version_type in
  8984. freebsd-elf*)
  8985. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  8986. need_version=no
  8987. need_lib_prefix=no
  8988. ;;
  8989. freebsd-*)
  8990. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  8991. need_version=yes
  8992. ;;
  8993. esac
  8994. shlibpath_var=LD_LIBRARY_PATH
  8995. case $host_os in
  8996. freebsd2.*)
  8997. shlibpath_overrides_runpath=yes
  8998. ;;
  8999. freebsd3.[01]* | freebsdelf3.[01]*)
  9000. shlibpath_overrides_runpath=yes
  9001. hardcode_into_libs=yes
  9002. ;;
  9003. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  9004. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  9005. shlibpath_overrides_runpath=no
  9006. hardcode_into_libs=yes
  9007. ;;
  9008. *) # from 4.6 on, and DragonFly
  9009. shlibpath_overrides_runpath=yes
  9010. hardcode_into_libs=yes
  9011. ;;
  9012. esac
  9013. ;;
  9014. gnu*)
  9015. version_type=linux # correct to gnu/linux during the next big refactor
  9016. need_lib_prefix=no
  9017. need_version=no
  9018. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  9019. soname_spec='${libname}${release}${shared_ext}$major'
  9020. shlibpath_var=LD_LIBRARY_PATH
  9021. shlibpath_overrides_runpath=no
  9022. hardcode_into_libs=yes
  9023. ;;
  9024. haiku*)
  9025. version_type=linux # correct to gnu/linux during the next big refactor
  9026. need_lib_prefix=no
  9027. need_version=no
  9028. dynamic_linker="$host_os runtime_loader"
  9029. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  9030. soname_spec='${libname}${release}${shared_ext}$major'
  9031. shlibpath_var=LIBRARY_PATH
  9032. shlibpath_overrides_runpath=yes
  9033. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  9034. hardcode_into_libs=yes
  9035. ;;
  9036. hpux9* | hpux10* | hpux11*)
  9037. # Give a soname corresponding to the major version so that dld.sl refuses to
  9038. # link against other versions.
  9039. version_type=sunos
  9040. need_lib_prefix=no
  9041. need_version=no
  9042. case $host_cpu in
  9043. ia64*)
  9044. shrext_cmds='.so'
  9045. hardcode_into_libs=yes
  9046. dynamic_linker="$host_os dld.so"
  9047. shlibpath_var=LD_LIBRARY_PATH
  9048. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  9049. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9050. soname_spec='${libname}${release}${shared_ext}$major'
  9051. if test "X$HPUX_IA64_MODE" = X32; then
  9052. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  9053. else
  9054. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  9055. fi
  9056. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  9057. ;;
  9058. hppa*64*)
  9059. shrext_cmds='.sl'
  9060. hardcode_into_libs=yes
  9061. dynamic_linker="$host_os dld.sl"
  9062. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  9063. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  9064. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9065. soname_spec='${libname}${release}${shared_ext}$major'
  9066. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  9067. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  9068. ;;
  9069. *)
  9070. shrext_cmds='.sl'
  9071. dynamic_linker="$host_os dld.sl"
  9072. shlibpath_var=SHLIB_PATH
  9073. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  9074. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9075. soname_spec='${libname}${release}${shared_ext}$major'
  9076. ;;
  9077. esac
  9078. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  9079. postinstall_cmds='chmod 555 $lib'
  9080. # or fails outright, so override atomically:
  9081. install_override_mode=555
  9082. ;;
  9083. interix[3-9]*)
  9084. version_type=linux # correct to gnu/linux during the next big refactor
  9085. need_lib_prefix=no
  9086. need_version=no
  9087. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  9088. soname_spec='${libname}${release}${shared_ext}$major'
  9089. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  9090. shlibpath_var=LD_LIBRARY_PATH
  9091. shlibpath_overrides_runpath=no
  9092. hardcode_into_libs=yes
  9093. ;;
  9094. irix5* | irix6* | nonstopux*)
  9095. case $host_os in
  9096. nonstopux*) version_type=nonstopux ;;
  9097. *)
  9098. if test "$lt_cv_prog_gnu_ld" = yes; then
  9099. version_type=linux # correct to gnu/linux during the next big refactor
  9100. else
  9101. version_type=irix
  9102. fi ;;
  9103. esac
  9104. need_lib_prefix=no
  9105. need_version=no
  9106. soname_spec='${libname}${release}${shared_ext}$major'
  9107. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  9108. case $host_os in
  9109. irix5* | nonstopux*)
  9110. libsuff= shlibsuff=
  9111. ;;
  9112. *)
  9113. case $LD in # libtool.m4 will add one of these switches to LD
  9114. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  9115. libsuff= shlibsuff= libmagic=32-bit;;
  9116. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  9117. libsuff=32 shlibsuff=N32 libmagic=N32;;
  9118. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  9119. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  9120. *) libsuff= shlibsuff= libmagic=never-match;;
  9121. esac
  9122. ;;
  9123. esac
  9124. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  9125. shlibpath_overrides_runpath=no
  9126. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  9127. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  9128. hardcode_into_libs=yes
  9129. ;;
  9130. # No shared lib support for Linux oldld, aout, or coff.
  9131. linux*oldld* | linux*aout* | linux*coff*)
  9132. dynamic_linker=no
  9133. ;;
  9134. # This must be glibc/ELF.
  9135. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  9136. version_type=linux # correct to gnu/linux during the next big refactor
  9137. need_lib_prefix=no
  9138. need_version=no
  9139. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9140. soname_spec='${libname}${release}${shared_ext}$major'
  9141. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  9142. shlibpath_var=LD_LIBRARY_PATH
  9143. shlibpath_overrides_runpath=no
  9144. # Some binutils ld are patched to set DT_RUNPATH
  9145. if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
  9146. $as_echo_n "(cached) " >&6
  9147. else
  9148. lt_cv_shlibpath_overrides_runpath=no
  9149. save_LDFLAGS=$LDFLAGS
  9150. save_libdir=$libdir
  9151. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
  9152. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
  9153. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9154. /* end confdefs.h. */
  9155. int
  9156. main ()
  9157. {
  9158. ;
  9159. return 0;
  9160. }
  9161. _ACEOF
  9162. if ac_fn_c_try_link "$LINENO"; then :
  9163. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  9164. lt_cv_shlibpath_overrides_runpath=yes
  9165. fi
  9166. fi
  9167. rm -f core conftest.err conftest.$ac_objext \
  9168. conftest$ac_exeext conftest.$ac_ext
  9169. LDFLAGS=$save_LDFLAGS
  9170. libdir=$save_libdir
  9171. fi
  9172. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  9173. # This implies no fast_install, which is unacceptable.
  9174. # Some rework will be needed to allow for fast_install
  9175. # before this can be enabled.
  9176. hardcode_into_libs=yes
  9177. # Append ld.so.conf contents to the search path
  9178. if test -f /etc/ld.so.conf; then
  9179. lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
  9180. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  9181. fi
  9182. # We used to test for /lib/ld.so.1 and disable shared libraries on
  9183. # powerpc, because MkLinux only supported shared libraries with the
  9184. # GNU dynamic linker. Since this was broken with cross compilers,
  9185. # most powerpc-linux boxes support dynamic linking these days and
  9186. # people can always --disable-shared, the test was removed, and we
  9187. # assume the GNU/Linux dynamic linker is in use.
  9188. dynamic_linker='GNU/Linux ld.so'
  9189. ;;
  9190. netbsdelf*-gnu)
  9191. version_type=linux
  9192. need_lib_prefix=no
  9193. need_version=no
  9194. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  9195. soname_spec='${libname}${release}${shared_ext}$major'
  9196. shlibpath_var=LD_LIBRARY_PATH
  9197. shlibpath_overrides_runpath=no
  9198. hardcode_into_libs=yes
  9199. dynamic_linker='NetBSD ld.elf_so'
  9200. ;;
  9201. netbsd*)
  9202. version_type=sunos
  9203. need_lib_prefix=no
  9204. need_version=no
  9205. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  9206. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9207. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  9208. dynamic_linker='NetBSD (a.out) ld.so'
  9209. else
  9210. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  9211. soname_spec='${libname}${release}${shared_ext}$major'
  9212. dynamic_linker='NetBSD ld.elf_so'
  9213. fi
  9214. shlibpath_var=LD_LIBRARY_PATH
  9215. shlibpath_overrides_runpath=yes
  9216. hardcode_into_libs=yes
  9217. ;;
  9218. newsos6)
  9219. version_type=linux # correct to gnu/linux during the next big refactor
  9220. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9221. shlibpath_var=LD_LIBRARY_PATH
  9222. shlibpath_overrides_runpath=yes
  9223. ;;
  9224. *nto* | *qnx*)
  9225. version_type=qnx
  9226. need_lib_prefix=no
  9227. need_version=no
  9228. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9229. soname_spec='${libname}${release}${shared_ext}$major'
  9230. shlibpath_var=LD_LIBRARY_PATH
  9231. shlibpath_overrides_runpath=no
  9232. hardcode_into_libs=yes
  9233. dynamic_linker='ldqnx.so'
  9234. ;;
  9235. openbsd*)
  9236. version_type=sunos
  9237. sys_lib_dlsearch_path_spec="/usr/lib"
  9238. need_lib_prefix=no
  9239. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  9240. case $host_os in
  9241. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  9242. *) need_version=no ;;
  9243. esac
  9244. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9245. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  9246. shlibpath_var=LD_LIBRARY_PATH
  9247. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  9248. case $host_os in
  9249. openbsd2.[89] | openbsd2.[89].*)
  9250. shlibpath_overrides_runpath=no
  9251. ;;
  9252. *)
  9253. shlibpath_overrides_runpath=yes
  9254. ;;
  9255. esac
  9256. else
  9257. shlibpath_overrides_runpath=yes
  9258. fi
  9259. ;;
  9260. os2*)
  9261. libname_spec='$name'
  9262. shrext_cmds=".dll"
  9263. need_lib_prefix=no
  9264. library_names_spec='$libname${shared_ext} $libname.a'
  9265. dynamic_linker='OS/2 ld.exe'
  9266. shlibpath_var=LIBPATH
  9267. ;;
  9268. osf3* | osf4* | osf5*)
  9269. version_type=osf
  9270. need_lib_prefix=no
  9271. need_version=no
  9272. soname_spec='${libname}${release}${shared_ext}$major'
  9273. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9274. shlibpath_var=LD_LIBRARY_PATH
  9275. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  9276. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  9277. ;;
  9278. rdos*)
  9279. dynamic_linker=no
  9280. ;;
  9281. solaris*)
  9282. version_type=linux # correct to gnu/linux during the next big refactor
  9283. need_lib_prefix=no
  9284. need_version=no
  9285. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9286. soname_spec='${libname}${release}${shared_ext}$major'
  9287. shlibpath_var=LD_LIBRARY_PATH
  9288. shlibpath_overrides_runpath=yes
  9289. hardcode_into_libs=yes
  9290. # ldd complains unless libraries are executable
  9291. postinstall_cmds='chmod +x $lib'
  9292. ;;
  9293. sunos4*)
  9294. version_type=sunos
  9295. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9296. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  9297. shlibpath_var=LD_LIBRARY_PATH
  9298. shlibpath_overrides_runpath=yes
  9299. if test "$with_gnu_ld" = yes; then
  9300. need_lib_prefix=no
  9301. fi
  9302. need_version=yes
  9303. ;;
  9304. sysv4 | sysv4.3*)
  9305. version_type=linux # correct to gnu/linux during the next big refactor
  9306. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9307. soname_spec='${libname}${release}${shared_ext}$major'
  9308. shlibpath_var=LD_LIBRARY_PATH
  9309. case $host_vendor in
  9310. sni)
  9311. shlibpath_overrides_runpath=no
  9312. need_lib_prefix=no
  9313. runpath_var=LD_RUN_PATH
  9314. ;;
  9315. siemens)
  9316. need_lib_prefix=no
  9317. ;;
  9318. motorola)
  9319. need_lib_prefix=no
  9320. need_version=no
  9321. shlibpath_overrides_runpath=no
  9322. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  9323. ;;
  9324. esac
  9325. ;;
  9326. sysv4*MP*)
  9327. if test -d /usr/nec ;then
  9328. version_type=linux # correct to gnu/linux during the next big refactor
  9329. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  9330. soname_spec='$libname${shared_ext}.$major'
  9331. shlibpath_var=LD_LIBRARY_PATH
  9332. fi
  9333. ;;
  9334. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  9335. version_type=freebsd-elf
  9336. need_lib_prefix=no
  9337. need_version=no
  9338. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  9339. soname_spec='${libname}${release}${shared_ext}$major'
  9340. shlibpath_var=LD_LIBRARY_PATH
  9341. shlibpath_overrides_runpath=yes
  9342. hardcode_into_libs=yes
  9343. if test "$with_gnu_ld" = yes; then
  9344. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  9345. else
  9346. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  9347. case $host_os in
  9348. sco3.2v5*)
  9349. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  9350. ;;
  9351. esac
  9352. fi
  9353. sys_lib_dlsearch_path_spec='/usr/lib'
  9354. ;;
  9355. tpf*)
  9356. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  9357. version_type=linux # correct to gnu/linux during the next big refactor
  9358. need_lib_prefix=no
  9359. need_version=no
  9360. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9361. shlibpath_var=LD_LIBRARY_PATH
  9362. shlibpath_overrides_runpath=no
  9363. hardcode_into_libs=yes
  9364. ;;
  9365. uts4*)
  9366. version_type=linux # correct to gnu/linux during the next big refactor
  9367. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9368. soname_spec='${libname}${release}${shared_ext}$major'
  9369. shlibpath_var=LD_LIBRARY_PATH
  9370. ;;
  9371. *)
  9372. dynamic_linker=no
  9373. ;;
  9374. esac
  9375. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  9376. $as_echo "$dynamic_linker" >&6; }
  9377. test "$dynamic_linker" = no && can_build_shared=no
  9378. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  9379. if test "$GCC" = yes; then
  9380. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  9381. fi
  9382. if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  9383. sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  9384. fi
  9385. if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  9386. sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  9387. fi
  9388. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  9389. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  9390. hardcode_action=
  9391. if test -n "$hardcode_libdir_flag_spec" ||
  9392. test -n "$runpath_var" ||
  9393. test "X$hardcode_automatic" = "Xyes" ; then
  9394. # We can hardcode non-existent directories.
  9395. if test "$hardcode_direct" != no &&
  9396. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  9397. # have to relink, otherwise we might link with an installed library
  9398. # when we should be linking with a yet-to-be-installed one
  9399. ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
  9400. test "$hardcode_minus_L" != no; then
  9401. # Linking always hardcodes the temporary library directory.
  9402. hardcode_action=relink
  9403. else
  9404. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  9405. hardcode_action=immediate
  9406. fi
  9407. else
  9408. # We cannot hardcode anything, or else we can only hardcode existing
  9409. # directories.
  9410. hardcode_action=unsupported
  9411. fi
  9412. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
  9413. $as_echo "$hardcode_action" >&6; }
  9414. if test "$hardcode_action" = relink ||
  9415. test "$inherit_rpath" = yes; then
  9416. # Fast installation is not supported
  9417. enable_fast_install=no
  9418. elif test "$shlibpath_overrides_runpath" = yes ||
  9419. test "$enable_shared" = no; then
  9420. # Fast installation is not necessary
  9421. enable_fast_install=needless
  9422. fi
  9423. if test "x$enable_dlopen" != xyes; then
  9424. enable_dlopen=unknown
  9425. enable_dlopen_self=unknown
  9426. enable_dlopen_self_static=unknown
  9427. else
  9428. lt_cv_dlopen=no
  9429. lt_cv_dlopen_libs=
  9430. case $host_os in
  9431. beos*)
  9432. lt_cv_dlopen="load_add_on"
  9433. lt_cv_dlopen_libs=
  9434. lt_cv_dlopen_self=yes
  9435. ;;
  9436. mingw* | pw32* | cegcc*)
  9437. lt_cv_dlopen="LoadLibrary"
  9438. lt_cv_dlopen_libs=
  9439. ;;
  9440. cygwin*)
  9441. lt_cv_dlopen="dlopen"
  9442. lt_cv_dlopen_libs=
  9443. ;;
  9444. darwin*)
  9445. # if libdl is installed we need to link against it
  9446. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  9447. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  9448. if ${ac_cv_lib_dl_dlopen+:} false; then :
  9449. $as_echo_n "(cached) " >&6
  9450. else
  9451. ac_check_lib_save_LIBS=$LIBS
  9452. LIBS="-ldl $LIBS"
  9453. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9454. /* end confdefs.h. */
  9455. /* Override any GCC internal prototype to avoid an error.
  9456. Use char because int might match the return type of a GCC
  9457. builtin and then its argument prototype would still apply. */
  9458. #ifdef __cplusplus
  9459. extern "C"
  9460. #endif
  9461. char dlopen ();
  9462. int
  9463. main ()
  9464. {
  9465. return dlopen ();
  9466. ;
  9467. return 0;
  9468. }
  9469. _ACEOF
  9470. if ac_fn_c_try_link "$LINENO"; then :
  9471. ac_cv_lib_dl_dlopen=yes
  9472. else
  9473. ac_cv_lib_dl_dlopen=no
  9474. fi
  9475. rm -f core conftest.err conftest.$ac_objext \
  9476. conftest$ac_exeext conftest.$ac_ext
  9477. LIBS=$ac_check_lib_save_LIBS
  9478. fi
  9479. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  9480. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  9481. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  9482. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  9483. else
  9484. lt_cv_dlopen="dyld"
  9485. lt_cv_dlopen_libs=
  9486. lt_cv_dlopen_self=yes
  9487. fi
  9488. ;;
  9489. *)
  9490. ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
  9491. if test "x$ac_cv_func_shl_load" = xyes; then :
  9492. lt_cv_dlopen="shl_load"
  9493. else
  9494. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
  9495. $as_echo_n "checking for shl_load in -ldld... " >&6; }
  9496. if ${ac_cv_lib_dld_shl_load+:} false; then :
  9497. $as_echo_n "(cached) " >&6
  9498. else
  9499. ac_check_lib_save_LIBS=$LIBS
  9500. LIBS="-ldld $LIBS"
  9501. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9502. /* end confdefs.h. */
  9503. /* Override any GCC internal prototype to avoid an error.
  9504. Use char because int might match the return type of a GCC
  9505. builtin and then its argument prototype would still apply. */
  9506. #ifdef __cplusplus
  9507. extern "C"
  9508. #endif
  9509. char shl_load ();
  9510. int
  9511. main ()
  9512. {
  9513. return shl_load ();
  9514. ;
  9515. return 0;
  9516. }
  9517. _ACEOF
  9518. if ac_fn_c_try_link "$LINENO"; then :
  9519. ac_cv_lib_dld_shl_load=yes
  9520. else
  9521. ac_cv_lib_dld_shl_load=no
  9522. fi
  9523. rm -f core conftest.err conftest.$ac_objext \
  9524. conftest$ac_exeext conftest.$ac_ext
  9525. LIBS=$ac_check_lib_save_LIBS
  9526. fi
  9527. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
  9528. $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
  9529. if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
  9530. lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
  9531. else
  9532. ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
  9533. if test "x$ac_cv_func_dlopen" = xyes; then :
  9534. lt_cv_dlopen="dlopen"
  9535. else
  9536. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  9537. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  9538. if ${ac_cv_lib_dl_dlopen+:} false; then :
  9539. $as_echo_n "(cached) " >&6
  9540. else
  9541. ac_check_lib_save_LIBS=$LIBS
  9542. LIBS="-ldl $LIBS"
  9543. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9544. /* end confdefs.h. */
  9545. /* Override any GCC internal prototype to avoid an error.
  9546. Use char because int might match the return type of a GCC
  9547. builtin and then its argument prototype would still apply. */
  9548. #ifdef __cplusplus
  9549. extern "C"
  9550. #endif
  9551. char dlopen ();
  9552. int
  9553. main ()
  9554. {
  9555. return dlopen ();
  9556. ;
  9557. return 0;
  9558. }
  9559. _ACEOF
  9560. if ac_fn_c_try_link "$LINENO"; then :
  9561. ac_cv_lib_dl_dlopen=yes
  9562. else
  9563. ac_cv_lib_dl_dlopen=no
  9564. fi
  9565. rm -f core conftest.err conftest.$ac_objext \
  9566. conftest$ac_exeext conftest.$ac_ext
  9567. LIBS=$ac_check_lib_save_LIBS
  9568. fi
  9569. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  9570. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  9571. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  9572. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  9573. else
  9574. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
  9575. $as_echo_n "checking for dlopen in -lsvld... " >&6; }
  9576. if ${ac_cv_lib_svld_dlopen+:} false; then :
  9577. $as_echo_n "(cached) " >&6
  9578. else
  9579. ac_check_lib_save_LIBS=$LIBS
  9580. LIBS="-lsvld $LIBS"
  9581. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9582. /* end confdefs.h. */
  9583. /* Override any GCC internal prototype to avoid an error.
  9584. Use char because int might match the return type of a GCC
  9585. builtin and then its argument prototype would still apply. */
  9586. #ifdef __cplusplus
  9587. extern "C"
  9588. #endif
  9589. char dlopen ();
  9590. int
  9591. main ()
  9592. {
  9593. return dlopen ();
  9594. ;
  9595. return 0;
  9596. }
  9597. _ACEOF
  9598. if ac_fn_c_try_link "$LINENO"; then :
  9599. ac_cv_lib_svld_dlopen=yes
  9600. else
  9601. ac_cv_lib_svld_dlopen=no
  9602. fi
  9603. rm -f core conftest.err conftest.$ac_objext \
  9604. conftest$ac_exeext conftest.$ac_ext
  9605. LIBS=$ac_check_lib_save_LIBS
  9606. fi
  9607. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
  9608. $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
  9609. if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
  9610. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
  9611. else
  9612. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
  9613. $as_echo_n "checking for dld_link in -ldld... " >&6; }
  9614. if ${ac_cv_lib_dld_dld_link+:} false; then :
  9615. $as_echo_n "(cached) " >&6
  9616. else
  9617. ac_check_lib_save_LIBS=$LIBS
  9618. LIBS="-ldld $LIBS"
  9619. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9620. /* end confdefs.h. */
  9621. /* Override any GCC internal prototype to avoid an error.
  9622. Use char because int might match the return type of a GCC
  9623. builtin and then its argument prototype would still apply. */
  9624. #ifdef __cplusplus
  9625. extern "C"
  9626. #endif
  9627. char dld_link ();
  9628. int
  9629. main ()
  9630. {
  9631. return dld_link ();
  9632. ;
  9633. return 0;
  9634. }
  9635. _ACEOF
  9636. if ac_fn_c_try_link "$LINENO"; then :
  9637. ac_cv_lib_dld_dld_link=yes
  9638. else
  9639. ac_cv_lib_dld_dld_link=no
  9640. fi
  9641. rm -f core conftest.err conftest.$ac_objext \
  9642. conftest$ac_exeext conftest.$ac_ext
  9643. LIBS=$ac_check_lib_save_LIBS
  9644. fi
  9645. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
  9646. $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
  9647. if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
  9648. lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
  9649. fi
  9650. fi
  9651. fi
  9652. fi
  9653. fi
  9654. fi
  9655. ;;
  9656. esac
  9657. if test "x$lt_cv_dlopen" != xno; then
  9658. enable_dlopen=yes
  9659. else
  9660. enable_dlopen=no
  9661. fi
  9662. case $lt_cv_dlopen in
  9663. dlopen)
  9664. save_CPPFLAGS="$CPPFLAGS"
  9665. test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  9666. save_LDFLAGS="$LDFLAGS"
  9667. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  9668. save_LIBS="$LIBS"
  9669. LIBS="$lt_cv_dlopen_libs $LIBS"
  9670. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
  9671. $as_echo_n "checking whether a program can dlopen itself... " >&6; }
  9672. if ${lt_cv_dlopen_self+:} false; then :
  9673. $as_echo_n "(cached) " >&6
  9674. else
  9675. if test "$cross_compiling" = yes; then :
  9676. lt_cv_dlopen_self=cross
  9677. else
  9678. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  9679. lt_status=$lt_dlunknown
  9680. cat > conftest.$ac_ext <<_LT_EOF
  9681. #line $LINENO "configure"
  9682. #include "confdefs.h"
  9683. #if HAVE_DLFCN_H
  9684. #include <dlfcn.h>
  9685. #endif
  9686. #include <stdio.h>
  9687. #ifdef RTLD_GLOBAL
  9688. # define LT_DLGLOBAL RTLD_GLOBAL
  9689. #else
  9690. # ifdef DL_GLOBAL
  9691. # define LT_DLGLOBAL DL_GLOBAL
  9692. # else
  9693. # define LT_DLGLOBAL 0
  9694. # endif
  9695. #endif
  9696. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  9697. find out it does not work in some platform. */
  9698. #ifndef LT_DLLAZY_OR_NOW
  9699. # ifdef RTLD_LAZY
  9700. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  9701. # else
  9702. # ifdef DL_LAZY
  9703. # define LT_DLLAZY_OR_NOW DL_LAZY
  9704. # else
  9705. # ifdef RTLD_NOW
  9706. # define LT_DLLAZY_OR_NOW RTLD_NOW
  9707. # else
  9708. # ifdef DL_NOW
  9709. # define LT_DLLAZY_OR_NOW DL_NOW
  9710. # else
  9711. # define LT_DLLAZY_OR_NOW 0
  9712. # endif
  9713. # endif
  9714. # endif
  9715. # endif
  9716. #endif
  9717. /* When -fvisbility=hidden is used, assume the code has been annotated
  9718. correspondingly for the symbols needed. */
  9719. #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  9720. int fnord () __attribute__((visibility("default")));
  9721. #endif
  9722. int fnord () { return 42; }
  9723. int main ()
  9724. {
  9725. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  9726. int status = $lt_dlunknown;
  9727. if (self)
  9728. {
  9729. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  9730. else
  9731. {
  9732. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  9733. else puts (dlerror ());
  9734. }
  9735. /* dlclose (self); */
  9736. }
  9737. else
  9738. puts (dlerror ());
  9739. return status;
  9740. }
  9741. _LT_EOF
  9742. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  9743. (eval $ac_link) 2>&5
  9744. ac_status=$?
  9745. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9746. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  9747. (./conftest; exit; ) >&5 2>/dev/null
  9748. lt_status=$?
  9749. case x$lt_status in
  9750. x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  9751. x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  9752. x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
  9753. esac
  9754. else :
  9755. # compilation failed
  9756. lt_cv_dlopen_self=no
  9757. fi
  9758. fi
  9759. rm -fr conftest*
  9760. fi
  9761. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
  9762. $as_echo "$lt_cv_dlopen_self" >&6; }
  9763. if test "x$lt_cv_dlopen_self" = xyes; then
  9764. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  9765. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
  9766. $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
  9767. if ${lt_cv_dlopen_self_static+:} false; then :
  9768. $as_echo_n "(cached) " >&6
  9769. else
  9770. if test "$cross_compiling" = yes; then :
  9771. lt_cv_dlopen_self_static=cross
  9772. else
  9773. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  9774. lt_status=$lt_dlunknown
  9775. cat > conftest.$ac_ext <<_LT_EOF
  9776. #line $LINENO "configure"
  9777. #include "confdefs.h"
  9778. #if HAVE_DLFCN_H
  9779. #include <dlfcn.h>
  9780. #endif
  9781. #include <stdio.h>
  9782. #ifdef RTLD_GLOBAL
  9783. # define LT_DLGLOBAL RTLD_GLOBAL
  9784. #else
  9785. # ifdef DL_GLOBAL
  9786. # define LT_DLGLOBAL DL_GLOBAL
  9787. # else
  9788. # define LT_DLGLOBAL 0
  9789. # endif
  9790. #endif
  9791. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  9792. find out it does not work in some platform. */
  9793. #ifndef LT_DLLAZY_OR_NOW
  9794. # ifdef RTLD_LAZY
  9795. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  9796. # else
  9797. # ifdef DL_LAZY
  9798. # define LT_DLLAZY_OR_NOW DL_LAZY
  9799. # else
  9800. # ifdef RTLD_NOW
  9801. # define LT_DLLAZY_OR_NOW RTLD_NOW
  9802. # else
  9803. # ifdef DL_NOW
  9804. # define LT_DLLAZY_OR_NOW DL_NOW
  9805. # else
  9806. # define LT_DLLAZY_OR_NOW 0
  9807. # endif
  9808. # endif
  9809. # endif
  9810. # endif
  9811. #endif
  9812. /* When -fvisbility=hidden is used, assume the code has been annotated
  9813. correspondingly for the symbols needed. */
  9814. #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  9815. int fnord () __attribute__((visibility("default")));
  9816. #endif
  9817. int fnord () { return 42; }
  9818. int main ()
  9819. {
  9820. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  9821. int status = $lt_dlunknown;
  9822. if (self)
  9823. {
  9824. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  9825. else
  9826. {
  9827. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  9828. else puts (dlerror ());
  9829. }
  9830. /* dlclose (self); */
  9831. }
  9832. else
  9833. puts (dlerror ());
  9834. return status;
  9835. }
  9836. _LT_EOF
  9837. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  9838. (eval $ac_link) 2>&5
  9839. ac_status=$?
  9840. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9841. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  9842. (./conftest; exit; ) >&5 2>/dev/null
  9843. lt_status=$?
  9844. case x$lt_status in
  9845. x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  9846. x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  9847. x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
  9848. esac
  9849. else :
  9850. # compilation failed
  9851. lt_cv_dlopen_self_static=no
  9852. fi
  9853. fi
  9854. rm -fr conftest*
  9855. fi
  9856. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
  9857. $as_echo "$lt_cv_dlopen_self_static" >&6; }
  9858. fi
  9859. CPPFLAGS="$save_CPPFLAGS"
  9860. LDFLAGS="$save_LDFLAGS"
  9861. LIBS="$save_LIBS"
  9862. ;;
  9863. esac
  9864. case $lt_cv_dlopen_self in
  9865. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  9866. *) enable_dlopen_self=unknown ;;
  9867. esac
  9868. case $lt_cv_dlopen_self_static in
  9869. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  9870. *) enable_dlopen_self_static=unknown ;;
  9871. esac
  9872. fi
  9873. striplib=
  9874. old_striplib=
  9875. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
  9876. $as_echo_n "checking whether stripping libraries is possible... " >&6; }
  9877. if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  9878. test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  9879. test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  9880. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  9881. $as_echo "yes" >&6; }
  9882. else
  9883. # FIXME - insert some real tests, host_os isn't really good enough
  9884. case $host_os in
  9885. darwin*)
  9886. if test -n "$STRIP" ; then
  9887. striplib="$STRIP -x"
  9888. old_striplib="$STRIP -S"
  9889. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  9890. $as_echo "yes" >&6; }
  9891. else
  9892. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9893. $as_echo "no" >&6; }
  9894. fi
  9895. ;;
  9896. *)
  9897. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9898. $as_echo "no" >&6; }
  9899. ;;
  9900. esac
  9901. fi
  9902. # Report which library types will actually be built
  9903. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
  9904. $as_echo_n "checking if libtool supports shared libraries... " >&6; }
  9905. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
  9906. $as_echo "$can_build_shared" >&6; }
  9907. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
  9908. $as_echo_n "checking whether to build shared libraries... " >&6; }
  9909. test "$can_build_shared" = "no" && enable_shared=no
  9910. # On AIX, shared libraries and static libraries use the same namespace, and
  9911. # are all built from PIC.
  9912. case $host_os in
  9913. aix3*)
  9914. test "$enable_shared" = yes && enable_static=no
  9915. if test -n "$RANLIB"; then
  9916. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  9917. postinstall_cmds='$RANLIB $lib'
  9918. fi
  9919. ;;
  9920. aix[4-9]*)
  9921. if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  9922. test "$enable_shared" = yes && enable_static=no
  9923. fi
  9924. ;;
  9925. esac
  9926. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
  9927. $as_echo "$enable_shared" >&6; }
  9928. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
  9929. $as_echo_n "checking whether to build static libraries... " >&6; }
  9930. # Make sure either enable_shared or enable_static is yes.
  9931. test "$enable_shared" = yes || enable_static=yes
  9932. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
  9933. $as_echo "$enable_static" >&6; }
  9934. fi
  9935. ac_ext=c
  9936. ac_cpp='$CPP $CPPFLAGS'
  9937. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  9938. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  9939. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  9940. CC="$lt_save_CC"
  9941. ac_config_commands="$ac_config_commands libtool"
  9942. # Only expand once:
  9943. ac_config_files="$ac_config_files Makefile src/Makefile tests/Makefile"
  9944. cat >confcache <<\_ACEOF
  9945. # This file is a shell script that caches the results of configure
  9946. # tests run on this system so they can be shared between configure
  9947. # scripts and configure runs, see configure's option --config-cache.
  9948. # It is not useful on other systems. If it contains results you don't
  9949. # want to keep, you may remove or edit it.
  9950. #
  9951. # config.status only pays attention to the cache file if you give it
  9952. # the --recheck option to rerun configure.
  9953. #
  9954. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  9955. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  9956. # following values.
  9957. _ACEOF
  9958. # The following way of writing the cache mishandles newlines in values,
  9959. # but we know of no workaround that is simple, portable, and efficient.
  9960. # So, we kill variables containing newlines.
  9961. # Ultrix sh set writes to stderr and can't be redirected directly,
  9962. # and sets the high bit in the cache file unless we assign to the vars.
  9963. (
  9964. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  9965. eval ac_val=\$$ac_var
  9966. case $ac_val in #(
  9967. *${as_nl}*)
  9968. case $ac_var in #(
  9969. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  9970. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  9971. esac
  9972. case $ac_var in #(
  9973. _ | IFS | as_nl) ;; #(
  9974. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  9975. *) { eval $ac_var=; unset $ac_var;} ;;
  9976. esac ;;
  9977. esac
  9978. done
  9979. (set) 2>&1 |
  9980. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  9981. *${as_nl}ac_space=\ *)
  9982. # `set' does not quote correctly, so add quotes: double-quote
  9983. # substitution turns \\\\ into \\, and sed turns \\ into \.
  9984. sed -n \
  9985. "s/'/'\\\\''/g;
  9986. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  9987. ;; #(
  9988. *)
  9989. # `set' quotes correctly as required by POSIX, so do not add quotes.
  9990. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  9991. ;;
  9992. esac |
  9993. sort
  9994. ) |
  9995. sed '
  9996. /^ac_cv_env_/b end
  9997. t clear
  9998. :clear
  9999. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  10000. t end
  10001. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  10002. :end' >>confcache
  10003. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  10004. if test -w "$cache_file"; then
  10005. if test "x$cache_file" != "x/dev/null"; then
  10006. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  10007. $as_echo "$as_me: updating cache $cache_file" >&6;}
  10008. if test ! -f "$cache_file" || test -h "$cache_file"; then
  10009. cat confcache >"$cache_file"
  10010. else
  10011. case $cache_file in #(
  10012. */* | ?:*)
  10013. mv -f confcache "$cache_file"$$ &&
  10014. mv -f "$cache_file"$$ "$cache_file" ;; #(
  10015. *)
  10016. mv -f confcache "$cache_file" ;;
  10017. esac
  10018. fi
  10019. fi
  10020. else
  10021. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  10022. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  10023. fi
  10024. fi
  10025. rm -f confcache
  10026. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  10027. # Let make expand exec_prefix.
  10028. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  10029. # Transform confdefs.h into DEFS.
  10030. # Protect against shell expansion while executing Makefile rules.
  10031. # Protect against Makefile macro expansion.
  10032. #
  10033. # If the first sed substitution is executed (which looks for macros that
  10034. # take arguments), then branch to the quote section. Otherwise,
  10035. # look for a macro that doesn't take arguments.
  10036. ac_script='
  10037. :mline
  10038. /\\$/{
  10039. N
  10040. s,\\\n,,
  10041. b mline
  10042. }
  10043. t clear
  10044. :clear
  10045. s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
  10046. t quote
  10047. s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
  10048. t quote
  10049. b any
  10050. :quote
  10051. s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
  10052. s/\[/\\&/g
  10053. s/\]/\\&/g
  10054. s/\$/$$/g
  10055. H
  10056. :any
  10057. ${
  10058. g
  10059. s/^\n//
  10060. s/\n/ /g
  10061. p
  10062. }
  10063. '
  10064. DEFS=`sed -n "$ac_script" confdefs.h`
  10065. ac_libobjs=
  10066. ac_ltlibobjs=
  10067. U=
  10068. for ac_i in : $LIB@&t@OBJS; do test "x$ac_i" = x: && continue
  10069. # 1. Remove the extension, and $U if already installed.
  10070. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  10071. ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  10072. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  10073. # will be set to the directory where LIBOBJS objects are built.
  10074. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  10075. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  10076. done
  10077. LIB@&t@OBJS=$ac_libobjs
  10078. LTLIBOBJS=$ac_ltlibobjs
  10079. if test -n "$EXEEXT"; then
  10080. am__EXEEXT_TRUE=
  10081. am__EXEEXT_FALSE='#'
  10082. else
  10083. am__EXEEXT_TRUE='#'
  10084. am__EXEEXT_FALSE=
  10085. fi
  10086. if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
  10087. as_fn_error $? "conditional \"AMDEP\" was never defined.
  10088. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  10089. fi
  10090. if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  10091. as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
  10092. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  10093. fi
  10094. if test -z "${HAVE_CHECK_TRUE}" && test -z "${HAVE_CHECK_FALSE}"; then
  10095. as_fn_error $? "conditional \"HAVE_CHECK\" was never defined.
  10096. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  10097. fi
  10098. if test -z "${TARGET_WIN_TRUE}" && test -z "${TARGET_WIN_FALSE}"; then
  10099. as_fn_error $? "conditional \"TARGET_WIN\" was never defined.
  10100. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  10101. fi
  10102. if test -z "${TARGET_LINUX_TRUE}" && test -z "${TARGET_LINUX_FALSE}"; then
  10103. as_fn_error $? "conditional \"TARGET_LINUX\" was never defined.
  10104. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  10105. fi
  10106. : "${CONFIG_STATUS=./config.status}"
  10107. ac_write_fail=0
  10108. ac_clean_files_save=$ac_clean_files
  10109. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  10110. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  10111. $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  10112. as_write_fail=0
  10113. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  10114. #! $SHELL
  10115. # Generated by $as_me.
  10116. # Run this file to recreate the current configuration.
  10117. # Compiler output produced by configure, useful for debugging
  10118. # configure, is in config.log if it exists.
  10119. debug=false
  10120. ac_cs_recheck=false
  10121. ac_cs_silent=false
  10122. SHELL=\${CONFIG_SHELL-$SHELL}
  10123. export SHELL
  10124. _ASEOF
  10125. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  10126. ## -------------------- ##
  10127. ## M4sh Initialization. ##
  10128. ## -------------------- ##
  10129. # Be more Bourne compatible
  10130. DUALCASE=1; export DUALCASE # for MKS sh
  10131. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  10132. emulate sh
  10133. NULLCMD=:
  10134. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  10135. # is contrary to our usage. Disable this feature.
  10136. alias -g '${1+"$@"}'='"$@"'
  10137. setopt NO_GLOB_SUBST
  10138. else
  10139. case `(set -o) 2>/dev/null` in @%:@(
  10140. *posix*) :
  10141. set -o posix ;; @%:@(
  10142. *) :
  10143. ;;
  10144. esac
  10145. fi
  10146. as_nl='
  10147. '
  10148. export as_nl
  10149. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  10150. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  10151. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  10152. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  10153. # Prefer a ksh shell builtin over an external printf program on Solaris,
  10154. # but without wasting forks for bash or zsh.
  10155. if test -z "$BASH_VERSION$ZSH_VERSION" \
  10156. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  10157. as_echo='print -r --'
  10158. as_echo_n='print -rn --'
  10159. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  10160. as_echo='printf %s\n'
  10161. as_echo_n='printf %s'
  10162. else
  10163. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  10164. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  10165. as_echo_n='/usr/ucb/echo -n'
  10166. else
  10167. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  10168. as_echo_n_body='eval
  10169. arg=$1;
  10170. case $arg in @%:@(
  10171. *"$as_nl"*)
  10172. expr "X$arg" : "X\\(.*\\)$as_nl";
  10173. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  10174. esac;
  10175. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  10176. '
  10177. export as_echo_n_body
  10178. as_echo_n='sh -c $as_echo_n_body as_echo'
  10179. fi
  10180. export as_echo_body
  10181. as_echo='sh -c $as_echo_body as_echo'
  10182. fi
  10183. # The user is always right.
  10184. if test "${PATH_SEPARATOR+set}" != set; then
  10185. PATH_SEPARATOR=:
  10186. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  10187. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  10188. PATH_SEPARATOR=';'
  10189. }
  10190. fi
  10191. # IFS
  10192. # We need space, tab and new line, in precisely that order. Quoting is
  10193. # there to prevent editors from complaining about space-tab.
  10194. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  10195. # splitting by setting IFS to empty value.)
  10196. IFS=" "" $as_nl"
  10197. # Find who we are. Look in the path if we contain no directory separator.
  10198. as_myself=
  10199. case $0 in @%:@((
  10200. *[\\/]* ) as_myself=$0 ;;
  10201. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10202. for as_dir in $PATH
  10203. do
  10204. IFS=$as_save_IFS
  10205. test -z "$as_dir" && as_dir=.
  10206. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  10207. done
  10208. IFS=$as_save_IFS
  10209. ;;
  10210. esac
  10211. # We did not find ourselves, most probably we were run as `sh COMMAND'
  10212. # in which case we are not to be found in the path.
  10213. if test "x$as_myself" = x; then
  10214. as_myself=$0
  10215. fi
  10216. if test ! -f "$as_myself"; then
  10217. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  10218. exit 1
  10219. fi
  10220. # Unset variables that we do not need and which cause bugs (e.g. in
  10221. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  10222. # suppresses any "Segmentation fault" message there. '((' could
  10223. # trigger a bug in pdksh 5.2.14.
  10224. for as_var in BASH_ENV ENV MAIL MAILPATH
  10225. do eval test x\${$as_var+set} = xset \
  10226. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  10227. done
  10228. PS1='$ '
  10229. PS2='> '
  10230. PS4='+ '
  10231. # NLS nuisances.
  10232. LC_ALL=C
  10233. export LC_ALL
  10234. LANGUAGE=C
  10235. export LANGUAGE
  10236. # CDPATH.
  10237. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  10238. @%:@ as_fn_error STATUS ERROR [LINENO LOG_FD]
  10239. @%:@ ----------------------------------------
  10240. @%:@ Output "`basename @S|@0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  10241. @%:@ provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  10242. @%:@ script with STATUS, using 1 if that was 0.
  10243. as_fn_error ()
  10244. {
  10245. as_status=$1; test $as_status -eq 0 && as_status=1
  10246. if test "$4"; then
  10247. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  10248. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  10249. fi
  10250. $as_echo "$as_me: error: $2" >&2
  10251. as_fn_exit $as_status
  10252. } @%:@ as_fn_error
  10253. @%:@ as_fn_set_status STATUS
  10254. @%:@ -----------------------
  10255. @%:@ Set @S|@? to STATUS, without forking.
  10256. as_fn_set_status ()
  10257. {
  10258. return $1
  10259. } @%:@ as_fn_set_status
  10260. @%:@ as_fn_exit STATUS
  10261. @%:@ -----------------
  10262. @%:@ Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  10263. as_fn_exit ()
  10264. {
  10265. set +e
  10266. as_fn_set_status $1
  10267. exit $1
  10268. } @%:@ as_fn_exit
  10269. @%:@ as_fn_unset VAR
  10270. @%:@ ---------------
  10271. @%:@ Portably unset VAR.
  10272. as_fn_unset ()
  10273. {
  10274. { eval $1=; unset $1;}
  10275. }
  10276. as_unset=as_fn_unset
  10277. @%:@ as_fn_append VAR VALUE
  10278. @%:@ ----------------------
  10279. @%:@ Append the text in VALUE to the end of the definition contained in VAR. Take
  10280. @%:@ advantage of any shell optimizations that allow amortized linear growth over
  10281. @%:@ repeated appends, instead of the typical quadratic growth present in naive
  10282. @%:@ implementations.
  10283. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  10284. eval 'as_fn_append ()
  10285. {
  10286. eval $1+=\$2
  10287. }'
  10288. else
  10289. as_fn_append ()
  10290. {
  10291. eval $1=\$$1\$2
  10292. }
  10293. fi # as_fn_append
  10294. @%:@ as_fn_arith ARG...
  10295. @%:@ ------------------
  10296. @%:@ Perform arithmetic evaluation on the ARGs, and store the result in the
  10297. @%:@ global @S|@as_val. Take advantage of shells that can avoid forks. The arguments
  10298. @%:@ must be portable across @S|@(()) and expr.
  10299. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  10300. eval 'as_fn_arith ()
  10301. {
  10302. as_val=$(( $* ))
  10303. }'
  10304. else
  10305. as_fn_arith ()
  10306. {
  10307. as_val=`expr "$@" || test $? -eq 1`
  10308. }
  10309. fi # as_fn_arith
  10310. if expr a : '\(a\)' >/dev/null 2>&1 &&
  10311. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  10312. as_expr=expr
  10313. else
  10314. as_expr=false
  10315. fi
  10316. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  10317. as_basename=basename
  10318. else
  10319. as_basename=false
  10320. fi
  10321. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  10322. as_dirname=dirname
  10323. else
  10324. as_dirname=false
  10325. fi
  10326. as_me=`$as_basename -- "$0" ||
  10327. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  10328. X"$0" : 'X\(//\)$' \| \
  10329. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  10330. $as_echo X/"$0" |
  10331. sed '/^.*\/\([^/][^/]*\)\/*$/{
  10332. s//\1/
  10333. q
  10334. }
  10335. /^X\/\(\/\/\)$/{
  10336. s//\1/
  10337. q
  10338. }
  10339. /^X\/\(\/\).*/{
  10340. s//\1/
  10341. q
  10342. }
  10343. s/.*/./; q'`
  10344. # Avoid depending upon Character Ranges.
  10345. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  10346. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  10347. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  10348. as_cr_digits='0123456789'
  10349. as_cr_alnum=$as_cr_Letters$as_cr_digits
  10350. ECHO_C= ECHO_N= ECHO_T=
  10351. case `echo -n x` in @%:@(((((
  10352. -n*)
  10353. case `echo 'xy\c'` in
  10354. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  10355. xy) ECHO_C='\c';;
  10356. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  10357. ECHO_T=' ';;
  10358. esac;;
  10359. *)
  10360. ECHO_N='-n';;
  10361. esac
  10362. rm -f conf$$ conf$$.exe conf$$.file
  10363. if test -d conf$$.dir; then
  10364. rm -f conf$$.dir/conf$$.file
  10365. else
  10366. rm -f conf$$.dir
  10367. mkdir conf$$.dir 2>/dev/null
  10368. fi
  10369. if (echo >conf$$.file) 2>/dev/null; then
  10370. if ln -s conf$$.file conf$$ 2>/dev/null; then
  10371. as_ln_s='ln -s'
  10372. # ... but there are two gotchas:
  10373. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  10374. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  10375. # In both cases, we have to default to `cp -p'.
  10376. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  10377. as_ln_s='cp -p'
  10378. elif ln conf$$.file conf$$ 2>/dev/null; then
  10379. as_ln_s=ln
  10380. else
  10381. as_ln_s='cp -p'
  10382. fi
  10383. else
  10384. as_ln_s='cp -p'
  10385. fi
  10386. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  10387. rmdir conf$$.dir 2>/dev/null
  10388. @%:@ as_fn_mkdir_p
  10389. @%:@ -------------
  10390. @%:@ Create "@S|@as_dir" as a directory, including parents if necessary.
  10391. as_fn_mkdir_p ()
  10392. {
  10393. case $as_dir in #(
  10394. -*) as_dir=./$as_dir;;
  10395. esac
  10396. test -d "$as_dir" || eval $as_mkdir_p || {
  10397. as_dirs=
  10398. while :; do
  10399. case $as_dir in #(
  10400. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  10401. *) as_qdir=$as_dir;;
  10402. esac
  10403. as_dirs="'$as_qdir' $as_dirs"
  10404. as_dir=`$as_dirname -- "$as_dir" ||
  10405. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  10406. X"$as_dir" : 'X\(//\)[^/]' \| \
  10407. X"$as_dir" : 'X\(//\)$' \| \
  10408. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  10409. $as_echo X"$as_dir" |
  10410. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  10411. s//\1/
  10412. q
  10413. }
  10414. /^X\(\/\/\)[^/].*/{
  10415. s//\1/
  10416. q
  10417. }
  10418. /^X\(\/\/\)$/{
  10419. s//\1/
  10420. q
  10421. }
  10422. /^X\(\/\).*/{
  10423. s//\1/
  10424. q
  10425. }
  10426. s/.*/./; q'`
  10427. test -d "$as_dir" && break
  10428. done
  10429. test -z "$as_dirs" || eval "mkdir $as_dirs"
  10430. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  10431. } @%:@ as_fn_mkdir_p
  10432. if mkdir -p . 2>/dev/null; then
  10433. as_mkdir_p='mkdir -p "$as_dir"'
  10434. else
  10435. test -d ./-p && rmdir ./-p
  10436. as_mkdir_p=false
  10437. fi
  10438. if test -x / >/dev/null 2>&1; then
  10439. as_test_x='test -x'
  10440. else
  10441. if ls -dL / >/dev/null 2>&1; then
  10442. as_ls_L_option=L
  10443. else
  10444. as_ls_L_option=
  10445. fi
  10446. as_test_x='
  10447. eval sh -c '\''
  10448. if test -d "$1"; then
  10449. test -d "$1/.";
  10450. else
  10451. case $1 in @%:@(
  10452. -*)set "./$1";;
  10453. esac;
  10454. case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in @%:@((
  10455. ???[sx]*):;;*)false;;esac;fi
  10456. '\'' sh
  10457. '
  10458. fi
  10459. as_executable_p=$as_test_x
  10460. # Sed expression to map a string onto a valid CPP name.
  10461. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  10462. # Sed expression to map a string onto a valid variable name.
  10463. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  10464. exec 6>&1
  10465. ## ----------------------------------- ##
  10466. ## Main body of $CONFIG_STATUS script. ##
  10467. ## ----------------------------------- ##
  10468. _ASEOF
  10469. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  10470. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  10471. # Save the log message, to keep $0 and so on meaningful, and to
  10472. # report actual input values of CONFIG_FILES etc. instead of their
  10473. # values after options handling.
  10474. ac_log="
  10475. This file was extended by OPCUAServer $as_me 1.0, which was
  10476. generated by GNU Autoconf 2.68. Invocation command line was
  10477. CONFIG_FILES = $CONFIG_FILES
  10478. CONFIG_HEADERS = $CONFIG_HEADERS
  10479. CONFIG_LINKS = $CONFIG_LINKS
  10480. CONFIG_COMMANDS = $CONFIG_COMMANDS
  10481. $ $0 $@
  10482. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  10483. "
  10484. _ACEOF
  10485. case $ac_config_files in *"
  10486. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  10487. esac
  10488. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  10489. # Files that config.status was made for.
  10490. config_files="$ac_config_files"
  10491. config_commands="$ac_config_commands"
  10492. _ACEOF
  10493. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  10494. ac_cs_usage="\
  10495. \`$as_me' instantiates files and other configuration actions
  10496. from templates according to the current configuration. Unless the files
  10497. and actions are specified as TAGs, all are instantiated by default.
  10498. Usage: $0 [OPTION]... [TAG]...
  10499. -h, --help print this help, then exit
  10500. -V, --version print version number and configuration settings, then exit
  10501. --config print configuration, then exit
  10502. -q, --quiet, --silent
  10503. do not print progress messages
  10504. -d, --debug don't remove temporary files
  10505. --recheck update $as_me by reconfiguring in the same conditions
  10506. --file=FILE[:TEMPLATE]
  10507. instantiate the configuration file FILE
  10508. Configuration files:
  10509. $config_files
  10510. Configuration commands:
  10511. $config_commands
  10512. Report bugs to the package provider."
  10513. _ACEOF
  10514. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  10515. ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
  10516. ac_cs_version="\\
  10517. OPCUAServer config.status 1.0
  10518. configured by $0, generated by GNU Autoconf 2.68,
  10519. with options \\"\$ac_cs_config\\"
  10520. Copyright (C) 2010 Free Software Foundation, Inc.
  10521. This config.status script is free software; the Free Software Foundation
  10522. gives unlimited permission to copy, distribute and modify it."
  10523. ac_pwd='$ac_pwd'
  10524. srcdir='$srcdir'
  10525. INSTALL='$INSTALL'
  10526. MKDIR_P='$MKDIR_P'
  10527. AWK='$AWK'
  10528. test -n "\$AWK" || AWK=awk
  10529. _ACEOF
  10530. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  10531. # The default lists apply if the user does not specify any file.
  10532. ac_need_defaults=:
  10533. while test $# != 0
  10534. do
  10535. case $1 in
  10536. --*=?*)
  10537. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  10538. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  10539. ac_shift=:
  10540. ;;
  10541. --*=)
  10542. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  10543. ac_optarg=
  10544. ac_shift=:
  10545. ;;
  10546. *)
  10547. ac_option=$1
  10548. ac_optarg=$2
  10549. ac_shift=shift
  10550. ;;
  10551. esac
  10552. case $ac_option in
  10553. # Handling of the options.
  10554. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  10555. ac_cs_recheck=: ;;
  10556. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  10557. $as_echo "$ac_cs_version"; exit ;;
  10558. --config | --confi | --conf | --con | --co | --c )
  10559. $as_echo "$ac_cs_config"; exit ;;
  10560. --debug | --debu | --deb | --de | --d | -d )
  10561. debug=: ;;
  10562. --file | --fil | --fi | --f )
  10563. $ac_shift
  10564. case $ac_optarg in
  10565. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  10566. '') as_fn_error $? "missing file argument" ;;
  10567. esac
  10568. as_fn_append CONFIG_FILES " '$ac_optarg'"
  10569. ac_need_defaults=false;;
  10570. --he | --h | --help | --hel | -h )
  10571. $as_echo "$ac_cs_usage"; exit ;;
  10572. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  10573. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  10574. ac_cs_silent=: ;;
  10575. # This is an error.
  10576. -*) as_fn_error $? "unrecognized option: \`$1'
  10577. Try \`$0 --help' for more information." ;;
  10578. *) as_fn_append ac_config_targets " $1"
  10579. ac_need_defaults=false ;;
  10580. esac
  10581. shift
  10582. done
  10583. ac_configure_extra_args=
  10584. if $ac_cs_silent; then
  10585. exec 6>/dev/null
  10586. ac_configure_extra_args="$ac_configure_extra_args --silent"
  10587. fi
  10588. _ACEOF
  10589. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  10590. if \$ac_cs_recheck; then
  10591. set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  10592. shift
  10593. \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  10594. CONFIG_SHELL='$SHELL'
  10595. export CONFIG_SHELL
  10596. exec "\$@"
  10597. fi
  10598. _ACEOF
  10599. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  10600. exec 5>>config.log
  10601. {
  10602. echo
  10603. sed 'h;s/./-/g;s/^.../@%:@@%:@ /;s/...$/ @%:@@%:@/;p;x;p;x' <<_ASBOX
  10604. @%:@@%:@ Running $as_me. @%:@@%:@
  10605. _ASBOX
  10606. $as_echo "$ac_log"
  10607. } >&5
  10608. _ACEOF
  10609. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  10610. #
  10611. # INIT-COMMANDS
  10612. #
  10613. AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
  10614. # The HP-UX ksh and POSIX shell print the target directory to stdout
  10615. # if CDPATH is set.
  10616. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  10617. sed_quote_subst='$sed_quote_subst'
  10618. double_quote_subst='$double_quote_subst'
  10619. delay_variable_subst='$delay_variable_subst'
  10620. macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
  10621. macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
  10622. enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
  10623. enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
  10624. pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
  10625. enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
  10626. SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
  10627. ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
  10628. PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
  10629. host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
  10630. host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
  10631. host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
  10632. build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
  10633. build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
  10634. build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
  10635. SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
  10636. Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
  10637. GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
  10638. EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
  10639. FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
  10640. LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
  10641. NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
  10642. LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
  10643. max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
  10644. ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
  10645. exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
  10646. lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
  10647. lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
  10648. lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
  10649. lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
  10650. lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
  10651. reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
  10652. reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
  10653. OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
  10654. deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
  10655. file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
  10656. file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
  10657. want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
  10658. DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
  10659. sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
  10660. AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
  10661. AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
  10662. archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
  10663. STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
  10664. RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
  10665. old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  10666. old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  10667. old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
  10668. lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
  10669. CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
  10670. CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
  10671. compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
  10672. GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
  10673. lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
  10674. lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
  10675. lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
  10676. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
  10677. nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
  10678. lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
  10679. objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
  10680. MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
  10681. lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
  10682. lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
  10683. lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
  10684. lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
  10685. lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
  10686. need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
  10687. MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
  10688. DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
  10689. NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
  10690. LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
  10691. OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
  10692. OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
  10693. libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
  10694. shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
  10695. extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  10696. archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
  10697. enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
  10698. export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
  10699. whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
  10700. compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
  10701. old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
  10702. old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  10703. archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
  10704. archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  10705. module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
  10706. module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  10707. with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
  10708. allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
  10709. no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
  10710. hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
  10711. hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
  10712. hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
  10713. hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
  10714. hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
  10715. hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
  10716. hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
  10717. inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
  10718. link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
  10719. always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
  10720. export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
  10721. exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
  10722. include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
  10723. prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
  10724. postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
  10725. file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
  10726. variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
  10727. need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
  10728. need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
  10729. version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
  10730. runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
  10731. shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
  10732. shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
  10733. libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
  10734. library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
  10735. soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
  10736. install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
  10737. postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  10738. postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  10739. finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
  10740. finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
  10741. hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
  10742. sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
  10743. sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
  10744. hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
  10745. enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
  10746. enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
  10747. enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
  10748. old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
  10749. striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
  10750. LTCC='$LTCC'
  10751. LTCFLAGS='$LTCFLAGS'
  10752. compiler='$compiler_DEFAULT'
  10753. # A function that is used when there is no print builtin or printf.
  10754. func_fallback_echo ()
  10755. {
  10756. eval 'cat <<_LTECHO_EOF
  10757. \$1
  10758. _LTECHO_EOF'
  10759. }
  10760. # Quote evaled strings.
  10761. for var in SHELL \
  10762. ECHO \
  10763. PATH_SEPARATOR \
  10764. SED \
  10765. GREP \
  10766. EGREP \
  10767. FGREP \
  10768. LD \
  10769. NM \
  10770. LN_S \
  10771. lt_SP2NL \
  10772. lt_NL2SP \
  10773. reload_flag \
  10774. OBJDUMP \
  10775. deplibs_check_method \
  10776. file_magic_cmd \
  10777. file_magic_glob \
  10778. want_nocaseglob \
  10779. DLLTOOL \
  10780. sharedlib_from_linklib_cmd \
  10781. AR \
  10782. AR_FLAGS \
  10783. archiver_list_spec \
  10784. STRIP \
  10785. RANLIB \
  10786. CC \
  10787. CFLAGS \
  10788. compiler \
  10789. lt_cv_sys_global_symbol_pipe \
  10790. lt_cv_sys_global_symbol_to_cdecl \
  10791. lt_cv_sys_global_symbol_to_c_name_address \
  10792. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
  10793. nm_file_list_spec \
  10794. lt_prog_compiler_no_builtin_flag \
  10795. lt_prog_compiler_pic \
  10796. lt_prog_compiler_wl \
  10797. lt_prog_compiler_static \
  10798. lt_cv_prog_compiler_c_o \
  10799. need_locks \
  10800. MANIFEST_TOOL \
  10801. DSYMUTIL \
  10802. NMEDIT \
  10803. LIPO \
  10804. OTOOL \
  10805. OTOOL64 \
  10806. shrext_cmds \
  10807. export_dynamic_flag_spec \
  10808. whole_archive_flag_spec \
  10809. compiler_needs_object \
  10810. with_gnu_ld \
  10811. allow_undefined_flag \
  10812. no_undefined_flag \
  10813. hardcode_libdir_flag_spec \
  10814. hardcode_libdir_separator \
  10815. exclude_expsyms \
  10816. include_expsyms \
  10817. file_list_spec \
  10818. variables_saved_for_relink \
  10819. libname_spec \
  10820. library_names_spec \
  10821. soname_spec \
  10822. install_override_mode \
  10823. finish_eval \
  10824. old_striplib \
  10825. striplib; do
  10826. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  10827. *[\\\\\\\`\\"\\\$]*)
  10828. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
  10829. ;;
  10830. *)
  10831. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  10832. ;;
  10833. esac
  10834. done
  10835. # Double-quote double-evaled strings.
  10836. for var in reload_cmds \
  10837. old_postinstall_cmds \
  10838. old_postuninstall_cmds \
  10839. old_archive_cmds \
  10840. extract_expsyms_cmds \
  10841. old_archive_from_new_cmds \
  10842. old_archive_from_expsyms_cmds \
  10843. archive_cmds \
  10844. archive_expsym_cmds \
  10845. module_cmds \
  10846. module_expsym_cmds \
  10847. export_symbols_cmds \
  10848. prelink_cmds \
  10849. postlink_cmds \
  10850. postinstall_cmds \
  10851. postuninstall_cmds \
  10852. finish_cmds \
  10853. sys_lib_search_path_spec \
  10854. sys_lib_dlsearch_path_spec; do
  10855. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  10856. *[\\\\\\\`\\"\\\$]*)
  10857. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
  10858. ;;
  10859. *)
  10860. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  10861. ;;
  10862. esac
  10863. done
  10864. ac_aux_dir='$ac_aux_dir'
  10865. xsi_shell='$xsi_shell'
  10866. lt_shell_append='$lt_shell_append'
  10867. # See if we are running on zsh, and set the options which allow our
  10868. # commands through without removal of \ escapes INIT.
  10869. if test -n "\${ZSH_VERSION+set}" ; then
  10870. setopt NO_GLOB_SUBST
  10871. fi
  10872. PACKAGE='$PACKAGE'
  10873. VERSION='$VERSION'
  10874. TIMESTAMP='$TIMESTAMP'
  10875. RM='$RM'
  10876. ofile='$ofile'
  10877. _ACEOF
  10878. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  10879. # Handling of arguments.
  10880. for ac_config_target in $ac_config_targets
  10881. do
  10882. case $ac_config_target in
  10883. "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
  10884. "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
  10885. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  10886. "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
  10887. "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
  10888. *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  10889. esac
  10890. done
  10891. # If the user did not use the arguments to specify the items to instantiate,
  10892. # then the envvar interface is used. Set only those that are not.
  10893. # We use the long form for the default assignment because of an extremely
  10894. # bizarre bug on SunOS 4.1.3.
  10895. if $ac_need_defaults; then
  10896. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  10897. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  10898. fi
  10899. # Have a temporary directory for convenience. Make it in the build tree
  10900. # simply because there is no reason against having it here, and in addition,
  10901. # creating and moving files from /tmp can sometimes cause problems.
  10902. # Hook for its removal unless debugging.
  10903. # Note that there is a small window in which the directory will not be cleaned:
  10904. # after its creation but before its name has been assigned to `$tmp'.
  10905. $debug ||
  10906. {
  10907. tmp= ac_tmp=
  10908. trap 'exit_status=$?
  10909. : "${ac_tmp:=$tmp}"
  10910. { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
  10911. ' 0
  10912. trap 'as_fn_exit 1' 1 2 13 15
  10913. }
  10914. # Create a (secure) tmp directory for tmp files.
  10915. {
  10916. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  10917. test -d "$tmp"
  10918. } ||
  10919. {
  10920. tmp=./conf$$-$RANDOM
  10921. (umask 077 && mkdir "$tmp")
  10922. } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
  10923. ac_tmp=$tmp
  10924. # Set up the scripts for CONFIG_FILES section.
  10925. # No need to generate them if there are no CONFIG_FILES.
  10926. # This happens for instance with `./config.status config.h'.
  10927. if test -n "$CONFIG_FILES"; then
  10928. ac_cr=`echo X | tr X '\015'`
  10929. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  10930. # But we know of no other shell where ac_cr would be empty at this
  10931. # point, so we can use a bashism as a fallback.
  10932. if test "x$ac_cr" = x; then
  10933. eval ac_cr=\$\'\\r\'
  10934. fi
  10935. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  10936. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  10937. ac_cs_awk_cr='\\r'
  10938. else
  10939. ac_cs_awk_cr=$ac_cr
  10940. fi
  10941. echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
  10942. _ACEOF
  10943. {
  10944. echo "cat >conf$$subs.awk <<_ACEOF" &&
  10945. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  10946. echo "_ACEOF"
  10947. } >conf$$subs.sh ||
  10948. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  10949. ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
  10950. ac_delim='%!_!# '
  10951. for ac_last_try in false false false false false :; do
  10952. . ./conf$$subs.sh ||
  10953. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  10954. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  10955. if test $ac_delim_n = $ac_delim_num; then
  10956. break
  10957. elif $ac_last_try; then
  10958. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  10959. else
  10960. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  10961. fi
  10962. done
  10963. rm -f conf$$subs.sh
  10964. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  10965. cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
  10966. _ACEOF
  10967. sed -n '
  10968. h
  10969. s/^/S["/; s/!.*/"]=/
  10970. p
  10971. g
  10972. s/^[^!]*!//
  10973. :repl
  10974. t repl
  10975. s/'"$ac_delim"'$//
  10976. t delim
  10977. :nl
  10978. h
  10979. s/\(.\{148\}\)..*/\1/
  10980. t more1
  10981. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  10982. p
  10983. n
  10984. b repl
  10985. :more1
  10986. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  10987. p
  10988. g
  10989. s/.\{148\}//
  10990. t nl
  10991. :delim
  10992. h
  10993. s/\(.\{148\}\)..*/\1/
  10994. t more2
  10995. s/["\\]/\\&/g; s/^/"/; s/$/"/
  10996. p
  10997. b
  10998. :more2
  10999. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  11000. p
  11001. g
  11002. s/.\{148\}//
  11003. t delim
  11004. ' <conf$$subs.awk | sed '
  11005. /^[^""]/{
  11006. N
  11007. s/\n//
  11008. }
  11009. ' >>$CONFIG_STATUS || ac_write_fail=1
  11010. rm -f conf$$subs.awk
  11011. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  11012. _ACAWK
  11013. cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
  11014. for (key in S) S_is_set[key] = 1
  11015. FS = ""
  11016. }
  11017. {
  11018. line = $ 0
  11019. nfields = split(line, field, "@")
  11020. substed = 0
  11021. len = length(field[1])
  11022. for (i = 2; i < nfields; i++) {
  11023. key = field[i]
  11024. keylen = length(key)
  11025. if (S_is_set[key]) {
  11026. value = S[key]
  11027. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  11028. len += length(value) + length(field[++i])
  11029. substed = 1
  11030. } else
  11031. len += 1 + keylen
  11032. }
  11033. print line
  11034. }
  11035. _ACAWK
  11036. _ACEOF
  11037. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  11038. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  11039. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  11040. else
  11041. cat
  11042. fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
  11043. || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
  11044. _ACEOF
  11045. # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
  11046. # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
  11047. # trailing colons and then remove the whole line if VPATH becomes empty
  11048. # (actually we leave an empty line to preserve line numbers).
  11049. if test "x$srcdir" = x.; then
  11050. ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
  11051. h
  11052. s///
  11053. s/^/:/
  11054. s/[ ]*$/:/
  11055. s/:\$(srcdir):/:/g
  11056. s/:\${srcdir}:/:/g
  11057. s/:@srcdir@:/:/g
  11058. s/^:*//
  11059. s/:*$//
  11060. x
  11061. s/\(=[ ]*\).*/\1/
  11062. G
  11063. s/\n//
  11064. s/^[^=]*=[ ]*$//
  11065. }'
  11066. fi
  11067. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  11068. fi # test -n "$CONFIG_FILES"
  11069. eval set X " :F $CONFIG_FILES :C $CONFIG_COMMANDS"
  11070. shift
  11071. for ac_tag
  11072. do
  11073. case $ac_tag in
  11074. :[FHLC]) ac_mode=$ac_tag; continue;;
  11075. esac
  11076. case $ac_mode$ac_tag in
  11077. :[FHL]*:*);;
  11078. :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
  11079. :[FH]-) ac_tag=-:-;;
  11080. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  11081. esac
  11082. ac_save_IFS=$IFS
  11083. IFS=:
  11084. set x $ac_tag
  11085. IFS=$ac_save_IFS
  11086. shift
  11087. ac_file=$1
  11088. shift
  11089. case $ac_mode in
  11090. :L) ac_source=$1;;
  11091. :[FH])
  11092. ac_file_inputs=
  11093. for ac_f
  11094. do
  11095. case $ac_f in
  11096. -) ac_f="$ac_tmp/stdin";;
  11097. *) # Look for the file first in the build tree, then in the source tree
  11098. # (if the path is not absolute). The absolute path cannot be DOS-style,
  11099. # because $ac_f cannot contain `:'.
  11100. test -f "$ac_f" ||
  11101. case $ac_f in
  11102. [\\/$]*) false;;
  11103. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  11104. esac ||
  11105. as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  11106. esac
  11107. case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  11108. as_fn_append ac_file_inputs " '$ac_f'"
  11109. done
  11110. # Let's still pretend it is `configure' which instantiates (i.e., don't
  11111. # use $as_me), people would be surprised to read:
  11112. # /* config.h. Generated by config.status. */
  11113. configure_input='Generated from '`
  11114. $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  11115. `' by configure.'
  11116. if test x"$ac_file" != x-; then
  11117. configure_input="$ac_file. $configure_input"
  11118. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  11119. $as_echo "$as_me: creating $ac_file" >&6;}
  11120. fi
  11121. # Neutralize special characters interpreted by sed in replacement strings.
  11122. case $configure_input in #(
  11123. *\&* | *\|* | *\\* )
  11124. ac_sed_conf_input=`$as_echo "$configure_input" |
  11125. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  11126. *) ac_sed_conf_input=$configure_input;;
  11127. esac
  11128. case $ac_tag in
  11129. *:-:* | *:-) cat >"$ac_tmp/stdin" \
  11130. || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
  11131. esac
  11132. ;;
  11133. esac
  11134. ac_dir=`$as_dirname -- "$ac_file" ||
  11135. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  11136. X"$ac_file" : 'X\(//\)[^/]' \| \
  11137. X"$ac_file" : 'X\(//\)$' \| \
  11138. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  11139. $as_echo X"$ac_file" |
  11140. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  11141. s//\1/
  11142. q
  11143. }
  11144. /^X\(\/\/\)[^/].*/{
  11145. s//\1/
  11146. q
  11147. }
  11148. /^X\(\/\/\)$/{
  11149. s//\1/
  11150. q
  11151. }
  11152. /^X\(\/\).*/{
  11153. s//\1/
  11154. q
  11155. }
  11156. s/.*/./; q'`
  11157. as_dir="$ac_dir"; as_fn_mkdir_p
  11158. ac_builddir=.
  11159. case "$ac_dir" in
  11160. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  11161. *)
  11162. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  11163. # A ".." for each directory in $ac_dir_suffix.
  11164. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  11165. case $ac_top_builddir_sub in
  11166. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  11167. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  11168. esac ;;
  11169. esac
  11170. ac_abs_top_builddir=$ac_pwd
  11171. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  11172. # for backward compatibility:
  11173. ac_top_builddir=$ac_top_build_prefix
  11174. case $srcdir in
  11175. .) # We are building in place.
  11176. ac_srcdir=.
  11177. ac_top_srcdir=$ac_top_builddir_sub
  11178. ac_abs_top_srcdir=$ac_pwd ;;
  11179. [\\/]* | ?:[\\/]* ) # Absolute name.
  11180. ac_srcdir=$srcdir$ac_dir_suffix;
  11181. ac_top_srcdir=$srcdir
  11182. ac_abs_top_srcdir=$srcdir ;;
  11183. *) # Relative name.
  11184. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  11185. ac_top_srcdir=$ac_top_build_prefix$srcdir
  11186. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  11187. esac
  11188. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  11189. case $ac_mode in
  11190. :F)
  11191. #
  11192. # CONFIG_FILE
  11193. #
  11194. case $INSTALL in
  11195. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  11196. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  11197. esac
  11198. ac_MKDIR_P=$MKDIR_P
  11199. case $MKDIR_P in
  11200. [\\/$]* | ?:[\\/]* ) ;;
  11201. */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
  11202. esac
  11203. _ACEOF
  11204. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  11205. # If the template does not know about datarootdir, expand it.
  11206. # FIXME: This hack should be removed a few years after 2.60.
  11207. ac_datarootdir_hack=; ac_datarootdir_seen=
  11208. ac_sed_dataroot='
  11209. /datarootdir/ {
  11210. p
  11211. q
  11212. }
  11213. /@datadir@/p
  11214. /@docdir@/p
  11215. /@infodir@/p
  11216. /@localedir@/p
  11217. /@mandir@/p'
  11218. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  11219. *datarootdir*) ac_datarootdir_seen=yes;;
  11220. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  11221. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  11222. $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  11223. _ACEOF
  11224. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  11225. ac_datarootdir_hack='
  11226. s&@datadir@&$datadir&g
  11227. s&@docdir@&$docdir&g
  11228. s&@infodir@&$infodir&g
  11229. s&@localedir@&$localedir&g
  11230. s&@mandir@&$mandir&g
  11231. s&\\\${datarootdir}&$datarootdir&g' ;;
  11232. esac
  11233. _ACEOF
  11234. # Neutralize VPATH when `$srcdir' = `.'.
  11235. # Shell code in configure.ac might set extrasub.
  11236. # FIXME: do we really want to maintain this feature?
  11237. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  11238. ac_sed_extra="$ac_vpsub
  11239. $extrasub
  11240. _ACEOF
  11241. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  11242. :t
  11243. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  11244. s|@configure_input@|$ac_sed_conf_input|;t t
  11245. s&@top_builddir@&$ac_top_builddir_sub&;t t
  11246. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  11247. s&@srcdir@&$ac_srcdir&;t t
  11248. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  11249. s&@top_srcdir@&$ac_top_srcdir&;t t
  11250. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  11251. s&@builddir@&$ac_builddir&;t t
  11252. s&@abs_builddir@&$ac_abs_builddir&;t t
  11253. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  11254. s&@INSTALL@&$ac_INSTALL&;t t
  11255. s&@MKDIR_P@&$ac_MKDIR_P&;t t
  11256. $ac_datarootdir_hack
  11257. "
  11258. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
  11259. >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  11260. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  11261. { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
  11262. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
  11263. "$ac_tmp/out"`; test -z "$ac_out"; } &&
  11264. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  11265. which seems to be undefined. Please make sure it is defined" >&5
  11266. $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  11267. which seems to be undefined. Please make sure it is defined" >&2;}
  11268. rm -f "$ac_tmp/stdin"
  11269. case $ac_file in
  11270. -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
  11271. *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
  11272. esac \
  11273. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  11274. ;;
  11275. :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
  11276. $as_echo "$as_me: executing $ac_file commands" >&6;}
  11277. ;;
  11278. esac
  11279. case $ac_file$ac_mode in
  11280. "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
  11281. # Autoconf 2.62 quotes --file arguments for eval, but not when files
  11282. # are listed without --file. Let's play safe and only enable the eval
  11283. # if we detect the quoting.
  11284. case $CONFIG_FILES in
  11285. *\'*) eval set x "$CONFIG_FILES" ;;
  11286. *) set x $CONFIG_FILES ;;
  11287. esac
  11288. shift
  11289. for mf
  11290. do
  11291. # Strip MF so we end up with the name of the file.
  11292. mf=`echo "$mf" | sed -e 's/:.*$//'`
  11293. # Check whether this is an Automake generated Makefile or not.
  11294. # We used to match only the files named `Makefile.in', but
  11295. # some people rename them; so instead we look at the file content.
  11296. # Grep'ing the first line is not enough: some people post-process
  11297. # each Makefile.in and add a new line on top of each file to say so.
  11298. # Grep'ing the whole file is not good either: AIX grep has a line
  11299. # limit of 2048, but all sed's we know have understand at least 4000.
  11300. if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
  11301. dirpart=`$as_dirname -- "$mf" ||
  11302. $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  11303. X"$mf" : 'X\(//\)[^/]' \| \
  11304. X"$mf" : 'X\(//\)$' \| \
  11305. X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
  11306. $as_echo X"$mf" |
  11307. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  11308. s//\1/
  11309. q
  11310. }
  11311. /^X\(\/\/\)[^/].*/{
  11312. s//\1/
  11313. q
  11314. }
  11315. /^X\(\/\/\)$/{
  11316. s//\1/
  11317. q
  11318. }
  11319. /^X\(\/\).*/{
  11320. s//\1/
  11321. q
  11322. }
  11323. s/.*/./; q'`
  11324. else
  11325. continue
  11326. fi
  11327. # Extract the definition of DEPDIR, am__include, and am__quote
  11328. # from the Makefile without running `make'.
  11329. DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  11330. test -z "$DEPDIR" && continue
  11331. am__include=`sed -n 's/^am__include = //p' < "$mf"`
  11332. test -z "am__include" && continue
  11333. am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
  11334. # When using ansi2knr, U may be empty or an underscore; expand it
  11335. U=`sed -n 's/^U = //p' < "$mf"`
  11336. # Find all dependency output files, they are included files with
  11337. # $(DEPDIR) in their names. We invoke sed twice because it is the
  11338. # simplest approach to changing $(DEPDIR) to its actual value in the
  11339. # expansion.
  11340. for file in `sed -n "
  11341. s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
  11342. sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
  11343. # Make sure the directory exists.
  11344. test -f "$dirpart/$file" && continue
  11345. fdir=`$as_dirname -- "$file" ||
  11346. $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  11347. X"$file" : 'X\(//\)[^/]' \| \
  11348. X"$file" : 'X\(//\)$' \| \
  11349. X"$file" : 'X\(/\)' \| . 2>/dev/null ||
  11350. $as_echo X"$file" |
  11351. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  11352. s//\1/
  11353. q
  11354. }
  11355. /^X\(\/\/\)[^/].*/{
  11356. s//\1/
  11357. q
  11358. }
  11359. /^X\(\/\/\)$/{
  11360. s//\1/
  11361. q
  11362. }
  11363. /^X\(\/\).*/{
  11364. s//\1/
  11365. q
  11366. }
  11367. s/.*/./; q'`
  11368. as_dir=$dirpart/$fdir; as_fn_mkdir_p
  11369. # echo "creating $dirpart/$file"
  11370. echo '# dummy' > "$dirpart/$file"
  11371. done
  11372. done
  11373. }
  11374. ;;
  11375. "libtool":C)
  11376. # See if we are running on zsh, and set the options which allow our
  11377. # commands through without removal of \ escapes.
  11378. if test -n "${ZSH_VERSION+set}" ; then
  11379. setopt NO_GLOB_SUBST
  11380. fi
  11381. cfgfile="${ofile}T"
  11382. trap "$RM \"$cfgfile\"; exit 1" 1 2 15
  11383. $RM "$cfgfile"
  11384. cat <<_LT_EOF >> "$cfgfile"
  11385. #! $SHELL
  11386. # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
  11387. # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
  11388. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  11389. # NOTE: Changes made to this file will be lost: look at ltmain.sh.
  11390. #
  11391. # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
  11392. # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
  11393. # Foundation, Inc.
  11394. # Written by Gordon Matzigkeit, 1996
  11395. #
  11396. # This file is part of GNU Libtool.
  11397. #
  11398. # GNU Libtool is free software; you can redistribute it and/or
  11399. # modify it under the terms of the GNU General Public License as
  11400. # published by the Free Software Foundation; either version 2 of
  11401. # the License, or (at your option) any later version.
  11402. #
  11403. # As a special exception to the GNU General Public License,
  11404. # if you distribute this file as part of a program or library that
  11405. # is built using GNU Libtool, you may include this file under the
  11406. # same distribution terms that you use for the rest of that program.
  11407. #
  11408. # GNU Libtool is distributed in the hope that it will be useful,
  11409. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  11410. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  11411. # GNU General Public License for more details.
  11412. #
  11413. # You should have received a copy of the GNU General Public License
  11414. # along with GNU Libtool; see the file COPYING. If not, a copy
  11415. # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
  11416. # obtained by writing to the Free Software Foundation, Inc.,
  11417. # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  11418. # The names of the tagged configurations supported by this script.
  11419. available_tags=""
  11420. # ### BEGIN LIBTOOL CONFIG
  11421. # Which release of libtool.m4 was used?
  11422. macro_version=$macro_version
  11423. macro_revision=$macro_revision
  11424. # Whether or not to build shared libraries.
  11425. build_libtool_libs=$enable_shared
  11426. # Whether or not to build static libraries.
  11427. build_old_libs=$enable_static
  11428. # What type of objects to build.
  11429. pic_mode=$pic_mode
  11430. # Whether or not to optimize for fast installation.
  11431. fast_install=$enable_fast_install
  11432. # Shell to use when invoking shell scripts.
  11433. SHELL=$lt_SHELL
  11434. # An echo program that protects backslashes.
  11435. ECHO=$lt_ECHO
  11436. # The PATH separator for the build system.
  11437. PATH_SEPARATOR=$lt_PATH_SEPARATOR
  11438. # The host system.
  11439. host_alias=$host_alias
  11440. host=$host
  11441. host_os=$host_os
  11442. # The build system.
  11443. build_alias=$build_alias
  11444. build=$build
  11445. build_os=$build_os
  11446. # A sed program that does not truncate output.
  11447. SED=$lt_SED
  11448. # Sed that helps us avoid accidentally triggering echo(1) options like -n.
  11449. Xsed="\$SED -e 1s/^X//"
  11450. # A grep program that handles long lines.
  11451. GREP=$lt_GREP
  11452. # An ERE matcher.
  11453. EGREP=$lt_EGREP
  11454. # A literal string matcher.
  11455. FGREP=$lt_FGREP
  11456. # A BSD- or MS-compatible name lister.
  11457. NM=$lt_NM
  11458. # Whether we need soft or hard links.
  11459. LN_S=$lt_LN_S
  11460. # What is the maximum length of a command?
  11461. max_cmd_len=$max_cmd_len
  11462. # Object file suffix (normally "o").
  11463. objext=$ac_objext
  11464. # Executable file suffix (normally "").
  11465. exeext=$exeext
  11466. # whether the shell understands "unset".
  11467. lt_unset=$lt_unset
  11468. # turn spaces into newlines.
  11469. SP2NL=$lt_lt_SP2NL
  11470. # turn newlines into spaces.
  11471. NL2SP=$lt_lt_NL2SP
  11472. # convert \$build file names to \$host format.
  11473. to_host_file_cmd=$lt_cv_to_host_file_cmd
  11474. # convert \$build files to toolchain format.
  11475. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  11476. # An object symbol dumper.
  11477. OBJDUMP=$lt_OBJDUMP
  11478. # Method to check whether dependent libraries are shared objects.
  11479. deplibs_check_method=$lt_deplibs_check_method
  11480. # Command to use when deplibs_check_method = "file_magic".
  11481. file_magic_cmd=$lt_file_magic_cmd
  11482. # How to find potential files when deplibs_check_method = "file_magic".
  11483. file_magic_glob=$lt_file_magic_glob
  11484. # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
  11485. want_nocaseglob=$lt_want_nocaseglob
  11486. # DLL creation program.
  11487. DLLTOOL=$lt_DLLTOOL
  11488. # Command to associate shared and link libraries.
  11489. sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
  11490. # The archiver.
  11491. AR=$lt_AR
  11492. # Flags to create an archive.
  11493. AR_FLAGS=$lt_AR_FLAGS
  11494. # How to feed a file listing to the archiver.
  11495. archiver_list_spec=$lt_archiver_list_spec
  11496. # A symbol stripping program.
  11497. STRIP=$lt_STRIP
  11498. # Commands used to install an old-style archive.
  11499. RANLIB=$lt_RANLIB
  11500. old_postinstall_cmds=$lt_old_postinstall_cmds
  11501. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  11502. # Whether to use a lock for old archive extraction.
  11503. lock_old_archive_extraction=$lock_old_archive_extraction
  11504. # A C compiler.
  11505. LTCC=$lt_CC
  11506. # LTCC compiler flags.
  11507. LTCFLAGS=$lt_CFLAGS
  11508. # Take the output of nm and produce a listing of raw symbols and C names.
  11509. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  11510. # Transform the output of nm in a proper C declaration.
  11511. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  11512. # Transform the output of nm in a C name address pair.
  11513. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  11514. # Transform the output of nm in a C name address pair when lib prefix is needed.
  11515. global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
  11516. # Specify filename containing input files for \$NM.
  11517. nm_file_list_spec=$lt_nm_file_list_spec
  11518. # The root where to search for dependent libraries,and in which our libraries should be installed.
  11519. lt_sysroot=$lt_sysroot
  11520. # The name of the directory that contains temporary libtool files.
  11521. objdir=$objdir
  11522. # Used to examine libraries when file_magic_cmd begins with "file".
  11523. MAGIC_CMD=$MAGIC_CMD
  11524. # Must we lock files when doing compilation?
  11525. need_locks=$lt_need_locks
  11526. # Manifest tool.
  11527. MANIFEST_TOOL=$lt_MANIFEST_TOOL
  11528. # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
  11529. DSYMUTIL=$lt_DSYMUTIL
  11530. # Tool to change global to local symbols on Mac OS X.
  11531. NMEDIT=$lt_NMEDIT
  11532. # Tool to manipulate fat objects and archives on Mac OS X.
  11533. LIPO=$lt_LIPO
  11534. # ldd/readelf like tool for Mach-O binaries on Mac OS X.
  11535. OTOOL=$lt_OTOOL
  11536. # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
  11537. OTOOL64=$lt_OTOOL64
  11538. # Old archive suffix (normally "a").
  11539. libext=$libext
  11540. # Shared library suffix (normally ".so").
  11541. shrext_cmds=$lt_shrext_cmds
  11542. # The commands to extract the exported symbol list from a shared archive.
  11543. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  11544. # Variables whose values should be saved in libtool wrapper scripts and
  11545. # restored at link time.
  11546. variables_saved_for_relink=$lt_variables_saved_for_relink
  11547. # Do we need the "lib" prefix for modules?
  11548. need_lib_prefix=$need_lib_prefix
  11549. # Do we need a version for libraries?
  11550. need_version=$need_version
  11551. # Library versioning type.
  11552. version_type=$version_type
  11553. # Shared library runtime path variable.
  11554. runpath_var=$runpath_var
  11555. # Shared library path variable.
  11556. shlibpath_var=$shlibpath_var
  11557. # Is shlibpath searched before the hard-coded library search path?
  11558. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  11559. # Format of library name prefix.
  11560. libname_spec=$lt_libname_spec
  11561. # List of archive names. First name is the real one, the rest are links.
  11562. # The last name is the one that the linker finds with -lNAME
  11563. library_names_spec=$lt_library_names_spec
  11564. # The coded name of the library, if different from the real name.
  11565. soname_spec=$lt_soname_spec
  11566. # Permission mode override for installation of shared libraries.
  11567. install_override_mode=$lt_install_override_mode
  11568. # Command to use after installation of a shared archive.
  11569. postinstall_cmds=$lt_postinstall_cmds
  11570. # Command to use after uninstallation of a shared archive.
  11571. postuninstall_cmds=$lt_postuninstall_cmds
  11572. # Commands used to finish a libtool library installation in a directory.
  11573. finish_cmds=$lt_finish_cmds
  11574. # As "finish_cmds", except a single script fragment to be evaled but
  11575. # not shown.
  11576. finish_eval=$lt_finish_eval
  11577. # Whether we should hardcode library paths into libraries.
  11578. hardcode_into_libs=$hardcode_into_libs
  11579. # Compile-time system search path for libraries.
  11580. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  11581. # Run-time system search path for libraries.
  11582. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  11583. # Whether dlopen is supported.
  11584. dlopen_support=$enable_dlopen
  11585. # Whether dlopen of programs is supported.
  11586. dlopen_self=$enable_dlopen_self
  11587. # Whether dlopen of statically linked programs is supported.
  11588. dlopen_self_static=$enable_dlopen_self_static
  11589. # Commands to strip libraries.
  11590. old_striplib=$lt_old_striplib
  11591. striplib=$lt_striplib
  11592. # The linker used to build libraries.
  11593. LD=$lt_LD
  11594. # How to create reloadable object files.
  11595. reload_flag=$lt_reload_flag
  11596. reload_cmds=$lt_reload_cmds
  11597. # Commands used to build an old-style archive.
  11598. old_archive_cmds=$lt_old_archive_cmds
  11599. # A language specific compiler.
  11600. CC=$lt_compiler
  11601. # Is the compiler the GNU compiler?
  11602. with_gcc=$GCC
  11603. # Compiler flag to turn off builtin functions.
  11604. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  11605. # Additional compiler flags for building library objects.
  11606. pic_flag=$lt_lt_prog_compiler_pic
  11607. # How to pass a linker flag through the compiler.
  11608. wl=$lt_lt_prog_compiler_wl
  11609. # Compiler flag to prevent dynamic linking.
  11610. link_static_flag=$lt_lt_prog_compiler_static
  11611. # Does compiler simultaneously support -c and -o options?
  11612. compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  11613. # Whether or not to add -lc for building shared libraries.
  11614. build_libtool_need_lc=$archive_cmds_need_lc
  11615. # Whether or not to disallow shared libs when runtime libs are static.
  11616. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  11617. # Compiler flag to allow reflexive dlopens.
  11618. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  11619. # Compiler flag to generate shared objects directly from archives.
  11620. whole_archive_flag_spec=$lt_whole_archive_flag_spec
  11621. # Whether the compiler copes with passing no objects directly.
  11622. compiler_needs_object=$lt_compiler_needs_object
  11623. # Create an old-style archive from a shared archive.
  11624. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  11625. # Create a temporary old-style archive to link instead of a shared archive.
  11626. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  11627. # Commands used to build a shared archive.
  11628. archive_cmds=$lt_archive_cmds
  11629. archive_expsym_cmds=$lt_archive_expsym_cmds
  11630. # Commands used to build a loadable module if different from building
  11631. # a shared archive.
  11632. module_cmds=$lt_module_cmds
  11633. module_expsym_cmds=$lt_module_expsym_cmds
  11634. # Whether we are building with GNU ld or not.
  11635. with_gnu_ld=$lt_with_gnu_ld
  11636. # Flag that allows shared libraries with undefined symbols to be built.
  11637. allow_undefined_flag=$lt_allow_undefined_flag
  11638. # Flag that enforces no undefined symbols.
  11639. no_undefined_flag=$lt_no_undefined_flag
  11640. # Flag to hardcode \$libdir into a binary during linking.
  11641. # This must work even if \$libdir does not exist
  11642. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  11643. # Whether we need a single "-rpath" flag with a separated argument.
  11644. hardcode_libdir_separator=$lt_hardcode_libdir_separator
  11645. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  11646. # DIR into the resulting binary.
  11647. hardcode_direct=$hardcode_direct
  11648. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  11649. # DIR into the resulting binary and the resulting library dependency is
  11650. # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
  11651. # library is relocated.
  11652. hardcode_direct_absolute=$hardcode_direct_absolute
  11653. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  11654. # into the resulting binary.
  11655. hardcode_minus_L=$hardcode_minus_L
  11656. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  11657. # into the resulting binary.
  11658. hardcode_shlibpath_var=$hardcode_shlibpath_var
  11659. # Set to "yes" if building a shared library automatically hardcodes DIR
  11660. # into the library and all subsequent libraries and executables linked
  11661. # against it.
  11662. hardcode_automatic=$hardcode_automatic
  11663. # Set to yes if linker adds runtime paths of dependent libraries
  11664. # to runtime path list.
  11665. inherit_rpath=$inherit_rpath
  11666. # Whether libtool must link a program against all its dependency libraries.
  11667. link_all_deplibs=$link_all_deplibs
  11668. # Set to "yes" if exported symbols are required.
  11669. always_export_symbols=$always_export_symbols
  11670. # The commands to list exported symbols.
  11671. export_symbols_cmds=$lt_export_symbols_cmds
  11672. # Symbols that should not be listed in the preloaded symbols.
  11673. exclude_expsyms=$lt_exclude_expsyms
  11674. # Symbols that must always be exported.
  11675. include_expsyms=$lt_include_expsyms
  11676. # Commands necessary for linking programs (against libraries) with templates.
  11677. prelink_cmds=$lt_prelink_cmds
  11678. # Commands necessary for finishing linking programs.
  11679. postlink_cmds=$lt_postlink_cmds
  11680. # Specify filename containing input files.
  11681. file_list_spec=$lt_file_list_spec
  11682. # How to hardcode a shared library path into an executable.
  11683. hardcode_action=$hardcode_action
  11684. # ### END LIBTOOL CONFIG
  11685. _LT_EOF
  11686. case $host_os in
  11687. aix3*)
  11688. cat <<\_LT_EOF >> "$cfgfile"
  11689. # AIX sometimes has problems with the GCC collect2 program. For some
  11690. # reason, if we set the COLLECT_NAMES environment variable, the problems
  11691. # vanish in a puff of smoke.
  11692. if test "X${COLLECT_NAMES+set}" != Xset; then
  11693. COLLECT_NAMES=
  11694. export COLLECT_NAMES
  11695. fi
  11696. _LT_EOF
  11697. ;;
  11698. esac
  11699. ltmain="$ac_aux_dir/ltmain.sh"
  11700. # We use sed instead of cat because bash on DJGPP gets confused if
  11701. # if finds mixed CR/LF and LF-only lines. Since sed operates in
  11702. # text mode, it properly converts lines to CR/LF. This bash problem
  11703. # is reportedly fixed, but why not run on old versions too?
  11704. sed '$q' "$ltmain" >> "$cfgfile" \
  11705. || (rm -f "$cfgfile"; exit 1)
  11706. if test x"$xsi_shell" = xyes; then
  11707. sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
  11708. func_dirname ()\
  11709. {\
  11710. \ case ${1} in\
  11711. \ */*) func_dirname_result="${1%/*}${2}" ;;\
  11712. \ * ) func_dirname_result="${3}" ;;\
  11713. \ esac\
  11714. } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
  11715. && mv -f "$cfgfile.tmp" "$cfgfile" \
  11716. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  11717. test 0 -eq $? || _lt_function_replace_fail=:
  11718. sed -e '/^func_basename ()$/,/^} # func_basename /c\
  11719. func_basename ()\
  11720. {\
  11721. \ func_basename_result="${1##*/}"\
  11722. } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
  11723. && mv -f "$cfgfile.tmp" "$cfgfile" \
  11724. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  11725. test 0 -eq $? || _lt_function_replace_fail=:
  11726. sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
  11727. func_dirname_and_basename ()\
  11728. {\
  11729. \ case ${1} in\
  11730. \ */*) func_dirname_result="${1%/*}${2}" ;;\
  11731. \ * ) func_dirname_result="${3}" ;;\
  11732. \ esac\
  11733. \ func_basename_result="${1##*/}"\
  11734. } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
  11735. && mv -f "$cfgfile.tmp" "$cfgfile" \
  11736. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  11737. test 0 -eq $? || _lt_function_replace_fail=:
  11738. sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
  11739. func_stripname ()\
  11740. {\
  11741. \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
  11742. \ # positional parameters, so assign one to ordinary parameter first.\
  11743. \ func_stripname_result=${3}\
  11744. \ func_stripname_result=${func_stripname_result#"${1}"}\
  11745. \ func_stripname_result=${func_stripname_result%"${2}"}\
  11746. } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
  11747. && mv -f "$cfgfile.tmp" "$cfgfile" \
  11748. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  11749. test 0 -eq $? || _lt_function_replace_fail=:
  11750. sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
  11751. func_split_long_opt ()\
  11752. {\
  11753. \ func_split_long_opt_name=${1%%=*}\
  11754. \ func_split_long_opt_arg=${1#*=}\
  11755. } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
  11756. && mv -f "$cfgfile.tmp" "$cfgfile" \
  11757. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  11758. test 0 -eq $? || _lt_function_replace_fail=:
  11759. sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
  11760. func_split_short_opt ()\
  11761. {\
  11762. \ func_split_short_opt_arg=${1#??}\
  11763. \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
  11764. } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
  11765. && mv -f "$cfgfile.tmp" "$cfgfile" \
  11766. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  11767. test 0 -eq $? || _lt_function_replace_fail=:
  11768. sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
  11769. func_lo2o ()\
  11770. {\
  11771. \ case ${1} in\
  11772. \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
  11773. \ *) func_lo2o_result=${1} ;;\
  11774. \ esac\
  11775. } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
  11776. && mv -f "$cfgfile.tmp" "$cfgfile" \
  11777. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  11778. test 0 -eq $? || _lt_function_replace_fail=:
  11779. sed -e '/^func_xform ()$/,/^} # func_xform /c\
  11780. func_xform ()\
  11781. {\
  11782. func_xform_result=${1%.*}.lo\
  11783. } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
  11784. && mv -f "$cfgfile.tmp" "$cfgfile" \
  11785. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  11786. test 0 -eq $? || _lt_function_replace_fail=:
  11787. sed -e '/^func_arith ()$/,/^} # func_arith /c\
  11788. func_arith ()\
  11789. {\
  11790. func_arith_result=$(( $* ))\
  11791. } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
  11792. && mv -f "$cfgfile.tmp" "$cfgfile" \
  11793. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  11794. test 0 -eq $? || _lt_function_replace_fail=:
  11795. sed -e '/^func_len ()$/,/^} # func_len /c\
  11796. func_len ()\
  11797. {\
  11798. func_len_result=${#1}\
  11799. } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
  11800. && mv -f "$cfgfile.tmp" "$cfgfile" \
  11801. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  11802. test 0 -eq $? || _lt_function_replace_fail=:
  11803. fi
  11804. if test x"$lt_shell_append" = xyes; then
  11805. sed -e '/^func_append ()$/,/^} # func_append /c\
  11806. func_append ()\
  11807. {\
  11808. eval "${1}+=\\${2}"\
  11809. } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
  11810. && mv -f "$cfgfile.tmp" "$cfgfile" \
  11811. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  11812. test 0 -eq $? || _lt_function_replace_fail=:
  11813. sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
  11814. func_append_quoted ()\
  11815. {\
  11816. \ func_quote_for_eval "${2}"\
  11817. \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
  11818. } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
  11819. && mv -f "$cfgfile.tmp" "$cfgfile" \
  11820. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  11821. test 0 -eq $? || _lt_function_replace_fail=:
  11822. # Save a `func_append' function call where possible by direct use of '+='
  11823. sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
  11824. && mv -f "$cfgfile.tmp" "$cfgfile" \
  11825. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  11826. test 0 -eq $? || _lt_function_replace_fail=:
  11827. else
  11828. # Save a `func_append' function call even when '+=' is not available
  11829. sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
  11830. && mv -f "$cfgfile.tmp" "$cfgfile" \
  11831. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  11832. test 0 -eq $? || _lt_function_replace_fail=:
  11833. fi
  11834. if test x"$_lt_function_replace_fail" = x":"; then
  11835. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
  11836. $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
  11837. fi
  11838. mv -f "$cfgfile" "$ofile" ||
  11839. (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  11840. chmod +x "$ofile"
  11841. ;;
  11842. esac
  11843. done # for ac_tag
  11844. as_fn_exit 0
  11845. _ACEOF
  11846. ac_clean_files=$ac_clean_files_save
  11847. test $ac_write_fail = 0 ||
  11848. as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
  11849. # configure is writing to config.log, and then calls config.status.
  11850. # config.status does its own redirection, appending to config.log.
  11851. # Unfortunately, on DOS this fails, as config.log is still kept open
  11852. # by configure, so config.status won't be able to write to it; its
  11853. # output is simply discarded. So we exec the FD to /dev/null,
  11854. # effectively closing config.log, so it can be properly (re)opened and
  11855. # appended to by config.status. When coming back to configure, we
  11856. # need to make the FD available again.
  11857. if test "$no_create" != yes; then
  11858. ac_cs_success=:
  11859. ac_config_status_args=
  11860. test "$silent" = yes &&
  11861. ac_config_status_args="$ac_config_status_args --quiet"
  11862. exec 5>/dev/null
  11863. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  11864. exec 5>>config.log
  11865. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  11866. # would make configure fail if this is the last instruction.
  11867. $ac_cs_success || as_fn_exit 1
  11868. fi
  11869. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  11870. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  11871. $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  11872. fi