configure 608 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044140451404614047140481404914050140511405214053140541405514056140571405814059140601406114062140631406414065140661406714068140691407014071140721407314074140751407614077140781407914080140811408214083140841408514086140871408814089140901409114092140931409414095140961409714098140991410014101141021410314104141051410614107141081410914110141111411214113141141411514116141171411814119141201412114122141231412414125141261412714128141291413014131141321413314134141351413614137141381413914140141411414214143141441414514146141471414814149141501415114152141531415414155141561415714158141591416014161141621416314164141651416614167141681416914170141711417214173141741417514176141771417814179141801418114182141831418414185141861418714188141891419014191141921419314194141951419614197141981419914200142011420214203142041420514206142071420814209142101421114212142131421414215142161421714218142191422014221142221422314224142251422614227142281422914230142311423214233142341423514236142371423814239142401424114242142431424414245142461424714248142491425014251142521425314254142551425614257142581425914260142611426214263142641426514266142671426814269142701427114272142731427414275142761427714278142791428014281142821428314284142851428614287142881428914290142911429214293142941429514296142971429814299143001430114302143031430414305143061430714308143091431014311143121431314314143151431614317143181431914320143211432214323143241432514326143271432814329143301433114332143331433414335143361433714338143391434014341143421434314344143451434614347143481434914350143511435214353143541435514356143571435814359143601436114362143631436414365143661436714368143691437014371143721437314374143751437614377143781437914380143811438214383143841438514386143871438814389143901439114392143931439414395143961439714398143991440014401144021440314404144051440614407144081440914410144111441214413144141441514416144171441814419144201442114422144231442414425144261442714428144291443014431144321443314434144351443614437144381443914440144411444214443144441444514446144471444814449144501445114452144531445414455144561445714458144591446014461144621446314464144651446614467144681446914470144711447214473144741447514476144771447814479144801448114482144831448414485144861448714488144891449014491144921449314494144951449614497144981449914500145011450214503145041450514506145071450814509145101451114512145131451414515145161451714518145191452014521145221452314524145251452614527145281452914530145311453214533145341453514536145371453814539145401454114542145431454414545145461454714548145491455014551145521455314554145551455614557145581455914560145611456214563145641456514566145671456814569145701457114572145731457414575145761457714578145791458014581145821458314584145851458614587145881458914590145911459214593145941459514596145971459814599146001460114602146031460414605146061460714608146091461014611146121461314614146151461614617146181461914620146211462214623146241462514626146271462814629146301463114632146331463414635146361463714638146391464014641146421464314644146451464614647146481464914650146511465214653146541465514656146571465814659146601466114662146631466414665146661466714668146691467014671146721467314674146751467614677146781467914680146811468214683146841468514686146871468814689146901469114692146931469414695146961469714698146991470014701147021470314704147051470614707147081470914710147111471214713147141471514716147171471814719147201472114722147231472414725147261472714728147291473014731147321473314734147351473614737147381473914740147411474214743147441474514746147471474814749147501475114752147531475414755147561475714758147591476014761147621476314764147651476614767147681476914770147711477214773147741477514776147771477814779147801478114782147831478414785147861478714788147891479014791147921479314794147951479614797147981479914800148011480214803148041480514806148071480814809148101481114812148131481414815148161481714818148191482014821148221482314824148251482614827148281482914830148311483214833148341483514836148371483814839148401484114842148431484414845148461484714848148491485014851148521485314854148551485614857148581485914860148611486214863148641486514866148671486814869148701487114872148731487414875148761487714878148791488014881148821488314884148851488614887148881488914890148911489214893148941489514896148971489814899149001490114902149031490414905149061490714908149091491014911149121491314914149151491614917149181491914920149211492214923149241492514926149271492814929149301493114932149331493414935149361493714938149391494014941149421494314944149451494614947149481494914950149511495214953149541495514956149571495814959149601496114962149631496414965149661496714968149691497014971149721497314974149751497614977149781497914980149811498214983149841498514986149871498814989149901499114992149931499414995149961499714998149991500015001150021500315004150051500615007150081500915010150111501215013150141501515016150171501815019150201502115022150231502415025150261502715028150291503015031150321503315034150351503615037150381503915040150411504215043150441504515046150471504815049150501505115052150531505415055150561505715058150591506015061150621506315064150651506615067150681506915070150711507215073150741507515076150771507815079150801508115082150831508415085150861508715088150891509015091150921509315094150951509615097150981509915100151011510215103151041510515106151071510815109151101511115112151131511415115151161511715118151191512015121151221512315124151251512615127151281512915130151311513215133151341513515136151371513815139151401514115142151431514415145151461514715148151491515015151151521515315154151551515615157151581515915160151611516215163151641516515166151671516815169151701517115172151731517415175151761517715178151791518015181151821518315184151851518615187151881518915190151911519215193151941519515196151971519815199152001520115202152031520415205152061520715208152091521015211152121521315214152151521615217152181521915220152211522215223152241522515226152271522815229152301523115232152331523415235152361523715238152391524015241152421524315244152451524615247152481524915250152511525215253152541525515256152571525815259152601526115262152631526415265152661526715268152691527015271152721527315274152751527615277152781527915280152811528215283152841528515286152871528815289152901529115292152931529415295152961529715298152991530015301153021530315304153051530615307153081530915310153111531215313153141531515316153171531815319153201532115322153231532415325153261532715328153291533015331153321533315334153351533615337153381533915340153411534215343153441534515346153471534815349153501535115352153531535415355153561535715358153591536015361153621536315364153651536615367153681536915370153711537215373153741537515376153771537815379153801538115382153831538415385153861538715388153891539015391153921539315394153951539615397153981539915400154011540215403154041540515406154071540815409154101541115412154131541415415154161541715418154191542015421154221542315424154251542615427154281542915430154311543215433154341543515436154371543815439154401544115442154431544415445154461544715448154491545015451154521545315454154551545615457154581545915460154611546215463154641546515466154671546815469154701547115472154731547415475154761547715478154791548015481154821548315484154851548615487154881548915490154911549215493154941549515496154971549815499155001550115502155031550415505155061550715508155091551015511155121551315514155151551615517155181551915520155211552215523155241552515526155271552815529155301553115532155331553415535155361553715538155391554015541155421554315544155451554615547155481554915550155511555215553155541555515556155571555815559155601556115562155631556415565155661556715568155691557015571155721557315574155751557615577155781557915580155811558215583155841558515586155871558815589155901559115592155931559415595155961559715598155991560015601156021560315604156051560615607156081560915610156111561215613156141561515616156171561815619156201562115622156231562415625156261562715628156291563015631156321563315634156351563615637156381563915640156411564215643156441564515646156471564815649156501565115652156531565415655156561565715658156591566015661156621566315664156651566615667156681566915670156711567215673156741567515676156771567815679156801568115682156831568415685156861568715688156891569015691156921569315694156951569615697156981569915700157011570215703157041570515706157071570815709157101571115712157131571415715157161571715718157191572015721157221572315724157251572615727157281572915730157311573215733157341573515736157371573815739157401574115742157431574415745157461574715748157491575015751157521575315754157551575615757157581575915760157611576215763157641576515766157671576815769157701577115772157731577415775157761577715778157791578015781157821578315784157851578615787157881578915790157911579215793157941579515796157971579815799158001580115802158031580415805158061580715808158091581015811158121581315814158151581615817158181581915820158211582215823158241582515826158271582815829158301583115832158331583415835158361583715838158391584015841158421584315844158451584615847158481584915850158511585215853158541585515856158571585815859158601586115862158631586415865158661586715868158691587015871158721587315874158751587615877158781587915880158811588215883158841588515886158871588815889158901589115892158931589415895158961589715898158991590015901159021590315904159051590615907159081590915910159111591215913159141591515916159171591815919159201592115922159231592415925159261592715928159291593015931159321593315934159351593615937159381593915940159411594215943159441594515946159471594815949159501595115952159531595415955159561595715958159591596015961159621596315964159651596615967159681596915970159711597215973159741597515976159771597815979159801598115982159831598415985159861598715988159891599015991159921599315994159951599615997159981599916000160011600216003160041600516006160071600816009160101601116012160131601416015160161601716018160191602016021160221602316024160251602616027160281602916030160311603216033160341603516036160371603816039160401604116042160431604416045160461604716048160491605016051160521605316054160551605616057160581605916060160611606216063160641606516066160671606816069160701607116072160731607416075160761607716078160791608016081160821608316084160851608616087160881608916090160911609216093160941609516096160971609816099161001610116102161031610416105161061610716108161091611016111161121611316114161151611616117161181611916120161211612216123161241612516126161271612816129161301613116132161331613416135161361613716138161391614016141161421614316144161451614616147161481614916150161511615216153161541615516156161571615816159161601616116162161631616416165161661616716168161691617016171161721617316174161751617616177161781617916180161811618216183161841618516186161871618816189161901619116192161931619416195161961619716198161991620016201162021620316204162051620616207162081620916210162111621216213162141621516216162171621816219162201622116222162231622416225162261622716228162291623016231162321623316234162351623616237162381623916240162411624216243162441624516246162471624816249162501625116252162531625416255162561625716258162591626016261162621626316264162651626616267162681626916270162711627216273162741627516276162771627816279162801628116282162831628416285162861628716288162891629016291162921629316294162951629616297162981629916300163011630216303163041630516306163071630816309163101631116312163131631416315163161631716318163191632016321163221632316324163251632616327163281632916330163311633216333163341633516336163371633816339163401634116342163431634416345163461634716348163491635016351163521635316354163551635616357163581635916360163611636216363163641636516366163671636816369163701637116372163731637416375163761637716378163791638016381163821638316384163851638616387163881638916390163911639216393163941639516396163971639816399164001640116402164031640416405164061640716408164091641016411164121641316414164151641616417164181641916420164211642216423164241642516426164271642816429164301643116432164331643416435164361643716438164391644016441164421644316444164451644616447164481644916450164511645216453164541645516456164571645816459164601646116462164631646416465164661646716468164691647016471164721647316474164751647616477164781647916480164811648216483164841648516486164871648816489164901649116492164931649416495164961649716498164991650016501165021650316504165051650616507165081650916510165111651216513165141651516516165171651816519165201652116522165231652416525165261652716528165291653016531165321653316534165351653616537165381653916540165411654216543165441654516546165471654816549165501655116552165531655416555165561655716558165591656016561165621656316564165651656616567165681656916570165711657216573165741657516576165771657816579165801658116582165831658416585165861658716588165891659016591165921659316594165951659616597165981659916600166011660216603166041660516606166071660816609166101661116612166131661416615166161661716618166191662016621166221662316624166251662616627166281662916630166311663216633166341663516636166371663816639166401664116642166431664416645166461664716648166491665016651166521665316654166551665616657166581665916660166611666216663166641666516666166671666816669166701667116672166731667416675166761667716678166791668016681166821668316684166851668616687166881668916690166911669216693166941669516696166971669816699167001670116702167031670416705167061670716708167091671016711167121671316714167151671616717167181671916720167211672216723167241672516726167271672816729167301673116732167331673416735167361673716738167391674016741167421674316744167451674616747167481674916750167511675216753167541675516756167571675816759167601676116762167631676416765167661676716768167691677016771167721677316774167751677616777167781677916780167811678216783167841678516786167871678816789167901679116792167931679416795167961679716798167991680016801168021680316804168051680616807168081680916810168111681216813168141681516816168171681816819168201682116822168231682416825168261682716828168291683016831168321683316834168351683616837168381683916840168411684216843168441684516846168471684816849168501685116852168531685416855168561685716858168591686016861168621686316864168651686616867168681686916870168711687216873168741687516876168771687816879168801688116882168831688416885168861688716888168891689016891168921689316894168951689616897168981689916900169011690216903169041690516906169071690816909169101691116912169131691416915169161691716918169191692016921169221692316924169251692616927169281692916930169311693216933169341693516936169371693816939169401694116942169431694416945169461694716948169491695016951169521695316954169551695616957169581695916960169611696216963169641696516966169671696816969169701697116972169731697416975169761697716978169791698016981169821698316984169851698616987169881698916990169911699216993169941699516996169971699816999170001700117002170031700417005170061700717008170091701017011170121701317014170151701617017170181701917020170211702217023170241702517026170271702817029170301703117032170331703417035170361703717038170391704017041170421704317044170451704617047170481704917050170511705217053170541705517056170571705817059170601706117062170631706417065170661706717068170691707017071170721707317074170751707617077170781707917080170811708217083170841708517086170871708817089170901709117092170931709417095170961709717098170991710017101171021710317104171051710617107171081710917110171111711217113171141711517116171171711817119171201712117122171231712417125171261712717128171291713017131171321713317134171351713617137171381713917140171411714217143171441714517146171471714817149171501715117152171531715417155171561715717158171591716017161171621716317164171651716617167171681716917170171711717217173171741717517176171771717817179171801718117182171831718417185171861718717188171891719017191171921719317194171951719617197171981719917200172011720217203172041720517206172071720817209172101721117212172131721417215172161721717218172191722017221172221722317224172251722617227172281722917230172311723217233172341723517236172371723817239172401724117242172431724417245172461724717248172491725017251172521725317254172551725617257172581725917260172611726217263172641726517266172671726817269172701727117272172731727417275172761727717278172791728017281172821728317284172851728617287172881728917290172911729217293172941729517296172971729817299173001730117302173031730417305173061730717308173091731017311173121731317314173151731617317173181731917320173211732217323173241732517326173271732817329173301733117332173331733417335173361733717338173391734017341173421734317344173451734617347173481734917350173511735217353173541735517356173571735817359173601736117362173631736417365173661736717368173691737017371173721737317374173751737617377173781737917380173811738217383173841738517386173871738817389173901739117392173931739417395173961739717398173991740017401174021740317404174051740617407174081740917410174111741217413174141741517416174171741817419174201742117422174231742417425174261742717428174291743017431174321743317434174351743617437174381743917440174411744217443174441744517446174471744817449174501745117452174531745417455174561745717458174591746017461174621746317464174651746617467174681746917470174711747217473174741747517476174771747817479174801748117482174831748417485174861748717488174891749017491174921749317494174951749617497174981749917500175011750217503175041750517506175071750817509175101751117512175131751417515175161751717518175191752017521175221752317524175251752617527175281752917530175311753217533175341753517536175371753817539175401754117542175431754417545175461754717548175491755017551175521755317554175551755617557175581755917560175611756217563175641756517566175671756817569175701757117572175731757417575175761757717578175791758017581175821758317584175851758617587175881758917590175911759217593175941759517596175971759817599176001760117602176031760417605176061760717608176091761017611176121761317614176151761617617176181761917620176211762217623176241762517626176271762817629176301763117632176331763417635176361763717638176391764017641176421764317644176451764617647176481764917650176511765217653176541765517656176571765817659176601766117662176631766417665176661766717668176691767017671176721767317674176751767617677176781767917680176811768217683176841768517686176871768817689176901769117692176931769417695176961769717698176991770017701177021770317704177051770617707177081770917710177111771217713177141771517716177171771817719177201772117722177231772417725177261772717728177291773017731177321773317734177351773617737177381773917740177411774217743177441774517746177471774817749177501775117752177531775417755177561775717758177591776017761177621776317764177651776617767177681776917770177711777217773177741777517776177771777817779177801778117782177831778417785177861778717788177891779017791177921779317794177951779617797177981779917800178011780217803178041780517806178071780817809178101781117812178131781417815178161781717818178191782017821178221782317824178251782617827178281782917830178311783217833178341783517836178371783817839178401784117842178431784417845178461784717848178491785017851178521785317854178551785617857178581785917860178611786217863178641786517866178671786817869178701787117872178731787417875178761787717878178791788017881178821788317884178851788617887178881788917890178911789217893178941789517896178971789817899179001790117902179031790417905179061790717908179091791017911179121791317914179151791617917179181791917920179211792217923179241792517926179271792817929179301793117932179331793417935179361793717938179391794017941179421794317944179451794617947179481794917950179511795217953179541795517956179571795817959179601796117962179631796417965179661796717968179691797017971179721797317974179751797617977179781797917980179811798217983179841798517986179871798817989179901799117992179931799417995179961799717998179991800018001180021800318004180051800618007180081800918010180111801218013180141801518016180171801818019180201802118022180231802418025180261802718028180291803018031180321803318034180351803618037180381803918040180411804218043180441804518046180471804818049180501805118052180531805418055180561805718058180591806018061180621806318064180651806618067180681806918070180711807218073180741807518076180771807818079180801808118082180831808418085180861808718088180891809018091180921809318094180951809618097180981809918100181011810218103181041810518106181071810818109181101811118112181131811418115181161811718118181191812018121181221812318124181251812618127181281812918130181311813218133181341813518136181371813818139181401814118142181431814418145181461814718148181491815018151181521815318154181551815618157181581815918160181611816218163181641816518166181671816818169181701817118172181731817418175181761817718178181791818018181181821818318184181851818618187181881818918190181911819218193181941819518196181971819818199182001820118202182031820418205182061820718208182091821018211182121821318214182151821618217182181821918220182211822218223182241822518226182271822818229182301823118232182331823418235182361823718238182391824018241182421824318244182451824618247182481824918250182511825218253182541825518256182571825818259182601826118262182631826418265182661826718268182691827018271182721827318274182751827618277182781827918280182811828218283182841828518286182871828818289182901829118292182931829418295182961829718298182991830018301183021830318304183051830618307183081830918310183111831218313183141831518316183171831818319183201832118322183231832418325183261832718328183291833018331183321833318334183351833618337183381833918340183411834218343183441834518346183471834818349183501835118352183531835418355183561835718358183591836018361183621836318364183651836618367183681836918370183711837218373183741837518376183771837818379183801838118382183831838418385183861838718388183891839018391183921839318394183951839618397183981839918400184011840218403184041840518406184071840818409184101841118412184131841418415184161841718418184191842018421184221842318424184251842618427184281842918430184311843218433184341843518436184371843818439184401844118442184431844418445184461844718448184491845018451184521845318454184551845618457184581845918460184611846218463184641846518466184671846818469184701847118472184731847418475184761847718478184791848018481184821848318484184851848618487184881848918490184911849218493184941849518496184971849818499185001850118502185031850418505185061850718508185091851018511185121851318514185151851618517185181851918520185211852218523185241852518526185271852818529185301853118532185331853418535185361853718538185391854018541185421854318544185451854618547185481854918550185511855218553185541855518556185571855818559185601856118562185631856418565185661856718568185691857018571185721857318574185751857618577185781857918580185811858218583185841858518586185871858818589185901859118592185931859418595185961859718598185991860018601186021860318604186051860618607186081860918610186111861218613186141861518616186171861818619186201862118622186231862418625186261862718628186291863018631186321863318634186351863618637186381863918640186411864218643186441864518646186471864818649186501865118652186531865418655186561865718658186591866018661186621866318664186651866618667186681866918670186711867218673186741867518676186771867818679186801868118682186831868418685186861868718688186891869018691186921869318694186951869618697186981869918700187011870218703187041870518706187071870818709187101871118712187131871418715187161871718718187191872018721187221872318724187251872618727187281872918730187311873218733187341873518736187371873818739187401874118742187431874418745187461874718748187491875018751187521875318754187551875618757187581875918760187611876218763187641876518766187671876818769187701877118772187731877418775187761877718778187791878018781187821878318784187851878618787187881878918790187911879218793187941879518796187971879818799188001880118802188031880418805188061880718808188091881018811188121881318814188151881618817188181881918820188211882218823188241882518826188271882818829188301883118832188331883418835188361883718838188391884018841188421884318844188451884618847188481884918850188511885218853188541885518856188571885818859188601886118862188631886418865188661886718868188691887018871188721887318874188751887618877188781887918880188811888218883188841888518886188871888818889188901889118892188931889418895188961889718898188991890018901189021890318904189051890618907189081890918910189111891218913189141891518916189171891818919189201892118922189231892418925189261892718928189291893018931189321893318934189351893618937189381893918940189411894218943189441894518946189471894818949189501895118952189531895418955189561895718958189591896018961189621896318964189651896618967189681896918970189711897218973189741897518976189771897818979189801898118982189831898418985189861898718988189891899018991189921899318994189951899618997189981899919000190011900219003190041900519006190071900819009190101901119012190131901419015190161901719018190191902019021190221902319024190251902619027190281902919030190311903219033190341903519036190371903819039190401904119042190431904419045190461904719048190491905019051190521905319054190551905619057190581905919060190611906219063190641906519066190671906819069190701907119072190731907419075190761907719078190791908019081190821908319084190851908619087190881908919090190911909219093190941909519096190971909819099191001910119102191031910419105191061910719108191091911019111191121911319114191151911619117191181911919120191211912219123191241912519126191271912819129191301913119132191331913419135191361913719138191391914019141191421914319144191451914619147191481914919150191511915219153191541915519156191571915819159191601916119162191631916419165191661916719168191691917019171191721917319174191751917619177191781917919180191811918219183191841918519186191871918819189191901919119192191931919419195191961919719198191991920019201192021920319204192051920619207192081920919210192111921219213192141921519216192171921819219192201922119222192231922419225192261922719228192291923019231192321923319234192351923619237192381923919240192411924219243192441924519246192471924819249192501925119252192531925419255192561925719258192591926019261192621926319264192651926619267192681926919270192711927219273192741927519276192771927819279192801928119282192831928419285192861928719288192891929019291192921929319294192951929619297192981929919300193011930219303193041930519306193071930819309193101931119312193131931419315193161931719318193191932019321193221932319324193251932619327193281932919330193311933219333193341933519336193371933819339193401934119342193431934419345193461934719348193491935019351193521935319354193551935619357193581935919360193611936219363193641936519366193671936819369193701937119372193731937419375193761937719378193791938019381193821938319384193851938619387193881938919390193911939219393193941939519396193971939819399194001940119402194031940419405194061940719408194091941019411194121941319414194151941619417194181941919420194211942219423194241942519426194271942819429194301943119432194331943419435194361943719438194391944019441194421944319444194451944619447194481944919450194511945219453194541945519456194571945819459194601946119462194631946419465194661946719468194691947019471194721947319474194751947619477194781947919480194811948219483194841948519486194871948819489194901949119492194931949419495194961949719498194991950019501195021950319504195051950619507195081950919510195111951219513195141951519516195171951819519195201952119522195231952419525195261952719528195291953019531195321953319534195351953619537195381953919540195411954219543195441954519546195471954819549195501955119552195531955419555195561955719558195591956019561195621956319564195651956619567195681956919570195711957219573195741957519576195771957819579195801958119582195831958419585195861958719588195891959019591195921959319594195951959619597195981959919600196011960219603196041960519606196071960819609196101961119612196131961419615196161961719618196191962019621196221962319624196251962619627196281962919630196311963219633196341963519636196371963819639196401964119642196431964419645196461964719648196491965019651196521965319654196551965619657196581965919660196611966219663196641966519666196671966819669196701967119672196731967419675196761967719678196791968019681196821968319684196851968619687196881968919690196911969219693196941969519696196971969819699197001970119702197031970419705197061970719708197091971019711197121971319714197151971619717197181971919720197211972219723197241972519726197271972819729197301973119732197331973419735197361973719738197391974019741197421974319744197451974619747197481974919750197511975219753197541975519756197571975819759197601976119762197631976419765197661976719768197691977019771197721977319774197751977619777197781977919780197811978219783197841978519786197871978819789197901979119792197931979419795197961979719798197991980019801198021980319804198051980619807198081980919810198111981219813198141981519816198171981819819198201982119822198231982419825198261982719828198291983019831198321983319834198351983619837198381983919840198411984219843198441984519846198471984819849198501985119852198531985419855198561985719858198591986019861198621986319864198651986619867198681986919870198711987219873198741987519876198771987819879198801988119882198831988419885198861988719888198891989019891198921989319894198951989619897198981989919900199011990219903199041990519906199071990819909199101991119912199131991419915199161991719918199191992019921199221992319924199251992619927199281992919930199311993219933199341993519936199371993819939199401994119942199431994419945199461994719948199491995019951199521995319954199551995619957199581995919960199611996219963199641996519966199671996819969199701997119972199731997419975199761997719978199791998019981199821998319984199851998619987199881998919990199911999219993199941999519996199971999819999200002000120002200032000420005200062000720008200092001020011200122001320014200152001620017200182001920020200212002220023200242002520026200272002820029200302003120032200332003420035200362003720038200392004020041200422004320044200452004620047200482004920050200512005220053200542005520056200572005820059200602006120062
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.69 for libmodbus 3.1.6.
  4. #
  5. # Report bugs to <https://github.com/stephane/libmodbus/issues>.
  6. #
  7. #
  8. # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
  9. #
  10. #
  11. # This configure script is free software; the Free Software Foundation
  12. # gives unlimited permission to copy, distribute and modify it.
  13. ## -------------------- ##
  14. ## M4sh Initialization. ##
  15. ## -------------------- ##
  16. # Be more Bourne compatible
  17. DUALCASE=1; export DUALCASE # for MKS sh
  18. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  19. emulate sh
  20. NULLCMD=:
  21. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  22. # is contrary to our usage. Disable this feature.
  23. alias -g '${1+"$@"}'='"$@"'
  24. setopt NO_GLOB_SUBST
  25. else
  26. case `(set -o) 2>/dev/null` in #(
  27. *posix*) :
  28. set -o posix ;; #(
  29. *) :
  30. ;;
  31. esac
  32. fi
  33. as_nl='
  34. '
  35. export as_nl
  36. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  37. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  38. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  39. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  40. # Prefer a ksh shell builtin over an external printf program on Solaris,
  41. # but without wasting forks for bash or zsh.
  42. if test -z "$BASH_VERSION$ZSH_VERSION" \
  43. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  44. as_echo='print -r --'
  45. as_echo_n='print -rn --'
  46. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  47. as_echo='printf %s\n'
  48. as_echo_n='printf %s'
  49. else
  50. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  51. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  52. as_echo_n='/usr/ucb/echo -n'
  53. else
  54. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  55. as_echo_n_body='eval
  56. arg=$1;
  57. case $arg in #(
  58. *"$as_nl"*)
  59. expr "X$arg" : "X\\(.*\\)$as_nl";
  60. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  61. esac;
  62. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  63. '
  64. export as_echo_n_body
  65. as_echo_n='sh -c $as_echo_n_body as_echo'
  66. fi
  67. export as_echo_body
  68. as_echo='sh -c $as_echo_body as_echo'
  69. fi
  70. # The user is always right.
  71. if test "${PATH_SEPARATOR+set}" != set; then
  72. PATH_SEPARATOR=:
  73. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  74. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  75. PATH_SEPARATOR=';'
  76. }
  77. fi
  78. # IFS
  79. # We need space, tab and new line, in precisely that order. Quoting is
  80. # there to prevent editors from complaining about space-tab.
  81. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  82. # splitting by setting IFS to empty value.)
  83. IFS=" "" $as_nl"
  84. # Find who we are. Look in the path if we contain no directory separator.
  85. as_myself=
  86. case $0 in #((
  87. *[\\/]* ) as_myself=$0 ;;
  88. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  89. for as_dir in $PATH
  90. do
  91. IFS=$as_save_IFS
  92. test -z "$as_dir" && as_dir=.
  93. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  94. done
  95. IFS=$as_save_IFS
  96. ;;
  97. esac
  98. # We did not find ourselves, most probably we were run as `sh COMMAND'
  99. # in which case we are not to be found in the path.
  100. if test "x$as_myself" = x; then
  101. as_myself=$0
  102. fi
  103. if test ! -f "$as_myself"; then
  104. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  105. exit 1
  106. fi
  107. # Unset variables that we do not need and which cause bugs (e.g. in
  108. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  109. # suppresses any "Segmentation fault" message there. '((' could
  110. # trigger a bug in pdksh 5.2.14.
  111. for as_var in BASH_ENV ENV MAIL MAILPATH
  112. do eval test x\${$as_var+set} = xset \
  113. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  114. done
  115. PS1='$ '
  116. PS2='> '
  117. PS4='+ '
  118. # NLS nuisances.
  119. LC_ALL=C
  120. export LC_ALL
  121. LANGUAGE=C
  122. export LANGUAGE
  123. # CDPATH.
  124. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  125. # Use a proper internal environment variable to ensure we don't fall
  126. # into an infinite loop, continuously re-executing ourselves.
  127. if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
  128. _as_can_reexec=no; export _as_can_reexec;
  129. # We cannot yet assume a decent shell, so we have to provide a
  130. # neutralization value for shells without unset; and this also
  131. # works around shells that cannot unset nonexistent variables.
  132. # Preserve -v and -x to the replacement shell.
  133. BASH_ENV=/dev/null
  134. ENV=/dev/null
  135. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  136. case $- in # ((((
  137. *v*x* | *x*v* ) as_opts=-vx ;;
  138. *v* ) as_opts=-v ;;
  139. *x* ) as_opts=-x ;;
  140. * ) as_opts= ;;
  141. esac
  142. exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
  143. # Admittedly, this is quite paranoid, since all the known shells bail
  144. # out after a failed `exec'.
  145. $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
  146. as_fn_exit 255
  147. fi
  148. # We don't want this to propagate to other subprocesses.
  149. { _as_can_reexec=; unset _as_can_reexec;}
  150. if test "x$CONFIG_SHELL" = x; then
  151. as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
  152. emulate sh
  153. NULLCMD=:
  154. # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
  155. # is contrary to our usage. Disable this feature.
  156. alias -g '\${1+\"\$@\"}'='\"\$@\"'
  157. setopt NO_GLOB_SUBST
  158. else
  159. case \`(set -o) 2>/dev/null\` in #(
  160. *posix*) :
  161. set -o posix ;; #(
  162. *) :
  163. ;;
  164. esac
  165. fi
  166. "
  167. as_required="as_fn_return () { (exit \$1); }
  168. as_fn_success () { as_fn_return 0; }
  169. as_fn_failure () { as_fn_return 1; }
  170. as_fn_ret_success () { return 0; }
  171. as_fn_ret_failure () { return 1; }
  172. exitcode=0
  173. as_fn_success || { exitcode=1; echo as_fn_success failed.; }
  174. as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
  175. as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
  176. as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
  177. if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
  178. else
  179. exitcode=1; echo positional parameters were not saved.
  180. fi
  181. test x\$exitcode = x0 || exit 1
  182. test -x / || exit 1"
  183. as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
  184. as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
  185. eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
  186. test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
  187. test \$(( 1 + 1 )) = 2 || exit 1
  188. test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
  189. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  190. ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
  191. ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
  192. PATH=/empty FPATH=/empty; export PATH FPATH
  193. test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
  194. || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
  195. if (eval "$as_required") 2>/dev/null; then :
  196. as_have_required=yes
  197. else
  198. as_have_required=no
  199. fi
  200. if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
  201. else
  202. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  203. as_found=false
  204. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  205. do
  206. IFS=$as_save_IFS
  207. test -z "$as_dir" && as_dir=.
  208. as_found=:
  209. case $as_dir in #(
  210. /*)
  211. for as_base in sh bash ksh sh5; do
  212. # Try only shells that exist, to save several forks.
  213. as_shell=$as_dir/$as_base
  214. if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  215. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
  216. CONFIG_SHELL=$as_shell as_have_required=yes
  217. if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
  218. break 2
  219. fi
  220. fi
  221. done;;
  222. esac
  223. as_found=false
  224. done
  225. $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
  226. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
  227. CONFIG_SHELL=$SHELL as_have_required=yes
  228. fi; }
  229. IFS=$as_save_IFS
  230. if test "x$CONFIG_SHELL" != x; then :
  231. export CONFIG_SHELL
  232. # We cannot yet assume a decent shell, so we have to provide a
  233. # neutralization value for shells without unset; and this also
  234. # works around shells that cannot unset nonexistent variables.
  235. # Preserve -v and -x to the replacement shell.
  236. BASH_ENV=/dev/null
  237. ENV=/dev/null
  238. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  239. case $- in # ((((
  240. *v*x* | *x*v* ) as_opts=-vx ;;
  241. *v* ) as_opts=-v ;;
  242. *x* ) as_opts=-x ;;
  243. * ) as_opts= ;;
  244. esac
  245. exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
  246. # Admittedly, this is quite paranoid, since all the known shells bail
  247. # out after a failed `exec'.
  248. $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
  249. exit 255
  250. fi
  251. if test x$as_have_required = xno; then :
  252. $as_echo "$0: This script requires a shell more modern than all"
  253. $as_echo "$0: the shells that I found on your system."
  254. if test x${ZSH_VERSION+set} = xset ; then
  255. $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
  256. $as_echo "$0: be upgraded to zsh 4.3.4 or later."
  257. else
  258. $as_echo "$0: Please tell bug-autoconf@gnu.org and
  259. $0: https://github.com/stephane/libmodbus/issues about your
  260. $0: system, including any error possibly output before this
  261. $0: message. Then install a modern shell, or manually run
  262. $0: the script under such a shell if you do have one."
  263. fi
  264. exit 1
  265. fi
  266. fi
  267. fi
  268. SHELL=${CONFIG_SHELL-/bin/sh}
  269. export SHELL
  270. # Unset more variables known to interfere with behavior of common tools.
  271. CLICOLOR_FORCE= GREP_OPTIONS=
  272. unset CLICOLOR_FORCE GREP_OPTIONS
  273. ## --------------------- ##
  274. ## M4sh Shell Functions. ##
  275. ## --------------------- ##
  276. # as_fn_unset VAR
  277. # ---------------
  278. # Portably unset VAR.
  279. as_fn_unset ()
  280. {
  281. { eval $1=; unset $1;}
  282. }
  283. as_unset=as_fn_unset
  284. # as_fn_set_status STATUS
  285. # -----------------------
  286. # Set $? to STATUS, without forking.
  287. as_fn_set_status ()
  288. {
  289. return $1
  290. } # as_fn_set_status
  291. # as_fn_exit STATUS
  292. # -----------------
  293. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  294. as_fn_exit ()
  295. {
  296. set +e
  297. as_fn_set_status $1
  298. exit $1
  299. } # as_fn_exit
  300. # as_fn_mkdir_p
  301. # -------------
  302. # Create "$as_dir" as a directory, including parents if necessary.
  303. as_fn_mkdir_p ()
  304. {
  305. case $as_dir in #(
  306. -*) as_dir=./$as_dir;;
  307. esac
  308. test -d "$as_dir" || eval $as_mkdir_p || {
  309. as_dirs=
  310. while :; do
  311. case $as_dir in #(
  312. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  313. *) as_qdir=$as_dir;;
  314. esac
  315. as_dirs="'$as_qdir' $as_dirs"
  316. as_dir=`$as_dirname -- "$as_dir" ||
  317. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  318. X"$as_dir" : 'X\(//\)[^/]' \| \
  319. X"$as_dir" : 'X\(//\)$' \| \
  320. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  321. $as_echo X"$as_dir" |
  322. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  323. s//\1/
  324. q
  325. }
  326. /^X\(\/\/\)[^/].*/{
  327. s//\1/
  328. q
  329. }
  330. /^X\(\/\/\)$/{
  331. s//\1/
  332. q
  333. }
  334. /^X\(\/\).*/{
  335. s//\1/
  336. q
  337. }
  338. s/.*/./; q'`
  339. test -d "$as_dir" && break
  340. done
  341. test -z "$as_dirs" || eval "mkdir $as_dirs"
  342. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  343. } # as_fn_mkdir_p
  344. # as_fn_executable_p FILE
  345. # -----------------------
  346. # Test if FILE is an executable regular file.
  347. as_fn_executable_p ()
  348. {
  349. test -f "$1" && test -x "$1"
  350. } # as_fn_executable_p
  351. # as_fn_append VAR VALUE
  352. # ----------------------
  353. # Append the text in VALUE to the end of the definition contained in VAR. Take
  354. # advantage of any shell optimizations that allow amortized linear growth over
  355. # repeated appends, instead of the typical quadratic growth present in naive
  356. # implementations.
  357. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  358. eval 'as_fn_append ()
  359. {
  360. eval $1+=\$2
  361. }'
  362. else
  363. as_fn_append ()
  364. {
  365. eval $1=\$$1\$2
  366. }
  367. fi # as_fn_append
  368. # as_fn_arith ARG...
  369. # ------------------
  370. # Perform arithmetic evaluation on the ARGs, and store the result in the
  371. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  372. # must be portable across $(()) and expr.
  373. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  374. eval 'as_fn_arith ()
  375. {
  376. as_val=$(( $* ))
  377. }'
  378. else
  379. as_fn_arith ()
  380. {
  381. as_val=`expr "$@" || test $? -eq 1`
  382. }
  383. fi # as_fn_arith
  384. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  385. # ----------------------------------------
  386. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  387. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  388. # script with STATUS, using 1 if that was 0.
  389. as_fn_error ()
  390. {
  391. as_status=$1; test $as_status -eq 0 && as_status=1
  392. if test "$4"; then
  393. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  394. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  395. fi
  396. $as_echo "$as_me: error: $2" >&2
  397. as_fn_exit $as_status
  398. } # as_fn_error
  399. if expr a : '\(a\)' >/dev/null 2>&1 &&
  400. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  401. as_expr=expr
  402. else
  403. as_expr=false
  404. fi
  405. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  406. as_basename=basename
  407. else
  408. as_basename=false
  409. fi
  410. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  411. as_dirname=dirname
  412. else
  413. as_dirname=false
  414. fi
  415. as_me=`$as_basename -- "$0" ||
  416. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  417. X"$0" : 'X\(//\)$' \| \
  418. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  419. $as_echo X/"$0" |
  420. sed '/^.*\/\([^/][^/]*\)\/*$/{
  421. s//\1/
  422. q
  423. }
  424. /^X\/\(\/\/\)$/{
  425. s//\1/
  426. q
  427. }
  428. /^X\/\(\/\).*/{
  429. s//\1/
  430. q
  431. }
  432. s/.*/./; q'`
  433. # Avoid depending upon Character Ranges.
  434. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  435. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  436. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  437. as_cr_digits='0123456789'
  438. as_cr_alnum=$as_cr_Letters$as_cr_digits
  439. as_lineno_1=$LINENO as_lineno_1a=$LINENO
  440. as_lineno_2=$LINENO as_lineno_2a=$LINENO
  441. eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
  442. test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
  443. # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
  444. sed -n '
  445. p
  446. /[$]LINENO/=
  447. ' <$as_myself |
  448. sed '
  449. s/[$]LINENO.*/&-/
  450. t lineno
  451. b
  452. :lineno
  453. N
  454. :loop
  455. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  456. t loop
  457. s/-\n.*//
  458. ' >$as_me.lineno &&
  459. chmod +x "$as_me.lineno" ||
  460. { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
  461. # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
  462. # already done that, so ensure we don't try to do so again and fall
  463. # in an infinite loop. This has already happened in practice.
  464. _as_can_reexec=no; export _as_can_reexec
  465. # Don't try to exec as it changes $[0], causing all sort of problems
  466. # (the dirname of $[0] is not the place where we might find the
  467. # original and so on. Autoconf is especially sensitive to this).
  468. . "./$as_me.lineno"
  469. # Exit status is that of the last command.
  470. exit
  471. }
  472. ECHO_C= ECHO_N= ECHO_T=
  473. case `echo -n x` in #(((((
  474. -n*)
  475. case `echo 'xy\c'` in
  476. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  477. xy) ECHO_C='\c';;
  478. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  479. ECHO_T=' ';;
  480. esac;;
  481. *)
  482. ECHO_N='-n';;
  483. esac
  484. rm -f conf$$ conf$$.exe conf$$.file
  485. if test -d conf$$.dir; then
  486. rm -f conf$$.dir/conf$$.file
  487. else
  488. rm -f conf$$.dir
  489. mkdir conf$$.dir 2>/dev/null
  490. fi
  491. if (echo >conf$$.file) 2>/dev/null; then
  492. if ln -s conf$$.file conf$$ 2>/dev/null; then
  493. as_ln_s='ln -s'
  494. # ... but there are two gotchas:
  495. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  496. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  497. # In both cases, we have to default to `cp -pR'.
  498. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  499. as_ln_s='cp -pR'
  500. elif ln conf$$.file conf$$ 2>/dev/null; then
  501. as_ln_s=ln
  502. else
  503. as_ln_s='cp -pR'
  504. fi
  505. else
  506. as_ln_s='cp -pR'
  507. fi
  508. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  509. rmdir conf$$.dir 2>/dev/null
  510. if mkdir -p . 2>/dev/null; then
  511. as_mkdir_p='mkdir -p "$as_dir"'
  512. else
  513. test -d ./-p && rmdir ./-p
  514. as_mkdir_p=false
  515. fi
  516. as_test_x='test -x'
  517. as_executable_p=as_fn_executable_p
  518. # Sed expression to map a string onto a valid CPP name.
  519. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  520. # Sed expression to map a string onto a valid variable name.
  521. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  522. SHELL=${CONFIG_SHELL-/bin/sh}
  523. test -n "$DJDIR" || exec 7<&0 </dev/null
  524. exec 6>&1
  525. # Name of the host.
  526. # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
  527. # so uname gets run too.
  528. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  529. #
  530. # Initializations.
  531. #
  532. ac_default_prefix=/usr/local
  533. ac_clean_files=
  534. ac_config_libobj_dir=.
  535. LIBOBJS=
  536. cross_compiling=no
  537. subdirs=
  538. MFLAGS=
  539. MAKEFLAGS=
  540. # Identity of this package.
  541. PACKAGE_NAME='libmodbus'
  542. PACKAGE_TARNAME='libmodbus'
  543. PACKAGE_VERSION='3.1.6'
  544. PACKAGE_STRING='libmodbus 3.1.6'
  545. PACKAGE_BUGREPORT='https://github.com/stephane/libmodbus/issues'
  546. PACKAGE_URL='http://libmodbus.org/'
  547. ac_unique_file="src/modbus.c"
  548. # Factoring default headers for most tests.
  549. ac_includes_default="\
  550. #include <stdio.h>
  551. #ifdef HAVE_SYS_TYPES_H
  552. # include <sys/types.h>
  553. #endif
  554. #ifdef HAVE_SYS_STAT_H
  555. # include <sys/stat.h>
  556. #endif
  557. #ifdef STDC_HEADERS
  558. # include <stdlib.h>
  559. # include <stddef.h>
  560. #else
  561. # ifdef HAVE_STDLIB_H
  562. # include <stdlib.h>
  563. # endif
  564. #endif
  565. #ifdef HAVE_STRING_H
  566. # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
  567. # include <memory.h>
  568. # endif
  569. # include <string.h>
  570. #endif
  571. #ifdef HAVE_STRINGS_H
  572. # include <strings.h>
  573. #endif
  574. #ifdef HAVE_INTTYPES_H
  575. # include <inttypes.h>
  576. #endif
  577. #ifdef HAVE_STDINT_H
  578. # include <stdint.h>
  579. #endif
  580. #ifdef HAVE_UNISTD_H
  581. # include <unistd.h>
  582. #endif"
  583. ac_subst_vars='am__EXEEXT_FALSE
  584. am__EXEEXT_TRUE
  585. LTLIBOBJS
  586. LIBOBJS
  587. BUILD_TESTS_FALSE
  588. BUILD_TESTS_TRUE
  589. my_CFLAGS
  590. CXXCPP
  591. am__fastdepCXX_FALSE
  592. am__fastdepCXX_TRUE
  593. CXXDEPMODE
  594. ac_ct_CXX
  595. CXXFLAGS
  596. CXX
  597. BUILD_DOC_FALSE
  598. BUILD_DOC_TRUE
  599. ac_libmodbus_have_xmlto
  600. ac_libmodbus_have_asciidoc
  601. LT_SYS_LIBRARY_PATH
  602. OTOOL64
  603. OTOOL
  604. LIPO
  605. NMEDIT
  606. DSYMUTIL
  607. MANIFEST_TOOL
  608. RANLIB
  609. ac_ct_AR
  610. AR
  611. LN_S
  612. NM
  613. ac_ct_DUMPBIN
  614. DUMPBIN
  615. LD
  616. FGREP
  617. SED
  618. LIBTOOL
  619. OBJDUMP
  620. DLLTOOL
  621. AS
  622. OS_QNX_FALSE
  623. OS_QNX_TRUE
  624. OS_WIN32_FALSE
  625. OS_WIN32_TRUE
  626. host_os
  627. host_vendor
  628. host_cpu
  629. host
  630. build_os
  631. build_vendor
  632. build_cpu
  633. build
  634. LIBMODBUS_LT_VERSION_INFO
  635. LIBMODBUS_VERSION
  636. LIBMODBUS_VERSION_MICRO
  637. LIBMODBUS_VERSION_MINOR
  638. LIBMODBUS_VERSION_MAJOR
  639. EGREP
  640. GREP
  641. CPP
  642. am__fastdepCC_FALSE
  643. am__fastdepCC_TRUE
  644. CCDEPMODE
  645. am__nodep
  646. AMDEPBACKSLASH
  647. AMDEP_FALSE
  648. AMDEP_TRUE
  649. am__include
  650. DEPDIR
  651. OBJEXT
  652. EXEEXT
  653. ac_ct_CC
  654. CPPFLAGS
  655. LDFLAGS
  656. CFLAGS
  657. CC
  658. AM_BACKSLASH
  659. AM_DEFAULT_VERBOSITY
  660. AM_DEFAULT_V
  661. AM_V
  662. am__untar
  663. am__tar
  664. AMTAR
  665. am__leading_dot
  666. SET_MAKE
  667. AWK
  668. mkdir_p
  669. MKDIR_P
  670. INSTALL_STRIP_PROGRAM
  671. STRIP
  672. install_sh
  673. MAKEINFO
  674. AUTOHEADER
  675. AUTOMAKE
  676. AUTOCONF
  677. ACLOCAL
  678. VERSION
  679. PACKAGE
  680. CYGPATH_W
  681. am__isrc
  682. INSTALL_DATA
  683. INSTALL_SCRIPT
  684. INSTALL_PROGRAM
  685. target_alias
  686. host_alias
  687. build_alias
  688. LIBS
  689. ECHO_T
  690. ECHO_N
  691. ECHO_C
  692. DEFS
  693. mandir
  694. localedir
  695. libdir
  696. psdir
  697. pdfdir
  698. dvidir
  699. htmldir
  700. infodir
  701. docdir
  702. oldincludedir
  703. includedir
  704. localstatedir
  705. sharedstatedir
  706. sysconfdir
  707. datadir
  708. datarootdir
  709. libexecdir
  710. sbindir
  711. bindir
  712. program_transform_name
  713. prefix
  714. exec_prefix
  715. PACKAGE_URL
  716. PACKAGE_BUGREPORT
  717. PACKAGE_STRING
  718. PACKAGE_VERSION
  719. PACKAGE_TARNAME
  720. PACKAGE_NAME
  721. PATH_SEPARATOR
  722. SHELL
  723. am__quote'
  724. ac_subst_files=''
  725. ac_user_opts='
  726. enable_option_checking
  727. enable_silent_rules
  728. enable_dependency_tracking
  729. enable_largefile
  730. enable_static
  731. with_pic
  732. enable_shared
  733. enable_fast_install
  734. with_aix_soname
  735. with_gnu_ld
  736. with_sysroot
  737. enable_libtool_lock
  738. with_documentation
  739. enable_tests
  740. '
  741. ac_precious_vars='build_alias
  742. host_alias
  743. target_alias
  744. CC
  745. CFLAGS
  746. LDFLAGS
  747. LIBS
  748. CPPFLAGS
  749. CPP
  750. LT_SYS_LIBRARY_PATH
  751. CXX
  752. CXXFLAGS
  753. CCC
  754. CXXCPP'
  755. # Initialize some variables set by options.
  756. ac_init_help=
  757. ac_init_version=false
  758. ac_unrecognized_opts=
  759. ac_unrecognized_sep=
  760. # The variables have the same names as the options, with
  761. # dashes changed to underlines.
  762. cache_file=/dev/null
  763. exec_prefix=NONE
  764. no_create=
  765. no_recursion=
  766. prefix=NONE
  767. program_prefix=NONE
  768. program_suffix=NONE
  769. program_transform_name=s,x,x,
  770. silent=
  771. site=
  772. srcdir=
  773. verbose=
  774. x_includes=NONE
  775. x_libraries=NONE
  776. # Installation directory options.
  777. # These are left unexpanded so users can "make install exec_prefix=/foo"
  778. # and all the variables that are supposed to be based on exec_prefix
  779. # by default will actually change.
  780. # Use braces instead of parens because sh, perl, etc. also accept them.
  781. # (The list follows the same order as the GNU Coding Standards.)
  782. bindir='${exec_prefix}/bin'
  783. sbindir='${exec_prefix}/sbin'
  784. libexecdir='${exec_prefix}/libexec'
  785. datarootdir='${prefix}/share'
  786. datadir='${datarootdir}'
  787. sysconfdir='${prefix}/etc'
  788. sharedstatedir='${prefix}/com'
  789. localstatedir='${prefix}/var'
  790. includedir='${prefix}/include'
  791. oldincludedir='/usr/include'
  792. docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
  793. infodir='${datarootdir}/info'
  794. htmldir='${docdir}'
  795. dvidir='${docdir}'
  796. pdfdir='${docdir}'
  797. psdir='${docdir}'
  798. libdir='${exec_prefix}/lib'
  799. localedir='${datarootdir}/locale'
  800. mandir='${datarootdir}/man'
  801. ac_prev=
  802. ac_dashdash=
  803. for ac_option
  804. do
  805. # If the previous option needs an argument, assign it.
  806. if test -n "$ac_prev"; then
  807. eval $ac_prev=\$ac_option
  808. ac_prev=
  809. continue
  810. fi
  811. case $ac_option in
  812. *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  813. *=) ac_optarg= ;;
  814. *) ac_optarg=yes ;;
  815. esac
  816. # Accept the important Cygnus configure options, so we can diagnose typos.
  817. case $ac_dashdash$ac_option in
  818. --)
  819. ac_dashdash=yes ;;
  820. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  821. ac_prev=bindir ;;
  822. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  823. bindir=$ac_optarg ;;
  824. -build | --build | --buil | --bui | --bu)
  825. ac_prev=build_alias ;;
  826. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  827. build_alias=$ac_optarg ;;
  828. -cache-file | --cache-file | --cache-fil | --cache-fi \
  829. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  830. ac_prev=cache_file ;;
  831. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  832. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  833. cache_file=$ac_optarg ;;
  834. --config-cache | -C)
  835. cache_file=config.cache ;;
  836. -datadir | --datadir | --datadi | --datad)
  837. ac_prev=datadir ;;
  838. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  839. datadir=$ac_optarg ;;
  840. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  841. | --dataroo | --dataro | --datar)
  842. ac_prev=datarootdir ;;
  843. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  844. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  845. datarootdir=$ac_optarg ;;
  846. -disable-* | --disable-*)
  847. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  848. # Reject names that are not valid shell variable names.
  849. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  850. as_fn_error $? "invalid feature name: $ac_useropt"
  851. ac_useropt_orig=$ac_useropt
  852. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  853. case $ac_user_opts in
  854. *"
  855. "enable_$ac_useropt"
  856. "*) ;;
  857. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  858. ac_unrecognized_sep=', ';;
  859. esac
  860. eval enable_$ac_useropt=no ;;
  861. -docdir | --docdir | --docdi | --doc | --do)
  862. ac_prev=docdir ;;
  863. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  864. docdir=$ac_optarg ;;
  865. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  866. ac_prev=dvidir ;;
  867. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  868. dvidir=$ac_optarg ;;
  869. -enable-* | --enable-*)
  870. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  871. # Reject names that are not valid shell variable names.
  872. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  873. as_fn_error $? "invalid feature name: $ac_useropt"
  874. ac_useropt_orig=$ac_useropt
  875. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  876. case $ac_user_opts in
  877. *"
  878. "enable_$ac_useropt"
  879. "*) ;;
  880. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  881. ac_unrecognized_sep=', ';;
  882. esac
  883. eval enable_$ac_useropt=\$ac_optarg ;;
  884. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  885. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  886. | --exec | --exe | --ex)
  887. ac_prev=exec_prefix ;;
  888. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  889. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  890. | --exec=* | --exe=* | --ex=*)
  891. exec_prefix=$ac_optarg ;;
  892. -gas | --gas | --ga | --g)
  893. # Obsolete; use --with-gas.
  894. with_gas=yes ;;
  895. -help | --help | --hel | --he | -h)
  896. ac_init_help=long ;;
  897. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  898. ac_init_help=recursive ;;
  899. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  900. ac_init_help=short ;;
  901. -host | --host | --hos | --ho)
  902. ac_prev=host_alias ;;
  903. -host=* | --host=* | --hos=* | --ho=*)
  904. host_alias=$ac_optarg ;;
  905. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  906. ac_prev=htmldir ;;
  907. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  908. | --ht=*)
  909. htmldir=$ac_optarg ;;
  910. -includedir | --includedir | --includedi | --included | --include \
  911. | --includ | --inclu | --incl | --inc)
  912. ac_prev=includedir ;;
  913. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  914. | --includ=* | --inclu=* | --incl=* | --inc=*)
  915. includedir=$ac_optarg ;;
  916. -infodir | --infodir | --infodi | --infod | --info | --inf)
  917. ac_prev=infodir ;;
  918. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  919. infodir=$ac_optarg ;;
  920. -libdir | --libdir | --libdi | --libd)
  921. ac_prev=libdir ;;
  922. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  923. libdir=$ac_optarg ;;
  924. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  925. | --libexe | --libex | --libe)
  926. ac_prev=libexecdir ;;
  927. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  928. | --libexe=* | --libex=* | --libe=*)
  929. libexecdir=$ac_optarg ;;
  930. -localedir | --localedir | --localedi | --localed | --locale)
  931. ac_prev=localedir ;;
  932. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  933. localedir=$ac_optarg ;;
  934. -localstatedir | --localstatedir | --localstatedi | --localstated \
  935. | --localstate | --localstat | --localsta | --localst | --locals)
  936. ac_prev=localstatedir ;;
  937. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  938. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  939. localstatedir=$ac_optarg ;;
  940. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  941. ac_prev=mandir ;;
  942. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  943. mandir=$ac_optarg ;;
  944. -nfp | --nfp | --nf)
  945. # Obsolete; use --without-fp.
  946. with_fp=no ;;
  947. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  948. | --no-cr | --no-c | -n)
  949. no_create=yes ;;
  950. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  951. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  952. no_recursion=yes ;;
  953. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  954. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  955. | --oldin | --oldi | --old | --ol | --o)
  956. ac_prev=oldincludedir ;;
  957. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  958. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  959. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  960. oldincludedir=$ac_optarg ;;
  961. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  962. ac_prev=prefix ;;
  963. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  964. prefix=$ac_optarg ;;
  965. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  966. | --program-pre | --program-pr | --program-p)
  967. ac_prev=program_prefix ;;
  968. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  969. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  970. program_prefix=$ac_optarg ;;
  971. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  972. | --program-suf | --program-su | --program-s)
  973. ac_prev=program_suffix ;;
  974. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  975. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  976. program_suffix=$ac_optarg ;;
  977. -program-transform-name | --program-transform-name \
  978. | --program-transform-nam | --program-transform-na \
  979. | --program-transform-n | --program-transform- \
  980. | --program-transform | --program-transfor \
  981. | --program-transfo | --program-transf \
  982. | --program-trans | --program-tran \
  983. | --progr-tra | --program-tr | --program-t)
  984. ac_prev=program_transform_name ;;
  985. -program-transform-name=* | --program-transform-name=* \
  986. | --program-transform-nam=* | --program-transform-na=* \
  987. | --program-transform-n=* | --program-transform-=* \
  988. | --program-transform=* | --program-transfor=* \
  989. | --program-transfo=* | --program-transf=* \
  990. | --program-trans=* | --program-tran=* \
  991. | --progr-tra=* | --program-tr=* | --program-t=*)
  992. program_transform_name=$ac_optarg ;;
  993. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  994. ac_prev=pdfdir ;;
  995. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  996. pdfdir=$ac_optarg ;;
  997. -psdir | --psdir | --psdi | --psd | --ps)
  998. ac_prev=psdir ;;
  999. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  1000. psdir=$ac_optarg ;;
  1001. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1002. | -silent | --silent | --silen | --sile | --sil)
  1003. silent=yes ;;
  1004. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  1005. ac_prev=sbindir ;;
  1006. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  1007. | --sbi=* | --sb=*)
  1008. sbindir=$ac_optarg ;;
  1009. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  1010. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  1011. | --sharedst | --shareds | --shared | --share | --shar \
  1012. | --sha | --sh)
  1013. ac_prev=sharedstatedir ;;
  1014. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  1015. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  1016. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  1017. | --sha=* | --sh=*)
  1018. sharedstatedir=$ac_optarg ;;
  1019. -site | --site | --sit)
  1020. ac_prev=site ;;
  1021. -site=* | --site=* | --sit=*)
  1022. site=$ac_optarg ;;
  1023. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1024. ac_prev=srcdir ;;
  1025. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1026. srcdir=$ac_optarg ;;
  1027. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  1028. | --syscon | --sysco | --sysc | --sys | --sy)
  1029. ac_prev=sysconfdir ;;
  1030. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1031. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1032. sysconfdir=$ac_optarg ;;
  1033. -target | --target | --targe | --targ | --tar | --ta | --t)
  1034. ac_prev=target_alias ;;
  1035. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1036. target_alias=$ac_optarg ;;
  1037. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1038. verbose=yes ;;
  1039. -version | --version | --versio | --versi | --vers | -V)
  1040. ac_init_version=: ;;
  1041. -with-* | --with-*)
  1042. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1043. # Reject names that are not valid shell variable names.
  1044. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1045. as_fn_error $? "invalid package name: $ac_useropt"
  1046. ac_useropt_orig=$ac_useropt
  1047. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1048. case $ac_user_opts in
  1049. *"
  1050. "with_$ac_useropt"
  1051. "*) ;;
  1052. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  1053. ac_unrecognized_sep=', ';;
  1054. esac
  1055. eval with_$ac_useropt=\$ac_optarg ;;
  1056. -without-* | --without-*)
  1057. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1058. # Reject names that are not valid shell variable names.
  1059. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1060. as_fn_error $? "invalid package name: $ac_useropt"
  1061. ac_useropt_orig=$ac_useropt
  1062. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1063. case $ac_user_opts in
  1064. *"
  1065. "with_$ac_useropt"
  1066. "*) ;;
  1067. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1068. ac_unrecognized_sep=', ';;
  1069. esac
  1070. eval with_$ac_useropt=no ;;
  1071. --x)
  1072. # Obsolete; use --with-x.
  1073. with_x=yes ;;
  1074. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1075. | --x-incl | --x-inc | --x-in | --x-i)
  1076. ac_prev=x_includes ;;
  1077. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1078. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1079. x_includes=$ac_optarg ;;
  1080. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1081. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1082. ac_prev=x_libraries ;;
  1083. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1084. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1085. x_libraries=$ac_optarg ;;
  1086. -*) as_fn_error $? "unrecognized option: \`$ac_option'
  1087. Try \`$0 --help' for more information"
  1088. ;;
  1089. *=*)
  1090. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1091. # Reject names that are not valid shell variable names.
  1092. case $ac_envvar in #(
  1093. '' | [0-9]* | *[!_$as_cr_alnum]* )
  1094. as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
  1095. esac
  1096. eval $ac_envvar=\$ac_optarg
  1097. export $ac_envvar ;;
  1098. *)
  1099. # FIXME: should be removed in autoconf 3.0.
  1100. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1101. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1102. $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1103. : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
  1104. ;;
  1105. esac
  1106. done
  1107. if test -n "$ac_prev"; then
  1108. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1109. as_fn_error $? "missing argument to $ac_option"
  1110. fi
  1111. if test -n "$ac_unrecognized_opts"; then
  1112. case $enable_option_checking in
  1113. no) ;;
  1114. fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
  1115. *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1116. esac
  1117. fi
  1118. # Check all directory arguments for consistency.
  1119. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1120. datadir sysconfdir sharedstatedir localstatedir includedir \
  1121. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1122. libdir localedir mandir
  1123. do
  1124. eval ac_val=\$$ac_var
  1125. # Remove trailing slashes.
  1126. case $ac_val in
  1127. */ )
  1128. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1129. eval $ac_var=\$ac_val;;
  1130. esac
  1131. # Be sure to have absolute directory names.
  1132. case $ac_val in
  1133. [\\/$]* | ?:[\\/]* ) continue;;
  1134. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1135. esac
  1136. as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
  1137. done
  1138. # There might be people who depend on the old broken behavior: `$host'
  1139. # used to hold the argument of --host etc.
  1140. # FIXME: To remove some day.
  1141. build=$build_alias
  1142. host=$host_alias
  1143. target=$target_alias
  1144. # FIXME: To remove some day.
  1145. if test "x$host_alias" != x; then
  1146. if test "x$build_alias" = x; then
  1147. cross_compiling=maybe
  1148. elif test "x$build_alias" != "x$host_alias"; then
  1149. cross_compiling=yes
  1150. fi
  1151. fi
  1152. ac_tool_prefix=
  1153. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1154. test "$silent" = yes && exec 6>/dev/null
  1155. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1156. ac_ls_di=`ls -di .` &&
  1157. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1158. as_fn_error $? "working directory cannot be determined"
  1159. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1160. as_fn_error $? "pwd does not report name of working directory"
  1161. # Find the source files, if location was not specified.
  1162. if test -z "$srcdir"; then
  1163. ac_srcdir_defaulted=yes
  1164. # Try the directory containing this script, then the parent directory.
  1165. ac_confdir=`$as_dirname -- "$as_myself" ||
  1166. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1167. X"$as_myself" : 'X\(//\)[^/]' \| \
  1168. X"$as_myself" : 'X\(//\)$' \| \
  1169. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1170. $as_echo X"$as_myself" |
  1171. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1172. s//\1/
  1173. q
  1174. }
  1175. /^X\(\/\/\)[^/].*/{
  1176. s//\1/
  1177. q
  1178. }
  1179. /^X\(\/\/\)$/{
  1180. s//\1/
  1181. q
  1182. }
  1183. /^X\(\/\).*/{
  1184. s//\1/
  1185. q
  1186. }
  1187. s/.*/./; q'`
  1188. srcdir=$ac_confdir
  1189. if test ! -r "$srcdir/$ac_unique_file"; then
  1190. srcdir=..
  1191. fi
  1192. else
  1193. ac_srcdir_defaulted=no
  1194. fi
  1195. if test ! -r "$srcdir/$ac_unique_file"; then
  1196. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1197. as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
  1198. fi
  1199. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1200. ac_abs_confdir=`(
  1201. cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
  1202. pwd)`
  1203. # When building in place, set srcdir=.
  1204. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1205. srcdir=.
  1206. fi
  1207. # Remove unnecessary trailing slashes from srcdir.
  1208. # Double slashes in file names in object file debugging info
  1209. # mess up M-x gdb in Emacs.
  1210. case $srcdir in
  1211. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1212. esac
  1213. for ac_var in $ac_precious_vars; do
  1214. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1215. eval ac_env_${ac_var}_value=\$${ac_var}
  1216. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1217. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1218. done
  1219. #
  1220. # Report the --help message.
  1221. #
  1222. if test "$ac_init_help" = "long"; then
  1223. # Omit some internal or obsolete options to make the list less imposing.
  1224. # This message is too long to be a string in the A/UX 3.1 sh.
  1225. cat <<_ACEOF
  1226. \`configure' configures libmodbus 3.1.6 to adapt to many kinds of systems.
  1227. Usage: $0 [OPTION]... [VAR=VALUE]...
  1228. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1229. VAR=VALUE. See below for descriptions of some of the useful variables.
  1230. Defaults for the options are specified in brackets.
  1231. Configuration:
  1232. -h, --help display this help and exit
  1233. --help=short display options specific to this package
  1234. --help=recursive display the short help of all the included packages
  1235. -V, --version display version information and exit
  1236. -q, --quiet, --silent do not print \`checking ...' messages
  1237. --cache-file=FILE cache test results in FILE [disabled]
  1238. -C, --config-cache alias for \`--cache-file=config.cache'
  1239. -n, --no-create do not create output files
  1240. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1241. Installation directories:
  1242. --prefix=PREFIX install architecture-independent files in PREFIX
  1243. [$ac_default_prefix]
  1244. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1245. [PREFIX]
  1246. By default, \`make install' will install all the files in
  1247. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1248. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1249. for instance \`--prefix=\$HOME'.
  1250. For better control, use the options below.
  1251. Fine tuning of the installation directories:
  1252. --bindir=DIR user executables [EPREFIX/bin]
  1253. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1254. --libexecdir=DIR program executables [EPREFIX/libexec]
  1255. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1256. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1257. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1258. --libdir=DIR object code libraries [EPREFIX/lib]
  1259. --includedir=DIR C header files [PREFIX/include]
  1260. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1261. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1262. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1263. --infodir=DIR info documentation [DATAROOTDIR/info]
  1264. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1265. --mandir=DIR man documentation [DATAROOTDIR/man]
  1266. --docdir=DIR documentation root [DATAROOTDIR/doc/libmodbus]
  1267. --htmldir=DIR html documentation [DOCDIR]
  1268. --dvidir=DIR dvi documentation [DOCDIR]
  1269. --pdfdir=DIR pdf documentation [DOCDIR]
  1270. --psdir=DIR ps documentation [DOCDIR]
  1271. _ACEOF
  1272. cat <<\_ACEOF
  1273. Program names:
  1274. --program-prefix=PREFIX prepend PREFIX to installed program names
  1275. --program-suffix=SUFFIX append SUFFIX to installed program names
  1276. --program-transform-name=PROGRAM run sed PROGRAM on installed program names
  1277. System types:
  1278. --build=BUILD configure for building on BUILD [guessed]
  1279. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1280. _ACEOF
  1281. fi
  1282. if test -n "$ac_init_help"; then
  1283. case $ac_init_help in
  1284. short | recursive ) echo "Configuration of libmodbus 3.1.6:";;
  1285. esac
  1286. cat <<\_ACEOF
  1287. Optional Features:
  1288. --disable-option-checking ignore unrecognized --enable/--with options
  1289. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1290. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1291. --enable-silent-rules less verbose build output (undo: "make V=1")
  1292. --disable-silent-rules verbose build output (undo: "make V=0")
  1293. --enable-dependency-tracking
  1294. do not reject slow dependency extractors
  1295. --disable-dependency-tracking
  1296. speeds up one-time build
  1297. --disable-largefile omit support for large files
  1298. --enable-static[=PKGS] build static libraries [default=no]
  1299. --enable-shared[=PKGS] build shared libraries [default=yes]
  1300. --enable-fast-install[=PKGS]
  1301. optimize for fast installation [default=yes]
  1302. --disable-libtool-lock avoid locking (might break parallel builds)
  1303. --disable-tests Build tests (default: yes)
  1304. Optional Packages:
  1305. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1306. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1307. --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
  1308. both]
  1309. --with-aix-soname=aix|svr4|both
  1310. shared library versioning (aka "SONAME") variant to
  1311. provide on AIX, [default=aix].
  1312. --with-gnu-ld assume the C compiler uses GNU ld [default=no]
  1313. --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
  1314. compiler's sysroot if not specified).
  1315. --without-documentation disable documentation build even if asciidoc and
  1316. xmlto are present [default=no]
  1317. Some influential environment variables:
  1318. CC C compiler command
  1319. CFLAGS C compiler flags
  1320. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1321. nonstandard directory <lib dir>
  1322. LIBS libraries to pass to the linker, e.g. -l<library>
  1323. CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
  1324. you have headers in a nonstandard directory <include dir>
  1325. CPP C preprocessor
  1326. LT_SYS_LIBRARY_PATH
  1327. User-defined run-time library search path.
  1328. CXX C++ compiler command
  1329. CXXFLAGS C++ compiler flags
  1330. CXXCPP C++ preprocessor
  1331. Use these variables to override the choices made by `configure' or to help
  1332. it to find libraries and programs with nonstandard names/locations.
  1333. Report bugs to <https://github.com/stephane/libmodbus/issues>.
  1334. libmodbus home page: <http://libmodbus.org/>.
  1335. _ACEOF
  1336. ac_status=$?
  1337. fi
  1338. if test "$ac_init_help" = "recursive"; then
  1339. # If there are subdirs, report their specific --help.
  1340. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1341. test -d "$ac_dir" ||
  1342. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1343. continue
  1344. ac_builddir=.
  1345. case "$ac_dir" in
  1346. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1347. *)
  1348. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  1349. # A ".." for each directory in $ac_dir_suffix.
  1350. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1351. case $ac_top_builddir_sub in
  1352. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1353. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1354. esac ;;
  1355. esac
  1356. ac_abs_top_builddir=$ac_pwd
  1357. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1358. # for backward compatibility:
  1359. ac_top_builddir=$ac_top_build_prefix
  1360. case $srcdir in
  1361. .) # We are building in place.
  1362. ac_srcdir=.
  1363. ac_top_srcdir=$ac_top_builddir_sub
  1364. ac_abs_top_srcdir=$ac_pwd ;;
  1365. [\\/]* | ?:[\\/]* ) # Absolute name.
  1366. ac_srcdir=$srcdir$ac_dir_suffix;
  1367. ac_top_srcdir=$srcdir
  1368. ac_abs_top_srcdir=$srcdir ;;
  1369. *) # Relative name.
  1370. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1371. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1372. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1373. esac
  1374. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1375. cd "$ac_dir" || { ac_status=$?; continue; }
  1376. # Check for guested configure.
  1377. if test -f "$ac_srcdir/configure.gnu"; then
  1378. echo &&
  1379. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1380. elif test -f "$ac_srcdir/configure"; then
  1381. echo &&
  1382. $SHELL "$ac_srcdir/configure" --help=recursive
  1383. else
  1384. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1385. fi || ac_status=$?
  1386. cd "$ac_pwd" || { ac_status=$?; break; }
  1387. done
  1388. fi
  1389. test -n "$ac_init_help" && exit $ac_status
  1390. if $ac_init_version; then
  1391. cat <<\_ACEOF
  1392. libmodbus configure 3.1.6
  1393. generated by GNU Autoconf 2.69
  1394. Copyright (C) 2012 Free Software Foundation, Inc.
  1395. This configure script is free software; the Free Software Foundation
  1396. gives unlimited permission to copy, distribute and modify it.
  1397. _ACEOF
  1398. exit
  1399. fi
  1400. ## ------------------------ ##
  1401. ## Autoconf initialization. ##
  1402. ## ------------------------ ##
  1403. # ac_fn_c_try_compile LINENO
  1404. # --------------------------
  1405. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1406. ac_fn_c_try_compile ()
  1407. {
  1408. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1409. rm -f conftest.$ac_objext
  1410. if { { ac_try="$ac_compile"
  1411. case "(($ac_try" in
  1412. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1413. *) ac_try_echo=$ac_try;;
  1414. esac
  1415. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1416. $as_echo "$ac_try_echo"; } >&5
  1417. (eval "$ac_compile") 2>conftest.err
  1418. ac_status=$?
  1419. if test -s conftest.err; then
  1420. grep -v '^ *+' conftest.err >conftest.er1
  1421. cat conftest.er1 >&5
  1422. mv -f conftest.er1 conftest.err
  1423. fi
  1424. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1425. test $ac_status = 0; } && {
  1426. test -z "$ac_c_werror_flag" ||
  1427. test ! -s conftest.err
  1428. } && test -s conftest.$ac_objext; then :
  1429. ac_retval=0
  1430. else
  1431. $as_echo "$as_me: failed program was:" >&5
  1432. sed 's/^/| /' conftest.$ac_ext >&5
  1433. ac_retval=1
  1434. fi
  1435. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1436. as_fn_set_status $ac_retval
  1437. } # ac_fn_c_try_compile
  1438. # ac_fn_c_try_cpp LINENO
  1439. # ----------------------
  1440. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1441. ac_fn_c_try_cpp ()
  1442. {
  1443. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1444. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1445. case "(($ac_try" in
  1446. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1447. *) ac_try_echo=$ac_try;;
  1448. esac
  1449. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1450. $as_echo "$ac_try_echo"; } >&5
  1451. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1452. ac_status=$?
  1453. if test -s conftest.err; then
  1454. grep -v '^ *+' conftest.err >conftest.er1
  1455. cat conftest.er1 >&5
  1456. mv -f conftest.er1 conftest.err
  1457. fi
  1458. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1459. test $ac_status = 0; } > conftest.i && {
  1460. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  1461. test ! -s conftest.err
  1462. }; then :
  1463. ac_retval=0
  1464. else
  1465. $as_echo "$as_me: failed program was:" >&5
  1466. sed 's/^/| /' conftest.$ac_ext >&5
  1467. ac_retval=1
  1468. fi
  1469. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1470. as_fn_set_status $ac_retval
  1471. } # ac_fn_c_try_cpp
  1472. # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
  1473. # -------------------------------------------------------
  1474. # Tests whether HEADER exists, giving a warning if it cannot be compiled using
  1475. # the include files in INCLUDES and setting the cache variable VAR
  1476. # accordingly.
  1477. ac_fn_c_check_header_mongrel ()
  1478. {
  1479. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1480. if eval \${$3+:} false; then :
  1481. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1482. $as_echo_n "checking for $2... " >&6; }
  1483. if eval \${$3+:} false; then :
  1484. $as_echo_n "(cached) " >&6
  1485. fi
  1486. eval ac_res=\$$3
  1487. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1488. $as_echo "$ac_res" >&6; }
  1489. else
  1490. # Is the header compilable?
  1491. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
  1492. $as_echo_n "checking $2 usability... " >&6; }
  1493. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1494. /* end confdefs.h. */
  1495. $4
  1496. #include <$2>
  1497. _ACEOF
  1498. if ac_fn_c_try_compile "$LINENO"; then :
  1499. ac_header_compiler=yes
  1500. else
  1501. ac_header_compiler=no
  1502. fi
  1503. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1504. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
  1505. $as_echo "$ac_header_compiler" >&6; }
  1506. # Is the header present?
  1507. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
  1508. $as_echo_n "checking $2 presence... " >&6; }
  1509. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1510. /* end confdefs.h. */
  1511. #include <$2>
  1512. _ACEOF
  1513. if ac_fn_c_try_cpp "$LINENO"; then :
  1514. ac_header_preproc=yes
  1515. else
  1516. ac_header_preproc=no
  1517. fi
  1518. rm -f conftest.err conftest.i conftest.$ac_ext
  1519. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
  1520. $as_echo "$ac_header_preproc" >&6; }
  1521. # So? What about this header?
  1522. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
  1523. yes:no: )
  1524. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
  1525. $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
  1526. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1527. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1528. ;;
  1529. no:yes:* )
  1530. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
  1531. $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
  1532. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
  1533. $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
  1534. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
  1535. $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
  1536. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
  1537. $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
  1538. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1539. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1540. ( $as_echo "## ----------------------------------------------------------- ##
  1541. ## Report this to https://github.com/stephane/libmodbus/issues ##
  1542. ## ----------------------------------------------------------- ##"
  1543. ) | sed "s/^/$as_me: WARNING: /" >&2
  1544. ;;
  1545. esac
  1546. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1547. $as_echo_n "checking for $2... " >&6; }
  1548. if eval \${$3+:} false; then :
  1549. $as_echo_n "(cached) " >&6
  1550. else
  1551. eval "$3=\$ac_header_compiler"
  1552. fi
  1553. eval ac_res=\$$3
  1554. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1555. $as_echo "$ac_res" >&6; }
  1556. fi
  1557. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1558. } # ac_fn_c_check_header_mongrel
  1559. # ac_fn_c_try_run LINENO
  1560. # ----------------------
  1561. # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
  1562. # that executables *can* be run.
  1563. ac_fn_c_try_run ()
  1564. {
  1565. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1566. if { { ac_try="$ac_link"
  1567. case "(($ac_try" in
  1568. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1569. *) ac_try_echo=$ac_try;;
  1570. esac
  1571. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1572. $as_echo "$ac_try_echo"; } >&5
  1573. (eval "$ac_link") 2>&5
  1574. ac_status=$?
  1575. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1576. test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  1577. { { case "(($ac_try" in
  1578. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1579. *) ac_try_echo=$ac_try;;
  1580. esac
  1581. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1582. $as_echo "$ac_try_echo"; } >&5
  1583. (eval "$ac_try") 2>&5
  1584. ac_status=$?
  1585. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1586. test $ac_status = 0; }; }; then :
  1587. ac_retval=0
  1588. else
  1589. $as_echo "$as_me: program exited with status $ac_status" >&5
  1590. $as_echo "$as_me: failed program was:" >&5
  1591. sed 's/^/| /' conftest.$ac_ext >&5
  1592. ac_retval=$ac_status
  1593. fi
  1594. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1595. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1596. as_fn_set_status $ac_retval
  1597. } # ac_fn_c_try_run
  1598. # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
  1599. # -------------------------------------------------------
  1600. # Tests whether HEADER exists and can be compiled using the include files in
  1601. # INCLUDES, setting the cache variable VAR accordingly.
  1602. ac_fn_c_check_header_compile ()
  1603. {
  1604. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1605. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1606. $as_echo_n "checking for $2... " >&6; }
  1607. if eval \${$3+:} false; then :
  1608. $as_echo_n "(cached) " >&6
  1609. else
  1610. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1611. /* end confdefs.h. */
  1612. $4
  1613. #include <$2>
  1614. _ACEOF
  1615. if ac_fn_c_try_compile "$LINENO"; then :
  1616. eval "$3=yes"
  1617. else
  1618. eval "$3=no"
  1619. fi
  1620. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1621. fi
  1622. eval ac_res=\$$3
  1623. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1624. $as_echo "$ac_res" >&6; }
  1625. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1626. } # ac_fn_c_check_header_compile
  1627. # ac_fn_c_try_link LINENO
  1628. # -----------------------
  1629. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1630. ac_fn_c_try_link ()
  1631. {
  1632. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1633. rm -f conftest.$ac_objext conftest$ac_exeext
  1634. if { { ac_try="$ac_link"
  1635. case "(($ac_try" in
  1636. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1637. *) ac_try_echo=$ac_try;;
  1638. esac
  1639. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1640. $as_echo "$ac_try_echo"; } >&5
  1641. (eval "$ac_link") 2>conftest.err
  1642. ac_status=$?
  1643. if test -s conftest.err; then
  1644. grep -v '^ *+' conftest.err >conftest.er1
  1645. cat conftest.er1 >&5
  1646. mv -f conftest.er1 conftest.err
  1647. fi
  1648. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1649. test $ac_status = 0; } && {
  1650. test -z "$ac_c_werror_flag" ||
  1651. test ! -s conftest.err
  1652. } && test -s conftest$ac_exeext && {
  1653. test "$cross_compiling" = yes ||
  1654. test -x conftest$ac_exeext
  1655. }; then :
  1656. ac_retval=0
  1657. else
  1658. $as_echo "$as_me: failed program was:" >&5
  1659. sed 's/^/| /' conftest.$ac_ext >&5
  1660. ac_retval=1
  1661. fi
  1662. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1663. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1664. # interfere with the next link command; also delete a directory that is
  1665. # left behind by Apple's compiler. We do this before executing the actions.
  1666. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1667. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1668. as_fn_set_status $ac_retval
  1669. } # ac_fn_c_try_link
  1670. # ac_fn_c_check_func LINENO FUNC VAR
  1671. # ----------------------------------
  1672. # Tests whether FUNC exists, setting the cache variable VAR accordingly
  1673. ac_fn_c_check_func ()
  1674. {
  1675. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1676. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1677. $as_echo_n "checking for $2... " >&6; }
  1678. if eval \${$3+:} false; then :
  1679. $as_echo_n "(cached) " >&6
  1680. else
  1681. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1682. /* end confdefs.h. */
  1683. /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  1684. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  1685. #define $2 innocuous_$2
  1686. /* System header to define __stub macros and hopefully few prototypes,
  1687. which can conflict with char $2 (); below.
  1688. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  1689. <limits.h> exists even on freestanding compilers. */
  1690. #ifdef __STDC__
  1691. # include <limits.h>
  1692. #else
  1693. # include <assert.h>
  1694. #endif
  1695. #undef $2
  1696. /* Override any GCC internal prototype to avoid an error.
  1697. Use char because int might match the return type of a GCC
  1698. builtin and then its argument prototype would still apply. */
  1699. #ifdef __cplusplus
  1700. extern "C"
  1701. #endif
  1702. char $2 ();
  1703. /* The GNU C library defines this for functions which it implements
  1704. to always fail with ENOSYS. Some functions are actually named
  1705. something starting with __ and the normal name is an alias. */
  1706. #if defined __stub_$2 || defined __stub___$2
  1707. choke me
  1708. #endif
  1709. int
  1710. main ()
  1711. {
  1712. return $2 ();
  1713. ;
  1714. return 0;
  1715. }
  1716. _ACEOF
  1717. if ac_fn_c_try_link "$LINENO"; then :
  1718. eval "$3=yes"
  1719. else
  1720. eval "$3=no"
  1721. fi
  1722. rm -f core conftest.err conftest.$ac_objext \
  1723. conftest$ac_exeext conftest.$ac_ext
  1724. fi
  1725. eval ac_res=\$$3
  1726. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1727. $as_echo "$ac_res" >&6; }
  1728. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1729. } # ac_fn_c_check_func
  1730. # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
  1731. # ---------------------------------------------
  1732. # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
  1733. # accordingly.
  1734. ac_fn_c_check_decl ()
  1735. {
  1736. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1737. as_decl_name=`echo $2|sed 's/ *(.*//'`
  1738. as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
  1739. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
  1740. $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
  1741. if eval \${$3+:} false; then :
  1742. $as_echo_n "(cached) " >&6
  1743. else
  1744. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1745. /* end confdefs.h. */
  1746. $4
  1747. int
  1748. main ()
  1749. {
  1750. #ifndef $as_decl_name
  1751. #ifdef __cplusplus
  1752. (void) $as_decl_use;
  1753. #else
  1754. (void) $as_decl_name;
  1755. #endif
  1756. #endif
  1757. ;
  1758. return 0;
  1759. }
  1760. _ACEOF
  1761. if ac_fn_c_try_compile "$LINENO"; then :
  1762. eval "$3=yes"
  1763. else
  1764. eval "$3=no"
  1765. fi
  1766. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1767. fi
  1768. eval ac_res=\$$3
  1769. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1770. $as_echo "$ac_res" >&6; }
  1771. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1772. } # ac_fn_c_check_decl
  1773. # ac_fn_cxx_try_compile LINENO
  1774. # ----------------------------
  1775. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1776. ac_fn_cxx_try_compile ()
  1777. {
  1778. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1779. rm -f conftest.$ac_objext
  1780. if { { ac_try="$ac_compile"
  1781. case "(($ac_try" in
  1782. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1783. *) ac_try_echo=$ac_try;;
  1784. esac
  1785. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1786. $as_echo "$ac_try_echo"; } >&5
  1787. (eval "$ac_compile") 2>conftest.err
  1788. ac_status=$?
  1789. if test -s conftest.err; then
  1790. grep -v '^ *+' conftest.err >conftest.er1
  1791. cat conftest.er1 >&5
  1792. mv -f conftest.er1 conftest.err
  1793. fi
  1794. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1795. test $ac_status = 0; } && {
  1796. test -z "$ac_cxx_werror_flag" ||
  1797. test ! -s conftest.err
  1798. } && test -s conftest.$ac_objext; then :
  1799. ac_retval=0
  1800. else
  1801. $as_echo "$as_me: failed program was:" >&5
  1802. sed 's/^/| /' conftest.$ac_ext >&5
  1803. ac_retval=1
  1804. fi
  1805. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1806. as_fn_set_status $ac_retval
  1807. } # ac_fn_cxx_try_compile
  1808. # ac_fn_cxx_try_cpp LINENO
  1809. # ------------------------
  1810. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1811. ac_fn_cxx_try_cpp ()
  1812. {
  1813. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1814. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1815. case "(($ac_try" in
  1816. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1817. *) ac_try_echo=$ac_try;;
  1818. esac
  1819. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1820. $as_echo "$ac_try_echo"; } >&5
  1821. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1822. ac_status=$?
  1823. if test -s conftest.err; then
  1824. grep -v '^ *+' conftest.err >conftest.er1
  1825. cat conftest.er1 >&5
  1826. mv -f conftest.er1 conftest.err
  1827. fi
  1828. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1829. test $ac_status = 0; } > conftest.i && {
  1830. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  1831. test ! -s conftest.err
  1832. }; then :
  1833. ac_retval=0
  1834. else
  1835. $as_echo "$as_me: failed program was:" >&5
  1836. sed 's/^/| /' conftest.$ac_ext >&5
  1837. ac_retval=1
  1838. fi
  1839. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1840. as_fn_set_status $ac_retval
  1841. } # ac_fn_cxx_try_cpp
  1842. # ac_fn_cxx_try_link LINENO
  1843. # -------------------------
  1844. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1845. ac_fn_cxx_try_link ()
  1846. {
  1847. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1848. rm -f conftest.$ac_objext conftest$ac_exeext
  1849. if { { ac_try="$ac_link"
  1850. case "(($ac_try" in
  1851. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1852. *) ac_try_echo=$ac_try;;
  1853. esac
  1854. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1855. $as_echo "$ac_try_echo"; } >&5
  1856. (eval "$ac_link") 2>conftest.err
  1857. ac_status=$?
  1858. if test -s conftest.err; then
  1859. grep -v '^ *+' conftest.err >conftest.er1
  1860. cat conftest.er1 >&5
  1861. mv -f conftest.er1 conftest.err
  1862. fi
  1863. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1864. test $ac_status = 0; } && {
  1865. test -z "$ac_cxx_werror_flag" ||
  1866. test ! -s conftest.err
  1867. } && test -s conftest$ac_exeext && {
  1868. test "$cross_compiling" = yes ||
  1869. test -x conftest$ac_exeext
  1870. }; then :
  1871. ac_retval=0
  1872. else
  1873. $as_echo "$as_me: failed program was:" >&5
  1874. sed 's/^/| /' conftest.$ac_ext >&5
  1875. ac_retval=1
  1876. fi
  1877. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1878. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1879. # interfere with the next link command; also delete a directory that is
  1880. # left behind by Apple's compiler. We do this before executing the actions.
  1881. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1882. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1883. as_fn_set_status $ac_retval
  1884. } # ac_fn_cxx_try_link
  1885. # ac_fn_c_find_intX_t LINENO BITS VAR
  1886. # -----------------------------------
  1887. # Finds a signed integer type with width BITS, setting cache variable VAR
  1888. # accordingly.
  1889. ac_fn_c_find_intX_t ()
  1890. {
  1891. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1892. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
  1893. $as_echo_n "checking for int$2_t... " >&6; }
  1894. if eval \${$3+:} false; then :
  1895. $as_echo_n "(cached) " >&6
  1896. else
  1897. eval "$3=no"
  1898. # Order is important - never check a type that is potentially smaller
  1899. # than half of the expected target width.
  1900. for ac_type in int$2_t 'int' 'long int' \
  1901. 'long long int' 'short int' 'signed char'; do
  1902. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1903. /* end confdefs.h. */
  1904. $ac_includes_default
  1905. enum { N = $2 / 2 - 1 };
  1906. int
  1907. main ()
  1908. {
  1909. static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))];
  1910. test_array [0] = 0;
  1911. return test_array [0];
  1912. ;
  1913. return 0;
  1914. }
  1915. _ACEOF
  1916. if ac_fn_c_try_compile "$LINENO"; then :
  1917. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1918. /* end confdefs.h. */
  1919. $ac_includes_default
  1920. enum { N = $2 / 2 - 1 };
  1921. int
  1922. main ()
  1923. {
  1924. static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1)
  1925. < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))];
  1926. test_array [0] = 0;
  1927. return test_array [0];
  1928. ;
  1929. return 0;
  1930. }
  1931. _ACEOF
  1932. if ac_fn_c_try_compile "$LINENO"; then :
  1933. else
  1934. case $ac_type in #(
  1935. int$2_t) :
  1936. eval "$3=yes" ;; #(
  1937. *) :
  1938. eval "$3=\$ac_type" ;;
  1939. esac
  1940. fi
  1941. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1942. fi
  1943. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1944. if eval test \"x\$"$3"\" = x"no"; then :
  1945. else
  1946. break
  1947. fi
  1948. done
  1949. fi
  1950. eval ac_res=\$$3
  1951. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1952. $as_echo "$ac_res" >&6; }
  1953. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1954. } # ac_fn_c_find_intX_t
  1955. # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
  1956. # -------------------------------------------
  1957. # Tests whether TYPE exists after having included INCLUDES, setting cache
  1958. # variable VAR accordingly.
  1959. ac_fn_c_check_type ()
  1960. {
  1961. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1962. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1963. $as_echo_n "checking for $2... " >&6; }
  1964. if eval \${$3+:} false; then :
  1965. $as_echo_n "(cached) " >&6
  1966. else
  1967. eval "$3=no"
  1968. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1969. /* end confdefs.h. */
  1970. $4
  1971. int
  1972. main ()
  1973. {
  1974. if (sizeof ($2))
  1975. return 0;
  1976. ;
  1977. return 0;
  1978. }
  1979. _ACEOF
  1980. if ac_fn_c_try_compile "$LINENO"; then :
  1981. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1982. /* end confdefs.h. */
  1983. $4
  1984. int
  1985. main ()
  1986. {
  1987. if (sizeof (($2)))
  1988. return 0;
  1989. ;
  1990. return 0;
  1991. }
  1992. _ACEOF
  1993. if ac_fn_c_try_compile "$LINENO"; then :
  1994. else
  1995. eval "$3=yes"
  1996. fi
  1997. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1998. fi
  1999. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2000. fi
  2001. eval ac_res=\$$3
  2002. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2003. $as_echo "$ac_res" >&6; }
  2004. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2005. } # ac_fn_c_check_type
  2006. # ac_fn_c_find_uintX_t LINENO BITS VAR
  2007. # ------------------------------------
  2008. # Finds an unsigned integer type with width BITS, setting cache variable VAR
  2009. # accordingly.
  2010. ac_fn_c_find_uintX_t ()
  2011. {
  2012. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2013. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
  2014. $as_echo_n "checking for uint$2_t... " >&6; }
  2015. if eval \${$3+:} false; then :
  2016. $as_echo_n "(cached) " >&6
  2017. else
  2018. eval "$3=no"
  2019. # Order is important - never check a type that is potentially smaller
  2020. # than half of the expected target width.
  2021. for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
  2022. 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
  2023. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2024. /* end confdefs.h. */
  2025. $ac_includes_default
  2026. int
  2027. main ()
  2028. {
  2029. static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
  2030. test_array [0] = 0;
  2031. return test_array [0];
  2032. ;
  2033. return 0;
  2034. }
  2035. _ACEOF
  2036. if ac_fn_c_try_compile "$LINENO"; then :
  2037. case $ac_type in #(
  2038. uint$2_t) :
  2039. eval "$3=yes" ;; #(
  2040. *) :
  2041. eval "$3=\$ac_type" ;;
  2042. esac
  2043. fi
  2044. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2045. if eval test \"x\$"$3"\" = x"no"; then :
  2046. else
  2047. break
  2048. fi
  2049. done
  2050. fi
  2051. eval ac_res=\$$3
  2052. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2053. $as_echo "$ac_res" >&6; }
  2054. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2055. } # ac_fn_c_find_uintX_t
  2056. cat >config.log <<_ACEOF
  2057. This file contains any messages produced by compilers while
  2058. running configure, to aid debugging if configure makes a mistake.
  2059. It was created by libmodbus $as_me 3.1.6, which was
  2060. generated by GNU Autoconf 2.69. Invocation command line was
  2061. $ $0 $@
  2062. _ACEOF
  2063. exec 5>>config.log
  2064. {
  2065. cat <<_ASUNAME
  2066. ## --------- ##
  2067. ## Platform. ##
  2068. ## --------- ##
  2069. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  2070. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  2071. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  2072. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  2073. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  2074. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  2075. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  2076. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  2077. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  2078. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  2079. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  2080. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  2081. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  2082. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  2083. _ASUNAME
  2084. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2085. for as_dir in $PATH
  2086. do
  2087. IFS=$as_save_IFS
  2088. test -z "$as_dir" && as_dir=.
  2089. $as_echo "PATH: $as_dir"
  2090. done
  2091. IFS=$as_save_IFS
  2092. } >&5
  2093. cat >&5 <<_ACEOF
  2094. ## ----------- ##
  2095. ## Core tests. ##
  2096. ## ----------- ##
  2097. _ACEOF
  2098. # Keep a trace of the command line.
  2099. # Strip out --no-create and --no-recursion so they do not pile up.
  2100. # Strip out --silent because we don't want to record it for future runs.
  2101. # Also quote any args containing shell meta-characters.
  2102. # Make two passes to allow for proper duplicate-argument suppression.
  2103. ac_configure_args=
  2104. ac_configure_args0=
  2105. ac_configure_args1=
  2106. ac_must_keep_next=false
  2107. for ac_pass in 1 2
  2108. do
  2109. for ac_arg
  2110. do
  2111. case $ac_arg in
  2112. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  2113. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  2114. | -silent | --silent | --silen | --sile | --sil)
  2115. continue ;;
  2116. *\'*)
  2117. ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  2118. esac
  2119. case $ac_pass in
  2120. 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  2121. 2)
  2122. as_fn_append ac_configure_args1 " '$ac_arg'"
  2123. if test $ac_must_keep_next = true; then
  2124. ac_must_keep_next=false # Got value, back to normal.
  2125. else
  2126. case $ac_arg in
  2127. *=* | --config-cache | -C | -disable-* | --disable-* \
  2128. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  2129. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  2130. | -with-* | --with-* | -without-* | --without-* | --x)
  2131. case "$ac_configure_args0 " in
  2132. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  2133. esac
  2134. ;;
  2135. -* ) ac_must_keep_next=true ;;
  2136. esac
  2137. fi
  2138. as_fn_append ac_configure_args " '$ac_arg'"
  2139. ;;
  2140. esac
  2141. done
  2142. done
  2143. { ac_configure_args0=; unset ac_configure_args0;}
  2144. { ac_configure_args1=; unset ac_configure_args1;}
  2145. # When interrupted or exit'd, cleanup temporary files, and complete
  2146. # config.log. We remove comments because anyway the quotes in there
  2147. # would cause problems or look ugly.
  2148. # WARNING: Use '\'' to represent an apostrophe within the trap.
  2149. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  2150. trap 'exit_status=$?
  2151. # Save into config.log some information that might help in debugging.
  2152. {
  2153. echo
  2154. $as_echo "## ---------------- ##
  2155. ## Cache variables. ##
  2156. ## ---------------- ##"
  2157. echo
  2158. # The following way of writing the cache mishandles newlines in values,
  2159. (
  2160. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  2161. eval ac_val=\$$ac_var
  2162. case $ac_val in #(
  2163. *${as_nl}*)
  2164. case $ac_var in #(
  2165. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  2166. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  2167. esac
  2168. case $ac_var in #(
  2169. _ | IFS | as_nl) ;; #(
  2170. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  2171. *) { eval $ac_var=; unset $ac_var;} ;;
  2172. esac ;;
  2173. esac
  2174. done
  2175. (set) 2>&1 |
  2176. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  2177. *${as_nl}ac_space=\ *)
  2178. sed -n \
  2179. "s/'\''/'\''\\\\'\'''\''/g;
  2180. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  2181. ;; #(
  2182. *)
  2183. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  2184. ;;
  2185. esac |
  2186. sort
  2187. )
  2188. echo
  2189. $as_echo "## ----------------- ##
  2190. ## Output variables. ##
  2191. ## ----------------- ##"
  2192. echo
  2193. for ac_var in $ac_subst_vars
  2194. do
  2195. eval ac_val=\$$ac_var
  2196. case $ac_val in
  2197. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2198. esac
  2199. $as_echo "$ac_var='\''$ac_val'\''"
  2200. done | sort
  2201. echo
  2202. if test -n "$ac_subst_files"; then
  2203. $as_echo "## ------------------- ##
  2204. ## File substitutions. ##
  2205. ## ------------------- ##"
  2206. echo
  2207. for ac_var in $ac_subst_files
  2208. do
  2209. eval ac_val=\$$ac_var
  2210. case $ac_val in
  2211. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2212. esac
  2213. $as_echo "$ac_var='\''$ac_val'\''"
  2214. done | sort
  2215. echo
  2216. fi
  2217. if test -s confdefs.h; then
  2218. $as_echo "## ----------- ##
  2219. ## confdefs.h. ##
  2220. ## ----------- ##"
  2221. echo
  2222. cat confdefs.h
  2223. echo
  2224. fi
  2225. test "$ac_signal" != 0 &&
  2226. $as_echo "$as_me: caught signal $ac_signal"
  2227. $as_echo "$as_me: exit $exit_status"
  2228. } >&5
  2229. rm -f core *.core core.conftest.* &&
  2230. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  2231. exit $exit_status
  2232. ' 0
  2233. for ac_signal in 1 2 13 15; do
  2234. trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  2235. done
  2236. ac_signal=0
  2237. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  2238. rm -f -r conftest* confdefs.h
  2239. $as_echo "/* confdefs.h */" > confdefs.h
  2240. # Predefined preprocessor variables.
  2241. cat >>confdefs.h <<_ACEOF
  2242. #define PACKAGE_NAME "$PACKAGE_NAME"
  2243. _ACEOF
  2244. cat >>confdefs.h <<_ACEOF
  2245. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  2246. _ACEOF
  2247. cat >>confdefs.h <<_ACEOF
  2248. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  2249. _ACEOF
  2250. cat >>confdefs.h <<_ACEOF
  2251. #define PACKAGE_STRING "$PACKAGE_STRING"
  2252. _ACEOF
  2253. cat >>confdefs.h <<_ACEOF
  2254. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  2255. _ACEOF
  2256. cat >>confdefs.h <<_ACEOF
  2257. #define PACKAGE_URL "$PACKAGE_URL"
  2258. _ACEOF
  2259. # Let the site file select an alternate cache file if it wants to.
  2260. # Prefer an explicitly selected file to automatically selected ones.
  2261. ac_site_file1=NONE
  2262. ac_site_file2=NONE
  2263. if test -n "$CONFIG_SITE"; then
  2264. # We do not want a PATH search for config.site.
  2265. case $CONFIG_SITE in #((
  2266. -*) ac_site_file1=./$CONFIG_SITE;;
  2267. */*) ac_site_file1=$CONFIG_SITE;;
  2268. *) ac_site_file1=./$CONFIG_SITE;;
  2269. esac
  2270. elif test "x$prefix" != xNONE; then
  2271. ac_site_file1=$prefix/share/config.site
  2272. ac_site_file2=$prefix/etc/config.site
  2273. else
  2274. ac_site_file1=$ac_default_prefix/share/config.site
  2275. ac_site_file2=$ac_default_prefix/etc/config.site
  2276. fi
  2277. for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  2278. do
  2279. test "x$ac_site_file" = xNONE && continue
  2280. if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
  2281. { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  2282. $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  2283. sed 's/^/| /' "$ac_site_file" >&5
  2284. . "$ac_site_file" \
  2285. || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2286. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2287. as_fn_error $? "failed to load site script $ac_site_file
  2288. See \`config.log' for more details" "$LINENO" 5; }
  2289. fi
  2290. done
  2291. if test -r "$cache_file"; then
  2292. # Some versions of bash will fail to source /dev/null (special files
  2293. # actually), so we avoid doing that. DJGPP emulates it as a regular file.
  2294. if test /dev/null != "$cache_file" && test -f "$cache_file"; then
  2295. { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  2296. $as_echo "$as_me: loading cache $cache_file" >&6;}
  2297. case $cache_file in
  2298. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  2299. *) . "./$cache_file";;
  2300. esac
  2301. fi
  2302. else
  2303. { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  2304. $as_echo "$as_me: creating cache $cache_file" >&6;}
  2305. >$cache_file
  2306. fi
  2307. # Check that the precious variables saved in the cache have kept the same
  2308. # value.
  2309. ac_cache_corrupted=false
  2310. for ac_var in $ac_precious_vars; do
  2311. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  2312. eval ac_new_set=\$ac_env_${ac_var}_set
  2313. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  2314. eval ac_new_val=\$ac_env_${ac_var}_value
  2315. case $ac_old_set,$ac_new_set in
  2316. set,)
  2317. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  2318. $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  2319. ac_cache_corrupted=: ;;
  2320. ,set)
  2321. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  2322. $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  2323. ac_cache_corrupted=: ;;
  2324. ,);;
  2325. *)
  2326. if test "x$ac_old_val" != "x$ac_new_val"; then
  2327. # differences in whitespace do not lead to failure.
  2328. ac_old_val_w=`echo x $ac_old_val`
  2329. ac_new_val_w=`echo x $ac_new_val`
  2330. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  2331. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  2332. $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  2333. ac_cache_corrupted=:
  2334. else
  2335. { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  2336. $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  2337. eval $ac_var=\$ac_old_val
  2338. fi
  2339. { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  2340. $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  2341. { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  2342. $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  2343. fi;;
  2344. esac
  2345. # Pass precious variables to config.status.
  2346. if test "$ac_new_set" = set; then
  2347. case $ac_new_val in
  2348. *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  2349. *) ac_arg=$ac_var=$ac_new_val ;;
  2350. esac
  2351. case " $ac_configure_args " in
  2352. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  2353. *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  2354. esac
  2355. fi
  2356. done
  2357. if $ac_cache_corrupted; then
  2358. { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2359. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2360. { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  2361. $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  2362. as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
  2363. fi
  2364. ## -------------------- ##
  2365. ## Main body of script. ##
  2366. ## -------------------- ##
  2367. ac_ext=c
  2368. ac_cpp='$CPP $CPPFLAGS'
  2369. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2370. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2371. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2372. ac_aux_dir=
  2373. for ac_dir in build-aux "$srcdir"/build-aux; do
  2374. if test -f "$ac_dir/install-sh"; then
  2375. ac_aux_dir=$ac_dir
  2376. ac_install_sh="$ac_aux_dir/install-sh -c"
  2377. break
  2378. elif test -f "$ac_dir/install.sh"; then
  2379. ac_aux_dir=$ac_dir
  2380. ac_install_sh="$ac_aux_dir/install.sh -c"
  2381. break
  2382. elif test -f "$ac_dir/shtool"; then
  2383. ac_aux_dir=$ac_dir
  2384. ac_install_sh="$ac_aux_dir/shtool install -c"
  2385. break
  2386. fi
  2387. done
  2388. if test -z "$ac_aux_dir"; then
  2389. as_fn_error $? "cannot find install-sh, install.sh, or shtool in build-aux \"$srcdir\"/build-aux" "$LINENO" 5
  2390. fi
  2391. # These three variables are undocumented and unsupported,
  2392. # and are intended to be withdrawn in a future Autoconf release.
  2393. # They can cause serious problems if a builder's source tree is in a directory
  2394. # whose full name contains unusual characters.
  2395. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  2396. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  2397. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  2398. am__api_version='1.16'
  2399. # Find a good install program. We prefer a C program (faster),
  2400. # so one script is as good as another. But avoid the broken or
  2401. # incompatible versions:
  2402. # SysV /etc/install, /usr/sbin/install
  2403. # SunOS /usr/etc/install
  2404. # IRIX /sbin/install
  2405. # AIX /bin/install
  2406. # AmigaOS /C/install, which installs bootblocks on floppy discs
  2407. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  2408. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  2409. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  2410. # OS/2's system install, which has a completely different semantic
  2411. # ./install, which can be erroneously created by make from ./install.sh.
  2412. # Reject install programs that cannot install multiple files.
  2413. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  2414. $as_echo_n "checking for a BSD-compatible install... " >&6; }
  2415. if test -z "$INSTALL"; then
  2416. if ${ac_cv_path_install+:} false; then :
  2417. $as_echo_n "(cached) " >&6
  2418. else
  2419. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2420. for as_dir in $PATH
  2421. do
  2422. IFS=$as_save_IFS
  2423. test -z "$as_dir" && as_dir=.
  2424. # Account for people who put trailing slashes in PATH elements.
  2425. case $as_dir/ in #((
  2426. ./ | .// | /[cC]/* | \
  2427. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  2428. ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  2429. /usr/ucb/* ) ;;
  2430. *)
  2431. # OSF1 and SCO ODT 3.0 have their own names for install.
  2432. # Don't use installbsd from OSF since it installs stuff as root
  2433. # by default.
  2434. for ac_prog in ginstall scoinst install; do
  2435. for ac_exec_ext in '' $ac_executable_extensions; do
  2436. if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
  2437. if test $ac_prog = install &&
  2438. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2439. # AIX install. It has an incompatible calling convention.
  2440. :
  2441. elif test $ac_prog = install &&
  2442. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2443. # program-specific install script used by HP pwplus--don't use.
  2444. :
  2445. else
  2446. rm -rf conftest.one conftest.two conftest.dir
  2447. echo one > conftest.one
  2448. echo two > conftest.two
  2449. mkdir conftest.dir
  2450. if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
  2451. test -s conftest.one && test -s conftest.two &&
  2452. test -s conftest.dir/conftest.one &&
  2453. test -s conftest.dir/conftest.two
  2454. then
  2455. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  2456. break 3
  2457. fi
  2458. fi
  2459. fi
  2460. done
  2461. done
  2462. ;;
  2463. esac
  2464. done
  2465. IFS=$as_save_IFS
  2466. rm -rf conftest.one conftest.two conftest.dir
  2467. fi
  2468. if test "${ac_cv_path_install+set}" = set; then
  2469. INSTALL=$ac_cv_path_install
  2470. else
  2471. # As a last resort, use the slow shell script. Don't cache a
  2472. # value for INSTALL within a source directory, because that will
  2473. # break other packages using the cache if that directory is
  2474. # removed, or if the value is a relative name.
  2475. INSTALL=$ac_install_sh
  2476. fi
  2477. fi
  2478. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  2479. $as_echo "$INSTALL" >&6; }
  2480. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  2481. # It thinks the first close brace ends the variable substitution.
  2482. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  2483. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  2484. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  2485. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
  2486. $as_echo_n "checking whether build environment is sane... " >&6; }
  2487. # Reject unsafe characters in $srcdir or the absolute working directory
  2488. # name. Accept space and tab only in the latter.
  2489. am_lf='
  2490. '
  2491. case `pwd` in
  2492. *[\\\"\#\$\&\'\`$am_lf]*)
  2493. as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
  2494. esac
  2495. case $srcdir in
  2496. *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
  2497. as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
  2498. esac
  2499. # Do 'set' in a subshell so we don't clobber the current shell's
  2500. # arguments. Must try -L first in case configure is actually a
  2501. # symlink; some systems play weird games with the mod time of symlinks
  2502. # (eg FreeBSD returns the mod time of the symlink's containing
  2503. # directory).
  2504. if (
  2505. am_has_slept=no
  2506. for am_try in 1 2; do
  2507. echo "timestamp, slept: $am_has_slept" > conftest.file
  2508. set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
  2509. if test "$*" = "X"; then
  2510. # -L didn't work.
  2511. set X `ls -t "$srcdir/configure" conftest.file`
  2512. fi
  2513. if test "$*" != "X $srcdir/configure conftest.file" \
  2514. && test "$*" != "X conftest.file $srcdir/configure"; then
  2515. # If neither matched, then we have a broken ls. This can happen
  2516. # if, for instance, CONFIG_SHELL is bash and it inherits a
  2517. # broken ls alias from the environment. This has actually
  2518. # happened. Such a system could not be considered "sane".
  2519. as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
  2520. alias in your environment" "$LINENO" 5
  2521. fi
  2522. if test "$2" = conftest.file || test $am_try -eq 2; then
  2523. break
  2524. fi
  2525. # Just in case.
  2526. sleep 1
  2527. am_has_slept=yes
  2528. done
  2529. test "$2" = conftest.file
  2530. )
  2531. then
  2532. # Ok.
  2533. :
  2534. else
  2535. as_fn_error $? "newly created file is older than distributed files!
  2536. Check your system clock" "$LINENO" 5
  2537. fi
  2538. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2539. $as_echo "yes" >&6; }
  2540. # If we didn't sleep, we still need to ensure time stamps of config.status and
  2541. # generated files are strictly newer.
  2542. am_sleep_pid=
  2543. if grep 'slept: no' conftest.file >/dev/null 2>&1; then
  2544. ( sleep 1 ) &
  2545. am_sleep_pid=$!
  2546. fi
  2547. rm -f conftest.file
  2548. test "$program_prefix" != NONE &&
  2549. program_transform_name="s&^&$program_prefix&;$program_transform_name"
  2550. # Use a double $ so make ignores it.
  2551. test "$program_suffix" != NONE &&
  2552. program_transform_name="s&\$&$program_suffix&;$program_transform_name"
  2553. # Double any \ or $.
  2554. # By default was `s,x,x', remove it if useless.
  2555. ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
  2556. program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
  2557. # Expand $ac_aux_dir to an absolute path.
  2558. am_aux_dir=`cd "$ac_aux_dir" && pwd`
  2559. if test x"${MISSING+set}" != xset; then
  2560. case $am_aux_dir in
  2561. *\ * | *\ *)
  2562. MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
  2563. *)
  2564. MISSING="\${SHELL} $am_aux_dir/missing" ;;
  2565. esac
  2566. fi
  2567. # Use eval to expand $SHELL
  2568. if eval "$MISSING --is-lightweight"; then
  2569. am_missing_run="$MISSING "
  2570. else
  2571. am_missing_run=
  2572. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
  2573. $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
  2574. fi
  2575. if test x"${install_sh+set}" != xset; then
  2576. case $am_aux_dir in
  2577. *\ * | *\ *)
  2578. install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
  2579. *)
  2580. install_sh="\${SHELL} $am_aux_dir/install-sh"
  2581. esac
  2582. fi
  2583. # Installed binaries are usually stripped using 'strip' when the user
  2584. # run "make install-strip". However 'strip' might not be the right
  2585. # tool to use in cross-compilation environments, therefore Automake
  2586. # will honor the 'STRIP' environment variable to overrule this program.
  2587. if test "$cross_compiling" != no; then
  2588. if test -n "$ac_tool_prefix"; then
  2589. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  2590. set dummy ${ac_tool_prefix}strip; 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_STRIP+:} false; then :
  2594. $as_echo_n "(cached) " >&6
  2595. else
  2596. if test -n "$STRIP"; then
  2597. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  2598. else
  2599. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2600. for as_dir in $PATH
  2601. do
  2602. IFS=$as_save_IFS
  2603. test -z "$as_dir" && as_dir=.
  2604. for ac_exec_ext in '' $ac_executable_extensions; do
  2605. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2606. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  2607. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2608. break 2
  2609. fi
  2610. done
  2611. done
  2612. IFS=$as_save_IFS
  2613. fi
  2614. fi
  2615. STRIP=$ac_cv_prog_STRIP
  2616. if test -n "$STRIP"; then
  2617. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  2618. $as_echo "$STRIP" >&6; }
  2619. else
  2620. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2621. $as_echo "no" >&6; }
  2622. fi
  2623. fi
  2624. if test -z "$ac_cv_prog_STRIP"; then
  2625. ac_ct_STRIP=$STRIP
  2626. # Extract the first word of "strip", so it can be a program name with args.
  2627. set dummy strip; ac_word=$2
  2628. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2629. $as_echo_n "checking for $ac_word... " >&6; }
  2630. if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
  2631. $as_echo_n "(cached) " >&6
  2632. else
  2633. if test -n "$ac_ct_STRIP"; then
  2634. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  2635. else
  2636. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2637. for as_dir in $PATH
  2638. do
  2639. IFS=$as_save_IFS
  2640. test -z "$as_dir" && as_dir=.
  2641. for ac_exec_ext in '' $ac_executable_extensions; do
  2642. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2643. ac_cv_prog_ac_ct_STRIP="strip"
  2644. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2645. break 2
  2646. fi
  2647. done
  2648. done
  2649. IFS=$as_save_IFS
  2650. fi
  2651. fi
  2652. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  2653. if test -n "$ac_ct_STRIP"; then
  2654. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  2655. $as_echo "$ac_ct_STRIP" >&6; }
  2656. else
  2657. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2658. $as_echo "no" >&6; }
  2659. fi
  2660. if test "x$ac_ct_STRIP" = x; then
  2661. STRIP=":"
  2662. else
  2663. case $cross_compiling:$ac_tool_warned in
  2664. yes:)
  2665. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2666. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2667. ac_tool_warned=yes ;;
  2668. esac
  2669. STRIP=$ac_ct_STRIP
  2670. fi
  2671. else
  2672. STRIP="$ac_cv_prog_STRIP"
  2673. fi
  2674. fi
  2675. INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
  2676. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
  2677. $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
  2678. if test -z "$MKDIR_P"; then
  2679. if ${ac_cv_path_mkdir+:} false; then :
  2680. $as_echo_n "(cached) " >&6
  2681. else
  2682. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2683. for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
  2684. do
  2685. IFS=$as_save_IFS
  2686. test -z "$as_dir" && as_dir=.
  2687. for ac_prog in mkdir gmkdir; do
  2688. for ac_exec_ext in '' $ac_executable_extensions; do
  2689. as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
  2690. case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
  2691. 'mkdir (GNU coreutils) '* | \
  2692. 'mkdir (coreutils) '* | \
  2693. 'mkdir (fileutils) '4.1*)
  2694. ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
  2695. break 3;;
  2696. esac
  2697. done
  2698. done
  2699. done
  2700. IFS=$as_save_IFS
  2701. fi
  2702. test -d ./--version && rmdir ./--version
  2703. if test "${ac_cv_path_mkdir+set}" = set; then
  2704. MKDIR_P="$ac_cv_path_mkdir -p"
  2705. else
  2706. # As a last resort, use the slow shell script. Don't cache a
  2707. # value for MKDIR_P within a source directory, because that will
  2708. # break other packages using the cache if that directory is
  2709. # removed, or if the value is a relative name.
  2710. MKDIR_P="$ac_install_sh -d"
  2711. fi
  2712. fi
  2713. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
  2714. $as_echo "$MKDIR_P" >&6; }
  2715. for ac_prog in gawk mawk nawk awk
  2716. do
  2717. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2718. set dummy $ac_prog; ac_word=$2
  2719. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2720. $as_echo_n "checking for $ac_word... " >&6; }
  2721. if ${ac_cv_prog_AWK+:} false; then :
  2722. $as_echo_n "(cached) " >&6
  2723. else
  2724. if test -n "$AWK"; then
  2725. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  2726. else
  2727. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2728. for as_dir in $PATH
  2729. do
  2730. IFS=$as_save_IFS
  2731. test -z "$as_dir" && as_dir=.
  2732. for ac_exec_ext in '' $ac_executable_extensions; do
  2733. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2734. ac_cv_prog_AWK="$ac_prog"
  2735. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2736. break 2
  2737. fi
  2738. done
  2739. done
  2740. IFS=$as_save_IFS
  2741. fi
  2742. fi
  2743. AWK=$ac_cv_prog_AWK
  2744. if test -n "$AWK"; then
  2745. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  2746. $as_echo "$AWK" >&6; }
  2747. else
  2748. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2749. $as_echo "no" >&6; }
  2750. fi
  2751. test -n "$AWK" && break
  2752. done
  2753. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  2754. $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  2755. set x ${MAKE-make}
  2756. ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  2757. if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
  2758. $as_echo_n "(cached) " >&6
  2759. else
  2760. cat >conftest.make <<\_ACEOF
  2761. SHELL = /bin/sh
  2762. all:
  2763. @echo '@@@%%%=$(MAKE)=@@@%%%'
  2764. _ACEOF
  2765. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  2766. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  2767. *@@@%%%=?*=@@@%%%*)
  2768. eval ac_cv_prog_make_${ac_make}_set=yes;;
  2769. *)
  2770. eval ac_cv_prog_make_${ac_make}_set=no;;
  2771. esac
  2772. rm -f conftest.make
  2773. fi
  2774. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  2775. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2776. $as_echo "yes" >&6; }
  2777. SET_MAKE=
  2778. else
  2779. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2780. $as_echo "no" >&6; }
  2781. SET_MAKE="MAKE=${MAKE-make}"
  2782. fi
  2783. rm -rf .tst 2>/dev/null
  2784. mkdir .tst 2>/dev/null
  2785. if test -d .tst; then
  2786. am__leading_dot=.
  2787. else
  2788. am__leading_dot=_
  2789. fi
  2790. rmdir .tst 2>/dev/null
  2791. # Check whether --enable-silent-rules was given.
  2792. if test "${enable_silent_rules+set}" = set; then :
  2793. enableval=$enable_silent_rules;
  2794. fi
  2795. case $enable_silent_rules in # (((
  2796. yes) AM_DEFAULT_VERBOSITY=0;;
  2797. no) AM_DEFAULT_VERBOSITY=1;;
  2798. *) AM_DEFAULT_VERBOSITY=1;;
  2799. esac
  2800. am_make=${MAKE-make}
  2801. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
  2802. $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
  2803. if ${am_cv_make_support_nested_variables+:} false; then :
  2804. $as_echo_n "(cached) " >&6
  2805. else
  2806. if $as_echo 'TRUE=$(BAR$(V))
  2807. BAR0=false
  2808. BAR1=true
  2809. V=1
  2810. am__doit:
  2811. @$(TRUE)
  2812. .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
  2813. am_cv_make_support_nested_variables=yes
  2814. else
  2815. am_cv_make_support_nested_variables=no
  2816. fi
  2817. fi
  2818. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
  2819. $as_echo "$am_cv_make_support_nested_variables" >&6; }
  2820. if test $am_cv_make_support_nested_variables = yes; then
  2821. AM_V='$(V)'
  2822. AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
  2823. else
  2824. AM_V=$AM_DEFAULT_VERBOSITY
  2825. AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
  2826. fi
  2827. AM_BACKSLASH='\'
  2828. if test "`cd $srcdir && pwd`" != "`pwd`"; then
  2829. # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
  2830. # is not polluted with repeated "-I."
  2831. am__isrc=' -I$(srcdir)'
  2832. # test to see if srcdir already configured
  2833. if test -f $srcdir/config.status; then
  2834. as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
  2835. fi
  2836. fi
  2837. # test whether we have cygpath
  2838. if test -z "$CYGPATH_W"; then
  2839. if (cygpath --version) >/dev/null 2>/dev/null; then
  2840. CYGPATH_W='cygpath -w'
  2841. else
  2842. CYGPATH_W=echo
  2843. fi
  2844. fi
  2845. # Define the identity of the package.
  2846. PACKAGE='libmodbus'
  2847. VERSION='3.1.6'
  2848. cat >>confdefs.h <<_ACEOF
  2849. #define PACKAGE "$PACKAGE"
  2850. _ACEOF
  2851. cat >>confdefs.h <<_ACEOF
  2852. #define VERSION "$VERSION"
  2853. _ACEOF
  2854. # Some tools Automake needs.
  2855. ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
  2856. AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
  2857. AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
  2858. AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
  2859. MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
  2860. # For better backward compatibility. To be removed once Automake 1.9.x
  2861. # dies out for good. For more background, see:
  2862. # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
  2863. # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
  2864. mkdir_p='$(MKDIR_P)'
  2865. # We need awk for the "check" target (and possibly the TAP driver). The
  2866. # system "awk" is bad on some platforms.
  2867. # Always define AMTAR for backward compatibility. Yes, it's still used
  2868. # in the wild :-( We should find a proper way to deprecate it ...
  2869. AMTAR='$${TAR-tar}'
  2870. # We'll loop over all known methods to create a tar archive until one works.
  2871. _am_tools='gnutar pax cpio none'
  2872. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to create a pax tar archive" >&5
  2873. $as_echo_n "checking how to create a pax tar archive... " >&6; }
  2874. # Go ahead even if we have the value already cached. We do so because we
  2875. # need to set the values for the 'am__tar' and 'am__untar' variables.
  2876. _am_tools=${am_cv_prog_tar_pax-$_am_tools}
  2877. for _am_tool in $_am_tools; do
  2878. case $_am_tool in
  2879. gnutar)
  2880. for _am_tar in tar gnutar gtar; do
  2881. { echo "$as_me:$LINENO: $_am_tar --version" >&5
  2882. ($_am_tar --version) >&5 2>&5
  2883. ac_status=$?
  2884. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2885. (exit $ac_status); } && break
  2886. done
  2887. am__tar="$_am_tar --format=posix -chf - "'"$$tardir"'
  2888. am__tar_="$_am_tar --format=posix -chf - "'"$tardir"'
  2889. am__untar="$_am_tar -xf -"
  2890. ;;
  2891. plaintar)
  2892. # Must skip GNU tar: if it does not support --format= it doesn't create
  2893. # ustar tarball either.
  2894. (tar --version) >/dev/null 2>&1 && continue
  2895. am__tar='tar chf - "$$tardir"'
  2896. am__tar_='tar chf - "$tardir"'
  2897. am__untar='tar xf -'
  2898. ;;
  2899. pax)
  2900. am__tar='pax -L -x pax -w "$$tardir"'
  2901. am__tar_='pax -L -x pax -w "$tardir"'
  2902. am__untar='pax -r'
  2903. ;;
  2904. cpio)
  2905. am__tar='find "$$tardir" -print | cpio -o -H pax -L'
  2906. am__tar_='find "$tardir" -print | cpio -o -H pax -L'
  2907. am__untar='cpio -i -H pax -d'
  2908. ;;
  2909. none)
  2910. am__tar=false
  2911. am__tar_=false
  2912. am__untar=false
  2913. ;;
  2914. esac
  2915. # If the value was cached, stop now. We just wanted to have am__tar
  2916. # and am__untar set.
  2917. test -n "${am_cv_prog_tar_pax}" && break
  2918. # tar/untar a dummy directory, and stop if the command works.
  2919. rm -rf conftest.dir
  2920. mkdir conftest.dir
  2921. echo GrepMe > conftest.dir/file
  2922. { echo "$as_me:$LINENO: tardir=conftest.dir && eval $am__tar_ >conftest.tar" >&5
  2923. (tardir=conftest.dir && eval $am__tar_ >conftest.tar) >&5 2>&5
  2924. ac_status=$?
  2925. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2926. (exit $ac_status); }
  2927. rm -rf conftest.dir
  2928. if test -s conftest.tar; then
  2929. { echo "$as_me:$LINENO: $am__untar <conftest.tar" >&5
  2930. ($am__untar <conftest.tar) >&5 2>&5
  2931. ac_status=$?
  2932. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2933. (exit $ac_status); }
  2934. { echo "$as_me:$LINENO: cat conftest.dir/file" >&5
  2935. (cat conftest.dir/file) >&5 2>&5
  2936. ac_status=$?
  2937. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2938. (exit $ac_status); }
  2939. grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
  2940. fi
  2941. done
  2942. rm -rf conftest.dir
  2943. if ${am_cv_prog_tar_pax+:} false; then :
  2944. $as_echo_n "(cached) " >&6
  2945. else
  2946. am_cv_prog_tar_pax=$_am_tool
  2947. fi
  2948. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_tar_pax" >&5
  2949. $as_echo "$am_cv_prog_tar_pax" >&6; }
  2950. # POSIX will say in a future version that running "rm -f" with no argument
  2951. # is OK; and we want to be able to make that assumption in our Makefile
  2952. # recipes. So use an aggressive probe to check that the usage we want is
  2953. # actually supported "in the wild" to an acceptable degree.
  2954. # See automake bug#10828.
  2955. # To make any issue more visible, cause the running configure to be aborted
  2956. # by default if the 'rm' program in use doesn't match our expectations; the
  2957. # user can still override this though.
  2958. if rm -f && rm -fr && rm -rf; then : OK; else
  2959. cat >&2 <<'END'
  2960. Oops!
  2961. Your 'rm' program seems unable to run without file operands specified
  2962. on the command line, even when the '-f' option is present. This is contrary
  2963. to the behaviour of most rm programs out there, and not conforming with
  2964. the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
  2965. Please tell bug-automake@gnu.org about your system, including the value
  2966. of your $PATH and any error possibly output before this message. This
  2967. can help us improve future automake versions.
  2968. END
  2969. if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
  2970. echo 'Configuration will proceed anyway, since you have set the' >&2
  2971. echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
  2972. echo >&2
  2973. else
  2974. cat >&2 <<'END'
  2975. Aborting the configuration process, to ensure you take notice of the issue.
  2976. You can download and install GNU coreutils to get an 'rm' implementation
  2977. that behaves properly: <https://www.gnu.org/software/coreutils/>.
  2978. If you want to complete the configuration process using your problematic
  2979. 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
  2980. to "yes", and re-run configure.
  2981. END
  2982. as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
  2983. fi
  2984. fi
  2985. DEPDIR="${am__leading_dot}deps"
  2986. ac_config_commands="$ac_config_commands depfiles"
  2987. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
  2988. $as_echo_n "checking whether ${MAKE-make} supports the include directive... " >&6; }
  2989. cat > confinc.mk << 'END'
  2990. am__doit:
  2991. @echo this is the am__doit target >confinc.out
  2992. .PHONY: am__doit
  2993. END
  2994. am__include="#"
  2995. am__quote=
  2996. # BSD make does it like this.
  2997. echo '.include "confinc.mk" # ignored' > confmf.BSD
  2998. # Other make implementations (GNU, Solaris 10, AIX) do it like this.
  2999. echo 'include confinc.mk # ignored' > confmf.GNU
  3000. _am_result=no
  3001. for s in GNU BSD; do
  3002. { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
  3003. (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
  3004. ac_status=$?
  3005. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3006. (exit $ac_status); }
  3007. case $?:`cat confinc.out 2>/dev/null` in #(
  3008. '0:this is the am__doit target') :
  3009. case $s in #(
  3010. BSD) :
  3011. am__include='.include' am__quote='"' ;; #(
  3012. *) :
  3013. am__include='include' am__quote='' ;;
  3014. esac ;; #(
  3015. *) :
  3016. ;;
  3017. esac
  3018. if test "$am__include" != "#"; then
  3019. _am_result="yes ($s style)"
  3020. break
  3021. fi
  3022. done
  3023. rm -f confinc.* confmf.*
  3024. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
  3025. $as_echo "${_am_result}" >&6; }
  3026. # Check whether --enable-dependency-tracking was given.
  3027. if test "${enable_dependency_tracking+set}" = set; then :
  3028. enableval=$enable_dependency_tracking;
  3029. fi
  3030. if test "x$enable_dependency_tracking" != xno; then
  3031. am_depcomp="$ac_aux_dir/depcomp"
  3032. AMDEPBACKSLASH='\'
  3033. am__nodep='_no'
  3034. fi
  3035. if test "x$enable_dependency_tracking" != xno; then
  3036. AMDEP_TRUE=
  3037. AMDEP_FALSE='#'
  3038. else
  3039. AMDEP_TRUE='#'
  3040. AMDEP_FALSE=
  3041. fi
  3042. ac_ext=c
  3043. ac_cpp='$CPP $CPPFLAGS'
  3044. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3045. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3046. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3047. if test -n "$ac_tool_prefix"; then
  3048. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  3049. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  3050. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3051. $as_echo_n "checking for $ac_word... " >&6; }
  3052. if ${ac_cv_prog_CC+:} false; then :
  3053. $as_echo_n "(cached) " >&6
  3054. else
  3055. if test -n "$CC"; then
  3056. ac_cv_prog_CC="$CC" # Let the user override the test.
  3057. else
  3058. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3059. for as_dir in $PATH
  3060. do
  3061. IFS=$as_save_IFS
  3062. test -z "$as_dir" && as_dir=.
  3063. for ac_exec_ext in '' $ac_executable_extensions; do
  3064. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3065. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  3066. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3067. break 2
  3068. fi
  3069. done
  3070. done
  3071. IFS=$as_save_IFS
  3072. fi
  3073. fi
  3074. CC=$ac_cv_prog_CC
  3075. if test -n "$CC"; then
  3076. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3077. $as_echo "$CC" >&6; }
  3078. else
  3079. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3080. $as_echo "no" >&6; }
  3081. fi
  3082. fi
  3083. if test -z "$ac_cv_prog_CC"; then
  3084. ac_ct_CC=$CC
  3085. # Extract the first word of "gcc", so it can be a program name with args.
  3086. set dummy gcc; ac_word=$2
  3087. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3088. $as_echo_n "checking for $ac_word... " >&6; }
  3089. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  3090. $as_echo_n "(cached) " >&6
  3091. else
  3092. if test -n "$ac_ct_CC"; then
  3093. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3094. else
  3095. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3096. for as_dir in $PATH
  3097. do
  3098. IFS=$as_save_IFS
  3099. test -z "$as_dir" && as_dir=.
  3100. for ac_exec_ext in '' $ac_executable_extensions; do
  3101. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3102. ac_cv_prog_ac_ct_CC="gcc"
  3103. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3104. break 2
  3105. fi
  3106. done
  3107. done
  3108. IFS=$as_save_IFS
  3109. fi
  3110. fi
  3111. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3112. if test -n "$ac_ct_CC"; then
  3113. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3114. $as_echo "$ac_ct_CC" >&6; }
  3115. else
  3116. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3117. $as_echo "no" >&6; }
  3118. fi
  3119. if test "x$ac_ct_CC" = x; then
  3120. CC=""
  3121. else
  3122. case $cross_compiling:$ac_tool_warned in
  3123. yes:)
  3124. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3125. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3126. ac_tool_warned=yes ;;
  3127. esac
  3128. CC=$ac_ct_CC
  3129. fi
  3130. else
  3131. CC="$ac_cv_prog_CC"
  3132. fi
  3133. if test -z "$CC"; then
  3134. if test -n "$ac_tool_prefix"; then
  3135. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  3136. set dummy ${ac_tool_prefix}cc; ac_word=$2
  3137. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3138. $as_echo_n "checking for $ac_word... " >&6; }
  3139. if ${ac_cv_prog_CC+:} false; then :
  3140. $as_echo_n "(cached) " >&6
  3141. else
  3142. if test -n "$CC"; then
  3143. ac_cv_prog_CC="$CC" # Let the user override the test.
  3144. else
  3145. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3146. for as_dir in $PATH
  3147. do
  3148. IFS=$as_save_IFS
  3149. test -z "$as_dir" && as_dir=.
  3150. for ac_exec_ext in '' $ac_executable_extensions; do
  3151. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3152. ac_cv_prog_CC="${ac_tool_prefix}cc"
  3153. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3154. break 2
  3155. fi
  3156. done
  3157. done
  3158. IFS=$as_save_IFS
  3159. fi
  3160. fi
  3161. CC=$ac_cv_prog_CC
  3162. if test -n "$CC"; then
  3163. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3164. $as_echo "$CC" >&6; }
  3165. else
  3166. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3167. $as_echo "no" >&6; }
  3168. fi
  3169. fi
  3170. fi
  3171. if test -z "$CC"; then
  3172. # Extract the first word of "cc", so it can be a program name with args.
  3173. set dummy cc; ac_word=$2
  3174. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3175. $as_echo_n "checking for $ac_word... " >&6; }
  3176. if ${ac_cv_prog_CC+:} false; then :
  3177. $as_echo_n "(cached) " >&6
  3178. else
  3179. if test -n "$CC"; then
  3180. ac_cv_prog_CC="$CC" # Let the user override the test.
  3181. else
  3182. ac_prog_rejected=no
  3183. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3184. for as_dir in $PATH
  3185. do
  3186. IFS=$as_save_IFS
  3187. test -z "$as_dir" && as_dir=.
  3188. for ac_exec_ext in '' $ac_executable_extensions; do
  3189. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3190. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  3191. ac_prog_rejected=yes
  3192. continue
  3193. fi
  3194. ac_cv_prog_CC="cc"
  3195. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3196. break 2
  3197. fi
  3198. done
  3199. done
  3200. IFS=$as_save_IFS
  3201. if test $ac_prog_rejected = yes; then
  3202. # We found a bogon in the path, so make sure we never use it.
  3203. set dummy $ac_cv_prog_CC
  3204. shift
  3205. if test $# != 0; then
  3206. # We chose a different compiler from the bogus one.
  3207. # However, it has the same basename, so the bogon will be chosen
  3208. # first if we set CC to just the basename; use the full file name.
  3209. shift
  3210. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  3211. fi
  3212. fi
  3213. fi
  3214. fi
  3215. CC=$ac_cv_prog_CC
  3216. if test -n "$CC"; then
  3217. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3218. $as_echo "$CC" >&6; }
  3219. else
  3220. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3221. $as_echo "no" >&6; }
  3222. fi
  3223. fi
  3224. if test -z "$CC"; then
  3225. if test -n "$ac_tool_prefix"; then
  3226. for ac_prog in cl.exe
  3227. do
  3228. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  3229. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  3230. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3231. $as_echo_n "checking for $ac_word... " >&6; }
  3232. if ${ac_cv_prog_CC+:} false; then :
  3233. $as_echo_n "(cached) " >&6
  3234. else
  3235. if test -n "$CC"; then
  3236. ac_cv_prog_CC="$CC" # Let the user override the test.
  3237. else
  3238. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3239. for as_dir in $PATH
  3240. do
  3241. IFS=$as_save_IFS
  3242. test -z "$as_dir" && as_dir=.
  3243. for ac_exec_ext in '' $ac_executable_extensions; do
  3244. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3245. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  3246. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3247. break 2
  3248. fi
  3249. done
  3250. done
  3251. IFS=$as_save_IFS
  3252. fi
  3253. fi
  3254. CC=$ac_cv_prog_CC
  3255. if test -n "$CC"; then
  3256. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3257. $as_echo "$CC" >&6; }
  3258. else
  3259. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3260. $as_echo "no" >&6; }
  3261. fi
  3262. test -n "$CC" && break
  3263. done
  3264. fi
  3265. if test -z "$CC"; then
  3266. ac_ct_CC=$CC
  3267. for ac_prog in cl.exe
  3268. do
  3269. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3270. set dummy $ac_prog; ac_word=$2
  3271. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3272. $as_echo_n "checking for $ac_word... " >&6; }
  3273. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  3274. $as_echo_n "(cached) " >&6
  3275. else
  3276. if test -n "$ac_ct_CC"; then
  3277. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3278. else
  3279. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3280. for as_dir in $PATH
  3281. do
  3282. IFS=$as_save_IFS
  3283. test -z "$as_dir" && as_dir=.
  3284. for ac_exec_ext in '' $ac_executable_extensions; do
  3285. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3286. ac_cv_prog_ac_ct_CC="$ac_prog"
  3287. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3288. break 2
  3289. fi
  3290. done
  3291. done
  3292. IFS=$as_save_IFS
  3293. fi
  3294. fi
  3295. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3296. if test -n "$ac_ct_CC"; then
  3297. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3298. $as_echo "$ac_ct_CC" >&6; }
  3299. else
  3300. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3301. $as_echo "no" >&6; }
  3302. fi
  3303. test -n "$ac_ct_CC" && break
  3304. done
  3305. if test "x$ac_ct_CC" = x; then
  3306. CC=""
  3307. else
  3308. case $cross_compiling:$ac_tool_warned in
  3309. yes:)
  3310. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3311. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3312. ac_tool_warned=yes ;;
  3313. esac
  3314. CC=$ac_ct_CC
  3315. fi
  3316. fi
  3317. fi
  3318. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3319. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3320. as_fn_error $? "no acceptable C compiler found in \$PATH
  3321. See \`config.log' for more details" "$LINENO" 5; }
  3322. # Provide some information about the compiler.
  3323. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  3324. set X $ac_compile
  3325. ac_compiler=$2
  3326. for ac_option in --version -v -V -qversion; do
  3327. { { ac_try="$ac_compiler $ac_option >&5"
  3328. case "(($ac_try" in
  3329. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3330. *) ac_try_echo=$ac_try;;
  3331. esac
  3332. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3333. $as_echo "$ac_try_echo"; } >&5
  3334. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  3335. ac_status=$?
  3336. if test -s conftest.err; then
  3337. sed '10a\
  3338. ... rest of stderr output deleted ...
  3339. 10q' conftest.err >conftest.er1
  3340. cat conftest.er1 >&5
  3341. fi
  3342. rm -f conftest.er1 conftest.err
  3343. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3344. test $ac_status = 0; }
  3345. done
  3346. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3347. /* end confdefs.h. */
  3348. int
  3349. main ()
  3350. {
  3351. ;
  3352. return 0;
  3353. }
  3354. _ACEOF
  3355. ac_clean_files_save=$ac_clean_files
  3356. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  3357. # Try to create an executable without -o first, disregard a.out.
  3358. # It will help us diagnose broken compilers, and finding out an intuition
  3359. # of exeext.
  3360. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
  3361. $as_echo_n "checking whether the C compiler works... " >&6; }
  3362. ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  3363. # The possible output files:
  3364. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  3365. ac_rmfiles=
  3366. for ac_file in $ac_files
  3367. do
  3368. case $ac_file in
  3369. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3370. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  3371. esac
  3372. done
  3373. rm -f $ac_rmfiles
  3374. if { { ac_try="$ac_link_default"
  3375. case "(($ac_try" in
  3376. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3377. *) ac_try_echo=$ac_try;;
  3378. esac
  3379. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3380. $as_echo "$ac_try_echo"; } >&5
  3381. (eval "$ac_link_default") 2>&5
  3382. ac_status=$?
  3383. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3384. test $ac_status = 0; }; then :
  3385. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  3386. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  3387. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  3388. # so that the user can short-circuit this test for compilers unknown to
  3389. # Autoconf.
  3390. for ac_file in $ac_files ''
  3391. do
  3392. test -f "$ac_file" || continue
  3393. case $ac_file in
  3394. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  3395. ;;
  3396. [ab].out )
  3397. # We found the default executable, but exeext='' is most
  3398. # certainly right.
  3399. break;;
  3400. *.* )
  3401. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  3402. then :; else
  3403. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3404. fi
  3405. # We set ac_cv_exeext here because the later test for it is not
  3406. # safe: cross compilers may not add the suffix if given an `-o'
  3407. # argument, so we may need to know it at that point already.
  3408. # Even if this section looks crufty: it has the advantage of
  3409. # actually working.
  3410. break;;
  3411. * )
  3412. break;;
  3413. esac
  3414. done
  3415. test "$ac_cv_exeext" = no && ac_cv_exeext=
  3416. else
  3417. ac_file=''
  3418. fi
  3419. if test -z "$ac_file"; then :
  3420. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3421. $as_echo "no" >&6; }
  3422. $as_echo "$as_me: failed program was:" >&5
  3423. sed 's/^/| /' conftest.$ac_ext >&5
  3424. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3425. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3426. as_fn_error 77 "C compiler cannot create executables
  3427. See \`config.log' for more details" "$LINENO" 5; }
  3428. else
  3429. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3430. $as_echo "yes" >&6; }
  3431. fi
  3432. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
  3433. $as_echo_n "checking for C compiler default output file name... " >&6; }
  3434. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  3435. $as_echo "$ac_file" >&6; }
  3436. ac_exeext=$ac_cv_exeext
  3437. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  3438. ac_clean_files=$ac_clean_files_save
  3439. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  3440. $as_echo_n "checking for suffix of executables... " >&6; }
  3441. if { { ac_try="$ac_link"
  3442. case "(($ac_try" in
  3443. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3444. *) ac_try_echo=$ac_try;;
  3445. esac
  3446. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3447. $as_echo "$ac_try_echo"; } >&5
  3448. (eval "$ac_link") 2>&5
  3449. ac_status=$?
  3450. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3451. test $ac_status = 0; }; then :
  3452. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  3453. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  3454. # work properly (i.e., refer to `conftest.exe'), while it won't with
  3455. # `rm'.
  3456. for ac_file in conftest.exe conftest conftest.*; do
  3457. test -f "$ac_file" || continue
  3458. case $ac_file in
  3459. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3460. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3461. break;;
  3462. * ) break;;
  3463. esac
  3464. done
  3465. else
  3466. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3467. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3468. as_fn_error $? "cannot compute suffix of executables: cannot compile and link
  3469. See \`config.log' for more details" "$LINENO" 5; }
  3470. fi
  3471. rm -f conftest conftest$ac_cv_exeext
  3472. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  3473. $as_echo "$ac_cv_exeext" >&6; }
  3474. rm -f conftest.$ac_ext
  3475. EXEEXT=$ac_cv_exeext
  3476. ac_exeext=$EXEEXT
  3477. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3478. /* end confdefs.h. */
  3479. #include <stdio.h>
  3480. int
  3481. main ()
  3482. {
  3483. FILE *f = fopen ("conftest.out", "w");
  3484. return ferror (f) || fclose (f) != 0;
  3485. ;
  3486. return 0;
  3487. }
  3488. _ACEOF
  3489. ac_clean_files="$ac_clean_files conftest.out"
  3490. # Check that the compiler produces executables we can run. If not, either
  3491. # the compiler is broken, or we cross compile.
  3492. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  3493. $as_echo_n "checking whether we are cross compiling... " >&6; }
  3494. if test "$cross_compiling" != yes; then
  3495. { { ac_try="$ac_link"
  3496. case "(($ac_try" in
  3497. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3498. *) ac_try_echo=$ac_try;;
  3499. esac
  3500. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3501. $as_echo "$ac_try_echo"; } >&5
  3502. (eval "$ac_link") 2>&5
  3503. ac_status=$?
  3504. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3505. test $ac_status = 0; }
  3506. if { ac_try='./conftest$ac_cv_exeext'
  3507. { { case "(($ac_try" in
  3508. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3509. *) ac_try_echo=$ac_try;;
  3510. esac
  3511. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3512. $as_echo "$ac_try_echo"; } >&5
  3513. (eval "$ac_try") 2>&5
  3514. ac_status=$?
  3515. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3516. test $ac_status = 0; }; }; then
  3517. cross_compiling=no
  3518. else
  3519. if test "$cross_compiling" = maybe; then
  3520. cross_compiling=yes
  3521. else
  3522. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3523. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3524. as_fn_error $? "cannot run C compiled programs.
  3525. If you meant to cross compile, use \`--host'.
  3526. See \`config.log' for more details" "$LINENO" 5; }
  3527. fi
  3528. fi
  3529. fi
  3530. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  3531. $as_echo "$cross_compiling" >&6; }
  3532. rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
  3533. ac_clean_files=$ac_clean_files_save
  3534. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  3535. $as_echo_n "checking for suffix of object files... " >&6; }
  3536. if ${ac_cv_objext+:} false; then :
  3537. $as_echo_n "(cached) " >&6
  3538. else
  3539. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3540. /* end confdefs.h. */
  3541. int
  3542. main ()
  3543. {
  3544. ;
  3545. return 0;
  3546. }
  3547. _ACEOF
  3548. rm -f conftest.o conftest.obj
  3549. if { { ac_try="$ac_compile"
  3550. case "(($ac_try" in
  3551. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3552. *) ac_try_echo=$ac_try;;
  3553. esac
  3554. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3555. $as_echo "$ac_try_echo"; } >&5
  3556. (eval "$ac_compile") 2>&5
  3557. ac_status=$?
  3558. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3559. test $ac_status = 0; }; then :
  3560. for ac_file in conftest.o conftest.obj conftest.*; do
  3561. test -f "$ac_file" || continue;
  3562. case $ac_file in
  3563. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  3564. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  3565. break;;
  3566. esac
  3567. done
  3568. else
  3569. $as_echo "$as_me: failed program was:" >&5
  3570. sed 's/^/| /' conftest.$ac_ext >&5
  3571. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3572. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3573. as_fn_error $? "cannot compute suffix of object files: cannot compile
  3574. See \`config.log' for more details" "$LINENO" 5; }
  3575. fi
  3576. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  3577. fi
  3578. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  3579. $as_echo "$ac_cv_objext" >&6; }
  3580. OBJEXT=$ac_cv_objext
  3581. ac_objext=$OBJEXT
  3582. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  3583. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  3584. if ${ac_cv_c_compiler_gnu+:} false; then :
  3585. $as_echo_n "(cached) " >&6
  3586. else
  3587. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3588. /* end confdefs.h. */
  3589. int
  3590. main ()
  3591. {
  3592. #ifndef __GNUC__
  3593. choke me
  3594. #endif
  3595. ;
  3596. return 0;
  3597. }
  3598. _ACEOF
  3599. if ac_fn_c_try_compile "$LINENO"; then :
  3600. ac_compiler_gnu=yes
  3601. else
  3602. ac_compiler_gnu=no
  3603. fi
  3604. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3605. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  3606. fi
  3607. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  3608. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  3609. if test $ac_compiler_gnu = yes; then
  3610. GCC=yes
  3611. else
  3612. GCC=
  3613. fi
  3614. ac_test_CFLAGS=${CFLAGS+set}
  3615. ac_save_CFLAGS=$CFLAGS
  3616. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  3617. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  3618. if ${ac_cv_prog_cc_g+:} false; then :
  3619. $as_echo_n "(cached) " >&6
  3620. else
  3621. ac_save_c_werror_flag=$ac_c_werror_flag
  3622. ac_c_werror_flag=yes
  3623. ac_cv_prog_cc_g=no
  3624. CFLAGS="-g"
  3625. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3626. /* end confdefs.h. */
  3627. int
  3628. main ()
  3629. {
  3630. ;
  3631. return 0;
  3632. }
  3633. _ACEOF
  3634. if ac_fn_c_try_compile "$LINENO"; then :
  3635. ac_cv_prog_cc_g=yes
  3636. else
  3637. CFLAGS=""
  3638. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3639. /* end confdefs.h. */
  3640. int
  3641. main ()
  3642. {
  3643. ;
  3644. return 0;
  3645. }
  3646. _ACEOF
  3647. if ac_fn_c_try_compile "$LINENO"; then :
  3648. else
  3649. ac_c_werror_flag=$ac_save_c_werror_flag
  3650. CFLAGS="-g"
  3651. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3652. /* end confdefs.h. */
  3653. int
  3654. main ()
  3655. {
  3656. ;
  3657. return 0;
  3658. }
  3659. _ACEOF
  3660. if ac_fn_c_try_compile "$LINENO"; then :
  3661. ac_cv_prog_cc_g=yes
  3662. fi
  3663. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3664. fi
  3665. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3666. fi
  3667. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3668. ac_c_werror_flag=$ac_save_c_werror_flag
  3669. fi
  3670. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  3671. $as_echo "$ac_cv_prog_cc_g" >&6; }
  3672. if test "$ac_test_CFLAGS" = set; then
  3673. CFLAGS=$ac_save_CFLAGS
  3674. elif test $ac_cv_prog_cc_g = yes; then
  3675. if test "$GCC" = yes; then
  3676. CFLAGS="-g -O2"
  3677. else
  3678. CFLAGS="-g"
  3679. fi
  3680. else
  3681. if test "$GCC" = yes; then
  3682. CFLAGS="-O2"
  3683. else
  3684. CFLAGS=
  3685. fi
  3686. fi
  3687. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  3688. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  3689. if ${ac_cv_prog_cc_c89+:} false; then :
  3690. $as_echo_n "(cached) " >&6
  3691. else
  3692. ac_cv_prog_cc_c89=no
  3693. ac_save_CC=$CC
  3694. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3695. /* end confdefs.h. */
  3696. #include <stdarg.h>
  3697. #include <stdio.h>
  3698. struct stat;
  3699. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  3700. struct buf { int x; };
  3701. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  3702. static char *e (p, i)
  3703. char **p;
  3704. int i;
  3705. {
  3706. return p[i];
  3707. }
  3708. static char *f (char * (*g) (char **, int), char **p, ...)
  3709. {
  3710. char *s;
  3711. va_list v;
  3712. va_start (v,p);
  3713. s = g (p, va_arg (v,int));
  3714. va_end (v);
  3715. return s;
  3716. }
  3717. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  3718. function prototypes and stuff, but not '\xHH' hex character constants.
  3719. These don't provoke an error unfortunately, instead are silently treated
  3720. as 'x'. The following induces an error, until -std is added to get
  3721. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  3722. array size at least. It's necessary to write '\x00'==0 to get something
  3723. that's true only with -std. */
  3724. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  3725. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  3726. inside strings and character constants. */
  3727. #define FOO(x) 'x'
  3728. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  3729. int test (int i, double x);
  3730. struct s1 {int (*f) (int a);};
  3731. struct s2 {int (*f) (double a);};
  3732. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  3733. int argc;
  3734. char **argv;
  3735. int
  3736. main ()
  3737. {
  3738. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  3739. ;
  3740. return 0;
  3741. }
  3742. _ACEOF
  3743. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  3744. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  3745. do
  3746. CC="$ac_save_CC $ac_arg"
  3747. if ac_fn_c_try_compile "$LINENO"; then :
  3748. ac_cv_prog_cc_c89=$ac_arg
  3749. fi
  3750. rm -f core conftest.err conftest.$ac_objext
  3751. test "x$ac_cv_prog_cc_c89" != "xno" && break
  3752. done
  3753. rm -f conftest.$ac_ext
  3754. CC=$ac_save_CC
  3755. fi
  3756. # AC_CACHE_VAL
  3757. case "x$ac_cv_prog_cc_c89" in
  3758. x)
  3759. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  3760. $as_echo "none needed" >&6; } ;;
  3761. xno)
  3762. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  3763. $as_echo "unsupported" >&6; } ;;
  3764. *)
  3765. CC="$CC $ac_cv_prog_cc_c89"
  3766. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  3767. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  3768. esac
  3769. if test "x$ac_cv_prog_cc_c89" != xno; then :
  3770. fi
  3771. ac_ext=c
  3772. ac_cpp='$CPP $CPPFLAGS'
  3773. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3774. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3775. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3776. ac_ext=c
  3777. ac_cpp='$CPP $CPPFLAGS'
  3778. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3779. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3780. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3781. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
  3782. $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
  3783. if ${am_cv_prog_cc_c_o+:} false; then :
  3784. $as_echo_n "(cached) " >&6
  3785. else
  3786. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3787. /* end confdefs.h. */
  3788. int
  3789. main ()
  3790. {
  3791. ;
  3792. return 0;
  3793. }
  3794. _ACEOF
  3795. # Make sure it works both with $CC and with simple cc.
  3796. # Following AC_PROG_CC_C_O, we do the test twice because some
  3797. # compilers refuse to overwrite an existing .o file with -o,
  3798. # though they will create one.
  3799. am_cv_prog_cc_c_o=yes
  3800. for am_i in 1 2; do
  3801. if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
  3802. ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
  3803. ac_status=$?
  3804. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3805. (exit $ac_status); } \
  3806. && test -f conftest2.$ac_objext; then
  3807. : OK
  3808. else
  3809. am_cv_prog_cc_c_o=no
  3810. break
  3811. fi
  3812. done
  3813. rm -f core conftest*
  3814. unset am_i
  3815. fi
  3816. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
  3817. $as_echo "$am_cv_prog_cc_c_o" >&6; }
  3818. if test "$am_cv_prog_cc_c_o" != yes; then
  3819. # Losing compiler, so override with the script.
  3820. # FIXME: It is wrong to rewrite CC.
  3821. # But if we don't then we get into trouble of one sort or another.
  3822. # A longer-term fix would be to have automake use am__CC in this case,
  3823. # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
  3824. CC="$am_aux_dir/compile $CC"
  3825. fi
  3826. ac_ext=c
  3827. ac_cpp='$CPP $CPPFLAGS'
  3828. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3829. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3830. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3831. depcc="$CC" am_compiler_list=
  3832. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  3833. $as_echo_n "checking dependency style of $depcc... " >&6; }
  3834. if ${am_cv_CC_dependencies_compiler_type+:} false; then :
  3835. $as_echo_n "(cached) " >&6
  3836. else
  3837. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  3838. # We make a subdir and do the tests there. Otherwise we can end up
  3839. # making bogus files that we don't know about and never remove. For
  3840. # instance it was reported that on HP-UX the gcc test will end up
  3841. # making a dummy file named 'D' -- because '-MD' means "put the output
  3842. # in D".
  3843. rm -rf conftest.dir
  3844. mkdir conftest.dir
  3845. # Copy depcomp to subdir because otherwise we won't find it if we're
  3846. # using a relative directory.
  3847. cp "$am_depcomp" conftest.dir
  3848. cd conftest.dir
  3849. # We will build objects and dependencies in a subdirectory because
  3850. # it helps to detect inapplicable dependency modes. For instance
  3851. # both Tru64's cc and ICC support -MD to output dependencies as a
  3852. # side effect of compilation, but ICC will put the dependencies in
  3853. # the current directory while Tru64 will put them in the object
  3854. # directory.
  3855. mkdir sub
  3856. am_cv_CC_dependencies_compiler_type=none
  3857. if test "$am_compiler_list" = ""; then
  3858. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  3859. fi
  3860. am__universal=false
  3861. case " $depcc " in #(
  3862. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  3863. esac
  3864. for depmode in $am_compiler_list; do
  3865. # Setup a source with many dependencies, because some compilers
  3866. # like to wrap large dependency lists on column 80 (with \), and
  3867. # we should not choose a depcomp mode which is confused by this.
  3868. #
  3869. # We need to recreate these files for each test, as the compiler may
  3870. # overwrite some of them when testing with obscure command lines.
  3871. # This happens at least with the AIX C compiler.
  3872. : > sub/conftest.c
  3873. for i in 1 2 3 4 5 6; do
  3874. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  3875. # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
  3876. # Solaris 10 /bin/sh.
  3877. echo '/* dummy */' > sub/conftst$i.h
  3878. done
  3879. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  3880. # We check with '-c' and '-o' for the sake of the "dashmstdout"
  3881. # mode. It turns out that the SunPro C++ compiler does not properly
  3882. # handle '-M -o', and we need to detect this. Also, some Intel
  3883. # versions had trouble with output in subdirs.
  3884. am__obj=sub/conftest.${OBJEXT-o}
  3885. am__minus_obj="-o $am__obj"
  3886. case $depmode in
  3887. gcc)
  3888. # This depmode causes a compiler race in universal mode.
  3889. test "$am__universal" = false || continue
  3890. ;;
  3891. nosideeffect)
  3892. # After this tag, mechanisms are not by side-effect, so they'll
  3893. # only be used when explicitly requested.
  3894. if test "x$enable_dependency_tracking" = xyes; then
  3895. continue
  3896. else
  3897. break
  3898. fi
  3899. ;;
  3900. msvc7 | msvc7msys | msvisualcpp | msvcmsys)
  3901. # This compiler won't grok '-c -o', but also, the minuso test has
  3902. # not run yet. These depmodes are late enough in the game, and
  3903. # so weak that their functioning should not be impacted.
  3904. am__obj=conftest.${OBJEXT-o}
  3905. am__minus_obj=
  3906. ;;
  3907. none) break ;;
  3908. esac
  3909. if depmode=$depmode \
  3910. source=sub/conftest.c object=$am__obj \
  3911. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  3912. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  3913. >/dev/null 2>conftest.err &&
  3914. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  3915. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  3916. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  3917. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  3918. # icc doesn't choke on unknown options, it will just issue warnings
  3919. # or remarks (even with -Werror). So we grep stderr for any message
  3920. # that says an option was ignored or not supported.
  3921. # When given -MP, icc 7.0 and 7.1 complain thusly:
  3922. # icc: Command line warning: ignoring option '-M'; no argument required
  3923. # The diagnosis changed in icc 8.0:
  3924. # icc: Command line remark: option '-MP' not supported
  3925. if (grep 'ignoring option' conftest.err ||
  3926. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  3927. am_cv_CC_dependencies_compiler_type=$depmode
  3928. break
  3929. fi
  3930. fi
  3931. done
  3932. cd ..
  3933. rm -rf conftest.dir
  3934. else
  3935. am_cv_CC_dependencies_compiler_type=none
  3936. fi
  3937. fi
  3938. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
  3939. $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
  3940. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  3941. if
  3942. test "x$enable_dependency_tracking" != xno \
  3943. && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  3944. am__fastdepCC_TRUE=
  3945. am__fastdepCC_FALSE='#'
  3946. else
  3947. am__fastdepCC_TRUE='#'
  3948. am__fastdepCC_FALSE=
  3949. fi
  3950. case $ac_cv_prog_cc_stdc in #(
  3951. no) :
  3952. ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
  3953. *) :
  3954. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
  3955. $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
  3956. if ${ac_cv_prog_cc_c99+:} false; then :
  3957. $as_echo_n "(cached) " >&6
  3958. else
  3959. ac_cv_prog_cc_c99=no
  3960. ac_save_CC=$CC
  3961. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3962. /* end confdefs.h. */
  3963. #include <stdarg.h>
  3964. #include <stdbool.h>
  3965. #include <stdlib.h>
  3966. #include <wchar.h>
  3967. #include <stdio.h>
  3968. // Check varargs macros. These examples are taken from C99 6.10.3.5.
  3969. #define debug(...) fprintf (stderr, __VA_ARGS__)
  3970. #define showlist(...) puts (#__VA_ARGS__)
  3971. #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
  3972. static void
  3973. test_varargs_macros (void)
  3974. {
  3975. int x = 1234;
  3976. int y = 5678;
  3977. debug ("Flag");
  3978. debug ("X = %d\n", x);
  3979. showlist (The first, second, and third items.);
  3980. report (x>y, "x is %d but y is %d", x, y);
  3981. }
  3982. // Check long long types.
  3983. #define BIG64 18446744073709551615ull
  3984. #define BIG32 4294967295ul
  3985. #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
  3986. #if !BIG_OK
  3987. your preprocessor is broken;
  3988. #endif
  3989. #if BIG_OK
  3990. #else
  3991. your preprocessor is broken;
  3992. #endif
  3993. static long long int bignum = -9223372036854775807LL;
  3994. static unsigned long long int ubignum = BIG64;
  3995. struct incomplete_array
  3996. {
  3997. int datasize;
  3998. double data[];
  3999. };
  4000. struct named_init {
  4001. int number;
  4002. const wchar_t *name;
  4003. double average;
  4004. };
  4005. typedef const char *ccp;
  4006. static inline int
  4007. test_restrict (ccp restrict text)
  4008. {
  4009. // See if C++-style comments work.
  4010. // Iterate through items via the restricted pointer.
  4011. // Also check for declarations in for loops.
  4012. for (unsigned int i = 0; *(text+i) != '\0'; ++i)
  4013. continue;
  4014. return 0;
  4015. }
  4016. // Check varargs and va_copy.
  4017. static void
  4018. test_varargs (const char *format, ...)
  4019. {
  4020. va_list args;
  4021. va_start (args, format);
  4022. va_list args_copy;
  4023. va_copy (args_copy, args);
  4024. const char *str;
  4025. int number;
  4026. float fnumber;
  4027. while (*format)
  4028. {
  4029. switch (*format++)
  4030. {
  4031. case 's': // string
  4032. str = va_arg (args_copy, const char *);
  4033. break;
  4034. case 'd': // int
  4035. number = va_arg (args_copy, int);
  4036. break;
  4037. case 'f': // float
  4038. fnumber = va_arg (args_copy, double);
  4039. break;
  4040. default:
  4041. break;
  4042. }
  4043. }
  4044. va_end (args_copy);
  4045. va_end (args);
  4046. }
  4047. int
  4048. main ()
  4049. {
  4050. // Check bool.
  4051. _Bool success = false;
  4052. // Check restrict.
  4053. if (test_restrict ("String literal") == 0)
  4054. success = true;
  4055. char *restrict newvar = "Another string";
  4056. // Check varargs.
  4057. test_varargs ("s, d' f .", "string", 65, 34.234);
  4058. test_varargs_macros ();
  4059. // Check flexible array members.
  4060. struct incomplete_array *ia =
  4061. malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
  4062. ia->datasize = 10;
  4063. for (int i = 0; i < ia->datasize; ++i)
  4064. ia->data[i] = i * 1.234;
  4065. // Check named initializers.
  4066. struct named_init ni = {
  4067. .number = 34,
  4068. .name = L"Test wide string",
  4069. .average = 543.34343,
  4070. };
  4071. ni.number = 58;
  4072. int dynamic_array[ni.number];
  4073. dynamic_array[ni.number - 1] = 543;
  4074. // work around unused variable warnings
  4075. return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
  4076. || dynamic_array[ni.number - 1] != 543);
  4077. ;
  4078. return 0;
  4079. }
  4080. _ACEOF
  4081. for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
  4082. do
  4083. CC="$ac_save_CC $ac_arg"
  4084. if ac_fn_c_try_compile "$LINENO"; then :
  4085. ac_cv_prog_cc_c99=$ac_arg
  4086. fi
  4087. rm -f core conftest.err conftest.$ac_objext
  4088. test "x$ac_cv_prog_cc_c99" != "xno" && break
  4089. done
  4090. rm -f conftest.$ac_ext
  4091. CC=$ac_save_CC
  4092. fi
  4093. # AC_CACHE_VAL
  4094. case "x$ac_cv_prog_cc_c99" in
  4095. x)
  4096. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  4097. $as_echo "none needed" >&6; } ;;
  4098. xno)
  4099. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  4100. $as_echo "unsupported" >&6; } ;;
  4101. *)
  4102. CC="$CC $ac_cv_prog_cc_c99"
  4103. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
  4104. $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
  4105. esac
  4106. if test "x$ac_cv_prog_cc_c99" != xno; then :
  4107. ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
  4108. else
  4109. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  4110. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  4111. if ${ac_cv_prog_cc_c89+:} false; then :
  4112. $as_echo_n "(cached) " >&6
  4113. else
  4114. ac_cv_prog_cc_c89=no
  4115. ac_save_CC=$CC
  4116. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4117. /* end confdefs.h. */
  4118. #include <stdarg.h>
  4119. #include <stdio.h>
  4120. struct stat;
  4121. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  4122. struct buf { int x; };
  4123. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  4124. static char *e (p, i)
  4125. char **p;
  4126. int i;
  4127. {
  4128. return p[i];
  4129. }
  4130. static char *f (char * (*g) (char **, int), char **p, ...)
  4131. {
  4132. char *s;
  4133. va_list v;
  4134. va_start (v,p);
  4135. s = g (p, va_arg (v,int));
  4136. va_end (v);
  4137. return s;
  4138. }
  4139. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  4140. function prototypes and stuff, but not '\xHH' hex character constants.
  4141. These don't provoke an error unfortunately, instead are silently treated
  4142. as 'x'. The following induces an error, until -std is added to get
  4143. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  4144. array size at least. It's necessary to write '\x00'==0 to get something
  4145. that's true only with -std. */
  4146. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  4147. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  4148. inside strings and character constants. */
  4149. #define FOO(x) 'x'
  4150. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  4151. int test (int i, double x);
  4152. struct s1 {int (*f) (int a);};
  4153. struct s2 {int (*f) (double a);};
  4154. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  4155. int argc;
  4156. char **argv;
  4157. int
  4158. main ()
  4159. {
  4160. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  4161. ;
  4162. return 0;
  4163. }
  4164. _ACEOF
  4165. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  4166. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  4167. do
  4168. CC="$ac_save_CC $ac_arg"
  4169. if ac_fn_c_try_compile "$LINENO"; then :
  4170. ac_cv_prog_cc_c89=$ac_arg
  4171. fi
  4172. rm -f core conftest.err conftest.$ac_objext
  4173. test "x$ac_cv_prog_cc_c89" != "xno" && break
  4174. done
  4175. rm -f conftest.$ac_ext
  4176. CC=$ac_save_CC
  4177. fi
  4178. # AC_CACHE_VAL
  4179. case "x$ac_cv_prog_cc_c89" in
  4180. x)
  4181. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  4182. $as_echo "none needed" >&6; } ;;
  4183. xno)
  4184. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  4185. $as_echo "unsupported" >&6; } ;;
  4186. *)
  4187. CC="$CC $ac_cv_prog_cc_c89"
  4188. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  4189. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  4190. esac
  4191. if test "x$ac_cv_prog_cc_c89" != xno; then :
  4192. ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
  4193. else
  4194. ac_cv_prog_cc_stdc=no
  4195. fi
  4196. fi
  4197. ;;
  4198. esac
  4199. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
  4200. $as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
  4201. if ${ac_cv_prog_cc_stdc+:} false; then :
  4202. $as_echo_n "(cached) " >&6
  4203. fi
  4204. case $ac_cv_prog_cc_stdc in #(
  4205. no) :
  4206. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  4207. $as_echo "unsupported" >&6; } ;; #(
  4208. '') :
  4209. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  4210. $as_echo "none needed" >&6; } ;; #(
  4211. *) :
  4212. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
  4213. $as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
  4214. esac
  4215. ac_ext=c
  4216. ac_cpp='$CPP $CPPFLAGS'
  4217. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4218. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4219. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4220. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  4221. $as_echo_n "checking how to run the C preprocessor... " >&6; }
  4222. # On Suns, sometimes $CPP names a directory.
  4223. if test -n "$CPP" && test -d "$CPP"; then
  4224. CPP=
  4225. fi
  4226. if test -z "$CPP"; then
  4227. if ${ac_cv_prog_CPP+:} false; then :
  4228. $as_echo_n "(cached) " >&6
  4229. else
  4230. # Double quotes because CPP needs to be expanded
  4231. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  4232. do
  4233. ac_preproc_ok=false
  4234. for ac_c_preproc_warn_flag in '' yes
  4235. do
  4236. # Use a header file that comes with gcc, so configuring glibc
  4237. # with a fresh cross-compiler works.
  4238. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  4239. # <limits.h> exists even on freestanding compilers.
  4240. # On the NeXT, cc -E runs the code through the compiler's parser,
  4241. # not just through cpp. "Syntax error" is here to catch this case.
  4242. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4243. /* end confdefs.h. */
  4244. #ifdef __STDC__
  4245. # include <limits.h>
  4246. #else
  4247. # include <assert.h>
  4248. #endif
  4249. Syntax error
  4250. _ACEOF
  4251. if ac_fn_c_try_cpp "$LINENO"; then :
  4252. else
  4253. # Broken: fails on valid input.
  4254. continue
  4255. fi
  4256. rm -f conftest.err conftest.i conftest.$ac_ext
  4257. # OK, works on sane cases. Now check whether nonexistent headers
  4258. # can be detected and how.
  4259. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4260. /* end confdefs.h. */
  4261. #include <ac_nonexistent.h>
  4262. _ACEOF
  4263. if ac_fn_c_try_cpp "$LINENO"; then :
  4264. # Broken: success on invalid input.
  4265. continue
  4266. else
  4267. # Passes both tests.
  4268. ac_preproc_ok=:
  4269. break
  4270. fi
  4271. rm -f conftest.err conftest.i conftest.$ac_ext
  4272. done
  4273. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  4274. rm -f conftest.i conftest.err conftest.$ac_ext
  4275. if $ac_preproc_ok; then :
  4276. break
  4277. fi
  4278. done
  4279. ac_cv_prog_CPP=$CPP
  4280. fi
  4281. CPP=$ac_cv_prog_CPP
  4282. else
  4283. ac_cv_prog_CPP=$CPP
  4284. fi
  4285. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  4286. $as_echo "$CPP" >&6; }
  4287. ac_preproc_ok=false
  4288. for ac_c_preproc_warn_flag in '' yes
  4289. do
  4290. # Use a header file that comes with gcc, so configuring glibc
  4291. # with a fresh cross-compiler works.
  4292. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  4293. # <limits.h> exists even on freestanding compilers.
  4294. # On the NeXT, cc -E runs the code through the compiler's parser,
  4295. # not just through cpp. "Syntax error" is here to catch this case.
  4296. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4297. /* end confdefs.h. */
  4298. #ifdef __STDC__
  4299. # include <limits.h>
  4300. #else
  4301. # include <assert.h>
  4302. #endif
  4303. Syntax error
  4304. _ACEOF
  4305. if ac_fn_c_try_cpp "$LINENO"; then :
  4306. else
  4307. # Broken: fails on valid input.
  4308. continue
  4309. fi
  4310. rm -f conftest.err conftest.i conftest.$ac_ext
  4311. # OK, works on sane cases. Now check whether nonexistent headers
  4312. # can be detected and how.
  4313. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4314. /* end confdefs.h. */
  4315. #include <ac_nonexistent.h>
  4316. _ACEOF
  4317. if ac_fn_c_try_cpp "$LINENO"; then :
  4318. # Broken: success on invalid input.
  4319. continue
  4320. else
  4321. # Passes both tests.
  4322. ac_preproc_ok=:
  4323. break
  4324. fi
  4325. rm -f conftest.err conftest.i conftest.$ac_ext
  4326. done
  4327. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  4328. rm -f conftest.i conftest.err conftest.$ac_ext
  4329. if $ac_preproc_ok; then :
  4330. else
  4331. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  4332. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  4333. as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
  4334. See \`config.log' for more details" "$LINENO" 5; }
  4335. fi
  4336. ac_ext=c
  4337. ac_cpp='$CPP $CPPFLAGS'
  4338. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4339. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4340. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4341. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  4342. $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  4343. if ${ac_cv_path_GREP+:} false; then :
  4344. $as_echo_n "(cached) " >&6
  4345. else
  4346. if test -z "$GREP"; then
  4347. ac_path_GREP_found=false
  4348. # Loop through the user's path and test for each of PROGNAME-LIST
  4349. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4350. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4351. do
  4352. IFS=$as_save_IFS
  4353. test -z "$as_dir" && as_dir=.
  4354. for ac_prog in grep ggrep; do
  4355. for ac_exec_ext in '' $ac_executable_extensions; do
  4356. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  4357. as_fn_executable_p "$ac_path_GREP" || continue
  4358. # Check for GNU ac_path_GREP and select it if it is found.
  4359. # Check for GNU $ac_path_GREP
  4360. case `"$ac_path_GREP" --version 2>&1` in
  4361. *GNU*)
  4362. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  4363. *)
  4364. ac_count=0
  4365. $as_echo_n 0123456789 >"conftest.in"
  4366. while :
  4367. do
  4368. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4369. mv "conftest.tmp" "conftest.in"
  4370. cp "conftest.in" "conftest.nl"
  4371. $as_echo 'GREP' >> "conftest.nl"
  4372. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4373. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4374. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4375. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  4376. # Best one so far, save it but keep looking for a better one
  4377. ac_cv_path_GREP="$ac_path_GREP"
  4378. ac_path_GREP_max=$ac_count
  4379. fi
  4380. # 10*(2^10) chars as input seems more than enough
  4381. test $ac_count -gt 10 && break
  4382. done
  4383. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4384. esac
  4385. $ac_path_GREP_found && break 3
  4386. done
  4387. done
  4388. done
  4389. IFS=$as_save_IFS
  4390. if test -z "$ac_cv_path_GREP"; then
  4391. as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4392. fi
  4393. else
  4394. ac_cv_path_GREP=$GREP
  4395. fi
  4396. fi
  4397. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  4398. $as_echo "$ac_cv_path_GREP" >&6; }
  4399. GREP="$ac_cv_path_GREP"
  4400. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  4401. $as_echo_n "checking for egrep... " >&6; }
  4402. if ${ac_cv_path_EGREP+:} false; then :
  4403. $as_echo_n "(cached) " >&6
  4404. else
  4405. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  4406. then ac_cv_path_EGREP="$GREP -E"
  4407. else
  4408. if test -z "$EGREP"; then
  4409. ac_path_EGREP_found=false
  4410. # Loop through the user's path and test for each of PROGNAME-LIST
  4411. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4412. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4413. do
  4414. IFS=$as_save_IFS
  4415. test -z "$as_dir" && as_dir=.
  4416. for ac_prog in egrep; do
  4417. for ac_exec_ext in '' $ac_executable_extensions; do
  4418. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  4419. as_fn_executable_p "$ac_path_EGREP" || continue
  4420. # Check for GNU ac_path_EGREP and select it if it is found.
  4421. # Check for GNU $ac_path_EGREP
  4422. case `"$ac_path_EGREP" --version 2>&1` in
  4423. *GNU*)
  4424. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  4425. *)
  4426. ac_count=0
  4427. $as_echo_n 0123456789 >"conftest.in"
  4428. while :
  4429. do
  4430. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4431. mv "conftest.tmp" "conftest.in"
  4432. cp "conftest.in" "conftest.nl"
  4433. $as_echo 'EGREP' >> "conftest.nl"
  4434. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4435. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4436. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4437. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  4438. # Best one so far, save it but keep looking for a better one
  4439. ac_cv_path_EGREP="$ac_path_EGREP"
  4440. ac_path_EGREP_max=$ac_count
  4441. fi
  4442. # 10*(2^10) chars as input seems more than enough
  4443. test $ac_count -gt 10 && break
  4444. done
  4445. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4446. esac
  4447. $ac_path_EGREP_found && break 3
  4448. done
  4449. done
  4450. done
  4451. IFS=$as_save_IFS
  4452. if test -z "$ac_cv_path_EGREP"; then
  4453. as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4454. fi
  4455. else
  4456. ac_cv_path_EGREP=$EGREP
  4457. fi
  4458. fi
  4459. fi
  4460. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  4461. $as_echo "$ac_cv_path_EGREP" >&6; }
  4462. EGREP="$ac_cv_path_EGREP"
  4463. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  4464. $as_echo_n "checking for ANSI C header files... " >&6; }
  4465. if ${ac_cv_header_stdc+:} false; then :
  4466. $as_echo_n "(cached) " >&6
  4467. else
  4468. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4469. /* end confdefs.h. */
  4470. #include <stdlib.h>
  4471. #include <stdarg.h>
  4472. #include <string.h>
  4473. #include <float.h>
  4474. int
  4475. main ()
  4476. {
  4477. ;
  4478. return 0;
  4479. }
  4480. _ACEOF
  4481. if ac_fn_c_try_compile "$LINENO"; then :
  4482. ac_cv_header_stdc=yes
  4483. else
  4484. ac_cv_header_stdc=no
  4485. fi
  4486. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4487. if test $ac_cv_header_stdc = yes; then
  4488. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  4489. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4490. /* end confdefs.h. */
  4491. #include <string.h>
  4492. _ACEOF
  4493. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  4494. $EGREP "memchr" >/dev/null 2>&1; then :
  4495. else
  4496. ac_cv_header_stdc=no
  4497. fi
  4498. rm -f conftest*
  4499. fi
  4500. if test $ac_cv_header_stdc = yes; then
  4501. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  4502. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4503. /* end confdefs.h. */
  4504. #include <stdlib.h>
  4505. _ACEOF
  4506. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  4507. $EGREP "free" >/dev/null 2>&1; then :
  4508. else
  4509. ac_cv_header_stdc=no
  4510. fi
  4511. rm -f conftest*
  4512. fi
  4513. if test $ac_cv_header_stdc = yes; then
  4514. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  4515. if test "$cross_compiling" = yes; then :
  4516. :
  4517. else
  4518. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4519. /* end confdefs.h. */
  4520. #include <ctype.h>
  4521. #include <stdlib.h>
  4522. #if ((' ' & 0x0FF) == 0x020)
  4523. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  4524. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  4525. #else
  4526. # define ISLOWER(c) \
  4527. (('a' <= (c) && (c) <= 'i') \
  4528. || ('j' <= (c) && (c) <= 'r') \
  4529. || ('s' <= (c) && (c) <= 'z'))
  4530. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  4531. #endif
  4532. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  4533. int
  4534. main ()
  4535. {
  4536. int i;
  4537. for (i = 0; i < 256; i++)
  4538. if (XOR (islower (i), ISLOWER (i))
  4539. || toupper (i) != TOUPPER (i))
  4540. return 2;
  4541. return 0;
  4542. }
  4543. _ACEOF
  4544. if ac_fn_c_try_run "$LINENO"; then :
  4545. else
  4546. ac_cv_header_stdc=no
  4547. fi
  4548. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  4549. conftest.$ac_objext conftest.beam conftest.$ac_ext
  4550. fi
  4551. fi
  4552. fi
  4553. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  4554. $as_echo "$ac_cv_header_stdc" >&6; }
  4555. if test $ac_cv_header_stdc = yes; then
  4556. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  4557. fi
  4558. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  4559. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  4560. inttypes.h stdint.h unistd.h
  4561. do :
  4562. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  4563. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  4564. "
  4565. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  4566. cat >>confdefs.h <<_ACEOF
  4567. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  4568. _ACEOF
  4569. fi
  4570. done
  4571. ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
  4572. if test "x$ac_cv_header_minix_config_h" = xyes; then :
  4573. MINIX=yes
  4574. else
  4575. MINIX=
  4576. fi
  4577. if test "$MINIX" = yes; then
  4578. $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
  4579. $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
  4580. $as_echo "#define _MINIX 1" >>confdefs.h
  4581. fi
  4582. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
  4583. $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
  4584. if ${ac_cv_safe_to_define___extensions__+:} false; then :
  4585. $as_echo_n "(cached) " >&6
  4586. else
  4587. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4588. /* end confdefs.h. */
  4589. # define __EXTENSIONS__ 1
  4590. $ac_includes_default
  4591. int
  4592. main ()
  4593. {
  4594. ;
  4595. return 0;
  4596. }
  4597. _ACEOF
  4598. if ac_fn_c_try_compile "$LINENO"; then :
  4599. ac_cv_safe_to_define___extensions__=yes
  4600. else
  4601. ac_cv_safe_to_define___extensions__=no
  4602. fi
  4603. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4604. fi
  4605. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
  4606. $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
  4607. test $ac_cv_safe_to_define___extensions__ = yes &&
  4608. $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
  4609. $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
  4610. $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
  4611. $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
  4612. $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
  4613. # Check whether --enable-largefile was given.
  4614. if test "${enable_largefile+set}" = set; then :
  4615. enableval=$enable_largefile;
  4616. fi
  4617. if test "$enable_largefile" != no; then
  4618. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
  4619. $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
  4620. if ${ac_cv_sys_largefile_CC+:} false; then :
  4621. $as_echo_n "(cached) " >&6
  4622. else
  4623. ac_cv_sys_largefile_CC=no
  4624. if test "$GCC" != yes; then
  4625. ac_save_CC=$CC
  4626. while :; do
  4627. # IRIX 6.2 and later do not support large files by default,
  4628. # so use the C compiler's -n32 option if that helps.
  4629. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4630. /* end confdefs.h. */
  4631. #include <sys/types.h>
  4632. /* Check that off_t can represent 2**63 - 1 correctly.
  4633. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  4634. since some C++ compilers masquerading as C compilers
  4635. incorrectly reject 9223372036854775807. */
  4636. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  4637. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  4638. && LARGE_OFF_T % 2147483647 == 1)
  4639. ? 1 : -1];
  4640. int
  4641. main ()
  4642. {
  4643. ;
  4644. return 0;
  4645. }
  4646. _ACEOF
  4647. if ac_fn_c_try_compile "$LINENO"; then :
  4648. break
  4649. fi
  4650. rm -f core conftest.err conftest.$ac_objext
  4651. CC="$CC -n32"
  4652. if ac_fn_c_try_compile "$LINENO"; then :
  4653. ac_cv_sys_largefile_CC=' -n32'; break
  4654. fi
  4655. rm -f core conftest.err conftest.$ac_objext
  4656. break
  4657. done
  4658. CC=$ac_save_CC
  4659. rm -f conftest.$ac_ext
  4660. fi
  4661. fi
  4662. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
  4663. $as_echo "$ac_cv_sys_largefile_CC" >&6; }
  4664. if test "$ac_cv_sys_largefile_CC" != no; then
  4665. CC=$CC$ac_cv_sys_largefile_CC
  4666. fi
  4667. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
  4668. $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
  4669. if ${ac_cv_sys_file_offset_bits+:} false; then :
  4670. $as_echo_n "(cached) " >&6
  4671. else
  4672. while :; do
  4673. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4674. /* end confdefs.h. */
  4675. #include <sys/types.h>
  4676. /* Check that off_t can represent 2**63 - 1 correctly.
  4677. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  4678. since some C++ compilers masquerading as C compilers
  4679. incorrectly reject 9223372036854775807. */
  4680. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  4681. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  4682. && LARGE_OFF_T % 2147483647 == 1)
  4683. ? 1 : -1];
  4684. int
  4685. main ()
  4686. {
  4687. ;
  4688. return 0;
  4689. }
  4690. _ACEOF
  4691. if ac_fn_c_try_compile "$LINENO"; then :
  4692. ac_cv_sys_file_offset_bits=no; break
  4693. fi
  4694. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4695. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4696. /* end confdefs.h. */
  4697. #define _FILE_OFFSET_BITS 64
  4698. #include <sys/types.h>
  4699. /* Check that off_t can represent 2**63 - 1 correctly.
  4700. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  4701. since some C++ compilers masquerading as C compilers
  4702. incorrectly reject 9223372036854775807. */
  4703. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  4704. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  4705. && LARGE_OFF_T % 2147483647 == 1)
  4706. ? 1 : -1];
  4707. int
  4708. main ()
  4709. {
  4710. ;
  4711. return 0;
  4712. }
  4713. _ACEOF
  4714. if ac_fn_c_try_compile "$LINENO"; then :
  4715. ac_cv_sys_file_offset_bits=64; break
  4716. fi
  4717. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4718. ac_cv_sys_file_offset_bits=unknown
  4719. break
  4720. done
  4721. fi
  4722. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
  4723. $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
  4724. case $ac_cv_sys_file_offset_bits in #(
  4725. no | unknown) ;;
  4726. *)
  4727. cat >>confdefs.h <<_ACEOF
  4728. #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
  4729. _ACEOF
  4730. ;;
  4731. esac
  4732. rm -rf conftest*
  4733. if test $ac_cv_sys_file_offset_bits = unknown; then
  4734. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
  4735. $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
  4736. if ${ac_cv_sys_large_files+:} false; then :
  4737. $as_echo_n "(cached) " >&6
  4738. else
  4739. while :; do
  4740. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4741. /* end confdefs.h. */
  4742. #include <sys/types.h>
  4743. /* Check that off_t can represent 2**63 - 1 correctly.
  4744. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  4745. since some C++ compilers masquerading as C compilers
  4746. incorrectly reject 9223372036854775807. */
  4747. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  4748. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  4749. && LARGE_OFF_T % 2147483647 == 1)
  4750. ? 1 : -1];
  4751. int
  4752. main ()
  4753. {
  4754. ;
  4755. return 0;
  4756. }
  4757. _ACEOF
  4758. if ac_fn_c_try_compile "$LINENO"; then :
  4759. ac_cv_sys_large_files=no; break
  4760. fi
  4761. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4762. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4763. /* end confdefs.h. */
  4764. #define _LARGE_FILES 1
  4765. #include <sys/types.h>
  4766. /* Check that off_t can represent 2**63 - 1 correctly.
  4767. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  4768. since some C++ compilers masquerading as C compilers
  4769. incorrectly reject 9223372036854775807. */
  4770. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  4771. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  4772. && LARGE_OFF_T % 2147483647 == 1)
  4773. ? 1 : -1];
  4774. int
  4775. main ()
  4776. {
  4777. ;
  4778. return 0;
  4779. }
  4780. _ACEOF
  4781. if ac_fn_c_try_compile "$LINENO"; then :
  4782. ac_cv_sys_large_files=1; break
  4783. fi
  4784. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4785. ac_cv_sys_large_files=unknown
  4786. break
  4787. done
  4788. fi
  4789. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
  4790. $as_echo "$ac_cv_sys_large_files" >&6; }
  4791. case $ac_cv_sys_large_files in #(
  4792. no | unknown) ;;
  4793. *)
  4794. cat >>confdefs.h <<_ACEOF
  4795. #define _LARGE_FILES $ac_cv_sys_large_files
  4796. _ACEOF
  4797. ;;
  4798. esac
  4799. rm -rf conftest*
  4800. fi
  4801. fi
  4802. # Check whether --enable-silent-rules was given.
  4803. if test "${enable_silent_rules+set}" = set; then :
  4804. enableval=$enable_silent_rules;
  4805. fi
  4806. case $enable_silent_rules in # (((
  4807. yes) AM_DEFAULT_VERBOSITY=0;;
  4808. no) AM_DEFAULT_VERBOSITY=1;;
  4809. *) AM_DEFAULT_VERBOSITY=0;;
  4810. esac
  4811. am_make=${MAKE-make}
  4812. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
  4813. $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
  4814. if ${am_cv_make_support_nested_variables+:} false; then :
  4815. $as_echo_n "(cached) " >&6
  4816. else
  4817. if $as_echo 'TRUE=$(BAR$(V))
  4818. BAR0=false
  4819. BAR1=true
  4820. V=1
  4821. am__doit:
  4822. @$(TRUE)
  4823. .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
  4824. am_cv_make_support_nested_variables=yes
  4825. else
  4826. am_cv_make_support_nested_variables=no
  4827. fi
  4828. fi
  4829. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
  4830. $as_echo "$am_cv_make_support_nested_variables" >&6; }
  4831. if test $am_cv_make_support_nested_variables = yes; then
  4832. AM_V='$(V)'
  4833. AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
  4834. else
  4835. AM_V=$AM_DEFAULT_VERBOSITY
  4836. AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
  4837. fi
  4838. AM_BACKSLASH='\'
  4839. LIBMODBUS_VERSION_MAJOR=3
  4840. LIBMODBUS_VERSION_MINOR=1
  4841. LIBMODBUS_VERSION_MICRO=6
  4842. LIBMODBUS_VERSION=3.1.6
  4843. # ABI version
  4844. # http://www.gnu.org/software/libtool/manual/html_node/Updating-version-info.html
  4845. LIBMODBUS_LD_CURRENT=6
  4846. LIBMODBUS_LD_REVISION=0
  4847. LIBMODBUS_LD_AGE=1
  4848. LIBMODBUS_LT_VERSION_INFO=$LIBMODBUS_LD_CURRENT:$LIBMODBUS_LD_REVISION:$LIBMODBUS_LD_AGE
  4849. # Make sure we can run config.sub.
  4850. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  4851. as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
  4852. { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  4853. $as_echo_n "checking build system type... " >&6; }
  4854. if ${ac_cv_build+:} false; then :
  4855. $as_echo_n "(cached) " >&6
  4856. else
  4857. ac_build_alias=$build_alias
  4858. test "x$ac_build_alias" = x &&
  4859. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  4860. test "x$ac_build_alias" = x &&
  4861. as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
  4862. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  4863. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
  4864. fi
  4865. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  4866. $as_echo "$ac_cv_build" >&6; }
  4867. case $ac_cv_build in
  4868. *-*-*) ;;
  4869. *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
  4870. esac
  4871. build=$ac_cv_build
  4872. ac_save_IFS=$IFS; IFS='-'
  4873. set x $ac_cv_build
  4874. shift
  4875. build_cpu=$1
  4876. build_vendor=$2
  4877. shift; shift
  4878. # Remember, the first character of IFS is used to create $*,
  4879. # except with old shells:
  4880. build_os=$*
  4881. IFS=$ac_save_IFS
  4882. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  4883. { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  4884. $as_echo_n "checking host system type... " >&6; }
  4885. if ${ac_cv_host+:} false; then :
  4886. $as_echo_n "(cached) " >&6
  4887. else
  4888. if test "x$host_alias" = x; then
  4889. ac_cv_host=$ac_cv_build
  4890. else
  4891. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  4892. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
  4893. fi
  4894. fi
  4895. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  4896. $as_echo "$ac_cv_host" >&6; }
  4897. case $ac_cv_host in
  4898. *-*-*) ;;
  4899. *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
  4900. esac
  4901. host=$ac_cv_host
  4902. ac_save_IFS=$IFS; IFS='-'
  4903. set x $ac_cv_host
  4904. shift
  4905. host_cpu=$1
  4906. host_vendor=$2
  4907. shift; shift
  4908. # Remember, the first character of IFS is used to create $*,
  4909. # except with old shells:
  4910. host_os=$*
  4911. IFS=$ac_save_IFS
  4912. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  4913. # OS check
  4914. os_win32="false"
  4915. os_cygwin="false"
  4916. os_qnx="false"
  4917. case "${host_os}" in
  4918. *mingw32*)
  4919. os_win32="true"
  4920. ;;
  4921. *nto-qnx*)
  4922. os_qnx="true"
  4923. ;;
  4924. *cygwin*)
  4925. os_cygwin="true"
  4926. ;;
  4927. esac
  4928. if test "$os_win32" = "true"; then
  4929. OS_WIN32_TRUE=
  4930. OS_WIN32_FALSE='#'
  4931. else
  4932. OS_WIN32_TRUE='#'
  4933. OS_WIN32_FALSE=
  4934. fi
  4935. if test "$os_qnx" = "true"; then
  4936. OS_QNX_TRUE=
  4937. OS_QNX_FALSE='#'
  4938. else
  4939. OS_QNX_TRUE='#'
  4940. OS_QNX_FALSE=
  4941. fi
  4942. case `pwd` in
  4943. *\ * | *\ *)
  4944. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
  4945. $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
  4946. esac
  4947. macro_version='2.4.6.42-b88ce'
  4948. macro_revision='2.4.6.42'
  4949. ltmain=$ac_aux_dir/ltmain.sh
  4950. # Backslashify metacharacters that are still active within
  4951. # double-quoted strings.
  4952. sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
  4953. # Same as above, but do not quote variable references.
  4954. double_quote_subst='s/\(["`\\]\)/\\\1/g'
  4955. # Sed substitution to delay expansion of an escaped shell variable in a
  4956. # double_quote_subst'ed string.
  4957. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  4958. # Sed substitution to delay expansion of an escaped single quote.
  4959. delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
  4960. # Sed substitution to avoid accidental globbing in evaled expressions
  4961. no_glob_subst='s/\*/\\\*/g'
  4962. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  4963. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
  4964. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
  4965. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
  4966. $as_echo_n "checking how to print strings... " >&6; }
  4967. # Test print first, because it will be a builtin if present.
  4968. if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
  4969. test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
  4970. ECHO='print -r --'
  4971. elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
  4972. ECHO='printf %s\n'
  4973. else
  4974. # Use this function as a fallback that always works.
  4975. func_fallback_echo ()
  4976. {
  4977. eval 'cat <<_LTECHO_EOF
  4978. $1
  4979. _LTECHO_EOF'
  4980. }
  4981. ECHO='func_fallback_echo'
  4982. fi
  4983. # func_echo_all arg...
  4984. # Invoke $ECHO with all args, space-separated.
  4985. func_echo_all ()
  4986. {
  4987. $ECHO ""
  4988. }
  4989. case $ECHO in
  4990. printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
  4991. $as_echo "printf" >&6; } ;;
  4992. print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
  4993. $as_echo "print -r" >&6; } ;;
  4994. *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
  4995. $as_echo "cat" >&6; } ;;
  4996. esac
  4997. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
  4998. $as_echo_n "checking for a sed that does not truncate output... " >&6; }
  4999. if ${ac_cv_path_SED+:} false; then :
  5000. $as_echo_n "(cached) " >&6
  5001. else
  5002. ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  5003. for ac_i in 1 2 3 4 5 6 7; do
  5004. ac_script="$ac_script$as_nl$ac_script"
  5005. done
  5006. echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  5007. { ac_script=; unset ac_script;}
  5008. if test -z "$SED"; then
  5009. ac_path_SED_found=false
  5010. # Loop through the user's path and test for each of PROGNAME-LIST
  5011. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5012. for as_dir in $PATH
  5013. do
  5014. IFS=$as_save_IFS
  5015. test -z "$as_dir" && as_dir=.
  5016. for ac_prog in sed gsed; do
  5017. for ac_exec_ext in '' $ac_executable_extensions; do
  5018. ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
  5019. as_fn_executable_p "$ac_path_SED" || continue
  5020. # Check for GNU ac_path_SED and select it if it is found.
  5021. # Check for GNU $ac_path_SED
  5022. case `"$ac_path_SED" --version 2>&1` in
  5023. *GNU*)
  5024. ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  5025. *)
  5026. ac_count=0
  5027. $as_echo_n 0123456789 >"conftest.in"
  5028. while :
  5029. do
  5030. cat "conftest.in" "conftest.in" >"conftest.tmp"
  5031. mv "conftest.tmp" "conftest.in"
  5032. cp "conftest.in" "conftest.nl"
  5033. $as_echo '' >> "conftest.nl"
  5034. "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  5035. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  5036. as_fn_arith $ac_count + 1 && ac_count=$as_val
  5037. if test $ac_count -gt ${ac_path_SED_max-0}; then
  5038. # Best one so far, save it but keep looking for a better one
  5039. ac_cv_path_SED="$ac_path_SED"
  5040. ac_path_SED_max=$ac_count
  5041. fi
  5042. # 10*(2^10) chars as input seems more than enough
  5043. test $ac_count -gt 10 && break
  5044. done
  5045. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  5046. esac
  5047. $ac_path_SED_found && break 3
  5048. done
  5049. done
  5050. done
  5051. IFS=$as_save_IFS
  5052. if test -z "$ac_cv_path_SED"; then
  5053. as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
  5054. fi
  5055. else
  5056. ac_cv_path_SED=$SED
  5057. fi
  5058. fi
  5059. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
  5060. $as_echo "$ac_cv_path_SED" >&6; }
  5061. SED="$ac_cv_path_SED"
  5062. rm -f conftest.sed
  5063. test -z "$SED" && SED=sed
  5064. Xsed="$SED -e 1s/^X//"
  5065. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
  5066. $as_echo_n "checking for fgrep... " >&6; }
  5067. if ${ac_cv_path_FGREP+:} false; then :
  5068. $as_echo_n "(cached) " >&6
  5069. else
  5070. if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
  5071. then ac_cv_path_FGREP="$GREP -F"
  5072. else
  5073. if test -z "$FGREP"; then
  5074. ac_path_FGREP_found=false
  5075. # Loop through the user's path and test for each of PROGNAME-LIST
  5076. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5077. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  5078. do
  5079. IFS=$as_save_IFS
  5080. test -z "$as_dir" && as_dir=.
  5081. for ac_prog in fgrep; do
  5082. for ac_exec_ext in '' $ac_executable_extensions; do
  5083. ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
  5084. as_fn_executable_p "$ac_path_FGREP" || continue
  5085. # Check for GNU ac_path_FGREP and select it if it is found.
  5086. # Check for GNU $ac_path_FGREP
  5087. case `"$ac_path_FGREP" --version 2>&1` in
  5088. *GNU*)
  5089. ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
  5090. *)
  5091. ac_count=0
  5092. $as_echo_n 0123456789 >"conftest.in"
  5093. while :
  5094. do
  5095. cat "conftest.in" "conftest.in" >"conftest.tmp"
  5096. mv "conftest.tmp" "conftest.in"
  5097. cp "conftest.in" "conftest.nl"
  5098. $as_echo 'FGREP' >> "conftest.nl"
  5099. "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
  5100. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  5101. as_fn_arith $ac_count + 1 && ac_count=$as_val
  5102. if test $ac_count -gt ${ac_path_FGREP_max-0}; then
  5103. # Best one so far, save it but keep looking for a better one
  5104. ac_cv_path_FGREP="$ac_path_FGREP"
  5105. ac_path_FGREP_max=$ac_count
  5106. fi
  5107. # 10*(2^10) chars as input seems more than enough
  5108. test $ac_count -gt 10 && break
  5109. done
  5110. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  5111. esac
  5112. $ac_path_FGREP_found && break 3
  5113. done
  5114. done
  5115. done
  5116. IFS=$as_save_IFS
  5117. if test -z "$ac_cv_path_FGREP"; then
  5118. as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  5119. fi
  5120. else
  5121. ac_cv_path_FGREP=$FGREP
  5122. fi
  5123. fi
  5124. fi
  5125. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
  5126. $as_echo "$ac_cv_path_FGREP" >&6; }
  5127. FGREP="$ac_cv_path_FGREP"
  5128. test -z "$GREP" && GREP=grep
  5129. # Check whether --with-gnu-ld was given.
  5130. if test "${with_gnu_ld+set}" = set; then :
  5131. withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
  5132. else
  5133. with_gnu_ld=no
  5134. fi
  5135. ac_prog=ld
  5136. if test yes = "$GCC"; then
  5137. # Check if gcc -print-prog-name=ld gives a path.
  5138. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  5139. $as_echo_n "checking for ld used by $CC... " >&6; }
  5140. case $host in
  5141. *-*-mingw*)
  5142. # gcc leaves a trailing carriage return, which upsets mingw
  5143. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  5144. *)
  5145. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  5146. esac
  5147. case $ac_prog in
  5148. # Accept absolute paths.
  5149. [\\/]* | ?:[\\/]*)
  5150. re_direlt='/[^/][^/]*/\.\./'
  5151. # Canonicalize the pathname of ld
  5152. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  5153. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  5154. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  5155. done
  5156. test -z "$LD" && LD=$ac_prog
  5157. ;;
  5158. "")
  5159. # If it fails, then pretend we aren't using GCC.
  5160. ac_prog=ld
  5161. ;;
  5162. *)
  5163. # If it is relative, then search for the first ld in PATH.
  5164. with_gnu_ld=unknown
  5165. ;;
  5166. esac
  5167. elif test yes = "$with_gnu_ld"; then
  5168. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  5169. $as_echo_n "checking for GNU ld... " >&6; }
  5170. else
  5171. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  5172. $as_echo_n "checking for non-GNU ld... " >&6; }
  5173. fi
  5174. if ${lt_cv_path_LD+:} false; then :
  5175. $as_echo_n "(cached) " >&6
  5176. else
  5177. if test -z "$LD"; then
  5178. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  5179. for ac_dir in $PATH; do
  5180. IFS=$lt_save_ifs
  5181. test -z "$ac_dir" && ac_dir=.
  5182. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  5183. lt_cv_path_LD=$ac_dir/$ac_prog
  5184. # Check to see if the program is GNU ld. I'd rather use --version,
  5185. # but apparently some variants of GNU ld only accept -v.
  5186. # Break only if it was the GNU/non-GNU ld that we prefer.
  5187. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  5188. *GNU* | *'with BFD'*)
  5189. test no != "$with_gnu_ld" && break
  5190. ;;
  5191. *)
  5192. test yes != "$with_gnu_ld" && break
  5193. ;;
  5194. esac
  5195. fi
  5196. done
  5197. IFS=$lt_save_ifs
  5198. else
  5199. lt_cv_path_LD=$LD # Let the user override the test with a path.
  5200. fi
  5201. fi
  5202. LD=$lt_cv_path_LD
  5203. if test -n "$LD"; then
  5204. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  5205. $as_echo "$LD" >&6; }
  5206. else
  5207. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5208. $as_echo "no" >&6; }
  5209. fi
  5210. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  5211. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  5212. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  5213. if ${lt_cv_prog_gnu_ld+:} false; then :
  5214. $as_echo_n "(cached) " >&6
  5215. else
  5216. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  5217. case `$LD -v 2>&1 </dev/null` in
  5218. *GNU* | *'with BFD'*)
  5219. lt_cv_prog_gnu_ld=yes
  5220. ;;
  5221. *)
  5222. lt_cv_prog_gnu_ld=no
  5223. ;;
  5224. esac
  5225. fi
  5226. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  5227. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  5228. with_gnu_ld=$lt_cv_prog_gnu_ld
  5229. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
  5230. $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
  5231. if ${lt_cv_path_NM+:} false; then :
  5232. $as_echo_n "(cached) " >&6
  5233. else
  5234. if test -n "$NM"; then
  5235. # Let the user override the test.
  5236. lt_cv_path_NM=$NM
  5237. else
  5238. lt_nm_to_check=${ac_tool_prefix}nm
  5239. if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  5240. lt_nm_to_check="$lt_nm_to_check nm"
  5241. fi
  5242. for lt_tmp_nm in $lt_nm_to_check; do
  5243. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  5244. for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  5245. IFS=$lt_save_ifs
  5246. test -z "$ac_dir" && ac_dir=.
  5247. tmp_nm=$ac_dir/$lt_tmp_nm
  5248. if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
  5249. # Check to see if the nm accepts a BSD-compat flag.
  5250. # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
  5251. # nm: unknown option "B" ignored
  5252. # Tru64's nm complains that /dev/null is an invalid object file
  5253. # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
  5254. case $build_os in
  5255. mingw*) lt_bad_file=conftest.nm/nofile ;;
  5256. *) lt_bad_file=/dev/null ;;
  5257. esac
  5258. case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
  5259. *$lt_bad_file* | *'Invalid file or object type'*)
  5260. lt_cv_path_NM="$tmp_nm -B"
  5261. break 2
  5262. ;;
  5263. *)
  5264. case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  5265. */dev/null*)
  5266. lt_cv_path_NM="$tmp_nm -p"
  5267. break 2
  5268. ;;
  5269. *)
  5270. lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  5271. continue # so that we can try to find one that supports BSD flags
  5272. ;;
  5273. esac
  5274. ;;
  5275. esac
  5276. fi
  5277. done
  5278. IFS=$lt_save_ifs
  5279. done
  5280. : ${lt_cv_path_NM=no}
  5281. fi
  5282. fi
  5283. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
  5284. $as_echo "$lt_cv_path_NM" >&6; }
  5285. if test no != "$lt_cv_path_NM"; then
  5286. NM=$lt_cv_path_NM
  5287. else
  5288. # Didn't find any BSD compatible name lister, look for dumpbin.
  5289. if test -n "$DUMPBIN"; then :
  5290. # Let the user override the test.
  5291. else
  5292. if test -n "$ac_tool_prefix"; then
  5293. for ac_prog in dumpbin "link -dump"
  5294. do
  5295. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  5296. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  5297. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5298. $as_echo_n "checking for $ac_word... " >&6; }
  5299. if ${ac_cv_prog_DUMPBIN+:} false; then :
  5300. $as_echo_n "(cached) " >&6
  5301. else
  5302. if test -n "$DUMPBIN"; then
  5303. ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
  5304. else
  5305. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5306. for as_dir in $PATH
  5307. do
  5308. IFS=$as_save_IFS
  5309. test -z "$as_dir" && as_dir=.
  5310. for ac_exec_ext in '' $ac_executable_extensions; do
  5311. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5312. ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
  5313. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5314. break 2
  5315. fi
  5316. done
  5317. done
  5318. IFS=$as_save_IFS
  5319. fi
  5320. fi
  5321. DUMPBIN=$ac_cv_prog_DUMPBIN
  5322. if test -n "$DUMPBIN"; then
  5323. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
  5324. $as_echo "$DUMPBIN" >&6; }
  5325. else
  5326. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5327. $as_echo "no" >&6; }
  5328. fi
  5329. test -n "$DUMPBIN" && break
  5330. done
  5331. fi
  5332. if test -z "$DUMPBIN"; then
  5333. ac_ct_DUMPBIN=$DUMPBIN
  5334. for ac_prog in dumpbin "link -dump"
  5335. do
  5336. # Extract the first word of "$ac_prog", so it can be a program name with args.
  5337. set dummy $ac_prog; ac_word=$2
  5338. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5339. $as_echo_n "checking for $ac_word... " >&6; }
  5340. if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
  5341. $as_echo_n "(cached) " >&6
  5342. else
  5343. if test -n "$ac_ct_DUMPBIN"; then
  5344. ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
  5345. else
  5346. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5347. for as_dir in $PATH
  5348. do
  5349. IFS=$as_save_IFS
  5350. test -z "$as_dir" && as_dir=.
  5351. for ac_exec_ext in '' $ac_executable_extensions; do
  5352. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5353. ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
  5354. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5355. break 2
  5356. fi
  5357. done
  5358. done
  5359. IFS=$as_save_IFS
  5360. fi
  5361. fi
  5362. ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
  5363. if test -n "$ac_ct_DUMPBIN"; then
  5364. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
  5365. $as_echo "$ac_ct_DUMPBIN" >&6; }
  5366. else
  5367. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5368. $as_echo "no" >&6; }
  5369. fi
  5370. test -n "$ac_ct_DUMPBIN" && break
  5371. done
  5372. if test "x$ac_ct_DUMPBIN" = x; then
  5373. DUMPBIN=":"
  5374. else
  5375. case $cross_compiling:$ac_tool_warned in
  5376. yes:)
  5377. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5378. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5379. ac_tool_warned=yes ;;
  5380. esac
  5381. DUMPBIN=$ac_ct_DUMPBIN
  5382. fi
  5383. fi
  5384. case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
  5385. *COFF*)
  5386. DUMPBIN="$DUMPBIN -symbols -headers"
  5387. ;;
  5388. *)
  5389. DUMPBIN=:
  5390. ;;
  5391. esac
  5392. fi
  5393. if test : != "$DUMPBIN"; then
  5394. NM=$DUMPBIN
  5395. fi
  5396. fi
  5397. test -z "$NM" && NM=nm
  5398. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
  5399. $as_echo_n "checking the name lister ($NM) interface... " >&6; }
  5400. if ${lt_cv_nm_interface+:} false; then :
  5401. $as_echo_n "(cached) " >&6
  5402. else
  5403. lt_cv_nm_interface="BSD nm"
  5404. echo "int some_variable = 0;" > conftest.$ac_ext
  5405. (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
  5406. (eval "$ac_compile" 2>conftest.err)
  5407. cat conftest.err >&5
  5408. (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
  5409. (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  5410. cat conftest.err >&5
  5411. (eval echo "\"\$as_me:$LINENO: output\"" >&5)
  5412. cat conftest.out >&5
  5413. if $GREP 'External.*some_variable' conftest.out > /dev/null; then
  5414. lt_cv_nm_interface="MS dumpbin"
  5415. fi
  5416. rm -f conftest*
  5417. fi
  5418. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
  5419. $as_echo "$lt_cv_nm_interface" >&6; }
  5420. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
  5421. $as_echo_n "checking whether ln -s works... " >&6; }
  5422. LN_S=$as_ln_s
  5423. if test "$LN_S" = "ln -s"; then
  5424. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  5425. $as_echo "yes" >&6; }
  5426. else
  5427. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
  5428. $as_echo "no, using $LN_S" >&6; }
  5429. fi
  5430. # find the maximum length of command line arguments
  5431. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
  5432. $as_echo_n "checking the maximum length of command line arguments... " >&6; }
  5433. if ${lt_cv_sys_max_cmd_len+:} false; then :
  5434. $as_echo_n "(cached) " >&6
  5435. else
  5436. i=0
  5437. teststring=ABCD
  5438. case $build_os in
  5439. msdosdjgpp*)
  5440. # On DJGPP, this test can blow up pretty badly due to problems in libc
  5441. # (any single argument exceeding 2000 bytes causes a buffer overrun
  5442. # during glob expansion). Even if it were fixed, the result of this
  5443. # check would be larger than it should be.
  5444. lt_cv_sys_max_cmd_len=12288; # 12K is about right
  5445. ;;
  5446. gnu*)
  5447. # Under GNU Hurd, this test is not required because there is
  5448. # no limit to the length of command line arguments.
  5449. # Libtool will interpret -1 as no limit whatsoever
  5450. lt_cv_sys_max_cmd_len=-1;
  5451. ;;
  5452. cygwin* | mingw* | cegcc*)
  5453. # On Win9x/ME, this test blows up -- it succeeds, but takes
  5454. # about 5 minutes as the teststring grows exponentially.
  5455. # Worse, since 9x/ME are not pre-emptively multitasking,
  5456. # you end up with a "frozen" computer, even though with patience
  5457. # the test eventually succeeds (with a max line length of 256k).
  5458. # Instead, let's just punt: use the minimum linelength reported by
  5459. # all of the supported platforms: 8192 (on NT/2K/XP).
  5460. lt_cv_sys_max_cmd_len=8192;
  5461. ;;
  5462. mint*)
  5463. # On MiNT this can take a long time and run out of memory.
  5464. lt_cv_sys_max_cmd_len=8192;
  5465. ;;
  5466. amigaos*)
  5467. # On AmigaOS with pdksh, this test takes hours, literally.
  5468. # So we just punt and use a minimum line length of 8192.
  5469. lt_cv_sys_max_cmd_len=8192;
  5470. ;;
  5471. bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
  5472. # This has been around since 386BSD, at least. Likely further.
  5473. if test -x /sbin/sysctl; then
  5474. lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  5475. elif test -x /usr/sbin/sysctl; then
  5476. lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  5477. else
  5478. lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  5479. fi
  5480. # And add a safety zone
  5481. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  5482. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  5483. ;;
  5484. interix*)
  5485. # We know the value 262144 and hardcode it with a safety zone (like BSD)
  5486. lt_cv_sys_max_cmd_len=196608
  5487. ;;
  5488. os2*)
  5489. # The test takes a long time on OS/2.
  5490. lt_cv_sys_max_cmd_len=8192
  5491. ;;
  5492. osf*)
  5493. # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  5494. # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  5495. # nice to cause kernel panics so lets avoid the loop below.
  5496. # First set a reasonable default.
  5497. lt_cv_sys_max_cmd_len=16384
  5498. #
  5499. if test -x /sbin/sysconfig; then
  5500. case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  5501. *1*) lt_cv_sys_max_cmd_len=-1 ;;
  5502. esac
  5503. fi
  5504. ;;
  5505. sco3.2v5*)
  5506. lt_cv_sys_max_cmd_len=102400
  5507. ;;
  5508. sysv5* | sco5v6* | sysv4.2uw2*)
  5509. kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  5510. if test -n "$kargmax"; then
  5511. lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
  5512. else
  5513. lt_cv_sys_max_cmd_len=32768
  5514. fi
  5515. ;;
  5516. *)
  5517. lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  5518. if test -n "$lt_cv_sys_max_cmd_len" && \
  5519. test undefined != "$lt_cv_sys_max_cmd_len"; then
  5520. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  5521. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  5522. else
  5523. # Make teststring a little bigger before we do anything with it.
  5524. # a 1K string should be a reasonable start.
  5525. for i in 1 2 3 4 5 6 7 8; do
  5526. teststring=$teststring$teststring
  5527. done
  5528. SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  5529. # If test is not a shell built-in, we'll probably end up computing a
  5530. # maximum length that is only half of the actual maximum length, but
  5531. # we can't tell.
  5532. while { test X`env echo "$teststring$teststring" 2>/dev/null` \
  5533. = "X$teststring$teststring"; } >/dev/null 2>&1 &&
  5534. test 17 != "$i" # 1/2 MB should be enough
  5535. do
  5536. i=`expr $i + 1`
  5537. teststring=$teststring$teststring
  5538. done
  5539. # Only check the string length outside the loop.
  5540. lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
  5541. teststring=
  5542. # Add a significant safety factor because C++ compilers can tack on
  5543. # massive amounts of additional arguments before passing them to the
  5544. # linker. It appears as though 1/2 is a usable value.
  5545. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  5546. fi
  5547. ;;
  5548. esac
  5549. fi
  5550. if test -n "$lt_cv_sys_max_cmd_len"; then
  5551. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
  5552. $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
  5553. else
  5554. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
  5555. $as_echo "none" >&6; }
  5556. fi
  5557. max_cmd_len=$lt_cv_sys_max_cmd_len
  5558. : ${CP="cp -f"}
  5559. : ${MV="mv -f"}
  5560. : ${RM="rm -f"}
  5561. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  5562. lt_unset=unset
  5563. else
  5564. lt_unset=false
  5565. fi
  5566. # test EBCDIC or ASCII
  5567. case `echo X|tr X '\101'` in
  5568. A) # ASCII based system
  5569. # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  5570. lt_SP2NL='tr \040 \012'
  5571. lt_NL2SP='tr \015\012 \040\040'
  5572. ;;
  5573. *) # EBCDIC based system
  5574. lt_SP2NL='tr \100 \n'
  5575. lt_NL2SP='tr \r\n \100\100'
  5576. ;;
  5577. esac
  5578. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
  5579. $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
  5580. if ${lt_cv_to_host_file_cmd+:} false; then :
  5581. $as_echo_n "(cached) " >&6
  5582. else
  5583. case $host in
  5584. *-*-mingw* )
  5585. case $build in
  5586. *-*-mingw* ) # actually msys
  5587. lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
  5588. ;;
  5589. *-*-cygwin* )
  5590. lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
  5591. ;;
  5592. * ) # otherwise, assume *nix
  5593. lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
  5594. ;;
  5595. esac
  5596. ;;
  5597. *-*-cygwin* )
  5598. case $build in
  5599. *-*-mingw* ) # actually msys
  5600. lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
  5601. ;;
  5602. *-*-cygwin* )
  5603. lt_cv_to_host_file_cmd=func_convert_file_noop
  5604. ;;
  5605. * ) # otherwise, assume *nix
  5606. lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
  5607. ;;
  5608. esac
  5609. ;;
  5610. * ) # unhandled hosts (and "normal" native builds)
  5611. lt_cv_to_host_file_cmd=func_convert_file_noop
  5612. ;;
  5613. esac
  5614. fi
  5615. to_host_file_cmd=$lt_cv_to_host_file_cmd
  5616. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
  5617. $as_echo "$lt_cv_to_host_file_cmd" >&6; }
  5618. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
  5619. $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
  5620. if ${lt_cv_to_tool_file_cmd+:} false; then :
  5621. $as_echo_n "(cached) " >&6
  5622. else
  5623. #assume ordinary cross tools, or native build.
  5624. lt_cv_to_tool_file_cmd=func_convert_file_noop
  5625. case $host in
  5626. *-*-mingw* )
  5627. case $build in
  5628. *-*-mingw* ) # actually msys
  5629. lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
  5630. ;;
  5631. esac
  5632. ;;
  5633. esac
  5634. fi
  5635. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  5636. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
  5637. $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
  5638. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
  5639. $as_echo_n "checking for $LD option to reload object files... " >&6; }
  5640. if ${lt_cv_ld_reload_flag+:} false; then :
  5641. $as_echo_n "(cached) " >&6
  5642. else
  5643. lt_cv_ld_reload_flag='-r'
  5644. fi
  5645. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
  5646. $as_echo "$lt_cv_ld_reload_flag" >&6; }
  5647. reload_flag=$lt_cv_ld_reload_flag
  5648. case $reload_flag in
  5649. "" | " "*) ;;
  5650. *) reload_flag=" $reload_flag" ;;
  5651. esac
  5652. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  5653. case $host_os in
  5654. cygwin* | mingw* | pw32* | cegcc*)
  5655. if test yes != "$GCC"; then
  5656. reload_cmds=false
  5657. fi
  5658. ;;
  5659. darwin*)
  5660. if test yes = "$GCC"; then
  5661. reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
  5662. else
  5663. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  5664. fi
  5665. ;;
  5666. esac
  5667. if test -n "$ac_tool_prefix"; then
  5668. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  5669. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  5670. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5671. $as_echo_n "checking for $ac_word... " >&6; }
  5672. if ${ac_cv_prog_OBJDUMP+:} false; then :
  5673. $as_echo_n "(cached) " >&6
  5674. else
  5675. if test -n "$OBJDUMP"; then
  5676. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  5677. else
  5678. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5679. for as_dir in $PATH
  5680. do
  5681. IFS=$as_save_IFS
  5682. test -z "$as_dir" && as_dir=.
  5683. for ac_exec_ext in '' $ac_executable_extensions; do
  5684. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5685. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  5686. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5687. break 2
  5688. fi
  5689. done
  5690. done
  5691. IFS=$as_save_IFS
  5692. fi
  5693. fi
  5694. OBJDUMP=$ac_cv_prog_OBJDUMP
  5695. if test -n "$OBJDUMP"; then
  5696. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  5697. $as_echo "$OBJDUMP" >&6; }
  5698. else
  5699. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5700. $as_echo "no" >&6; }
  5701. fi
  5702. fi
  5703. if test -z "$ac_cv_prog_OBJDUMP"; then
  5704. ac_ct_OBJDUMP=$OBJDUMP
  5705. # Extract the first word of "objdump", so it can be a program name with args.
  5706. set dummy objdump; ac_word=$2
  5707. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5708. $as_echo_n "checking for $ac_word... " >&6; }
  5709. if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
  5710. $as_echo_n "(cached) " >&6
  5711. else
  5712. if test -n "$ac_ct_OBJDUMP"; then
  5713. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  5714. else
  5715. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5716. for as_dir in $PATH
  5717. do
  5718. IFS=$as_save_IFS
  5719. test -z "$as_dir" && as_dir=.
  5720. for ac_exec_ext in '' $ac_executable_extensions; do
  5721. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5722. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  5723. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5724. break 2
  5725. fi
  5726. done
  5727. done
  5728. IFS=$as_save_IFS
  5729. fi
  5730. fi
  5731. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  5732. if test -n "$ac_ct_OBJDUMP"; then
  5733. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  5734. $as_echo "$ac_ct_OBJDUMP" >&6; }
  5735. else
  5736. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5737. $as_echo "no" >&6; }
  5738. fi
  5739. if test "x$ac_ct_OBJDUMP" = x; then
  5740. OBJDUMP="false"
  5741. else
  5742. case $cross_compiling:$ac_tool_warned in
  5743. yes:)
  5744. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5745. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5746. ac_tool_warned=yes ;;
  5747. esac
  5748. OBJDUMP=$ac_ct_OBJDUMP
  5749. fi
  5750. else
  5751. OBJDUMP="$ac_cv_prog_OBJDUMP"
  5752. fi
  5753. test -z "$OBJDUMP" && OBJDUMP=objdump
  5754. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
  5755. $as_echo_n "checking how to recognize dependent libraries... " >&6; }
  5756. if ${lt_cv_deplibs_check_method+:} false; then :
  5757. $as_echo_n "(cached) " >&6
  5758. else
  5759. lt_cv_file_magic_cmd='$MAGIC_CMD'
  5760. lt_cv_file_magic_test_file=
  5761. lt_cv_deplibs_check_method='unknown'
  5762. # Need to set the preceding variable on all platforms that support
  5763. # interlibrary dependencies.
  5764. # 'none' -- dependencies not supported.
  5765. # 'unknown' -- same as none, but documents that we really don't know.
  5766. # 'pass_all' -- all dependencies passed with no checks.
  5767. # 'test_compile' -- check by making test program.
  5768. # 'file_magic [[regex]]' -- check by looking for files in library path
  5769. # that responds to the $file_magic_cmd with a given extended regex.
  5770. # If you have 'file' or equivalent on your system and you're not sure
  5771. # whether 'pass_all' will *always* work, you probably want this one.
  5772. case $host_os in
  5773. aix[4-9]*)
  5774. lt_cv_deplibs_check_method=pass_all
  5775. ;;
  5776. beos*)
  5777. lt_cv_deplibs_check_method=pass_all
  5778. ;;
  5779. bsdi[45]*)
  5780. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  5781. lt_cv_file_magic_cmd='/usr/bin/file -L'
  5782. lt_cv_file_magic_test_file=/shlib/libc.so
  5783. ;;
  5784. cygwin*)
  5785. # func_win32_libid is a shell function defined in ltmain.sh
  5786. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  5787. lt_cv_file_magic_cmd='func_win32_libid'
  5788. ;;
  5789. mingw* | pw32*)
  5790. # Base MSYS/MinGW do not provide the 'file' command needed by
  5791. # func_win32_libid shell function, so use a weaker test based on 'objdump',
  5792. # unless we find 'file', for example because we are cross-compiling.
  5793. if ( file / ) >/dev/null 2>&1; then
  5794. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  5795. lt_cv_file_magic_cmd='func_win32_libid'
  5796. else
  5797. # Keep this pattern in sync with the one in func_win32_libid.
  5798. lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
  5799. lt_cv_file_magic_cmd='$OBJDUMP -f'
  5800. fi
  5801. ;;
  5802. cegcc*)
  5803. # use the weaker test based on 'objdump'. See mingw*.
  5804. lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
  5805. lt_cv_file_magic_cmd='$OBJDUMP -f'
  5806. ;;
  5807. darwin* | rhapsody*)
  5808. lt_cv_deplibs_check_method=pass_all
  5809. ;;
  5810. freebsd* | dragonfly*)
  5811. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  5812. case $host_cpu in
  5813. i*86 )
  5814. # Not sure whether the presence of OpenBSD here was a mistake.
  5815. # Let's accept both of them until this is cleared up.
  5816. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
  5817. lt_cv_file_magic_cmd=/usr/bin/file
  5818. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  5819. ;;
  5820. esac
  5821. else
  5822. lt_cv_deplibs_check_method=pass_all
  5823. fi
  5824. ;;
  5825. haiku*)
  5826. lt_cv_deplibs_check_method=pass_all
  5827. ;;
  5828. hpux10.20* | hpux11*)
  5829. lt_cv_file_magic_cmd=/usr/bin/file
  5830. case $host_cpu in
  5831. ia64*)
  5832. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  5833. lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  5834. ;;
  5835. hppa*64*)
  5836. 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]'
  5837. lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  5838. ;;
  5839. *)
  5840. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
  5841. lt_cv_file_magic_test_file=/usr/lib/libc.sl
  5842. ;;
  5843. esac
  5844. ;;
  5845. interix[3-9]*)
  5846. # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  5847. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
  5848. ;;
  5849. irix5* | irix6* | nonstopux*)
  5850. case $LD in
  5851. *-32|*"-32 ") libmagic=32-bit;;
  5852. *-n32|*"-n32 ") libmagic=N32;;
  5853. *-64|*"-64 ") libmagic=64-bit;;
  5854. *) libmagic=never-match;;
  5855. esac
  5856. lt_cv_deplibs_check_method=pass_all
  5857. ;;
  5858. # This must be glibc/ELF.
  5859. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  5860. lt_cv_deplibs_check_method=pass_all
  5861. ;;
  5862. netbsd*)
  5863. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  5864. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  5865. else
  5866. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  5867. fi
  5868. ;;
  5869. newos6*)
  5870. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  5871. lt_cv_file_magic_cmd=/usr/bin/file
  5872. lt_cv_file_magic_test_file=/usr/lib/libnls.so
  5873. ;;
  5874. *nto* | *qnx*)
  5875. lt_cv_deplibs_check_method=pass_all
  5876. ;;
  5877. openbsd* | bitrig*)
  5878. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
  5879. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  5880. else
  5881. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  5882. fi
  5883. ;;
  5884. osf3* | osf4* | osf5*)
  5885. lt_cv_deplibs_check_method=pass_all
  5886. ;;
  5887. rdos*)
  5888. lt_cv_deplibs_check_method=pass_all
  5889. ;;
  5890. solaris*)
  5891. lt_cv_deplibs_check_method=pass_all
  5892. ;;
  5893. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  5894. lt_cv_deplibs_check_method=pass_all
  5895. ;;
  5896. sysv4 | sysv4.3*)
  5897. case $host_vendor in
  5898. motorola)
  5899. 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]'
  5900. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  5901. ;;
  5902. ncr)
  5903. lt_cv_deplibs_check_method=pass_all
  5904. ;;
  5905. sequent)
  5906. lt_cv_file_magic_cmd='/bin/file'
  5907. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  5908. ;;
  5909. sni)
  5910. lt_cv_file_magic_cmd='/bin/file'
  5911. lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  5912. lt_cv_file_magic_test_file=/lib/libc.so
  5913. ;;
  5914. siemens)
  5915. lt_cv_deplibs_check_method=pass_all
  5916. ;;
  5917. pc)
  5918. lt_cv_deplibs_check_method=pass_all
  5919. ;;
  5920. esac
  5921. ;;
  5922. tpf*)
  5923. lt_cv_deplibs_check_method=pass_all
  5924. ;;
  5925. os2*)
  5926. lt_cv_deplibs_check_method=pass_all
  5927. ;;
  5928. esac
  5929. fi
  5930. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
  5931. $as_echo "$lt_cv_deplibs_check_method" >&6; }
  5932. file_magic_glob=
  5933. want_nocaseglob=no
  5934. if test "$build" = "$host"; then
  5935. case $host_os in
  5936. mingw* | pw32*)
  5937. if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
  5938. want_nocaseglob=yes
  5939. else
  5940. file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
  5941. fi
  5942. ;;
  5943. esac
  5944. fi
  5945. file_magic_cmd=$lt_cv_file_magic_cmd
  5946. deplibs_check_method=$lt_cv_deplibs_check_method
  5947. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  5948. if test -n "$ac_tool_prefix"; then
  5949. # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
  5950. set dummy ${ac_tool_prefix}dlltool; ac_word=$2
  5951. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5952. $as_echo_n "checking for $ac_word... " >&6; }
  5953. if ${ac_cv_prog_DLLTOOL+:} false; then :
  5954. $as_echo_n "(cached) " >&6
  5955. else
  5956. if test -n "$DLLTOOL"; then
  5957. ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  5958. else
  5959. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5960. for as_dir in $PATH
  5961. do
  5962. IFS=$as_save_IFS
  5963. test -z "$as_dir" && as_dir=.
  5964. for ac_exec_ext in '' $ac_executable_extensions; do
  5965. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5966. ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
  5967. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5968. break 2
  5969. fi
  5970. done
  5971. done
  5972. IFS=$as_save_IFS
  5973. fi
  5974. fi
  5975. DLLTOOL=$ac_cv_prog_DLLTOOL
  5976. if test -n "$DLLTOOL"; then
  5977. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
  5978. $as_echo "$DLLTOOL" >&6; }
  5979. else
  5980. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5981. $as_echo "no" >&6; }
  5982. fi
  5983. fi
  5984. if test -z "$ac_cv_prog_DLLTOOL"; then
  5985. ac_ct_DLLTOOL=$DLLTOOL
  5986. # Extract the first word of "dlltool", so it can be a program name with args.
  5987. set dummy dlltool; ac_word=$2
  5988. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5989. $as_echo_n "checking for $ac_word... " >&6; }
  5990. if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
  5991. $as_echo_n "(cached) " >&6
  5992. else
  5993. if test -n "$ac_ct_DLLTOOL"; then
  5994. ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
  5995. else
  5996. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5997. for as_dir in $PATH
  5998. do
  5999. IFS=$as_save_IFS
  6000. test -z "$as_dir" && as_dir=.
  6001. for ac_exec_ext in '' $ac_executable_extensions; do
  6002. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6003. ac_cv_prog_ac_ct_DLLTOOL="dlltool"
  6004. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6005. break 2
  6006. fi
  6007. done
  6008. done
  6009. IFS=$as_save_IFS
  6010. fi
  6011. fi
  6012. ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
  6013. if test -n "$ac_ct_DLLTOOL"; then
  6014. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
  6015. $as_echo "$ac_ct_DLLTOOL" >&6; }
  6016. else
  6017. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6018. $as_echo "no" >&6; }
  6019. fi
  6020. if test "x$ac_ct_DLLTOOL" = x; then
  6021. DLLTOOL="false"
  6022. else
  6023. case $cross_compiling:$ac_tool_warned in
  6024. yes:)
  6025. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6026. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6027. ac_tool_warned=yes ;;
  6028. esac
  6029. DLLTOOL=$ac_ct_DLLTOOL
  6030. fi
  6031. else
  6032. DLLTOOL="$ac_cv_prog_DLLTOOL"
  6033. fi
  6034. test -z "$DLLTOOL" && DLLTOOL=dlltool
  6035. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
  6036. $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
  6037. if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
  6038. $as_echo_n "(cached) " >&6
  6039. else
  6040. lt_cv_sharedlib_from_linklib_cmd='unknown'
  6041. case $host_os in
  6042. cygwin* | mingw* | pw32* | cegcc*)
  6043. # two different shell functions defined in ltmain.sh;
  6044. # decide which one to use based on capabilities of $DLLTOOL
  6045. case `$DLLTOOL --help 2>&1` in
  6046. *--identify-strict*)
  6047. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
  6048. ;;
  6049. *)
  6050. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
  6051. ;;
  6052. esac
  6053. ;;
  6054. *)
  6055. # fallback: assume linklib IS sharedlib
  6056. lt_cv_sharedlib_from_linklib_cmd=$ECHO
  6057. ;;
  6058. esac
  6059. fi
  6060. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
  6061. $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
  6062. sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
  6063. test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
  6064. if test -n "$ac_tool_prefix"; then
  6065. for ac_prog in ar
  6066. do
  6067. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  6068. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  6069. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6070. $as_echo_n "checking for $ac_word... " >&6; }
  6071. if ${ac_cv_prog_AR+:} false; then :
  6072. $as_echo_n "(cached) " >&6
  6073. else
  6074. if test -n "$AR"; then
  6075. ac_cv_prog_AR="$AR" # Let the user override the test.
  6076. else
  6077. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6078. for as_dir in $PATH
  6079. do
  6080. IFS=$as_save_IFS
  6081. test -z "$as_dir" && as_dir=.
  6082. for ac_exec_ext in '' $ac_executable_extensions; do
  6083. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6084. ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
  6085. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6086. break 2
  6087. fi
  6088. done
  6089. done
  6090. IFS=$as_save_IFS
  6091. fi
  6092. fi
  6093. AR=$ac_cv_prog_AR
  6094. if test -n "$AR"; then
  6095. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  6096. $as_echo "$AR" >&6; }
  6097. else
  6098. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6099. $as_echo "no" >&6; }
  6100. fi
  6101. test -n "$AR" && break
  6102. done
  6103. fi
  6104. if test -z "$AR"; then
  6105. ac_ct_AR=$AR
  6106. for ac_prog in ar
  6107. do
  6108. # Extract the first word of "$ac_prog", so it can be a program name with args.
  6109. set dummy $ac_prog; ac_word=$2
  6110. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6111. $as_echo_n "checking for $ac_word... " >&6; }
  6112. if ${ac_cv_prog_ac_ct_AR+:} false; then :
  6113. $as_echo_n "(cached) " >&6
  6114. else
  6115. if test -n "$ac_ct_AR"; then
  6116. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  6117. else
  6118. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6119. for as_dir in $PATH
  6120. do
  6121. IFS=$as_save_IFS
  6122. test -z "$as_dir" && as_dir=.
  6123. for ac_exec_ext in '' $ac_executable_extensions; do
  6124. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6125. ac_cv_prog_ac_ct_AR="$ac_prog"
  6126. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6127. break 2
  6128. fi
  6129. done
  6130. done
  6131. IFS=$as_save_IFS
  6132. fi
  6133. fi
  6134. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  6135. if test -n "$ac_ct_AR"; then
  6136. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
  6137. $as_echo "$ac_ct_AR" >&6; }
  6138. else
  6139. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6140. $as_echo "no" >&6; }
  6141. fi
  6142. test -n "$ac_ct_AR" && break
  6143. done
  6144. if test "x$ac_ct_AR" = x; then
  6145. AR="false"
  6146. else
  6147. case $cross_compiling:$ac_tool_warned in
  6148. yes:)
  6149. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6150. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6151. ac_tool_warned=yes ;;
  6152. esac
  6153. AR=$ac_ct_AR
  6154. fi
  6155. fi
  6156. : ${AR=ar}
  6157. # Use ARFLAGS variable as AR's operation code to sync the variable naming with
  6158. # Automake. If both AR_FLAGS and ARFLAGS are specified, AR_FLAGS should have
  6159. # higher priority because thats what people were doing historically (setting
  6160. # ARFLAGS for automake and AR_FLAGS for libtool). FIXME: Make the AR_FLAGS
  6161. # variable obsoleted/removed.
  6162. test ${AR_FLAGS+y} || AR_FLAGS=${ARFLAGS-cr}
  6163. lt_ar_flags=$AR_FLAGS
  6164. # Make AR_FLAGS overridable by 'make ARFLAGS='. Don't try to run-time override
  6165. # by AR_FLAGS because that was never working and AR_FLAGS is about to die.
  6166. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
  6167. $as_echo_n "checking for archiver @FILE support... " >&6; }
  6168. if ${lt_cv_ar_at_file+:} false; then :
  6169. $as_echo_n "(cached) " >&6
  6170. else
  6171. lt_cv_ar_at_file=no
  6172. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6173. /* end confdefs.h. */
  6174. int
  6175. main ()
  6176. {
  6177. ;
  6178. return 0;
  6179. }
  6180. _ACEOF
  6181. if ac_fn_c_try_compile "$LINENO"; then :
  6182. echo conftest.$ac_objext > conftest.lst
  6183. lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
  6184. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  6185. (eval $lt_ar_try) 2>&5
  6186. ac_status=$?
  6187. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6188. test $ac_status = 0; }
  6189. if test 0 -eq "$ac_status"; then
  6190. # Ensure the archiver fails upon bogus file names.
  6191. rm -f conftest.$ac_objext libconftest.a
  6192. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  6193. (eval $lt_ar_try) 2>&5
  6194. ac_status=$?
  6195. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6196. test $ac_status = 0; }
  6197. if test 0 -ne "$ac_status"; then
  6198. lt_cv_ar_at_file=@
  6199. fi
  6200. fi
  6201. rm -f conftest.* libconftest.a
  6202. fi
  6203. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6204. fi
  6205. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
  6206. $as_echo "$lt_cv_ar_at_file" >&6; }
  6207. if test no = "$lt_cv_ar_at_file"; then
  6208. archiver_list_spec=
  6209. else
  6210. archiver_list_spec=$lt_cv_ar_at_file
  6211. fi
  6212. if test -n "$ac_tool_prefix"; then
  6213. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  6214. set dummy ${ac_tool_prefix}strip; ac_word=$2
  6215. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6216. $as_echo_n "checking for $ac_word... " >&6; }
  6217. if ${ac_cv_prog_STRIP+:} false; then :
  6218. $as_echo_n "(cached) " >&6
  6219. else
  6220. if test -n "$STRIP"; then
  6221. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  6222. else
  6223. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6224. for as_dir in $PATH
  6225. do
  6226. IFS=$as_save_IFS
  6227. test -z "$as_dir" && as_dir=.
  6228. for ac_exec_ext in '' $ac_executable_extensions; do
  6229. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6230. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  6231. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6232. break 2
  6233. fi
  6234. done
  6235. done
  6236. IFS=$as_save_IFS
  6237. fi
  6238. fi
  6239. STRIP=$ac_cv_prog_STRIP
  6240. if test -n "$STRIP"; then
  6241. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  6242. $as_echo "$STRIP" >&6; }
  6243. else
  6244. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6245. $as_echo "no" >&6; }
  6246. fi
  6247. fi
  6248. if test -z "$ac_cv_prog_STRIP"; then
  6249. ac_ct_STRIP=$STRIP
  6250. # Extract the first word of "strip", so it can be a program name with args.
  6251. set dummy strip; ac_word=$2
  6252. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6253. $as_echo_n "checking for $ac_word... " >&6; }
  6254. if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
  6255. $as_echo_n "(cached) " >&6
  6256. else
  6257. if test -n "$ac_ct_STRIP"; then
  6258. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  6259. else
  6260. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6261. for as_dir in $PATH
  6262. do
  6263. IFS=$as_save_IFS
  6264. test -z "$as_dir" && as_dir=.
  6265. for ac_exec_ext in '' $ac_executable_extensions; do
  6266. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6267. ac_cv_prog_ac_ct_STRIP="strip"
  6268. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6269. break 2
  6270. fi
  6271. done
  6272. done
  6273. IFS=$as_save_IFS
  6274. fi
  6275. fi
  6276. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  6277. if test -n "$ac_ct_STRIP"; then
  6278. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  6279. $as_echo "$ac_ct_STRIP" >&6; }
  6280. else
  6281. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6282. $as_echo "no" >&6; }
  6283. fi
  6284. if test "x$ac_ct_STRIP" = x; then
  6285. STRIP=":"
  6286. else
  6287. case $cross_compiling:$ac_tool_warned in
  6288. yes:)
  6289. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6290. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6291. ac_tool_warned=yes ;;
  6292. esac
  6293. STRIP=$ac_ct_STRIP
  6294. fi
  6295. else
  6296. STRIP="$ac_cv_prog_STRIP"
  6297. fi
  6298. test -z "$STRIP" && STRIP=:
  6299. if test -n "$ac_tool_prefix"; then
  6300. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  6301. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  6302. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6303. $as_echo_n "checking for $ac_word... " >&6; }
  6304. if ${ac_cv_prog_RANLIB+:} false; then :
  6305. $as_echo_n "(cached) " >&6
  6306. else
  6307. if test -n "$RANLIB"; then
  6308. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  6309. else
  6310. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6311. for as_dir in $PATH
  6312. do
  6313. IFS=$as_save_IFS
  6314. test -z "$as_dir" && as_dir=.
  6315. for ac_exec_ext in '' $ac_executable_extensions; do
  6316. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6317. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  6318. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6319. break 2
  6320. fi
  6321. done
  6322. done
  6323. IFS=$as_save_IFS
  6324. fi
  6325. fi
  6326. RANLIB=$ac_cv_prog_RANLIB
  6327. if test -n "$RANLIB"; then
  6328. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  6329. $as_echo "$RANLIB" >&6; }
  6330. else
  6331. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6332. $as_echo "no" >&6; }
  6333. fi
  6334. fi
  6335. if test -z "$ac_cv_prog_RANLIB"; then
  6336. ac_ct_RANLIB=$RANLIB
  6337. # Extract the first word of "ranlib", so it can be a program name with args.
  6338. set dummy ranlib; ac_word=$2
  6339. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6340. $as_echo_n "checking for $ac_word... " >&6; }
  6341. if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
  6342. $as_echo_n "(cached) " >&6
  6343. else
  6344. if test -n "$ac_ct_RANLIB"; then
  6345. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  6346. else
  6347. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6348. for as_dir in $PATH
  6349. do
  6350. IFS=$as_save_IFS
  6351. test -z "$as_dir" && as_dir=.
  6352. for ac_exec_ext in '' $ac_executable_extensions; do
  6353. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6354. ac_cv_prog_ac_ct_RANLIB="ranlib"
  6355. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6356. break 2
  6357. fi
  6358. done
  6359. done
  6360. IFS=$as_save_IFS
  6361. fi
  6362. fi
  6363. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  6364. if test -n "$ac_ct_RANLIB"; then
  6365. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  6366. $as_echo "$ac_ct_RANLIB" >&6; }
  6367. else
  6368. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6369. $as_echo "no" >&6; }
  6370. fi
  6371. if test "x$ac_ct_RANLIB" = x; then
  6372. RANLIB=":"
  6373. else
  6374. case $cross_compiling:$ac_tool_warned in
  6375. yes:)
  6376. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6377. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6378. ac_tool_warned=yes ;;
  6379. esac
  6380. RANLIB=$ac_ct_RANLIB
  6381. fi
  6382. else
  6383. RANLIB="$ac_cv_prog_RANLIB"
  6384. fi
  6385. test -z "$RANLIB" && RANLIB=:
  6386. # Determine commands to create old-style static archives.
  6387. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  6388. old_postinstall_cmds='chmod 644 $oldlib'
  6389. old_postuninstall_cmds=
  6390. if test -n "$RANLIB"; then
  6391. case $host_os in
  6392. bitrig* | openbsd*)
  6393. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
  6394. ;;
  6395. *)
  6396. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
  6397. ;;
  6398. esac
  6399. old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
  6400. fi
  6401. case $host_os in
  6402. darwin*)
  6403. lock_old_archive_extraction=yes ;;
  6404. *)
  6405. lock_old_archive_extraction=no ;;
  6406. esac
  6407. # If no C compiler was specified, use CC.
  6408. LTCC=${LTCC-"$CC"}
  6409. # If no C compiler flags were specified, use CFLAGS.
  6410. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  6411. # Allow CC to be a program name with arguments.
  6412. compiler=$CC
  6413. # Check for command to grab the raw symbol name followed by C symbol from nm.
  6414. { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
  6415. $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
  6416. if ${lt_cv_sys_global_symbol_pipe+:} false; then :
  6417. $as_echo_n "(cached) " >&6
  6418. else
  6419. # These are sane defaults that work on at least a few old systems.
  6420. # [They come from Ultrix. What could be older than Ultrix?!! ;)]
  6421. # Character class describing NM global symbol codes.
  6422. symcode='[BCDEGRST]'
  6423. # Regexp to match symbols that can be accessed directly from C.
  6424. sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  6425. # Define system-specific variables.
  6426. case $host_os in
  6427. aix*)
  6428. symcode='[BCDT]'
  6429. ;;
  6430. cygwin* | mingw* | pw32* | cegcc*)
  6431. symcode='[ABCDGISTW]'
  6432. ;;
  6433. hpux*)
  6434. if test ia64 = "$host_cpu"; then
  6435. symcode='[ABCDEGRST]'
  6436. fi
  6437. ;;
  6438. irix* | nonstopux*)
  6439. symcode='[BCDEGRST]'
  6440. ;;
  6441. osf*)
  6442. symcode='[BCDEGQRST]'
  6443. ;;
  6444. solaris*)
  6445. symcode='[BDRT]'
  6446. ;;
  6447. sco3.2v5*)
  6448. symcode='[DT]'
  6449. ;;
  6450. sysv4.2uw2*)
  6451. symcode='[DT]'
  6452. ;;
  6453. sysv5* | sco5v6* | unixware* | OpenUNIX*)
  6454. symcode='[ABDT]'
  6455. ;;
  6456. sysv4)
  6457. symcode='[DFNSTU]'
  6458. ;;
  6459. esac
  6460. # If we're using GNU nm, then use its standard symbol codes.
  6461. case `$NM -V 2>&1` in
  6462. *GNU* | *'with BFD'*)
  6463. symcode='[ABCDGIRSTW]' ;;
  6464. esac
  6465. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  6466. # Gets list of data symbols to import.
  6467. lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
  6468. # Adjust the below global symbol transforms to fixup imported variables.
  6469. lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
  6470. lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
  6471. lt_c_name_lib_hook="\
  6472. -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
  6473. -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
  6474. else
  6475. # Disable hooks by default.
  6476. lt_cv_sys_global_symbol_to_import=
  6477. lt_cdecl_hook=
  6478. lt_c_name_hook=
  6479. lt_c_name_lib_hook=
  6480. fi
  6481. # Transform an extracted symbol line into a proper C declaration.
  6482. # Some systems (esp. on ia64) link data and code symbols differently,
  6483. # so use this general approach.
  6484. lt_cv_sys_global_symbol_to_cdecl="sed -n"\
  6485. $lt_cdecl_hook\
  6486. " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
  6487. " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
  6488. # Transform an extracted symbol line into symbol name and symbol address
  6489. lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
  6490. $lt_c_name_hook\
  6491. " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
  6492. " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
  6493. # Transform an extracted symbol line into symbol name with lib prefix and
  6494. # symbol address.
  6495. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
  6496. $lt_c_name_lib_hook\
  6497. " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
  6498. " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
  6499. " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
  6500. # Handle CRLF in mingw tool chain
  6501. opt_cr=
  6502. case $build_os in
  6503. mingw*)
  6504. opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  6505. ;;
  6506. esac
  6507. # Try without a prefix underscore, then with it.
  6508. for ac_symprfx in "" "_"; do
  6509. # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  6510. symxfrm="\\1 $ac_symprfx\\2 \\2"
  6511. # Write the raw and C identifiers.
  6512. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  6513. # Fake it for dumpbin and say T for any non-static function,
  6514. # D for any global variable and I for any imported variable.
  6515. # Also find C++ and __fastcall symbols from MSVC++ or ICC,
  6516. # which start with @ or ?.
  6517. lt_cv_sys_global_symbol_pipe="$AWK '"\
  6518. " {last_section=section; section=\$ 3};"\
  6519. " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
  6520. " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
  6521. " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
  6522. " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
  6523. " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
  6524. " \$ 0!~/External *\|/{next};"\
  6525. " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
  6526. " {if(hide[section]) next};"\
  6527. " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
  6528. " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
  6529. " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
  6530. " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
  6531. " ' prfx=^$ac_symprfx"
  6532. else
  6533. lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  6534. fi
  6535. lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
  6536. # Check to see that the pipe works correctly.
  6537. pipe_works=no
  6538. rm -f conftest*
  6539. cat > conftest.$ac_ext <<_LT_EOF
  6540. #ifdef __cplusplus
  6541. extern "C" {
  6542. #endif
  6543. char nm_test_var;
  6544. void nm_test_func(void);
  6545. void nm_test_func(void){}
  6546. #ifdef __cplusplus
  6547. }
  6548. #endif
  6549. int main(){nm_test_var='a';nm_test_func();return(0);}
  6550. _LT_EOF
  6551. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6552. (eval $ac_compile) 2>&5
  6553. ac_status=$?
  6554. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6555. test $ac_status = 0; }; then
  6556. # Now try to grab the symbols.
  6557. nlist=conftest.nm
  6558. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
  6559. (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
  6560. ac_status=$?
  6561. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6562. test $ac_status = 0; } && test -s "$nlist"; then
  6563. # Try sorting and uniquifying the output.
  6564. if sort "$nlist" | uniq > "$nlist"T; then
  6565. mv -f "$nlist"T "$nlist"
  6566. else
  6567. rm -f "$nlist"T
  6568. fi
  6569. # Make sure that we snagged all the symbols we need.
  6570. if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
  6571. if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
  6572. cat <<_LT_EOF > conftest.$ac_ext
  6573. /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
  6574. #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
  6575. /* DATA imports from DLLs on WIN32 can't be const, because runtime
  6576. relocations are performed -- see ld's documentation on pseudo-relocs. */
  6577. # define LT_DLSYM_CONST
  6578. #elif defined __osf__
  6579. /* This system does not cope well with relocations in const data. */
  6580. # define LT_DLSYM_CONST
  6581. #else
  6582. # define LT_DLSYM_CONST const
  6583. #endif
  6584. #ifdef __cplusplus
  6585. extern "C" {
  6586. #endif
  6587. _LT_EOF
  6588. # Now generate the symbol file.
  6589. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
  6590. cat <<_LT_EOF >> conftest.$ac_ext
  6591. /* The mapping between symbol names and symbols. */
  6592. LT_DLSYM_CONST struct {
  6593. const char *name;
  6594. void *address;
  6595. }
  6596. lt__PROGRAM__LTX_preloaded_symbols[] =
  6597. {
  6598. { "@PROGRAM@", (void *) 0 },
  6599. _LT_EOF
  6600. $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
  6601. cat <<\_LT_EOF >> conftest.$ac_ext
  6602. {0, (void *) 0}
  6603. };
  6604. /* This works around a problem in FreeBSD linker */
  6605. #ifdef FREEBSD_WORKAROUND
  6606. static const void *lt_preloaded_setup() {
  6607. return lt__PROGRAM__LTX_preloaded_symbols;
  6608. }
  6609. #endif
  6610. #ifdef __cplusplus
  6611. }
  6612. #endif
  6613. _LT_EOF
  6614. # Now try linking the two files.
  6615. mv conftest.$ac_objext conftstm.$ac_objext
  6616. lt_globsym_save_LIBS=$LIBS
  6617. lt_globsym_save_CFLAGS=$CFLAGS
  6618. LIBS=conftstm.$ac_objext
  6619. CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
  6620. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  6621. (eval $ac_link) 2>&5
  6622. ac_status=$?
  6623. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6624. test $ac_status = 0; } && test -s conftest$ac_exeext; then
  6625. pipe_works=yes
  6626. fi
  6627. LIBS=$lt_globsym_save_LIBS
  6628. CFLAGS=$lt_globsym_save_CFLAGS
  6629. else
  6630. echo "cannot find nm_test_func in $nlist" >&5
  6631. fi
  6632. else
  6633. echo "cannot find nm_test_var in $nlist" >&5
  6634. fi
  6635. else
  6636. echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
  6637. fi
  6638. else
  6639. echo "$progname: failed program was:" >&5
  6640. cat conftest.$ac_ext >&5
  6641. fi
  6642. rm -rf conftest* conftst*
  6643. # Do not use the global_symbol_pipe unless it works.
  6644. if test yes = "$pipe_works"; then
  6645. break
  6646. else
  6647. lt_cv_sys_global_symbol_pipe=
  6648. fi
  6649. done
  6650. fi
  6651. if test -z "$lt_cv_sys_global_symbol_pipe"; then
  6652. lt_cv_sys_global_symbol_to_cdecl=
  6653. fi
  6654. if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  6655. { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
  6656. $as_echo "failed" >&6; }
  6657. else
  6658. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
  6659. $as_echo "ok" >&6; }
  6660. fi
  6661. # Response file support.
  6662. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  6663. nm_file_list_spec='@'
  6664. elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
  6665. nm_file_list_spec='@'
  6666. fi
  6667. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
  6668. $as_echo_n "checking for sysroot... " >&6; }
  6669. # Check whether --with-sysroot was given.
  6670. if test "${with_sysroot+set}" = set; then :
  6671. withval=$with_sysroot;
  6672. else
  6673. with_sysroot=no
  6674. fi
  6675. lt_sysroot=
  6676. case $with_sysroot in #(
  6677. yes)
  6678. if test yes = "$GCC"; then
  6679. lt_sysroot=`$CC --print-sysroot 2>/dev/null`
  6680. fi
  6681. ;; #(
  6682. /*)
  6683. lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
  6684. ;; #(
  6685. no|'')
  6686. ;; #(
  6687. *)
  6688. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
  6689. $as_echo "$with_sysroot" >&6; }
  6690. as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
  6691. ;;
  6692. esac
  6693. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
  6694. $as_echo "${lt_sysroot:-no}" >&6; }
  6695. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
  6696. $as_echo_n "checking for a working dd... " >&6; }
  6697. if ${ac_cv_path_lt_DD+:} false; then :
  6698. $as_echo_n "(cached) " >&6
  6699. else
  6700. printf 0123456789abcdef0123456789abcdef >conftest.i
  6701. cat conftest.i conftest.i >conftest2.i
  6702. : ${lt_DD:=$DD}
  6703. if test -z "$lt_DD"; then
  6704. ac_path_lt_DD_found=false
  6705. # Loop through the user's path and test for each of PROGNAME-LIST
  6706. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6707. for as_dir in $PATH
  6708. do
  6709. IFS=$as_save_IFS
  6710. test -z "$as_dir" && as_dir=.
  6711. for ac_prog in dd; do
  6712. for ac_exec_ext in '' $ac_executable_extensions; do
  6713. ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
  6714. as_fn_executable_p "$ac_path_lt_DD" || continue
  6715. if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
  6716. cmp -s conftest.i conftest.out \
  6717. && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
  6718. fi
  6719. $ac_path_lt_DD_found && break 3
  6720. done
  6721. done
  6722. done
  6723. IFS=$as_save_IFS
  6724. if test -z "$ac_cv_path_lt_DD"; then
  6725. :
  6726. fi
  6727. else
  6728. ac_cv_path_lt_DD=$lt_DD
  6729. fi
  6730. rm -f conftest.i conftest2.i conftest.out
  6731. fi
  6732. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
  6733. $as_echo "$ac_cv_path_lt_DD" >&6; }
  6734. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
  6735. $as_echo_n "checking how to truncate binary pipes... " >&6; }
  6736. if ${lt_cv_truncate_bin+:} false; then :
  6737. $as_echo_n "(cached) " >&6
  6738. else
  6739. printf 0123456789abcdef0123456789abcdef >conftest.i
  6740. cat conftest.i conftest.i >conftest2.i
  6741. lt_cv_truncate_bin=
  6742. if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
  6743. cmp -s conftest.i conftest.out \
  6744. && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
  6745. fi
  6746. rm -f conftest.i conftest2.i conftest.out
  6747. test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
  6748. fi
  6749. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
  6750. $as_echo "$lt_cv_truncate_bin" >&6; }
  6751. # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
  6752. func_cc_basename ()
  6753. {
  6754. for cc_temp in $*""; do
  6755. case $cc_temp in
  6756. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  6757. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  6758. \-*) ;;
  6759. *) break;;
  6760. esac
  6761. done
  6762. func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  6763. }
  6764. # Check whether --enable-libtool-lock was given.
  6765. if test "${enable_libtool_lock+set}" = set; then :
  6766. enableval=$enable_libtool_lock;
  6767. fi
  6768. test no = "$enable_libtool_lock" || enable_libtool_lock=yes
  6769. # Some flags need to be propagated to the compiler or linker for good
  6770. # libtool support.
  6771. case $host in
  6772. ia64-*-hpux*)
  6773. # Find out what ABI is being produced by ac_compile, and set mode
  6774. # options accordingly.
  6775. echo 'int i;' > conftest.$ac_ext
  6776. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6777. (eval $ac_compile) 2>&5
  6778. ac_status=$?
  6779. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6780. test $ac_status = 0; }; then
  6781. case `/usr/bin/file conftest.$ac_objext` in
  6782. *ELF-32*)
  6783. HPUX_IA64_MODE=32
  6784. ;;
  6785. *ELF-64*)
  6786. HPUX_IA64_MODE=64
  6787. ;;
  6788. esac
  6789. fi
  6790. rm -rf conftest*
  6791. ;;
  6792. *-*-irix6*)
  6793. # Find out what ABI is being produced by ac_compile, and set linker
  6794. # options accordingly.
  6795. echo '#line '$LINENO' "configure"' > conftest.$ac_ext
  6796. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6797. (eval $ac_compile) 2>&5
  6798. ac_status=$?
  6799. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6800. test $ac_status = 0; }; then
  6801. if test yes = "$lt_cv_prog_gnu_ld"; then
  6802. case `/usr/bin/file conftest.$ac_objext` in
  6803. *32-bit*)
  6804. LD="${LD-ld} -melf32bsmip"
  6805. ;;
  6806. *N32*)
  6807. LD="${LD-ld} -melf32bmipn32"
  6808. ;;
  6809. *64-bit*)
  6810. LD="${LD-ld} -melf64bmip"
  6811. ;;
  6812. esac
  6813. else
  6814. case `/usr/bin/file conftest.$ac_objext` in
  6815. *32-bit*)
  6816. LD="${LD-ld} -32"
  6817. ;;
  6818. *N32*)
  6819. LD="${LD-ld} -n32"
  6820. ;;
  6821. *64-bit*)
  6822. LD="${LD-ld} -64"
  6823. ;;
  6824. esac
  6825. fi
  6826. fi
  6827. rm -rf conftest*
  6828. ;;
  6829. mips64*-*linux*)
  6830. # Find out what ABI is being produced by ac_compile, and set linker
  6831. # options accordingly.
  6832. echo '#line '$LINENO' "configure"' > conftest.$ac_ext
  6833. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6834. (eval $ac_compile) 2>&5
  6835. ac_status=$?
  6836. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6837. test $ac_status = 0; }; then
  6838. emul=elf
  6839. case `/usr/bin/file conftest.$ac_objext` in
  6840. *32-bit*)
  6841. emul="${emul}32"
  6842. ;;
  6843. *64-bit*)
  6844. emul="${emul}64"
  6845. ;;
  6846. esac
  6847. case `/usr/bin/file conftest.$ac_objext` in
  6848. *MSB*)
  6849. emul="${emul}btsmip"
  6850. ;;
  6851. *LSB*)
  6852. emul="${emul}ltsmip"
  6853. ;;
  6854. esac
  6855. case `/usr/bin/file conftest.$ac_objext` in
  6856. *N32*)
  6857. emul="${emul}n32"
  6858. ;;
  6859. esac
  6860. LD="${LD-ld} -m $emul"
  6861. fi
  6862. rm -rf conftest*
  6863. ;;
  6864. x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
  6865. s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
  6866. # Find out what ABI is being produced by ac_compile, and set linker
  6867. # options accordingly. Note that the listed cases only cover the
  6868. # situations where additional linker options are needed (such as when
  6869. # doing 32-bit compilation for a host where ld defaults to 64-bit, or
  6870. # vice versa); the common cases where no linker options are needed do
  6871. # not appear in the list.
  6872. echo 'int i;' > conftest.$ac_ext
  6873. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6874. (eval $ac_compile) 2>&5
  6875. ac_status=$?
  6876. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6877. test $ac_status = 0; }; then
  6878. case `/usr/bin/file conftest.o` in
  6879. *32-bit*)
  6880. case $host in
  6881. x86_64-*kfreebsd*-gnu)
  6882. LD="${LD-ld} -m elf_i386_fbsd"
  6883. ;;
  6884. x86_64-*linux*)
  6885. case `/usr/bin/file conftest.o` in
  6886. *x86-64*)
  6887. LD="${LD-ld} -m elf32_x86_64"
  6888. ;;
  6889. *)
  6890. LD="${LD-ld} -m elf_i386"
  6891. ;;
  6892. esac
  6893. ;;
  6894. powerpc64le-*linux*)
  6895. LD="${LD-ld} -m elf32lppclinux"
  6896. ;;
  6897. powerpc64-*linux*)
  6898. LD="${LD-ld} -m elf32ppclinux"
  6899. ;;
  6900. s390x-*linux*)
  6901. LD="${LD-ld} -m elf_s390"
  6902. ;;
  6903. sparc64-*linux*)
  6904. LD="${LD-ld} -m elf32_sparc"
  6905. ;;
  6906. esac
  6907. ;;
  6908. *64-bit*)
  6909. case $host in
  6910. x86_64-*kfreebsd*-gnu)
  6911. LD="${LD-ld} -m elf_x86_64_fbsd"
  6912. ;;
  6913. x86_64-*linux*)
  6914. LD="${LD-ld} -m elf_x86_64"
  6915. ;;
  6916. powerpcle-*linux*)
  6917. LD="${LD-ld} -m elf64lppc"
  6918. ;;
  6919. powerpc-*linux*)
  6920. LD="${LD-ld} -m elf64ppc"
  6921. ;;
  6922. s390*-*linux*|s390*-*tpf*)
  6923. LD="${LD-ld} -m elf64_s390"
  6924. ;;
  6925. sparc*-*linux*)
  6926. LD="${LD-ld} -m elf64_sparc"
  6927. ;;
  6928. esac
  6929. ;;
  6930. esac
  6931. fi
  6932. rm -rf conftest*
  6933. ;;
  6934. *-*-sco3.2v5*)
  6935. # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  6936. SAVE_CFLAGS=$CFLAGS
  6937. CFLAGS="$CFLAGS -belf"
  6938. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
  6939. $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
  6940. if ${lt_cv_cc_needs_belf+:} false; then :
  6941. $as_echo_n "(cached) " >&6
  6942. else
  6943. ac_ext=c
  6944. ac_cpp='$CPP $CPPFLAGS'
  6945. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6946. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6947. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6948. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6949. /* end confdefs.h. */
  6950. int
  6951. main ()
  6952. {
  6953. ;
  6954. return 0;
  6955. }
  6956. _ACEOF
  6957. if ac_fn_c_try_link "$LINENO"; then :
  6958. lt_cv_cc_needs_belf=yes
  6959. else
  6960. lt_cv_cc_needs_belf=no
  6961. fi
  6962. rm -f core conftest.err conftest.$ac_objext \
  6963. conftest$ac_exeext conftest.$ac_ext
  6964. ac_ext=c
  6965. ac_cpp='$CPP $CPPFLAGS'
  6966. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6967. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6968. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6969. fi
  6970. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
  6971. $as_echo "$lt_cv_cc_needs_belf" >&6; }
  6972. if test yes != "$lt_cv_cc_needs_belf"; then
  6973. # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  6974. CFLAGS=$SAVE_CFLAGS
  6975. fi
  6976. ;;
  6977. *-*solaris*)
  6978. # Find out what ABI is being produced by ac_compile, and set linker
  6979. # options accordingly.
  6980. echo 'int i;' > conftest.$ac_ext
  6981. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6982. (eval $ac_compile) 2>&5
  6983. ac_status=$?
  6984. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6985. test $ac_status = 0; }; then
  6986. case `/usr/bin/file conftest.o` in
  6987. *64-bit*)
  6988. case $lt_cv_prog_gnu_ld in
  6989. yes*)
  6990. case $host in
  6991. i?86-*-solaris*|x86_64-*-solaris*)
  6992. LD="${LD-ld} -m elf_x86_64"
  6993. ;;
  6994. sparc*-*-solaris*)
  6995. LD="${LD-ld} -m elf64_sparc"
  6996. ;;
  6997. esac
  6998. # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
  6999. if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
  7000. LD=${LD-ld}_sol2
  7001. fi
  7002. ;;
  7003. *)
  7004. if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  7005. LD="${LD-ld} -64"
  7006. fi
  7007. ;;
  7008. esac
  7009. ;;
  7010. esac
  7011. fi
  7012. rm -rf conftest*
  7013. ;;
  7014. esac
  7015. need_locks=$enable_libtool_lock
  7016. if test -n "$ac_tool_prefix"; then
  7017. # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
  7018. set dummy ${ac_tool_prefix}mt; ac_word=$2
  7019. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7020. $as_echo_n "checking for $ac_word... " >&6; }
  7021. if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
  7022. $as_echo_n "(cached) " >&6
  7023. else
  7024. if test -n "$MANIFEST_TOOL"; then
  7025. ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
  7026. else
  7027. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7028. for as_dir in $PATH
  7029. do
  7030. IFS=$as_save_IFS
  7031. test -z "$as_dir" && as_dir=.
  7032. for ac_exec_ext in '' $ac_executable_extensions; do
  7033. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7034. ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
  7035. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7036. break 2
  7037. fi
  7038. done
  7039. done
  7040. IFS=$as_save_IFS
  7041. fi
  7042. fi
  7043. MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
  7044. if test -n "$MANIFEST_TOOL"; then
  7045. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
  7046. $as_echo "$MANIFEST_TOOL" >&6; }
  7047. else
  7048. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7049. $as_echo "no" >&6; }
  7050. fi
  7051. fi
  7052. if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
  7053. ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
  7054. # Extract the first word of "mt", so it can be a program name with args.
  7055. set dummy mt; ac_word=$2
  7056. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7057. $as_echo_n "checking for $ac_word... " >&6; }
  7058. if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
  7059. $as_echo_n "(cached) " >&6
  7060. else
  7061. if test -n "$ac_ct_MANIFEST_TOOL"; then
  7062. ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
  7063. else
  7064. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7065. for as_dir in $PATH
  7066. do
  7067. IFS=$as_save_IFS
  7068. test -z "$as_dir" && as_dir=.
  7069. for ac_exec_ext in '' $ac_executable_extensions; do
  7070. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7071. ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
  7072. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7073. break 2
  7074. fi
  7075. done
  7076. done
  7077. IFS=$as_save_IFS
  7078. fi
  7079. fi
  7080. ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
  7081. if test -n "$ac_ct_MANIFEST_TOOL"; then
  7082. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
  7083. $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
  7084. else
  7085. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7086. $as_echo "no" >&6; }
  7087. fi
  7088. if test "x$ac_ct_MANIFEST_TOOL" = x; then
  7089. MANIFEST_TOOL=":"
  7090. else
  7091. case $cross_compiling:$ac_tool_warned in
  7092. yes:)
  7093. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7094. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7095. ac_tool_warned=yes ;;
  7096. esac
  7097. MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
  7098. fi
  7099. else
  7100. MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
  7101. fi
  7102. test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
  7103. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
  7104. $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
  7105. if ${lt_cv_path_mainfest_tool+:} false; then :
  7106. $as_echo_n "(cached) " >&6
  7107. else
  7108. lt_cv_path_mainfest_tool=no
  7109. echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
  7110. $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
  7111. cat conftest.err >&5
  7112. if $GREP 'Manifest Tool' conftest.out > /dev/null; then
  7113. lt_cv_path_mainfest_tool=yes
  7114. fi
  7115. rm -f conftest*
  7116. fi
  7117. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
  7118. $as_echo "$lt_cv_path_mainfest_tool" >&6; }
  7119. if test yes != "$lt_cv_path_mainfest_tool"; then
  7120. MANIFEST_TOOL=:
  7121. fi
  7122. case $host_os in
  7123. rhapsody* | darwin*)
  7124. if test -n "$ac_tool_prefix"; then
  7125. # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
  7126. set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
  7127. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7128. $as_echo_n "checking for $ac_word... " >&6; }
  7129. if ${ac_cv_prog_DSYMUTIL+:} false; then :
  7130. $as_echo_n "(cached) " >&6
  7131. else
  7132. if test -n "$DSYMUTIL"; then
  7133. ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
  7134. else
  7135. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7136. for as_dir in $PATH
  7137. do
  7138. IFS=$as_save_IFS
  7139. test -z "$as_dir" && as_dir=.
  7140. for ac_exec_ext in '' $ac_executable_extensions; do
  7141. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7142. ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
  7143. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7144. break 2
  7145. fi
  7146. done
  7147. done
  7148. IFS=$as_save_IFS
  7149. fi
  7150. fi
  7151. DSYMUTIL=$ac_cv_prog_DSYMUTIL
  7152. if test -n "$DSYMUTIL"; then
  7153. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
  7154. $as_echo "$DSYMUTIL" >&6; }
  7155. else
  7156. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7157. $as_echo "no" >&6; }
  7158. fi
  7159. fi
  7160. if test -z "$ac_cv_prog_DSYMUTIL"; then
  7161. ac_ct_DSYMUTIL=$DSYMUTIL
  7162. # Extract the first word of "dsymutil", so it can be a program name with args.
  7163. set dummy dsymutil; ac_word=$2
  7164. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7165. $as_echo_n "checking for $ac_word... " >&6; }
  7166. if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
  7167. $as_echo_n "(cached) " >&6
  7168. else
  7169. if test -n "$ac_ct_DSYMUTIL"; then
  7170. ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
  7171. else
  7172. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7173. for as_dir in $PATH
  7174. do
  7175. IFS=$as_save_IFS
  7176. test -z "$as_dir" && as_dir=.
  7177. for ac_exec_ext in '' $ac_executable_extensions; do
  7178. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7179. ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
  7180. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7181. break 2
  7182. fi
  7183. done
  7184. done
  7185. IFS=$as_save_IFS
  7186. fi
  7187. fi
  7188. ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
  7189. if test -n "$ac_ct_DSYMUTIL"; then
  7190. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
  7191. $as_echo "$ac_ct_DSYMUTIL" >&6; }
  7192. else
  7193. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7194. $as_echo "no" >&6; }
  7195. fi
  7196. if test "x$ac_ct_DSYMUTIL" = x; then
  7197. DSYMUTIL=":"
  7198. else
  7199. case $cross_compiling:$ac_tool_warned in
  7200. yes:)
  7201. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7202. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7203. ac_tool_warned=yes ;;
  7204. esac
  7205. DSYMUTIL=$ac_ct_DSYMUTIL
  7206. fi
  7207. else
  7208. DSYMUTIL="$ac_cv_prog_DSYMUTIL"
  7209. fi
  7210. if test -n "$ac_tool_prefix"; then
  7211. # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
  7212. set dummy ${ac_tool_prefix}nmedit; ac_word=$2
  7213. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7214. $as_echo_n "checking for $ac_word... " >&6; }
  7215. if ${ac_cv_prog_NMEDIT+:} false; then :
  7216. $as_echo_n "(cached) " >&6
  7217. else
  7218. if test -n "$NMEDIT"; then
  7219. ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
  7220. else
  7221. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7222. for as_dir in $PATH
  7223. do
  7224. IFS=$as_save_IFS
  7225. test -z "$as_dir" && as_dir=.
  7226. for ac_exec_ext in '' $ac_executable_extensions; do
  7227. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7228. ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
  7229. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7230. break 2
  7231. fi
  7232. done
  7233. done
  7234. IFS=$as_save_IFS
  7235. fi
  7236. fi
  7237. NMEDIT=$ac_cv_prog_NMEDIT
  7238. if test -n "$NMEDIT"; then
  7239. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
  7240. $as_echo "$NMEDIT" >&6; }
  7241. else
  7242. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7243. $as_echo "no" >&6; }
  7244. fi
  7245. fi
  7246. if test -z "$ac_cv_prog_NMEDIT"; then
  7247. ac_ct_NMEDIT=$NMEDIT
  7248. # Extract the first word of "nmedit", so it can be a program name with args.
  7249. set dummy nmedit; ac_word=$2
  7250. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7251. $as_echo_n "checking for $ac_word... " >&6; }
  7252. if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
  7253. $as_echo_n "(cached) " >&6
  7254. else
  7255. if test -n "$ac_ct_NMEDIT"; then
  7256. ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
  7257. else
  7258. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7259. for as_dir in $PATH
  7260. do
  7261. IFS=$as_save_IFS
  7262. test -z "$as_dir" && as_dir=.
  7263. for ac_exec_ext in '' $ac_executable_extensions; do
  7264. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7265. ac_cv_prog_ac_ct_NMEDIT="nmedit"
  7266. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7267. break 2
  7268. fi
  7269. done
  7270. done
  7271. IFS=$as_save_IFS
  7272. fi
  7273. fi
  7274. ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
  7275. if test -n "$ac_ct_NMEDIT"; then
  7276. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
  7277. $as_echo "$ac_ct_NMEDIT" >&6; }
  7278. else
  7279. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7280. $as_echo "no" >&6; }
  7281. fi
  7282. if test "x$ac_ct_NMEDIT" = x; then
  7283. NMEDIT=":"
  7284. else
  7285. case $cross_compiling:$ac_tool_warned in
  7286. yes:)
  7287. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7288. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7289. ac_tool_warned=yes ;;
  7290. esac
  7291. NMEDIT=$ac_ct_NMEDIT
  7292. fi
  7293. else
  7294. NMEDIT="$ac_cv_prog_NMEDIT"
  7295. fi
  7296. if test -n "$ac_tool_prefix"; then
  7297. # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
  7298. set dummy ${ac_tool_prefix}lipo; ac_word=$2
  7299. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7300. $as_echo_n "checking for $ac_word... " >&6; }
  7301. if ${ac_cv_prog_LIPO+:} false; then :
  7302. $as_echo_n "(cached) " >&6
  7303. else
  7304. if test -n "$LIPO"; then
  7305. ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
  7306. else
  7307. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7308. for as_dir in $PATH
  7309. do
  7310. IFS=$as_save_IFS
  7311. test -z "$as_dir" && as_dir=.
  7312. for ac_exec_ext in '' $ac_executable_extensions; do
  7313. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7314. ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
  7315. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7316. break 2
  7317. fi
  7318. done
  7319. done
  7320. IFS=$as_save_IFS
  7321. fi
  7322. fi
  7323. LIPO=$ac_cv_prog_LIPO
  7324. if test -n "$LIPO"; then
  7325. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
  7326. $as_echo "$LIPO" >&6; }
  7327. else
  7328. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7329. $as_echo "no" >&6; }
  7330. fi
  7331. fi
  7332. if test -z "$ac_cv_prog_LIPO"; then
  7333. ac_ct_LIPO=$LIPO
  7334. # Extract the first word of "lipo", so it can be a program name with args.
  7335. set dummy lipo; ac_word=$2
  7336. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7337. $as_echo_n "checking for $ac_word... " >&6; }
  7338. if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
  7339. $as_echo_n "(cached) " >&6
  7340. else
  7341. if test -n "$ac_ct_LIPO"; then
  7342. ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
  7343. else
  7344. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7345. for as_dir in $PATH
  7346. do
  7347. IFS=$as_save_IFS
  7348. test -z "$as_dir" && as_dir=.
  7349. for ac_exec_ext in '' $ac_executable_extensions; do
  7350. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7351. ac_cv_prog_ac_ct_LIPO="lipo"
  7352. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7353. break 2
  7354. fi
  7355. done
  7356. done
  7357. IFS=$as_save_IFS
  7358. fi
  7359. fi
  7360. ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
  7361. if test -n "$ac_ct_LIPO"; then
  7362. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
  7363. $as_echo "$ac_ct_LIPO" >&6; }
  7364. else
  7365. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7366. $as_echo "no" >&6; }
  7367. fi
  7368. if test "x$ac_ct_LIPO" = x; then
  7369. LIPO=":"
  7370. else
  7371. case $cross_compiling:$ac_tool_warned in
  7372. yes:)
  7373. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7374. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7375. ac_tool_warned=yes ;;
  7376. esac
  7377. LIPO=$ac_ct_LIPO
  7378. fi
  7379. else
  7380. LIPO="$ac_cv_prog_LIPO"
  7381. fi
  7382. if test -n "$ac_tool_prefix"; then
  7383. # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
  7384. set dummy ${ac_tool_prefix}otool; ac_word=$2
  7385. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7386. $as_echo_n "checking for $ac_word... " >&6; }
  7387. if ${ac_cv_prog_OTOOL+:} false; then :
  7388. $as_echo_n "(cached) " >&6
  7389. else
  7390. if test -n "$OTOOL"; then
  7391. ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
  7392. else
  7393. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7394. for as_dir in $PATH
  7395. do
  7396. IFS=$as_save_IFS
  7397. test -z "$as_dir" && as_dir=.
  7398. for ac_exec_ext in '' $ac_executable_extensions; do
  7399. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7400. ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
  7401. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7402. break 2
  7403. fi
  7404. done
  7405. done
  7406. IFS=$as_save_IFS
  7407. fi
  7408. fi
  7409. OTOOL=$ac_cv_prog_OTOOL
  7410. if test -n "$OTOOL"; then
  7411. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
  7412. $as_echo "$OTOOL" >&6; }
  7413. else
  7414. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7415. $as_echo "no" >&6; }
  7416. fi
  7417. fi
  7418. if test -z "$ac_cv_prog_OTOOL"; then
  7419. ac_ct_OTOOL=$OTOOL
  7420. # Extract the first word of "otool", so it can be a program name with args.
  7421. set dummy otool; ac_word=$2
  7422. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7423. $as_echo_n "checking for $ac_word... " >&6; }
  7424. if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
  7425. $as_echo_n "(cached) " >&6
  7426. else
  7427. if test -n "$ac_ct_OTOOL"; then
  7428. ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
  7429. else
  7430. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7431. for as_dir in $PATH
  7432. do
  7433. IFS=$as_save_IFS
  7434. test -z "$as_dir" && as_dir=.
  7435. for ac_exec_ext in '' $ac_executable_extensions; do
  7436. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7437. ac_cv_prog_ac_ct_OTOOL="otool"
  7438. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7439. break 2
  7440. fi
  7441. done
  7442. done
  7443. IFS=$as_save_IFS
  7444. fi
  7445. fi
  7446. ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
  7447. if test -n "$ac_ct_OTOOL"; then
  7448. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
  7449. $as_echo "$ac_ct_OTOOL" >&6; }
  7450. else
  7451. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7452. $as_echo "no" >&6; }
  7453. fi
  7454. if test "x$ac_ct_OTOOL" = x; then
  7455. OTOOL=":"
  7456. else
  7457. case $cross_compiling:$ac_tool_warned in
  7458. yes:)
  7459. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7460. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7461. ac_tool_warned=yes ;;
  7462. esac
  7463. OTOOL=$ac_ct_OTOOL
  7464. fi
  7465. else
  7466. OTOOL="$ac_cv_prog_OTOOL"
  7467. fi
  7468. if test -n "$ac_tool_prefix"; then
  7469. # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
  7470. set dummy ${ac_tool_prefix}otool64; ac_word=$2
  7471. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7472. $as_echo_n "checking for $ac_word... " >&6; }
  7473. if ${ac_cv_prog_OTOOL64+:} false; then :
  7474. $as_echo_n "(cached) " >&6
  7475. else
  7476. if test -n "$OTOOL64"; then
  7477. ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
  7478. else
  7479. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7480. for as_dir in $PATH
  7481. do
  7482. IFS=$as_save_IFS
  7483. test -z "$as_dir" && as_dir=.
  7484. for ac_exec_ext in '' $ac_executable_extensions; do
  7485. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7486. ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
  7487. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7488. break 2
  7489. fi
  7490. done
  7491. done
  7492. IFS=$as_save_IFS
  7493. fi
  7494. fi
  7495. OTOOL64=$ac_cv_prog_OTOOL64
  7496. if test -n "$OTOOL64"; then
  7497. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
  7498. $as_echo "$OTOOL64" >&6; }
  7499. else
  7500. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7501. $as_echo "no" >&6; }
  7502. fi
  7503. fi
  7504. if test -z "$ac_cv_prog_OTOOL64"; then
  7505. ac_ct_OTOOL64=$OTOOL64
  7506. # Extract the first word of "otool64", so it can be a program name with args.
  7507. set dummy otool64; ac_word=$2
  7508. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7509. $as_echo_n "checking for $ac_word... " >&6; }
  7510. if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
  7511. $as_echo_n "(cached) " >&6
  7512. else
  7513. if test -n "$ac_ct_OTOOL64"; then
  7514. ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
  7515. else
  7516. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7517. for as_dir in $PATH
  7518. do
  7519. IFS=$as_save_IFS
  7520. test -z "$as_dir" && as_dir=.
  7521. for ac_exec_ext in '' $ac_executable_extensions; do
  7522. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7523. ac_cv_prog_ac_ct_OTOOL64="otool64"
  7524. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7525. break 2
  7526. fi
  7527. done
  7528. done
  7529. IFS=$as_save_IFS
  7530. fi
  7531. fi
  7532. ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
  7533. if test -n "$ac_ct_OTOOL64"; then
  7534. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
  7535. $as_echo "$ac_ct_OTOOL64" >&6; }
  7536. else
  7537. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7538. $as_echo "no" >&6; }
  7539. fi
  7540. if test "x$ac_ct_OTOOL64" = x; then
  7541. OTOOL64=":"
  7542. else
  7543. case $cross_compiling:$ac_tool_warned in
  7544. yes:)
  7545. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7546. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7547. ac_tool_warned=yes ;;
  7548. esac
  7549. OTOOL64=$ac_ct_OTOOL64
  7550. fi
  7551. else
  7552. OTOOL64="$ac_cv_prog_OTOOL64"
  7553. fi
  7554. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
  7555. $as_echo_n "checking for -single_module linker flag... " >&6; }
  7556. if ${lt_cv_apple_cc_single_mod+:} false; then :
  7557. $as_echo_n "(cached) " >&6
  7558. else
  7559. lt_cv_apple_cc_single_mod=no
  7560. if test -z "$LT_MULTI_MODULE"; then
  7561. # By default we will add the -single_module flag. You can override
  7562. # by either setting the environment variable LT_MULTI_MODULE
  7563. # non-empty at configure time, or by adding -multi_module to the
  7564. # link flags.
  7565. rm -rf libconftest.dylib*
  7566. echo "int foo(void){return 1;}" > conftest.c
  7567. echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  7568. -dynamiclib -Wl,-single_module conftest.c" >&5
  7569. $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  7570. -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
  7571. _lt_result=$?
  7572. # If there is a non-empty error log, and "single_module"
  7573. # appears in it, assume the flag caused a linker warning
  7574. if test -s conftest.err && $GREP single_module conftest.err; then
  7575. cat conftest.err >&5
  7576. # Otherwise, if the output was created with a 0 exit code from
  7577. # the compiler, it worked.
  7578. elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
  7579. lt_cv_apple_cc_single_mod=yes
  7580. else
  7581. cat conftest.err >&5
  7582. fi
  7583. rm -rf libconftest.dylib*
  7584. rm -f conftest.*
  7585. fi
  7586. fi
  7587. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
  7588. $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
  7589. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
  7590. $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
  7591. if ${lt_cv_ld_exported_symbols_list+:} false; then :
  7592. $as_echo_n "(cached) " >&6
  7593. else
  7594. lt_cv_ld_exported_symbols_list=no
  7595. save_LDFLAGS=$LDFLAGS
  7596. echo "_main" > conftest.sym
  7597. LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  7598. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7599. /* end confdefs.h. */
  7600. int
  7601. main ()
  7602. {
  7603. ;
  7604. return 0;
  7605. }
  7606. _ACEOF
  7607. if ac_fn_c_try_link "$LINENO"; then :
  7608. lt_cv_ld_exported_symbols_list=yes
  7609. else
  7610. lt_cv_ld_exported_symbols_list=no
  7611. fi
  7612. rm -f core conftest.err conftest.$ac_objext \
  7613. conftest$ac_exeext conftest.$ac_ext
  7614. LDFLAGS=$save_LDFLAGS
  7615. fi
  7616. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
  7617. $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
  7618. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
  7619. $as_echo_n "checking for -force_load linker flag... " >&6; }
  7620. if ${lt_cv_ld_force_load+:} false; then :
  7621. $as_echo_n "(cached) " >&6
  7622. else
  7623. lt_cv_ld_force_load=no
  7624. cat > conftest.c << _LT_EOF
  7625. int forced_loaded() { return 2;}
  7626. _LT_EOF
  7627. echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
  7628. $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
  7629. echo "$AR $AR_FLAGS libconftest.a conftest.o" >&5
  7630. $AR $AR_FLAGS libconftest.a conftest.o 2>&5
  7631. echo "$RANLIB libconftest.a" >&5
  7632. $RANLIB libconftest.a 2>&5
  7633. cat > conftest.c << _LT_EOF
  7634. int main() { return 0;}
  7635. _LT_EOF
  7636. echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
  7637. $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
  7638. _lt_result=$?
  7639. if test -s conftest.err && $GREP force_load conftest.err; then
  7640. cat conftest.err >&5
  7641. elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
  7642. lt_cv_ld_force_load=yes
  7643. else
  7644. cat conftest.err >&5
  7645. fi
  7646. rm -f conftest.err libconftest.a conftest conftest.c
  7647. rm -rf conftest.dSYM
  7648. fi
  7649. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
  7650. $as_echo "$lt_cv_ld_force_load" >&6; }
  7651. case $host_os in
  7652. rhapsody* | darwin1.[012])
  7653. _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
  7654. darwin1.*)
  7655. _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
  7656. darwin*) # darwin 5.x on
  7657. # if running on 10.5 or later, the deployment target defaults
  7658. # to the OS version, if on x86, and 10.4, the deployment
  7659. # target defaults to 10.4. Don't you love it?
  7660. case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
  7661. 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
  7662. _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
  7663. 10.[012][,.]*)
  7664. _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
  7665. 10.*)
  7666. _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
  7667. esac
  7668. ;;
  7669. esac
  7670. if test yes = "$lt_cv_apple_cc_single_mod"; then
  7671. _lt_dar_single_mod='$single_module'
  7672. fi
  7673. if test yes = "$lt_cv_ld_exported_symbols_list"; then
  7674. _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
  7675. else
  7676. _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
  7677. fi
  7678. if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
  7679. _lt_dsymutil='~$DSYMUTIL $lib || :'
  7680. else
  7681. _lt_dsymutil=
  7682. fi
  7683. ;;
  7684. esac
  7685. # func_munge_path_list VARIABLE PATH
  7686. # -----------------------------------
  7687. # VARIABLE is name of variable containing _space_ separated list of
  7688. # directories to be munged by the contents of PATH, which is string
  7689. # having a format:
  7690. # "DIR[:DIR]:"
  7691. # string "DIR[ DIR]" will be prepended to VARIABLE
  7692. # ":DIR[:DIR]"
  7693. # string "DIR[ DIR]" will be appended to VARIABLE
  7694. # "DIRP[:DIRP]::[DIRA:]DIRA"
  7695. # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
  7696. # "DIRA[ DIRA]" will be appended to VARIABLE
  7697. # "DIR[:DIR]"
  7698. # VARIABLE will be replaced by "DIR[ DIR]"
  7699. func_munge_path_list ()
  7700. {
  7701. case x$2 in
  7702. x)
  7703. ;;
  7704. *:)
  7705. eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
  7706. ;;
  7707. x:*)
  7708. eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
  7709. ;;
  7710. *::*)
  7711. eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
  7712. eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
  7713. ;;
  7714. *)
  7715. eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
  7716. ;;
  7717. esac
  7718. }
  7719. for ac_header in dlfcn.h
  7720. do :
  7721. ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
  7722. "
  7723. if test "x$ac_cv_header_dlfcn_h" = xyes; then :
  7724. cat >>confdefs.h <<_ACEOF
  7725. #define HAVE_DLFCN_H 1
  7726. _ACEOF
  7727. fi
  7728. done
  7729. # Set options
  7730. # Check whether --enable-static was given.
  7731. if test "${enable_static+set}" = set; then :
  7732. enableval=$enable_static; p=${PACKAGE-default}
  7733. case $enableval in
  7734. yes) enable_static=yes ;;
  7735. no) enable_static=no ;;
  7736. *)
  7737. enable_static=no
  7738. # Look at the argument we got. We use all the common list separators.
  7739. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  7740. for pkg in $enableval; do
  7741. IFS=$lt_save_ifs
  7742. if test "X$pkg" = "X$p"; then
  7743. enable_static=yes
  7744. fi
  7745. done
  7746. IFS=$lt_save_ifs
  7747. ;;
  7748. esac
  7749. else
  7750. enable_static=no
  7751. fi
  7752. enable_win32_dll=yes
  7753. case $host in
  7754. *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
  7755. if test -n "$ac_tool_prefix"; then
  7756. # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
  7757. set dummy ${ac_tool_prefix}as; ac_word=$2
  7758. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7759. $as_echo_n "checking for $ac_word... " >&6; }
  7760. if ${ac_cv_prog_AS+:} false; then :
  7761. $as_echo_n "(cached) " >&6
  7762. else
  7763. if test -n "$AS"; then
  7764. ac_cv_prog_AS="$AS" # Let the user override the test.
  7765. else
  7766. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7767. for as_dir in $PATH
  7768. do
  7769. IFS=$as_save_IFS
  7770. test -z "$as_dir" && as_dir=.
  7771. for ac_exec_ext in '' $ac_executable_extensions; do
  7772. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7773. ac_cv_prog_AS="${ac_tool_prefix}as"
  7774. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7775. break 2
  7776. fi
  7777. done
  7778. done
  7779. IFS=$as_save_IFS
  7780. fi
  7781. fi
  7782. AS=$ac_cv_prog_AS
  7783. if test -n "$AS"; then
  7784. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
  7785. $as_echo "$AS" >&6; }
  7786. else
  7787. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7788. $as_echo "no" >&6; }
  7789. fi
  7790. fi
  7791. if test -z "$ac_cv_prog_AS"; then
  7792. ac_ct_AS=$AS
  7793. # Extract the first word of "as", so it can be a program name with args.
  7794. set dummy as; ac_word=$2
  7795. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7796. $as_echo_n "checking for $ac_word... " >&6; }
  7797. if ${ac_cv_prog_ac_ct_AS+:} false; then :
  7798. $as_echo_n "(cached) " >&6
  7799. else
  7800. if test -n "$ac_ct_AS"; then
  7801. ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
  7802. else
  7803. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7804. for as_dir in $PATH
  7805. do
  7806. IFS=$as_save_IFS
  7807. test -z "$as_dir" && as_dir=.
  7808. for ac_exec_ext in '' $ac_executable_extensions; do
  7809. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7810. ac_cv_prog_ac_ct_AS="as"
  7811. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7812. break 2
  7813. fi
  7814. done
  7815. done
  7816. IFS=$as_save_IFS
  7817. fi
  7818. fi
  7819. ac_ct_AS=$ac_cv_prog_ac_ct_AS
  7820. if test -n "$ac_ct_AS"; then
  7821. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
  7822. $as_echo "$ac_ct_AS" >&6; }
  7823. else
  7824. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7825. $as_echo "no" >&6; }
  7826. fi
  7827. if test "x$ac_ct_AS" = x; then
  7828. AS="false"
  7829. else
  7830. case $cross_compiling:$ac_tool_warned in
  7831. yes:)
  7832. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7833. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7834. ac_tool_warned=yes ;;
  7835. esac
  7836. AS=$ac_ct_AS
  7837. fi
  7838. else
  7839. AS="$ac_cv_prog_AS"
  7840. fi
  7841. if test -n "$ac_tool_prefix"; then
  7842. # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
  7843. set dummy ${ac_tool_prefix}dlltool; ac_word=$2
  7844. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7845. $as_echo_n "checking for $ac_word... " >&6; }
  7846. if ${ac_cv_prog_DLLTOOL+:} false; then :
  7847. $as_echo_n "(cached) " >&6
  7848. else
  7849. if test -n "$DLLTOOL"; then
  7850. ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  7851. else
  7852. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7853. for as_dir in $PATH
  7854. do
  7855. IFS=$as_save_IFS
  7856. test -z "$as_dir" && as_dir=.
  7857. for ac_exec_ext in '' $ac_executable_extensions; do
  7858. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7859. ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
  7860. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7861. break 2
  7862. fi
  7863. done
  7864. done
  7865. IFS=$as_save_IFS
  7866. fi
  7867. fi
  7868. DLLTOOL=$ac_cv_prog_DLLTOOL
  7869. if test -n "$DLLTOOL"; then
  7870. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
  7871. $as_echo "$DLLTOOL" >&6; }
  7872. else
  7873. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7874. $as_echo "no" >&6; }
  7875. fi
  7876. fi
  7877. if test -z "$ac_cv_prog_DLLTOOL"; then
  7878. ac_ct_DLLTOOL=$DLLTOOL
  7879. # Extract the first word of "dlltool", so it can be a program name with args.
  7880. set dummy dlltool; ac_word=$2
  7881. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7882. $as_echo_n "checking for $ac_word... " >&6; }
  7883. if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
  7884. $as_echo_n "(cached) " >&6
  7885. else
  7886. if test -n "$ac_ct_DLLTOOL"; then
  7887. ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
  7888. else
  7889. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7890. for as_dir in $PATH
  7891. do
  7892. IFS=$as_save_IFS
  7893. test -z "$as_dir" && as_dir=.
  7894. for ac_exec_ext in '' $ac_executable_extensions; do
  7895. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7896. ac_cv_prog_ac_ct_DLLTOOL="dlltool"
  7897. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7898. break 2
  7899. fi
  7900. done
  7901. done
  7902. IFS=$as_save_IFS
  7903. fi
  7904. fi
  7905. ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
  7906. if test -n "$ac_ct_DLLTOOL"; then
  7907. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
  7908. $as_echo "$ac_ct_DLLTOOL" >&6; }
  7909. else
  7910. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7911. $as_echo "no" >&6; }
  7912. fi
  7913. if test "x$ac_ct_DLLTOOL" = x; then
  7914. DLLTOOL="false"
  7915. else
  7916. case $cross_compiling:$ac_tool_warned in
  7917. yes:)
  7918. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7919. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7920. ac_tool_warned=yes ;;
  7921. esac
  7922. DLLTOOL=$ac_ct_DLLTOOL
  7923. fi
  7924. else
  7925. DLLTOOL="$ac_cv_prog_DLLTOOL"
  7926. fi
  7927. if test -n "$ac_tool_prefix"; then
  7928. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  7929. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  7930. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7931. $as_echo_n "checking for $ac_word... " >&6; }
  7932. if ${ac_cv_prog_OBJDUMP+:} false; then :
  7933. $as_echo_n "(cached) " >&6
  7934. else
  7935. if test -n "$OBJDUMP"; then
  7936. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  7937. else
  7938. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7939. for as_dir in $PATH
  7940. do
  7941. IFS=$as_save_IFS
  7942. test -z "$as_dir" && as_dir=.
  7943. for ac_exec_ext in '' $ac_executable_extensions; do
  7944. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7945. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  7946. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7947. break 2
  7948. fi
  7949. done
  7950. done
  7951. IFS=$as_save_IFS
  7952. fi
  7953. fi
  7954. OBJDUMP=$ac_cv_prog_OBJDUMP
  7955. if test -n "$OBJDUMP"; then
  7956. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  7957. $as_echo "$OBJDUMP" >&6; }
  7958. else
  7959. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7960. $as_echo "no" >&6; }
  7961. fi
  7962. fi
  7963. if test -z "$ac_cv_prog_OBJDUMP"; then
  7964. ac_ct_OBJDUMP=$OBJDUMP
  7965. # Extract the first word of "objdump", so it can be a program name with args.
  7966. set dummy objdump; ac_word=$2
  7967. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7968. $as_echo_n "checking for $ac_word... " >&6; }
  7969. if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
  7970. $as_echo_n "(cached) " >&6
  7971. else
  7972. if test -n "$ac_ct_OBJDUMP"; then
  7973. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  7974. else
  7975. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7976. for as_dir in $PATH
  7977. do
  7978. IFS=$as_save_IFS
  7979. test -z "$as_dir" && as_dir=.
  7980. for ac_exec_ext in '' $ac_executable_extensions; do
  7981. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7982. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  7983. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7984. break 2
  7985. fi
  7986. done
  7987. done
  7988. IFS=$as_save_IFS
  7989. fi
  7990. fi
  7991. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  7992. if test -n "$ac_ct_OBJDUMP"; then
  7993. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  7994. $as_echo "$ac_ct_OBJDUMP" >&6; }
  7995. else
  7996. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7997. $as_echo "no" >&6; }
  7998. fi
  7999. if test "x$ac_ct_OBJDUMP" = x; then
  8000. OBJDUMP="false"
  8001. else
  8002. case $cross_compiling:$ac_tool_warned in
  8003. yes:)
  8004. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  8005. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  8006. ac_tool_warned=yes ;;
  8007. esac
  8008. OBJDUMP=$ac_ct_OBJDUMP
  8009. fi
  8010. else
  8011. OBJDUMP="$ac_cv_prog_OBJDUMP"
  8012. fi
  8013. ;;
  8014. esac
  8015. test -z "$AS" && AS=as
  8016. test -z "$DLLTOOL" && DLLTOOL=dlltool
  8017. test -z "$OBJDUMP" && OBJDUMP=objdump
  8018. # Check whether --with-pic was given.
  8019. if test "${with_pic+set}" = set; then :
  8020. withval=$with_pic; lt_p=${PACKAGE-default}
  8021. case $withval in
  8022. yes|no) pic_mode=$withval ;;
  8023. *)
  8024. pic_mode=default
  8025. # Look at the argument we got. We use all the common list separators.
  8026. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  8027. for lt_pkg in $withval; do
  8028. IFS=$lt_save_ifs
  8029. if test "X$lt_pkg" = "X$lt_p"; then
  8030. pic_mode=yes
  8031. fi
  8032. done
  8033. IFS=$lt_save_ifs
  8034. ;;
  8035. esac
  8036. else
  8037. pic_mode=yes
  8038. fi
  8039. enable_dlopen=no
  8040. # Check whether --enable-shared was given.
  8041. if test "${enable_shared+set}" = set; then :
  8042. enableval=$enable_shared; p=${PACKAGE-default}
  8043. case $enableval in
  8044. yes) enable_shared=yes ;;
  8045. no) enable_shared=no ;;
  8046. *)
  8047. enable_shared=no
  8048. # Look at the argument we got. We use all the common list separators.
  8049. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  8050. for pkg in $enableval; do
  8051. IFS=$lt_save_ifs
  8052. if test "X$pkg" = "X$p"; then
  8053. enable_shared=yes
  8054. fi
  8055. done
  8056. IFS=$lt_save_ifs
  8057. ;;
  8058. esac
  8059. else
  8060. enable_shared=yes
  8061. fi
  8062. # Check whether --enable-fast-install was given.
  8063. if test "${enable_fast_install+set}" = set; then :
  8064. enableval=$enable_fast_install; p=${PACKAGE-default}
  8065. case $enableval in
  8066. yes) enable_fast_install=yes ;;
  8067. no) enable_fast_install=no ;;
  8068. *)
  8069. enable_fast_install=no
  8070. # Look at the argument we got. We use all the common list separators.
  8071. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  8072. for pkg in $enableval; do
  8073. IFS=$lt_save_ifs
  8074. if test "X$pkg" = "X$p"; then
  8075. enable_fast_install=yes
  8076. fi
  8077. done
  8078. IFS=$lt_save_ifs
  8079. ;;
  8080. esac
  8081. else
  8082. enable_fast_install=yes
  8083. fi
  8084. shared_archive_member_spec=
  8085. case $host,$enable_shared in
  8086. power*-*-aix[5-9]*,yes)
  8087. { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
  8088. $as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
  8089. # Check whether --with-aix-soname was given.
  8090. if test "${with_aix_soname+set}" = set; then :
  8091. withval=$with_aix_soname; case $withval in
  8092. aix|svr4|both)
  8093. ;;
  8094. *)
  8095. as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
  8096. ;;
  8097. esac
  8098. lt_cv_with_aix_soname=$with_aix_soname
  8099. else
  8100. if ${lt_cv_with_aix_soname+:} false; then :
  8101. $as_echo_n "(cached) " >&6
  8102. else
  8103. lt_cv_with_aix_soname=aix
  8104. fi
  8105. with_aix_soname=$lt_cv_with_aix_soname
  8106. fi
  8107. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
  8108. $as_echo "$with_aix_soname" >&6; }
  8109. if test aix != "$with_aix_soname"; then
  8110. # For the AIX way of multilib, we name the shared archive member
  8111. # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
  8112. # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
  8113. # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
  8114. # the AIX toolchain works better with OBJECT_MODE set (default 32).
  8115. if test 64 = "${OBJECT_MODE-32}"; then
  8116. shared_archive_member_spec=shr_64
  8117. else
  8118. shared_archive_member_spec=shr
  8119. fi
  8120. fi
  8121. ;;
  8122. *)
  8123. with_aix_soname=aix
  8124. ;;
  8125. esac
  8126. # This can be used to rebuild libtool when needed
  8127. LIBTOOL_DEPS=$ltmain
  8128. # Always use our own libtool.
  8129. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  8130. test -z "$LN_S" && LN_S="ln -s"
  8131. if test -n "${ZSH_VERSION+set}"; then
  8132. setopt NO_GLOB_SUBST
  8133. fi
  8134. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
  8135. $as_echo_n "checking for objdir... " >&6; }
  8136. if ${lt_cv_objdir+:} false; then :
  8137. $as_echo_n "(cached) " >&6
  8138. else
  8139. rm -f .libs 2>/dev/null
  8140. mkdir .libs 2>/dev/null
  8141. if test -d .libs; then
  8142. lt_cv_objdir=.libs
  8143. else
  8144. # MS-DOS does not allow filenames that begin with a dot.
  8145. lt_cv_objdir=_libs
  8146. fi
  8147. rmdir .libs 2>/dev/null
  8148. fi
  8149. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
  8150. $as_echo "$lt_cv_objdir" >&6; }
  8151. objdir=$lt_cv_objdir
  8152. cat >>confdefs.h <<_ACEOF
  8153. #define LT_OBJDIR "$lt_cv_objdir/"
  8154. _ACEOF
  8155. case $host_os in
  8156. aix3*)
  8157. # AIX sometimes has problems with the GCC collect2 program. For some
  8158. # reason, if we set the COLLECT_NAMES environment variable, the problems
  8159. # vanish in a puff of smoke.
  8160. if test set != "${COLLECT_NAMES+set}"; then
  8161. COLLECT_NAMES=
  8162. export COLLECT_NAMES
  8163. fi
  8164. ;;
  8165. esac
  8166. # Global variables:
  8167. ofile=libtool
  8168. can_build_shared=yes
  8169. # All known linkers require a '.a' archive for static linking (except MSVC and
  8170. # ICC, which need '.lib').
  8171. libext=a
  8172. with_gnu_ld=$lt_cv_prog_gnu_ld
  8173. old_CC=$CC
  8174. old_CFLAGS=$CFLAGS
  8175. # Set sane defaults for various variables
  8176. test -z "$CC" && CC=cc
  8177. test -z "$LTCC" && LTCC=$CC
  8178. test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  8179. test -z "$LD" && LD=ld
  8180. test -z "$ac_objext" && ac_objext=o
  8181. func_cc_basename $compiler
  8182. cc_basename=$func_cc_basename_result
  8183. # Only perform the check for file, if the check method requires it
  8184. test -z "$MAGIC_CMD" && MAGIC_CMD=file
  8185. case $deplibs_check_method in
  8186. file_magic*)
  8187. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  8188. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
  8189. $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
  8190. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  8191. $as_echo_n "(cached) " >&6
  8192. else
  8193. case $MAGIC_CMD in
  8194. [\\/*] | ?:[\\/]*)
  8195. lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
  8196. ;;
  8197. *)
  8198. lt_save_MAGIC_CMD=$MAGIC_CMD
  8199. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  8200. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  8201. for ac_dir in $ac_dummy; do
  8202. IFS=$lt_save_ifs
  8203. test -z "$ac_dir" && ac_dir=.
  8204. if test -f "$ac_dir/${ac_tool_prefix}file"; then
  8205. lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
  8206. if test -n "$file_magic_test_file"; then
  8207. case $deplibs_check_method in
  8208. "file_magic "*)
  8209. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  8210. MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  8211. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  8212. $EGREP "$file_magic_regex" > /dev/null; then
  8213. :
  8214. else
  8215. cat <<_LT_EOF 1>&2
  8216. *** Warning: the command libtool uses to detect shared libraries,
  8217. *** $file_magic_cmd, produces output that libtool cannot recognize.
  8218. *** The result is that libtool may fail to recognize shared libraries
  8219. *** as such. This will affect the creation of libtool libraries that
  8220. *** depend on shared libraries, but programs linked with such libtool
  8221. *** libraries will work regardless of this problem. Nevertheless, you
  8222. *** may want to report the problem to your system manager and/or to
  8223. *** bug-libtool@gnu.org
  8224. _LT_EOF
  8225. fi ;;
  8226. esac
  8227. fi
  8228. break
  8229. fi
  8230. done
  8231. IFS=$lt_save_ifs
  8232. MAGIC_CMD=$lt_save_MAGIC_CMD
  8233. ;;
  8234. esac
  8235. fi
  8236. MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  8237. if test -n "$MAGIC_CMD"; then
  8238. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  8239. $as_echo "$MAGIC_CMD" >&6; }
  8240. else
  8241. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8242. $as_echo "no" >&6; }
  8243. fi
  8244. if test -z "$lt_cv_path_MAGIC_CMD"; then
  8245. if test -n "$ac_tool_prefix"; then
  8246. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
  8247. $as_echo_n "checking for file... " >&6; }
  8248. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  8249. $as_echo_n "(cached) " >&6
  8250. else
  8251. case $MAGIC_CMD in
  8252. [\\/*] | ?:[\\/]*)
  8253. lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
  8254. ;;
  8255. *)
  8256. lt_save_MAGIC_CMD=$MAGIC_CMD
  8257. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  8258. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  8259. for ac_dir in $ac_dummy; do
  8260. IFS=$lt_save_ifs
  8261. test -z "$ac_dir" && ac_dir=.
  8262. if test -f "$ac_dir/file"; then
  8263. lt_cv_path_MAGIC_CMD=$ac_dir/"file"
  8264. if test -n "$file_magic_test_file"; then
  8265. case $deplibs_check_method in
  8266. "file_magic "*)
  8267. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  8268. MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  8269. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  8270. $EGREP "$file_magic_regex" > /dev/null; then
  8271. :
  8272. else
  8273. cat <<_LT_EOF 1>&2
  8274. *** Warning: the command libtool uses to detect shared libraries,
  8275. *** $file_magic_cmd, produces output that libtool cannot recognize.
  8276. *** The result is that libtool may fail to recognize shared libraries
  8277. *** as such. This will affect the creation of libtool libraries that
  8278. *** depend on shared libraries, but programs linked with such libtool
  8279. *** libraries will work regardless of this problem. Nevertheless, you
  8280. *** may want to report the problem to your system manager and/or to
  8281. *** bug-libtool@gnu.org
  8282. _LT_EOF
  8283. fi ;;
  8284. esac
  8285. fi
  8286. break
  8287. fi
  8288. done
  8289. IFS=$lt_save_ifs
  8290. MAGIC_CMD=$lt_save_MAGIC_CMD
  8291. ;;
  8292. esac
  8293. fi
  8294. MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  8295. if test -n "$MAGIC_CMD"; then
  8296. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  8297. $as_echo "$MAGIC_CMD" >&6; }
  8298. else
  8299. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8300. $as_echo "no" >&6; }
  8301. fi
  8302. else
  8303. MAGIC_CMD=:
  8304. fi
  8305. fi
  8306. fi
  8307. ;;
  8308. esac
  8309. # Use C for the default configuration in the libtool script
  8310. lt_save_CC=$CC
  8311. ac_ext=c
  8312. ac_cpp='$CPP $CPPFLAGS'
  8313. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  8314. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  8315. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  8316. # Source file extension for C test sources.
  8317. ac_ext=c
  8318. # Object file extension for compiled C test sources.
  8319. objext=o
  8320. objext=$objext
  8321. # Code to be used in simple compile tests
  8322. lt_simple_compile_test_code="int some_variable = 0;"
  8323. # Code to be used in simple link tests
  8324. lt_simple_link_test_code='int main(){return(0);}'
  8325. # If no C compiler was specified, use CC.
  8326. LTCC=${LTCC-"$CC"}
  8327. # If no C compiler flags were specified, use CFLAGS.
  8328. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  8329. # Allow CC to be a program name with arguments.
  8330. compiler=$CC
  8331. # Save the default compiler, since it gets overwritten when the other
  8332. # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
  8333. compiler_DEFAULT=$CC
  8334. # save warnings/boilerplate of simple test code
  8335. ac_outfile=conftest.$ac_objext
  8336. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  8337. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  8338. _lt_compiler_boilerplate=`cat conftest.err`
  8339. $RM conftest*
  8340. ac_outfile=conftest.$ac_objext
  8341. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  8342. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  8343. _lt_linker_boilerplate=`cat conftest.err`
  8344. $RM -r conftest*
  8345. ## CAVEAT EMPTOR:
  8346. ## There is no encapsulation within the following macros, do not change
  8347. ## the running order or otherwise move them around unless you know exactly
  8348. ## what you are doing...
  8349. if test -n "$compiler"; then
  8350. lt_prog_compiler_no_builtin_flag=
  8351. if test yes = "$GCC"; then
  8352. case $cc_basename in
  8353. nvcc*)
  8354. lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
  8355. *)
  8356. lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
  8357. esac
  8358. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  8359. $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
  8360. if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
  8361. $as_echo_n "(cached) " >&6
  8362. else
  8363. lt_cv_prog_compiler_rtti_exceptions=no
  8364. ac_outfile=conftest.$ac_objext
  8365. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8366. lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
  8367. # Insert the option either (1) after the last *FLAGS variable, or
  8368. # (2) before a word containing "conftest.", or (3) at the end.
  8369. # Note that $ac_compile itself does not contain backslashes and begins
  8370. # with a dollar sign (not a hyphen), so the echo should work correctly.
  8371. # The option is referenced via a variable to avoid confusing sed.
  8372. lt_compile=`echo "$ac_compile" | $SED \
  8373. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  8374. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  8375. -e 's:$: $lt_compiler_flag:'`
  8376. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  8377. (eval "$lt_compile" 2>conftest.err)
  8378. ac_status=$?
  8379. cat conftest.err >&5
  8380. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8381. if (exit $ac_status) && test -s "$ac_outfile"; then
  8382. # The compiler can only warn and ignore the option if not recognized
  8383. # So say no if there are warnings other than the usual output.
  8384. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  8385. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  8386. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  8387. lt_cv_prog_compiler_rtti_exceptions=yes
  8388. fi
  8389. fi
  8390. $RM conftest*
  8391. fi
  8392. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  8393. $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  8394. if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
  8395. lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  8396. else
  8397. :
  8398. fi
  8399. fi
  8400. lt_prog_compiler_wl=
  8401. lt_prog_compiler_pic=
  8402. lt_prog_compiler_static=
  8403. if test yes = "$GCC"; then
  8404. lt_prog_compiler_wl='-Wl,'
  8405. lt_prog_compiler_static='-static'
  8406. case $host_os in
  8407. aix*)
  8408. # All AIX code is PIC.
  8409. if test ia64 = "$host_cpu"; then
  8410. # AIX 5 now supports IA64 processor
  8411. lt_prog_compiler_static='-Bstatic'
  8412. fi
  8413. lt_prog_compiler_pic='-fPIC'
  8414. ;;
  8415. amigaos*)
  8416. case $host_cpu in
  8417. powerpc)
  8418. # see comment about AmigaOS4 .so support
  8419. lt_prog_compiler_pic='-fPIC'
  8420. ;;
  8421. m68k)
  8422. # FIXME: we need at least 68020 code to build shared libraries, but
  8423. # adding the '-m68020' flag to GCC prevents building anything better,
  8424. # like '-m68040'.
  8425. lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  8426. ;;
  8427. esac
  8428. ;;
  8429. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  8430. # PIC is the default for these OSes.
  8431. ;;
  8432. mingw* | cygwin* | pw32* | os2* | cegcc*)
  8433. # This hack is so that the source file can tell whether it is being
  8434. # built for inclusion in a dll (and should export symbols for example).
  8435. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  8436. # (--disable-auto-import) libraries
  8437. lt_prog_compiler_pic='-DDLL_EXPORT'
  8438. case $host_os in
  8439. os2*)
  8440. lt_prog_compiler_static='$wl-static'
  8441. ;;
  8442. esac
  8443. ;;
  8444. darwin* | rhapsody*)
  8445. # PIC is the default on this platform
  8446. # Common symbols not allowed in MH_DYLIB files
  8447. lt_prog_compiler_pic='-fno-common'
  8448. ;;
  8449. haiku*)
  8450. # PIC is the default for Haiku.
  8451. # The "-static" flag exists, but is broken.
  8452. lt_prog_compiler_static=
  8453. ;;
  8454. hpux*)
  8455. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  8456. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  8457. # sets the default TLS model and affects inlining.
  8458. case $host_cpu in
  8459. hppa*64*)
  8460. # +Z the default
  8461. ;;
  8462. *)
  8463. lt_prog_compiler_pic='-fPIC'
  8464. ;;
  8465. esac
  8466. ;;
  8467. interix[3-9]*)
  8468. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  8469. # Instead, we relocate shared libraries at runtime.
  8470. ;;
  8471. msdosdjgpp*)
  8472. # Just because we use GCC doesn't mean we suddenly get shared libraries
  8473. # on systems that don't support them.
  8474. lt_prog_compiler_can_build_shared=no
  8475. enable_shared=no
  8476. ;;
  8477. *nto* | *qnx*)
  8478. # QNX uses GNU C++, but need to define -shared option too, otherwise
  8479. # it will coredump.
  8480. lt_prog_compiler_pic='-fPIC -shared'
  8481. ;;
  8482. sysv4*MP*)
  8483. if test -d /usr/nec; then
  8484. lt_prog_compiler_pic=-Kconform_pic
  8485. fi
  8486. ;;
  8487. *)
  8488. lt_prog_compiler_pic='-fPIC'
  8489. ;;
  8490. esac
  8491. case $cc_basename in
  8492. nvcc*) # Cuda Compiler Driver 2.2
  8493. lt_prog_compiler_wl='-Xlinker '
  8494. if test -n "$lt_prog_compiler_pic"; then
  8495. lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
  8496. fi
  8497. ;;
  8498. esac
  8499. else
  8500. # PORTME Check for flag to pass linker flags through the system compiler.
  8501. case $host_os in
  8502. aix*)
  8503. lt_prog_compiler_wl='-Wl,'
  8504. if test ia64 = "$host_cpu"; then
  8505. # AIX 5 now supports IA64 processor
  8506. lt_prog_compiler_static='-Bstatic'
  8507. else
  8508. lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  8509. fi
  8510. ;;
  8511. darwin* | rhapsody*)
  8512. # PIC is the default on this platform
  8513. # Common symbols not allowed in MH_DYLIB files
  8514. lt_prog_compiler_pic='-fno-common'
  8515. case $cc_basename in
  8516. nagfor*)
  8517. # NAG Fortran compiler
  8518. lt_prog_compiler_wl='-Wl,-Wl,,'
  8519. lt_prog_compiler_pic='-PIC'
  8520. lt_prog_compiler_static='-Bstatic'
  8521. ;;
  8522. esac
  8523. ;;
  8524. mingw* | cygwin* | pw32* | os2* | cegcc*)
  8525. # This hack is so that the source file can tell whether it is being
  8526. # built for inclusion in a dll (and should export symbols for example).
  8527. lt_prog_compiler_pic='-DDLL_EXPORT'
  8528. case $host_os in
  8529. os2*)
  8530. lt_prog_compiler_static='$wl-static'
  8531. ;;
  8532. esac
  8533. ;;
  8534. hpux9* | hpux10* | hpux11*)
  8535. lt_prog_compiler_wl='-Wl,'
  8536. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  8537. # not for PA HP-UX.
  8538. case $host_cpu in
  8539. hppa*64*|ia64*)
  8540. # +Z the default
  8541. ;;
  8542. *)
  8543. lt_prog_compiler_pic='+Z'
  8544. ;;
  8545. esac
  8546. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  8547. lt_prog_compiler_static='$wl-a ${wl}archive'
  8548. ;;
  8549. irix5* | irix6* | nonstopux*)
  8550. lt_prog_compiler_wl='-Wl,'
  8551. # PIC (with -KPIC) is the default.
  8552. lt_prog_compiler_static='-non_shared'
  8553. ;;
  8554. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  8555. case $cc_basename in
  8556. # old Intel for x86_64, which still supported -KPIC.
  8557. ecc*)
  8558. lt_prog_compiler_wl='-Wl,'
  8559. lt_prog_compiler_pic='-KPIC'
  8560. lt_prog_compiler_static='-static'
  8561. ;;
  8562. # icc used to be incompatible with GCC.
  8563. # ICC 10 doesn't accept -KPIC any more.
  8564. icc* | ifort*)
  8565. lt_prog_compiler_wl='-Wl,'
  8566. lt_prog_compiler_pic='-fPIC'
  8567. lt_prog_compiler_static='-static'
  8568. ;;
  8569. # Lahey Fortran 8.1.
  8570. lf95*)
  8571. lt_prog_compiler_wl='-Wl,'
  8572. lt_prog_compiler_pic='--shared'
  8573. lt_prog_compiler_static='--static'
  8574. ;;
  8575. nagfor*)
  8576. # NAG Fortran compiler
  8577. lt_prog_compiler_wl='-Wl,-Wl,,'
  8578. lt_prog_compiler_pic='-PIC'
  8579. lt_prog_compiler_static='-Bstatic'
  8580. ;;
  8581. tcc*)
  8582. # Fabrice Bellard et al's Tiny C Compiler
  8583. lt_prog_compiler_wl='-Wl,'
  8584. lt_prog_compiler_pic='-fPIC'
  8585. lt_prog_compiler_static='-static'
  8586. ;;
  8587. pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
  8588. # Portland Group compilers (*not* the Pentium gcc compiler,
  8589. # which looks to be a dead project)
  8590. lt_prog_compiler_wl='-Wl,'
  8591. lt_prog_compiler_pic='-fpic'
  8592. lt_prog_compiler_static='-Bstatic'
  8593. ;;
  8594. ccc*)
  8595. lt_prog_compiler_wl='-Wl,'
  8596. # All Alpha code is PIC.
  8597. lt_prog_compiler_static='-non_shared'
  8598. ;;
  8599. xl* | bgxl* | bgf* | mpixl*)
  8600. # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
  8601. lt_prog_compiler_wl='-Wl,'
  8602. lt_prog_compiler_pic='-qpic'
  8603. lt_prog_compiler_static='-qstaticlink'
  8604. ;;
  8605. *)
  8606. case `$CC -V 2>&1 | sed 5q` in
  8607. *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
  8608. # Sun Fortran 8.3 passes all unrecognized flags to the linker
  8609. lt_prog_compiler_pic='-KPIC'
  8610. lt_prog_compiler_static='-Bstatic'
  8611. lt_prog_compiler_wl=''
  8612. ;;
  8613. *Sun\ F* | *Sun*Fortran*)
  8614. lt_prog_compiler_pic='-KPIC'
  8615. lt_prog_compiler_static='-Bstatic'
  8616. lt_prog_compiler_wl='-Qoption ld '
  8617. ;;
  8618. *Sun\ C*)
  8619. # Sun C 5.9
  8620. lt_prog_compiler_pic='-KPIC'
  8621. lt_prog_compiler_static='-Bstatic'
  8622. lt_prog_compiler_wl='-Wl,'
  8623. ;;
  8624. *Intel*\ [CF]*Compiler*)
  8625. lt_prog_compiler_wl='-Wl,'
  8626. lt_prog_compiler_pic='-fPIC'
  8627. lt_prog_compiler_static='-static'
  8628. ;;
  8629. *Portland\ Group*)
  8630. lt_prog_compiler_wl='-Wl,'
  8631. lt_prog_compiler_pic='-fpic'
  8632. lt_prog_compiler_static='-Bstatic'
  8633. ;;
  8634. esac
  8635. ;;
  8636. esac
  8637. ;;
  8638. newsos6)
  8639. lt_prog_compiler_pic='-KPIC'
  8640. lt_prog_compiler_static='-Bstatic'
  8641. ;;
  8642. *nto* | *qnx*)
  8643. # QNX uses GNU C++, but need to define -shared option too, otherwise
  8644. # it will coredump.
  8645. lt_prog_compiler_pic='-fPIC -shared'
  8646. ;;
  8647. osf3* | osf4* | osf5*)
  8648. lt_prog_compiler_wl='-Wl,'
  8649. # All OSF/1 code is PIC.
  8650. lt_prog_compiler_static='-non_shared'
  8651. ;;
  8652. rdos*)
  8653. lt_prog_compiler_static='-non_shared'
  8654. ;;
  8655. solaris*)
  8656. lt_prog_compiler_pic='-KPIC'
  8657. lt_prog_compiler_static='-Bstatic'
  8658. case $cc_basename in
  8659. f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
  8660. lt_prog_compiler_wl='-Qoption ld ';;
  8661. *)
  8662. lt_prog_compiler_wl='-Wl,';;
  8663. esac
  8664. ;;
  8665. sunos4*)
  8666. lt_prog_compiler_wl='-Qoption ld '
  8667. lt_prog_compiler_pic='-PIC'
  8668. lt_prog_compiler_static='-Bstatic'
  8669. ;;
  8670. sysv4 | sysv4.2uw2* | sysv4.3*)
  8671. lt_prog_compiler_wl='-Wl,'
  8672. lt_prog_compiler_pic='-KPIC'
  8673. lt_prog_compiler_static='-Bstatic'
  8674. ;;
  8675. sysv4*MP*)
  8676. if test -d /usr/nec; then
  8677. lt_prog_compiler_pic='-Kconform_pic'
  8678. lt_prog_compiler_static='-Bstatic'
  8679. fi
  8680. ;;
  8681. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  8682. lt_prog_compiler_wl='-Wl,'
  8683. lt_prog_compiler_pic='-KPIC'
  8684. lt_prog_compiler_static='-Bstatic'
  8685. ;;
  8686. unicos*)
  8687. lt_prog_compiler_wl='-Wl,'
  8688. lt_prog_compiler_can_build_shared=no
  8689. ;;
  8690. uts4*)
  8691. lt_prog_compiler_pic='-pic'
  8692. lt_prog_compiler_static='-Bstatic'
  8693. ;;
  8694. *)
  8695. lt_prog_compiler_can_build_shared=no
  8696. ;;
  8697. esac
  8698. fi
  8699. case $host_os in
  8700. # For platforms that do not support PIC, -DPIC is meaningless:
  8701. *djgpp*)
  8702. lt_prog_compiler_pic=
  8703. ;;
  8704. *)
  8705. lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  8706. ;;
  8707. esac
  8708. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  8709. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  8710. if ${lt_cv_prog_compiler_pic+:} false; then :
  8711. $as_echo_n "(cached) " >&6
  8712. else
  8713. lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
  8714. fi
  8715. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
  8716. $as_echo "$lt_cv_prog_compiler_pic" >&6; }
  8717. lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
  8718. #
  8719. # Check to make sure the PIC flag actually works.
  8720. #
  8721. if test -n "$lt_prog_compiler_pic"; then
  8722. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  8723. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
  8724. if ${lt_cv_prog_compiler_pic_works+:} false; then :
  8725. $as_echo_n "(cached) " >&6
  8726. else
  8727. lt_cv_prog_compiler_pic_works=no
  8728. ac_outfile=conftest.$ac_objext
  8729. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8730. lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
  8731. # Insert the option either (1) after the last *FLAGS variable, or
  8732. # (2) before a word containing "conftest.", or (3) at the end.
  8733. # Note that $ac_compile itself does not contain backslashes and begins
  8734. # with a dollar sign (not a hyphen), so the echo should work correctly.
  8735. # The option is referenced via a variable to avoid confusing sed.
  8736. lt_compile=`echo "$ac_compile" | $SED \
  8737. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  8738. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  8739. -e 's:$: $lt_compiler_flag:'`
  8740. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  8741. (eval "$lt_compile" 2>conftest.err)
  8742. ac_status=$?
  8743. cat conftest.err >&5
  8744. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8745. if (exit $ac_status) && test -s "$ac_outfile"; then
  8746. # The compiler can only warn and ignore the option if not recognized
  8747. # So say no if there are warnings other than the usual output.
  8748. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  8749. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  8750. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  8751. lt_cv_prog_compiler_pic_works=yes
  8752. fi
  8753. fi
  8754. $RM conftest*
  8755. fi
  8756. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
  8757. $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
  8758. if test yes = "$lt_cv_prog_compiler_pic_works"; then
  8759. case $lt_prog_compiler_pic in
  8760. "" | " "*) ;;
  8761. *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  8762. esac
  8763. else
  8764. lt_prog_compiler_pic=
  8765. lt_prog_compiler_can_build_shared=no
  8766. fi
  8767. fi
  8768. #
  8769. # Check to make sure the static flag actually works.
  8770. #
  8771. wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
  8772. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  8773. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  8774. if ${lt_cv_prog_compiler_static_works+:} false; then :
  8775. $as_echo_n "(cached) " >&6
  8776. else
  8777. lt_cv_prog_compiler_static_works=no
  8778. save_LDFLAGS=$LDFLAGS
  8779. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  8780. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  8781. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  8782. # The linker can only warn and ignore the option if not recognized
  8783. # So say no if there are warnings
  8784. if test -s conftest.err; then
  8785. # Append any errors to the config.log.
  8786. cat conftest.err 1>&5
  8787. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  8788. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  8789. if diff conftest.exp conftest.er2 >/dev/null; then
  8790. lt_cv_prog_compiler_static_works=yes
  8791. fi
  8792. else
  8793. lt_cv_prog_compiler_static_works=yes
  8794. fi
  8795. fi
  8796. $RM -r conftest*
  8797. LDFLAGS=$save_LDFLAGS
  8798. fi
  8799. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
  8800. $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
  8801. if test yes = "$lt_cv_prog_compiler_static_works"; then
  8802. :
  8803. else
  8804. lt_prog_compiler_static=
  8805. fi
  8806. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  8807. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  8808. if ${lt_cv_prog_compiler_c_o+:} false; then :
  8809. $as_echo_n "(cached) " >&6
  8810. else
  8811. lt_cv_prog_compiler_c_o=no
  8812. $RM -r conftest 2>/dev/null
  8813. mkdir conftest
  8814. cd conftest
  8815. mkdir out
  8816. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8817. lt_compiler_flag="-o out/conftest2.$ac_objext"
  8818. # Insert the option either (1) after the last *FLAGS variable, or
  8819. # (2) before a word containing "conftest.", or (3) at the end.
  8820. # Note that $ac_compile itself does not contain backslashes and begins
  8821. # with a dollar sign (not a hyphen), so the echo should work correctly.
  8822. lt_compile=`echo "$ac_compile" | $SED \
  8823. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  8824. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  8825. -e 's:$: $lt_compiler_flag:'`
  8826. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  8827. (eval "$lt_compile" 2>out/conftest.err)
  8828. ac_status=$?
  8829. cat out/conftest.err >&5
  8830. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8831. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  8832. then
  8833. # The compiler can only warn and ignore the option if not recognized
  8834. # So say no if there are warnings
  8835. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  8836. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  8837. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  8838. lt_cv_prog_compiler_c_o=yes
  8839. fi
  8840. fi
  8841. chmod u+w . 2>&5
  8842. $RM conftest*
  8843. # SGI C++ compiler will create directory out/ii_files/ for
  8844. # template instantiation
  8845. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  8846. $RM out/* && rmdir out
  8847. cd ..
  8848. $RM -r conftest
  8849. $RM conftest*
  8850. fi
  8851. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  8852. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  8853. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  8854. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  8855. if ${lt_cv_prog_compiler_c_o+:} false; then :
  8856. $as_echo_n "(cached) " >&6
  8857. else
  8858. lt_cv_prog_compiler_c_o=no
  8859. $RM -r conftest 2>/dev/null
  8860. mkdir conftest
  8861. cd conftest
  8862. mkdir out
  8863. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8864. lt_compiler_flag="-o out/conftest2.$ac_objext"
  8865. # Insert the option either (1) after the last *FLAGS variable, or
  8866. # (2) before a word containing "conftest.", or (3) at the end.
  8867. # Note that $ac_compile itself does not contain backslashes and begins
  8868. # with a dollar sign (not a hyphen), so the echo should work correctly.
  8869. lt_compile=`echo "$ac_compile" | $SED \
  8870. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  8871. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  8872. -e 's:$: $lt_compiler_flag:'`
  8873. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  8874. (eval "$lt_compile" 2>out/conftest.err)
  8875. ac_status=$?
  8876. cat out/conftest.err >&5
  8877. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8878. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  8879. then
  8880. # The compiler can only warn and ignore the option if not recognized
  8881. # So say no if there are warnings
  8882. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  8883. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  8884. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  8885. lt_cv_prog_compiler_c_o=yes
  8886. fi
  8887. fi
  8888. chmod u+w . 2>&5
  8889. $RM conftest*
  8890. # SGI C++ compiler will create directory out/ii_files/ for
  8891. # template instantiation
  8892. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  8893. $RM out/* && rmdir out
  8894. cd ..
  8895. $RM -r conftest
  8896. $RM conftest*
  8897. fi
  8898. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  8899. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  8900. hard_links=nottested
  8901. if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
  8902. # do not overwrite the value of need_locks provided by the user
  8903. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  8904. $as_echo_n "checking if we can lock with hard links... " >&6; }
  8905. hard_links=yes
  8906. $RM conftest*
  8907. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  8908. touch conftest.a
  8909. ln conftest.a conftest.b 2>&5 || hard_links=no
  8910. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  8911. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  8912. $as_echo "$hard_links" >&6; }
  8913. if test no = "$hard_links"; then
  8914. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
  8915. $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
  8916. need_locks=warn
  8917. fi
  8918. else
  8919. need_locks=no
  8920. fi
  8921. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  8922. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  8923. runpath_var=
  8924. allow_undefined_flag=
  8925. always_export_symbols=no
  8926. archive_cmds=
  8927. archive_expsym_cmds=
  8928. compiler_needs_object=no
  8929. enable_shared_with_static_runtimes=no
  8930. export_dynamic_flag_spec=
  8931. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  8932. hardcode_automatic=no
  8933. hardcode_direct=no
  8934. hardcode_direct_absolute=no
  8935. hardcode_libdir_flag_spec=
  8936. hardcode_libdir_separator=
  8937. hardcode_minus_L=no
  8938. hardcode_shlibpath_var=unsupported
  8939. inherit_rpath=no
  8940. link_all_deplibs=unknown
  8941. module_cmds=
  8942. module_expsym_cmds=
  8943. old_archive_from_new_cmds=
  8944. old_archive_from_expsyms_cmds=
  8945. thread_safe_flag_spec=
  8946. whole_archive_flag_spec=
  8947. # include_expsyms should be a list of space-separated symbols to be *always*
  8948. # included in the symbol list
  8949. include_expsyms=
  8950. # exclude_expsyms can be an extended regexp of symbols to exclude
  8951. # it will be wrapped by ' (' and ')$', so one must not match beginning or
  8952. # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
  8953. # as well as any symbol that contains 'd'.
  8954. exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  8955. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  8956. # platforms (ab)use it in PIC code, but their linkers get confused if
  8957. # the symbol is explicitly referenced. Since portable code cannot
  8958. # rely on this symbol name, it's probably fine to never include it in
  8959. # preloaded symbol tables.
  8960. # Exclude shared library initialization/finalization symbols.
  8961. extract_expsyms_cmds=
  8962. case $host_os in
  8963. cygwin* | mingw* | pw32* | cegcc*)
  8964. # FIXME: the MSVC++ and ICC port hasn't been tested in a loooong time
  8965. # When not using gcc, we currently assume that we are using
  8966. # Microsoft Visual C++ or Intel C++ Compiler.
  8967. if test yes != "$GCC"; then
  8968. with_gnu_ld=no
  8969. fi
  8970. ;;
  8971. interix*)
  8972. # we just hope/assume this is gcc and not c89 (= MSVC++ or ICC)
  8973. with_gnu_ld=yes
  8974. ;;
  8975. openbsd* | bitrig*)
  8976. with_gnu_ld=no
  8977. ;;
  8978. esac
  8979. ld_shlibs=yes
  8980. # On some targets, GNU ld is compatible enough with the native linker
  8981. # that we're better off using the native interface for both.
  8982. lt_use_gnu_ld_interface=no
  8983. if test yes = "$with_gnu_ld"; then
  8984. case $host_os in
  8985. aix*)
  8986. # The AIX port of GNU ld has always aspired to compatibility
  8987. # with the native linker. However, as the warning in the GNU ld
  8988. # block says, versions before 2.19.5* couldn't really create working
  8989. # shared libraries, regardless of the interface used.
  8990. case `$LD -v 2>&1` in
  8991. *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
  8992. *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
  8993. *\ \(GNU\ Binutils\)\ [3-9]*) ;;
  8994. *)
  8995. lt_use_gnu_ld_interface=yes
  8996. ;;
  8997. esac
  8998. ;;
  8999. *)
  9000. lt_use_gnu_ld_interface=yes
  9001. ;;
  9002. esac
  9003. fi
  9004. if test yes = "$lt_use_gnu_ld_interface"; then
  9005. # If archive_cmds runs LD, not CC, wlarc should be empty
  9006. wlarc='$wl'
  9007. # Set some defaults for GNU ld with shared library support. These
  9008. # are reset later if shared libraries are not supported. Putting them
  9009. # here allows them to be overridden if necessary.
  9010. runpath_var=LD_RUN_PATH
  9011. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  9012. export_dynamic_flag_spec='$wl--export-dynamic'
  9013. # ancient GNU ld didn't support --whole-archive et. al.
  9014. if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
  9015. whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
  9016. else
  9017. whole_archive_flag_spec=
  9018. fi
  9019. supports_anon_versioning=no
  9020. case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
  9021. *GNU\ gold*) supports_anon_versioning=yes ;;
  9022. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  9023. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  9024. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  9025. *\ 2.11.*) ;; # other 2.11 versions
  9026. *) supports_anon_versioning=yes ;;
  9027. esac
  9028. # See if GNU ld supports shared libraries.
  9029. case $host_os in
  9030. aix[3-9]*)
  9031. # On AIX/PPC, the GNU linker is very broken
  9032. if test ia64 != "$host_cpu"; then
  9033. ld_shlibs=no
  9034. cat <<_LT_EOF 1>&2
  9035. *** Warning: the GNU linker, at least up to release 2.19, is reported
  9036. *** to be unable to reliably create shared libraries on AIX.
  9037. *** Therefore, libtool is disabling shared libraries support. If you
  9038. *** really care for shared libraries, you may want to install binutils
  9039. *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
  9040. *** You will then need to restart the configuration process.
  9041. _LT_EOF
  9042. fi
  9043. ;;
  9044. amigaos*)
  9045. case $host_cpu in
  9046. powerpc)
  9047. # see comment about AmigaOS4 .so support
  9048. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  9049. archive_expsym_cmds=''
  9050. ;;
  9051. m68k)
  9052. 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)'
  9053. hardcode_libdir_flag_spec='-L$libdir'
  9054. hardcode_minus_L=yes
  9055. ;;
  9056. esac
  9057. ;;
  9058. beos*)
  9059. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  9060. allow_undefined_flag=unsupported
  9061. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  9062. # support --undefined. This deserves some investigation. FIXME
  9063. archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  9064. else
  9065. ld_shlibs=no
  9066. fi
  9067. ;;
  9068. cygwin* | mingw* | pw32* | cegcc*)
  9069. # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  9070. # as there is no search path for DLLs.
  9071. hardcode_libdir_flag_spec='-L$libdir'
  9072. export_dynamic_flag_spec='$wl--export-all-symbols'
  9073. allow_undefined_flag=unsupported
  9074. always_export_symbols=no
  9075. enable_shared_with_static_runtimes=yes
  9076. 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'
  9077. exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
  9078. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  9079. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  9080. # If the export-symbols file already is a .def file, use it as
  9081. # is; otherwise, prepend EXPORTS...
  9082. archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
  9083. cp $export_symbols $output_objdir/$soname.def;
  9084. else
  9085. echo EXPORTS > $output_objdir/$soname.def;
  9086. cat $export_symbols >> $output_objdir/$soname.def;
  9087. fi~
  9088. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  9089. else
  9090. ld_shlibs=no
  9091. fi
  9092. ;;
  9093. haiku*)
  9094. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  9095. link_all_deplibs=yes
  9096. ;;
  9097. os2*)
  9098. hardcode_libdir_flag_spec='-L$libdir'
  9099. hardcode_minus_L=yes
  9100. allow_undefined_flag=unsupported
  9101. shrext_cmds=.dll
  9102. archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  9103. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  9104. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  9105. $ECHO EXPORTS >> $output_objdir/$libname.def~
  9106. emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
  9107. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  9108. emximp -o $lib $output_objdir/$libname.def'
  9109. archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  9110. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  9111. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  9112. $ECHO EXPORTS >> $output_objdir/$libname.def~
  9113. prefix_cmds="$SED"~
  9114. if test EXPORTS = "`$SED 1q $export_symbols`"; then
  9115. prefix_cmds="$prefix_cmds -e 1d";
  9116. fi~
  9117. prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
  9118. cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
  9119. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  9120. emximp -o $lib $output_objdir/$libname.def'
  9121. old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
  9122. enable_shared_with_static_runtimes=yes
  9123. file_list_spec='@'
  9124. ;;
  9125. interix[3-9]*)
  9126. hardcode_direct=no
  9127. hardcode_shlibpath_var=no
  9128. hardcode_libdir_flag_spec='$wl-rpath,$libdir'
  9129. export_dynamic_flag_spec='$wl-E'
  9130. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  9131. # Instead, shared libraries are loaded at an image base (0x10000000 by
  9132. # default) and relocated if they conflict, which is a slow very memory
  9133. # consuming and fragmenting process. To avoid this, we pick a random,
  9134. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  9135. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  9136. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  9137. 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'
  9138. ;;
  9139. gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
  9140. tmp_diet=no
  9141. if test linux-dietlibc = "$host_os"; then
  9142. case $cc_basename in
  9143. diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
  9144. esac
  9145. fi
  9146. if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
  9147. && test no = "$tmp_diet"
  9148. then
  9149. tmp_addflag=' $pic_flag'
  9150. tmp_sharedflag='-shared'
  9151. case $cc_basename,$host_cpu in
  9152. pgcc*) # Portland Group C compiler
  9153. 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'
  9154. tmp_addflag=' $pic_flag'
  9155. ;;
  9156. pgf77* | pgf90* | pgf95* | pgfortran*)
  9157. # Portland Group f77 and f90 compilers
  9158. 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'
  9159. tmp_addflag=' $pic_flag -Mnomain' ;;
  9160. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  9161. tmp_addflag=' -i_dynamic' ;;
  9162. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  9163. tmp_addflag=' -i_dynamic -nofor_main' ;;
  9164. ifc* | ifort*) # Intel Fortran compiler
  9165. tmp_addflag=' -nofor_main' ;;
  9166. lf95*) # Lahey Fortran 8.1
  9167. whole_archive_flag_spec=
  9168. tmp_sharedflag='--shared' ;;
  9169. nagfor*) # NAGFOR 5.3
  9170. tmp_sharedflag='-Wl,-shared' ;;
  9171. xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
  9172. tmp_sharedflag='-qmkshrobj'
  9173. tmp_addflag= ;;
  9174. nvcc*) # Cuda Compiler Driver 2.2
  9175. 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'
  9176. compiler_needs_object=yes
  9177. ;;
  9178. esac
  9179. case `$CC -V 2>&1 | sed 5q` in
  9180. *Sun\ C*) # Sun C 5.9
  9181. 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'
  9182. compiler_needs_object=yes
  9183. tmp_sharedflag='-G' ;;
  9184. *Sun\ F*) # Sun Fortran 8.3
  9185. tmp_sharedflag='-G' ;;
  9186. esac
  9187. archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  9188. if test yes = "$supports_anon_versioning"; then
  9189. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  9190. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  9191. echo "local: *; };" >> $output_objdir/$libname.ver~
  9192. $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
  9193. fi
  9194. case $cc_basename in
  9195. tcc*)
  9196. export_dynamic_flag_spec='-rdynamic'
  9197. ;;
  9198. xlf* | bgf* | bgxlf* | mpixlf*)
  9199. # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
  9200. whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
  9201. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  9202. archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
  9203. if test yes = "$supports_anon_versioning"; then
  9204. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  9205. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  9206. echo "local: *; };" >> $output_objdir/$libname.ver~
  9207. $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
  9208. fi
  9209. ;;
  9210. esac
  9211. else
  9212. ld_shlibs=no
  9213. fi
  9214. ;;
  9215. netbsd*)
  9216. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  9217. archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  9218. wlarc=
  9219. else
  9220. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  9221. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  9222. fi
  9223. ;;
  9224. solaris*)
  9225. if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
  9226. ld_shlibs=no
  9227. cat <<_LT_EOF 1>&2
  9228. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  9229. *** create shared libraries on Solaris systems. Therefore, libtool
  9230. *** is disabling shared libraries support. We urge you to upgrade GNU
  9231. *** binutils to release 2.9.1 or newer. Another option is to modify
  9232. *** your PATH or compiler configuration so that the native linker is
  9233. *** used, and then restart.
  9234. _LT_EOF
  9235. elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  9236. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  9237. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  9238. else
  9239. ld_shlibs=no
  9240. fi
  9241. ;;
  9242. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  9243. case `$LD -v 2>&1` in
  9244. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  9245. ld_shlibs=no
  9246. cat <<_LT_EOF 1>&2
  9247. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
  9248. *** reliably create shared libraries on SCO systems. Therefore, libtool
  9249. *** is disabling shared libraries support. We urge you to upgrade GNU
  9250. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  9251. *** your PATH or compiler configuration so that the native linker is
  9252. *** used, and then restart.
  9253. _LT_EOF
  9254. ;;
  9255. *)
  9256. # For security reasons, it is highly recommended that you always
  9257. # use absolute paths for naming shared libraries, and exclude the
  9258. # DT_RUNPATH tag from executables and libraries. But doing so
  9259. # requires that you compile everything twice, which is a pain.
  9260. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  9261. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  9262. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  9263. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  9264. else
  9265. ld_shlibs=no
  9266. fi
  9267. ;;
  9268. esac
  9269. ;;
  9270. sunos4*)
  9271. archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  9272. wlarc=
  9273. hardcode_direct=yes
  9274. hardcode_shlibpath_var=no
  9275. ;;
  9276. *)
  9277. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  9278. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  9279. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  9280. else
  9281. ld_shlibs=no
  9282. fi
  9283. ;;
  9284. esac
  9285. if test no = "$ld_shlibs"; then
  9286. runpath_var=
  9287. hardcode_libdir_flag_spec=
  9288. export_dynamic_flag_spec=
  9289. whole_archive_flag_spec=
  9290. fi
  9291. else
  9292. # PORTME fill in a description of your system's linker (not GNU ld)
  9293. case $host_os in
  9294. aix3*)
  9295. allow_undefined_flag=unsupported
  9296. always_export_symbols=yes
  9297. 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'
  9298. # Note: this linker hardcodes the directories in LIBPATH if there
  9299. # are no directories specified by -L.
  9300. hardcode_minus_L=yes
  9301. if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
  9302. # Neither direct hardcoding nor static linking is supported with a
  9303. # broken collect2.
  9304. hardcode_direct=unsupported
  9305. fi
  9306. ;;
  9307. aix[4-9]*)
  9308. if test ia64 = "$host_cpu"; then
  9309. # On IA64, the linker does run time linking by default, so we don't
  9310. # have to do anything special.
  9311. aix_use_runtimelinking=no
  9312. exp_sym_flag='-Bexport'
  9313. no_entry_flag=
  9314. else
  9315. # If we're using GNU nm, then we don't want the "-C" option.
  9316. # -C means demangle to GNU nm, but means don't demangle to AIX nm.
  9317. # Without the "-l" option, or with the "-B" option, AIX nm treats
  9318. # weak defined symbols like other global defined symbols, whereas
  9319. # GNU nm marks them as "W".
  9320. # While the 'weak' keyword is ignored in the Export File, we need
  9321. # it in the Import File for the 'aix-soname' feature, so we have
  9322. # to replace the "-B" option with "-P" for AIX nm.
  9323. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  9324. export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
  9325. else
  9326. export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
  9327. fi
  9328. aix_use_runtimelinking=no
  9329. # Test if we are trying to use run time linking or normal
  9330. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  9331. # have runtime linking enabled, and use it for executables.
  9332. # For shared libraries, we enable/disable runtime linking
  9333. # depending on the kind of the shared library created -
  9334. # when "with_aix_soname,aix_use_runtimelinking" is:
  9335. # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
  9336. # "aix,yes" lib.so shared, rtl:yes, for executables
  9337. # lib.a static archive
  9338. # "both,no" lib.so.V(shr.o) shared, rtl:yes
  9339. # lib.a(lib.so.V) shared, rtl:no, for executables
  9340. # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
  9341. # lib.a(lib.so.V) shared, rtl:no
  9342. # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
  9343. # lib.a static archive
  9344. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  9345. for ld_flag in $LDFLAGS; do
  9346. if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
  9347. aix_use_runtimelinking=yes
  9348. break
  9349. fi
  9350. done
  9351. if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
  9352. # With aix-soname=svr4, we create the lib.so.V shared archives only,
  9353. # so we don't have lib.a shared libs to link our executables.
  9354. # We have to force runtime linking in this case.
  9355. aix_use_runtimelinking=yes
  9356. LDFLAGS="$LDFLAGS -Wl,-brtl"
  9357. fi
  9358. ;;
  9359. esac
  9360. exp_sym_flag='-bexport'
  9361. no_entry_flag='-bnoentry'
  9362. fi
  9363. # When large executables or shared objects are built, AIX ld can
  9364. # have problems creating the table of contents. If linking a library
  9365. # or program results in "error TOC overflow" add -mminimal-toc to
  9366. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  9367. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  9368. archive_cmds=''
  9369. hardcode_direct=yes
  9370. hardcode_direct_absolute=yes
  9371. hardcode_libdir_separator=':'
  9372. link_all_deplibs=yes
  9373. file_list_spec='$wl-f,'
  9374. case $with_aix_soname,$aix_use_runtimelinking in
  9375. aix,*) ;; # traditional, no import file
  9376. svr4,* | *,yes) # use import file
  9377. # The Import File defines what to hardcode.
  9378. hardcode_direct=no
  9379. hardcode_direct_absolute=no
  9380. ;;
  9381. esac
  9382. if test yes = "$GCC"; then
  9383. case $host_os in aix4.[012]|aix4.[012].*)
  9384. # We only want to do this on AIX 4.2 and lower, the check
  9385. # below for broken collect2 doesn't work under 4.3+
  9386. collect2name=`$CC -print-prog-name=collect2`
  9387. if test -f "$collect2name" &&
  9388. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  9389. then
  9390. # We have reworked collect2
  9391. :
  9392. else
  9393. # We have old collect2
  9394. hardcode_direct=unsupported
  9395. # It fails to find uninstalled libraries when the uninstalled
  9396. # path is not listed in the libpath. Setting hardcode_minus_L
  9397. # to unsupported forces relinking
  9398. hardcode_minus_L=yes
  9399. hardcode_libdir_flag_spec='-L$libdir'
  9400. hardcode_libdir_separator=
  9401. fi
  9402. ;;
  9403. esac
  9404. shared_flag='-shared'
  9405. if test yes = "$aix_use_runtimelinking"; then
  9406. shared_flag="$shared_flag "'$wl-G'
  9407. fi
  9408. # Need to ensure runtime linking is disabled for the traditional
  9409. # shared library, or the linker may eventually find shared libraries
  9410. # /with/ Import File - we do not want to mix them.
  9411. shared_flag_aix='-shared'
  9412. shared_flag_svr4='-shared $wl-G'
  9413. else
  9414. # not using gcc
  9415. if test ia64 = "$host_cpu"; then
  9416. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  9417. # chokes on -Wl,-G. The following line is correct:
  9418. shared_flag='-G'
  9419. else
  9420. if test yes = "$aix_use_runtimelinking"; then
  9421. shared_flag='$wl-G'
  9422. else
  9423. shared_flag='$wl-bM:SRE'
  9424. fi
  9425. shared_flag_aix='$wl-bM:SRE'
  9426. shared_flag_svr4='$wl-G'
  9427. fi
  9428. fi
  9429. export_dynamic_flag_spec='$wl-bexpall'
  9430. # It seems that -bexpall does not export symbols beginning with
  9431. # underscore (_), so it is better to generate a list of symbols to export.
  9432. always_export_symbols=yes
  9433. if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
  9434. # Warning - without using the other runtime loading flags (-brtl),
  9435. # -berok will link without error, but may produce a broken library.
  9436. allow_undefined_flag='-berok'
  9437. # Determine the default libpath from the value encoded in an
  9438. # empty executable.
  9439. if test set = "${lt_cv_aix_libpath+set}"; then
  9440. aix_libpath=$lt_cv_aix_libpath
  9441. else
  9442. if ${lt_cv_aix_libpath_+:} false; then :
  9443. $as_echo_n "(cached) " >&6
  9444. else
  9445. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9446. /* end confdefs.h. */
  9447. int
  9448. main ()
  9449. {
  9450. ;
  9451. return 0;
  9452. }
  9453. _ACEOF
  9454. if ac_fn_c_try_link "$LINENO"; then :
  9455. lt_aix_libpath_sed='
  9456. /Import File Strings/,/^$/ {
  9457. /^0/ {
  9458. s/^0 *\([^ ]*\) *$/\1/
  9459. p
  9460. }
  9461. }'
  9462. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  9463. # Check for a 64-bit object if we didn't find anything.
  9464. if test -z "$lt_cv_aix_libpath_"; then
  9465. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  9466. fi
  9467. fi
  9468. rm -f core conftest.err conftest.$ac_objext \
  9469. conftest$ac_exeext conftest.$ac_ext
  9470. if test -z "$lt_cv_aix_libpath_"; then
  9471. lt_cv_aix_libpath_=/usr/lib:/lib
  9472. fi
  9473. fi
  9474. aix_libpath=$lt_cv_aix_libpath_
  9475. fi
  9476. hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
  9477. archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
  9478. else
  9479. if test ia64 = "$host_cpu"; then
  9480. hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
  9481. allow_undefined_flag="-z nodefs"
  9482. 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"
  9483. else
  9484. # Determine the default libpath from the value encoded in an
  9485. # empty executable.
  9486. if test set = "${lt_cv_aix_libpath+set}"; then
  9487. aix_libpath=$lt_cv_aix_libpath
  9488. else
  9489. if ${lt_cv_aix_libpath_+:} false; then :
  9490. $as_echo_n "(cached) " >&6
  9491. else
  9492. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9493. /* end confdefs.h. */
  9494. int
  9495. main ()
  9496. {
  9497. ;
  9498. return 0;
  9499. }
  9500. _ACEOF
  9501. if ac_fn_c_try_link "$LINENO"; then :
  9502. lt_aix_libpath_sed='
  9503. /Import File Strings/,/^$/ {
  9504. /^0/ {
  9505. s/^0 *\([^ ]*\) *$/\1/
  9506. p
  9507. }
  9508. }'
  9509. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  9510. # Check for a 64-bit object if we didn't find anything.
  9511. if test -z "$lt_cv_aix_libpath_"; then
  9512. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  9513. fi
  9514. fi
  9515. rm -f core conftest.err conftest.$ac_objext \
  9516. conftest$ac_exeext conftest.$ac_ext
  9517. if test -z "$lt_cv_aix_libpath_"; then
  9518. lt_cv_aix_libpath_=/usr/lib:/lib
  9519. fi
  9520. fi
  9521. aix_libpath=$lt_cv_aix_libpath_
  9522. fi
  9523. hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
  9524. # Warning - without using the other run time loading flags,
  9525. # -berok will link without error, but may produce a broken library.
  9526. no_undefined_flag=' $wl-bernotok'
  9527. allow_undefined_flag=' $wl-berok'
  9528. if test yes = "$with_gnu_ld"; then
  9529. # We only use this code for GNU lds that support --whole-archive.
  9530. whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
  9531. else
  9532. # Exported symbols can be pulled into shared objects from archives
  9533. whole_archive_flag_spec='$convenience'
  9534. fi
  9535. archive_cmds_need_lc=yes
  9536. archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
  9537. # -brtl affects multiple linker settings, -berok does not and is overridden later
  9538. compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
  9539. if test svr4 != "$with_aix_soname"; then
  9540. # This is similar to how AIX traditionally builds its shared libraries.
  9541. archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
  9542. fi
  9543. if test aix != "$with_aix_soname"; then
  9544. archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
  9545. else
  9546. # used by -dlpreopen to get the symbols
  9547. archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
  9548. fi
  9549. archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
  9550. fi
  9551. fi
  9552. ;;
  9553. amigaos*)
  9554. case $host_cpu in
  9555. powerpc)
  9556. # see comment about AmigaOS4 .so support
  9557. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  9558. archive_expsym_cmds=''
  9559. ;;
  9560. m68k)
  9561. 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)'
  9562. hardcode_libdir_flag_spec='-L$libdir'
  9563. hardcode_minus_L=yes
  9564. ;;
  9565. esac
  9566. ;;
  9567. bsdi[45]*)
  9568. export_dynamic_flag_spec=-rdynamic
  9569. ;;
  9570. cygwin* | mingw* | pw32* | cegcc*)
  9571. # When not using gcc, we currently assume that we are using
  9572. # Microsoft Visual C++ or Intel C++ Compiler.
  9573. # hardcode_libdir_flag_spec is actually meaningless, as there is
  9574. # no search path for DLLs.
  9575. case $cc_basename in
  9576. cl* | icl*)
  9577. # Native MSVC or ICC
  9578. hardcode_libdir_flag_spec=' '
  9579. allow_undefined_flag=unsupported
  9580. always_export_symbols=yes
  9581. file_list_spec='@'
  9582. # Tell ltmain to make .lib files, not .a files.
  9583. libext=lib
  9584. # Tell ltmain to make .dll files, not .so files.
  9585. shrext_cmds=.dll
  9586. # FIXME: Setting linknames here is a bad hack.
  9587. archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
  9588. archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
  9589. cp "$export_symbols" "$output_objdir/$soname.def";
  9590. echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
  9591. else
  9592. $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
  9593. fi~
  9594. $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  9595. linknames='
  9596. # The linker will not automatically build a static lib if we build a DLL.
  9597. # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
  9598. enable_shared_with_static_runtimes=yes
  9599. exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
  9600. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  9601. # Don't use ranlib
  9602. old_postinstall_cmds='chmod 644 $oldlib'
  9603. postlink_cmds='lt_outputfile="@OUTPUT@"~
  9604. lt_tool_outputfile="@TOOL_OUTPUT@"~
  9605. case $lt_outputfile in
  9606. *.exe|*.EXE) ;;
  9607. *)
  9608. lt_outputfile=$lt_outputfile.exe
  9609. lt_tool_outputfile=$lt_tool_outputfile.exe
  9610. ;;
  9611. esac~
  9612. if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
  9613. $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  9614. $RM "$lt_outputfile.manifest";
  9615. fi'
  9616. ;;
  9617. *)
  9618. # Assume MSVC and ICC wrapper
  9619. hardcode_libdir_flag_spec=' '
  9620. allow_undefined_flag=unsupported
  9621. # Tell ltmain to make .lib files, not .a files.
  9622. libext=lib
  9623. # Tell ltmain to make .dll files, not .so files.
  9624. shrext_cmds=.dll
  9625. # FIXME: Setting linknames here is a bad hack.
  9626. archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
  9627. # The linker will automatically build a .lib file if we build a DLL.
  9628. old_archive_from_new_cmds='true'
  9629. # FIXME: Should let the user specify the lib program.
  9630. old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
  9631. enable_shared_with_static_runtimes=yes
  9632. ;;
  9633. esac
  9634. ;;
  9635. darwin* | rhapsody*)
  9636. archive_cmds_need_lc=no
  9637. hardcode_direct=no
  9638. hardcode_automatic=yes
  9639. hardcode_shlibpath_var=unsupported
  9640. if test yes = "$lt_cv_ld_force_load"; then
  9641. 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\"`'
  9642. else
  9643. whole_archive_flag_spec=''
  9644. fi
  9645. link_all_deplibs=yes
  9646. allow_undefined_flag=$_lt_dar_allow_undefined
  9647. case $cc_basename in
  9648. ifort*|nagfor*) _lt_dar_can_shared=yes ;;
  9649. *) _lt_dar_can_shared=$GCC ;;
  9650. esac
  9651. if test yes = "$_lt_dar_can_shared"; then
  9652. output_verbose_link_cmd=func_echo_all
  9653. archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
  9654. module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
  9655. 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"
  9656. 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"
  9657. else
  9658. ld_shlibs=no
  9659. fi
  9660. ;;
  9661. dgux*)
  9662. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9663. hardcode_libdir_flag_spec='-L$libdir'
  9664. hardcode_shlibpath_var=no
  9665. ;;
  9666. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  9667. # support. Future versions do this automatically, but an explicit c++rt0.o
  9668. # does not break anything, and helps significantly (at the cost of a little
  9669. # extra space).
  9670. freebsd2.2*)
  9671. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  9672. hardcode_libdir_flag_spec='-R$libdir'
  9673. hardcode_direct=yes
  9674. hardcode_shlibpath_var=no
  9675. ;;
  9676. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  9677. freebsd2.*)
  9678. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  9679. hardcode_direct=yes
  9680. hardcode_minus_L=yes
  9681. hardcode_shlibpath_var=no
  9682. ;;
  9683. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  9684. freebsd* | dragonfly*)
  9685. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  9686. hardcode_libdir_flag_spec='-R$libdir'
  9687. hardcode_direct=yes
  9688. hardcode_shlibpath_var=no
  9689. ;;
  9690. hpux9*)
  9691. if test yes = "$GCC"; then
  9692. archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
  9693. else
  9694. archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
  9695. fi
  9696. hardcode_libdir_flag_spec='$wl+b $wl$libdir'
  9697. hardcode_libdir_separator=:
  9698. hardcode_direct=yes
  9699. # hardcode_minus_L: Not really in the search PATH,
  9700. # but as the default location of the library.
  9701. hardcode_minus_L=yes
  9702. export_dynamic_flag_spec='$wl-E'
  9703. ;;
  9704. hpux10*)
  9705. if test yes,no = "$GCC,$with_gnu_ld"; then
  9706. archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  9707. else
  9708. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  9709. fi
  9710. if test no = "$with_gnu_ld"; then
  9711. hardcode_libdir_flag_spec='$wl+b $wl$libdir'
  9712. hardcode_libdir_separator=:
  9713. hardcode_direct=yes
  9714. hardcode_direct_absolute=yes
  9715. export_dynamic_flag_spec='$wl-E'
  9716. # hardcode_minus_L: Not really in the search PATH,
  9717. # but as the default location of the library.
  9718. hardcode_minus_L=yes
  9719. fi
  9720. ;;
  9721. hpux11*)
  9722. if test yes,no = "$GCC,$with_gnu_ld"; then
  9723. case $host_cpu in
  9724. hppa*64*)
  9725. archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
  9726. ;;
  9727. ia64*)
  9728. archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  9729. ;;
  9730. *)
  9731. archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  9732. ;;
  9733. esac
  9734. else
  9735. case $host_cpu in
  9736. hppa*64*)
  9737. archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
  9738. ;;
  9739. ia64*)
  9740. archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  9741. ;;
  9742. *)
  9743. # Older versions of the 11.00 compiler do not understand -b yet
  9744. # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
  9745. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
  9746. $as_echo_n "checking if $CC understands -b... " >&6; }
  9747. if ${lt_cv_prog_compiler__b+:} false; then :
  9748. $as_echo_n "(cached) " >&6
  9749. else
  9750. lt_cv_prog_compiler__b=no
  9751. save_LDFLAGS=$LDFLAGS
  9752. LDFLAGS="$LDFLAGS -b"
  9753. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  9754. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  9755. # The linker can only warn and ignore the option if not recognized
  9756. # So say no if there are warnings
  9757. if test -s conftest.err; then
  9758. # Append any errors to the config.log.
  9759. cat conftest.err 1>&5
  9760. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  9761. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  9762. if diff conftest.exp conftest.er2 >/dev/null; then
  9763. lt_cv_prog_compiler__b=yes
  9764. fi
  9765. else
  9766. lt_cv_prog_compiler__b=yes
  9767. fi
  9768. fi
  9769. $RM -r conftest*
  9770. LDFLAGS=$save_LDFLAGS
  9771. fi
  9772. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
  9773. $as_echo "$lt_cv_prog_compiler__b" >&6; }
  9774. if test yes = "$lt_cv_prog_compiler__b"; then
  9775. archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  9776. else
  9777. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  9778. fi
  9779. ;;
  9780. esac
  9781. fi
  9782. if test no = "$with_gnu_ld"; then
  9783. hardcode_libdir_flag_spec='$wl+b $wl$libdir'
  9784. hardcode_libdir_separator=:
  9785. case $host_cpu in
  9786. hppa*64*|ia64*)
  9787. hardcode_direct=no
  9788. hardcode_shlibpath_var=no
  9789. ;;
  9790. *)
  9791. hardcode_direct=yes
  9792. hardcode_direct_absolute=yes
  9793. export_dynamic_flag_spec='$wl-E'
  9794. # hardcode_minus_L: Not really in the search PATH,
  9795. # but as the default location of the library.
  9796. hardcode_minus_L=yes
  9797. ;;
  9798. esac
  9799. fi
  9800. ;;
  9801. irix5* | irix6* | nonstopux*)
  9802. if test yes = "$GCC"; then
  9803. 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'
  9804. # Try to use the -exported_symbol ld option, if it does not
  9805. # work, assume that -exports_file does not work either and
  9806. # implicitly export all symbols.
  9807. # This should be the same for all languages, so no per-tag cache variable.
  9808. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
  9809. $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
  9810. if ${lt_cv_irix_exported_symbol+:} false; then :
  9811. $as_echo_n "(cached) " >&6
  9812. else
  9813. save_LDFLAGS=$LDFLAGS
  9814. LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
  9815. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9816. /* end confdefs.h. */
  9817. int foo (void) { return 0; }
  9818. _ACEOF
  9819. if ac_fn_c_try_link "$LINENO"; then :
  9820. lt_cv_irix_exported_symbol=yes
  9821. else
  9822. lt_cv_irix_exported_symbol=no
  9823. fi
  9824. rm -f core conftest.err conftest.$ac_objext \
  9825. conftest$ac_exeext conftest.$ac_ext
  9826. LDFLAGS=$save_LDFLAGS
  9827. fi
  9828. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
  9829. $as_echo "$lt_cv_irix_exported_symbol" >&6; }
  9830. if test yes = "$lt_cv_irix_exported_symbol"; then
  9831. 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'
  9832. fi
  9833. else
  9834. 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'
  9835. 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'
  9836. fi
  9837. archive_cmds_need_lc='no'
  9838. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  9839. hardcode_libdir_separator=:
  9840. inherit_rpath=yes
  9841. link_all_deplibs=yes
  9842. ;;
  9843. linux*)
  9844. case $cc_basename in
  9845. tcc*)
  9846. # Fabrice Bellard et al's Tiny C Compiler
  9847. ld_shlibs=yes
  9848. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  9849. ;;
  9850. esac
  9851. ;;
  9852. netbsd*)
  9853. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  9854. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  9855. else
  9856. archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  9857. fi
  9858. hardcode_libdir_flag_spec='-R$libdir'
  9859. hardcode_direct=yes
  9860. hardcode_shlibpath_var=no
  9861. ;;
  9862. newsos6)
  9863. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9864. hardcode_direct=yes
  9865. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  9866. hardcode_libdir_separator=:
  9867. hardcode_shlibpath_var=no
  9868. ;;
  9869. *nto* | *qnx*)
  9870. ;;
  9871. openbsd* | bitrig*)
  9872. if test -f /usr/libexec/ld.so; then
  9873. hardcode_direct=yes
  9874. hardcode_shlibpath_var=no
  9875. hardcode_direct_absolute=yes
  9876. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
  9877. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  9878. archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
  9879. hardcode_libdir_flag_spec='$wl-rpath,$libdir'
  9880. export_dynamic_flag_spec='$wl-E'
  9881. else
  9882. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  9883. hardcode_libdir_flag_spec='$wl-rpath,$libdir'
  9884. fi
  9885. else
  9886. ld_shlibs=no
  9887. fi
  9888. ;;
  9889. os2*)
  9890. hardcode_libdir_flag_spec='-L$libdir'
  9891. hardcode_minus_L=yes
  9892. allow_undefined_flag=unsupported
  9893. shrext_cmds=.dll
  9894. archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  9895. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  9896. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  9897. $ECHO EXPORTS >> $output_objdir/$libname.def~
  9898. emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
  9899. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  9900. emximp -o $lib $output_objdir/$libname.def'
  9901. archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  9902. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  9903. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  9904. $ECHO EXPORTS >> $output_objdir/$libname.def~
  9905. prefix_cmds="$SED"~
  9906. if test EXPORTS = "`$SED 1q $export_symbols`"; then
  9907. prefix_cmds="$prefix_cmds -e 1d";
  9908. fi~
  9909. prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
  9910. cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
  9911. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  9912. emximp -o $lib $output_objdir/$libname.def'
  9913. old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
  9914. enable_shared_with_static_runtimes=yes
  9915. file_list_spec='@'
  9916. ;;
  9917. osf3*)
  9918. if test yes = "$GCC"; then
  9919. allow_undefined_flag=' $wl-expect_unresolved $wl\*'
  9920. 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'
  9921. else
  9922. allow_undefined_flag=' -expect_unresolved \*'
  9923. 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'
  9924. fi
  9925. archive_cmds_need_lc='no'
  9926. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  9927. hardcode_libdir_separator=:
  9928. ;;
  9929. osf4* | osf5*) # as osf3* with the addition of -msym flag
  9930. if test yes = "$GCC"; then
  9931. allow_undefined_flag=' $wl-expect_unresolved $wl\*'
  9932. 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'
  9933. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  9934. else
  9935. allow_undefined_flag=' -expect_unresolved \*'
  9936. 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'
  9937. 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~
  9938. $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'
  9939. # Both c and cxx compiler support -rpath directly
  9940. hardcode_libdir_flag_spec='-rpath $libdir'
  9941. fi
  9942. archive_cmds_need_lc='no'
  9943. hardcode_libdir_separator=:
  9944. ;;
  9945. solaris*)
  9946. no_undefined_flag=' -z defs'
  9947. if test yes = "$GCC"; then
  9948. wlarc='$wl'
  9949. archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
  9950. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  9951. $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'
  9952. else
  9953. case `$CC -V 2>&1` in
  9954. *"Compilers 5.0"*)
  9955. wlarc=''
  9956. archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9957. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  9958. $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
  9959. ;;
  9960. *)
  9961. wlarc='$wl'
  9962. archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
  9963. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  9964. $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  9965. ;;
  9966. esac
  9967. fi
  9968. hardcode_libdir_flag_spec='-R$libdir'
  9969. hardcode_shlibpath_var=no
  9970. case $host_os in
  9971. solaris2.[0-5] | solaris2.[0-5].*) ;;
  9972. *)
  9973. # The compiler driver will combine and reorder linker options,
  9974. # but understands '-z linker_flag'. GCC discards it without '$wl',
  9975. # but is careful enough not to reorder.
  9976. # Supported since Solaris 2.6 (maybe 2.5.1?)
  9977. if test yes = "$GCC"; then
  9978. whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
  9979. else
  9980. whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
  9981. fi
  9982. ;;
  9983. esac
  9984. link_all_deplibs=yes
  9985. ;;
  9986. sunos4*)
  9987. if test sequent = "$host_vendor"; then
  9988. # Use $CC to link under sequent, because it throws in some extra .o
  9989. # files that make .init and .fini sections work.
  9990. archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  9991. else
  9992. archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  9993. fi
  9994. hardcode_libdir_flag_spec='-L$libdir'
  9995. hardcode_direct=yes
  9996. hardcode_minus_L=yes
  9997. hardcode_shlibpath_var=no
  9998. ;;
  9999. sysv4)
  10000. case $host_vendor in
  10001. sni)
  10002. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  10003. hardcode_direct=yes # is this really true???
  10004. ;;
  10005. siemens)
  10006. ## LD is ld it makes a PLAMLIB
  10007. ## CC just makes a GrossModule.
  10008. archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  10009. reload_cmds='$CC -r -o $output$reload_objs'
  10010. hardcode_direct=no
  10011. ;;
  10012. motorola)
  10013. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  10014. hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  10015. ;;
  10016. esac
  10017. runpath_var='LD_RUN_PATH'
  10018. hardcode_shlibpath_var=no
  10019. ;;
  10020. sysv4.3*)
  10021. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  10022. hardcode_shlibpath_var=no
  10023. export_dynamic_flag_spec='-Bexport'
  10024. ;;
  10025. sysv4*MP*)
  10026. if test -d /usr/nec; then
  10027. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  10028. hardcode_shlibpath_var=no
  10029. runpath_var=LD_RUN_PATH
  10030. hardcode_runpath_var=yes
  10031. ld_shlibs=yes
  10032. fi
  10033. ;;
  10034. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  10035. no_undefined_flag='$wl-z,text'
  10036. archive_cmds_need_lc=no
  10037. hardcode_shlibpath_var=no
  10038. runpath_var='LD_RUN_PATH'
  10039. if test yes = "$GCC"; then
  10040. archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10041. archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10042. else
  10043. archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10044. archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10045. fi
  10046. ;;
  10047. sysv5* | sco3.2v5* | sco5v6*)
  10048. # Note: We CANNOT use -z defs as we might desire, because we do not
  10049. # link with -lc, and that would cause any symbols used from libc to
  10050. # always be unresolved, which means just about no library would
  10051. # ever link correctly. If we're not using GNU ld we use -z text
  10052. # though, which does catch some bad symbols but isn't as heavy-handed
  10053. # as -z defs.
  10054. no_undefined_flag='$wl-z,text'
  10055. allow_undefined_flag='$wl-z,nodefs'
  10056. archive_cmds_need_lc=no
  10057. hardcode_shlibpath_var=no
  10058. hardcode_libdir_flag_spec='$wl-R,$libdir'
  10059. hardcode_libdir_separator=':'
  10060. link_all_deplibs=yes
  10061. export_dynamic_flag_spec='$wl-Bexport'
  10062. runpath_var='LD_RUN_PATH'
  10063. if test yes = "$GCC"; then
  10064. archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10065. archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10066. else
  10067. archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10068. archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10069. fi
  10070. ;;
  10071. uts4*)
  10072. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  10073. hardcode_libdir_flag_spec='-L$libdir'
  10074. hardcode_shlibpath_var=no
  10075. ;;
  10076. *)
  10077. ld_shlibs=no
  10078. ;;
  10079. esac
  10080. if test sni = "$host_vendor"; then
  10081. case $host in
  10082. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  10083. export_dynamic_flag_spec='$wl-Blargedynsym'
  10084. ;;
  10085. esac
  10086. fi
  10087. fi
  10088. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
  10089. $as_echo "$ld_shlibs" >&6; }
  10090. test no = "$ld_shlibs" && can_build_shared=no
  10091. with_gnu_ld=$with_gnu_ld
  10092. #
  10093. # Do we need to explicitly link libc?
  10094. #
  10095. case "x$archive_cmds_need_lc" in
  10096. x|xyes)
  10097. # Assume -lc should be added
  10098. archive_cmds_need_lc=yes
  10099. if test yes,yes = "$GCC,$enable_shared"; then
  10100. case $archive_cmds in
  10101. *'~'*)
  10102. # FIXME: we may have to deal with multi-command sequences.
  10103. ;;
  10104. '$CC '*)
  10105. # Test whether the compiler implicitly links with -lc since on some
  10106. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  10107. # to ld, don't add -lc before -lgcc.
  10108. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  10109. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  10110. if ${lt_cv_archive_cmds_need_lc+:} false; then :
  10111. $as_echo_n "(cached) " >&6
  10112. else
  10113. $RM conftest*
  10114. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  10115. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  10116. (eval $ac_compile) 2>&5
  10117. ac_status=$?
  10118. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10119. test $ac_status = 0; } 2>conftest.err; then
  10120. soname=conftest
  10121. lib=conftest
  10122. libobjs=conftest.$ac_objext
  10123. deplibs=
  10124. wl=$lt_prog_compiler_wl
  10125. pic_flag=$lt_prog_compiler_pic
  10126. compiler_flags=-v
  10127. linker_flags=-v
  10128. verstring=
  10129. output_objdir=.
  10130. libname=conftest
  10131. lt_save_allow_undefined_flag=$allow_undefined_flag
  10132. allow_undefined_flag=
  10133. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  10134. (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  10135. ac_status=$?
  10136. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10137. test $ac_status = 0; }
  10138. then
  10139. lt_cv_archive_cmds_need_lc=no
  10140. else
  10141. lt_cv_archive_cmds_need_lc=yes
  10142. fi
  10143. allow_undefined_flag=$lt_save_allow_undefined_flag
  10144. else
  10145. cat conftest.err 1>&5
  10146. fi
  10147. $RM conftest*
  10148. fi
  10149. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
  10150. $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
  10151. archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
  10152. ;;
  10153. esac
  10154. fi
  10155. ;;
  10156. esac
  10157. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  10158. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  10159. if test yes = "$GCC"; then
  10160. case $host_os in
  10161. darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
  10162. *) lt_awk_arg='/^libraries:/' ;;
  10163. esac
  10164. case $host_os in
  10165. mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
  10166. *) lt_sed_strip_eq='s|=/|/|g' ;;
  10167. esac
  10168. lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
  10169. case $lt_search_path_spec in
  10170. *\;*)
  10171. # if the path contains ";" then we assume it to be the separator
  10172. # otherwise default to the standard path separator (i.e. ":") - it is
  10173. # assumed that no part of a normal pathname contains ";" but that should
  10174. # okay in the real world where ";" in dirpaths is itself problematic.
  10175. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
  10176. ;;
  10177. *)
  10178. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
  10179. ;;
  10180. esac
  10181. # Ok, now we have the path, separated by spaces, we can step through it
  10182. # and add multilib dir if necessary...
  10183. lt_tmp_lt_search_path_spec=
  10184. lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  10185. # ...but if some path component already ends with the multilib dir we assume
  10186. # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
  10187. case "$lt_multi_os_dir; $lt_search_path_spec " in
  10188. "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
  10189. lt_multi_os_dir=
  10190. ;;
  10191. esac
  10192. for lt_sys_path in $lt_search_path_spec; do
  10193. if test -d "$lt_sys_path$lt_multi_os_dir"; then
  10194. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
  10195. elif test -n "$lt_multi_os_dir"; then
  10196. test -d "$lt_sys_path" && \
  10197. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  10198. fi
  10199. done
  10200. lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
  10201. BEGIN {RS = " "; FS = "/|\n";} {
  10202. lt_foo = "";
  10203. lt_count = 0;
  10204. for (lt_i = NF; lt_i > 0; lt_i--) {
  10205. if ($lt_i != "" && $lt_i != ".") {
  10206. if ($lt_i == "..") {
  10207. lt_count++;
  10208. } else {
  10209. if (lt_count == 0) {
  10210. lt_foo = "/" $lt_i lt_foo;
  10211. } else {
  10212. lt_count--;
  10213. }
  10214. }
  10215. }
  10216. }
  10217. if (lt_foo != "") { lt_freq[lt_foo]++; }
  10218. if (lt_freq[lt_foo] == 1) { print lt_foo; }
  10219. }'`
  10220. # AWK program above erroneously prepends '/' to C:/dos/paths
  10221. # for these hosts.
  10222. case $host_os in
  10223. mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
  10224. $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
  10225. esac
  10226. sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
  10227. else
  10228. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  10229. fi
  10230. library_names_spec=
  10231. libname_spec='lib$name'
  10232. soname_spec=
  10233. shrext_cmds=.so
  10234. postinstall_cmds=
  10235. postuninstall_cmds=
  10236. finish_cmds=
  10237. finish_eval=
  10238. shlibpath_var=
  10239. shlibpath_overrides_runpath=unknown
  10240. version_type=none
  10241. dynamic_linker="$host_os ld.so"
  10242. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  10243. need_lib_prefix=unknown
  10244. hardcode_into_libs=no
  10245. # when you set need_version to no, make sure it does not cause -set_version
  10246. # flags to be left without arguments
  10247. need_version=unknown
  10248. case $host_os in
  10249. aix3*)
  10250. version_type=linux # correct to gnu/linux during the next big refactor
  10251. library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
  10252. shlibpath_var=LIBPATH
  10253. # AIX 3 has no versioning support, so we append a major version to the name.
  10254. soname_spec='$libname$release$shared_ext$major'
  10255. ;;
  10256. aix[4-9]*)
  10257. version_type=linux # correct to gnu/linux during the next big refactor
  10258. need_lib_prefix=no
  10259. need_version=no
  10260. hardcode_into_libs=yes
  10261. if test ia64 = "$host_cpu"; then
  10262. # AIX 5 supports IA64
  10263. library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
  10264. shlibpath_var=LD_LIBRARY_PATH
  10265. else
  10266. # With GCC up to 2.95.x, collect2 would create an import file
  10267. # for dependence libraries. The import file would start with
  10268. # the line '#! .'. This would cause the generated library to
  10269. # depend on '.', always an invalid library. This was fixed in
  10270. # development snapshots of GCC prior to 3.0.
  10271. case $host_os in
  10272. aix4 | aix4.[01] | aix4.[01].*)
  10273. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  10274. echo ' yes '
  10275. echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
  10276. :
  10277. else
  10278. can_build_shared=no
  10279. fi
  10280. ;;
  10281. esac
  10282. # Using Import Files as archive members, it is possible to support
  10283. # filename-based versioning of shared library archives on AIX. While
  10284. # this would work for both with and without runtime linking, it will
  10285. # prevent static linking of such archives. So we do filename-based
  10286. # shared library versioning with .so extension only, which is used
  10287. # when both runtime linking and shared linking is enabled.
  10288. # Unfortunately, runtime linking may impact performance, so we do
  10289. # not want this to be the default eventually. Also, we use the
  10290. # versioned .so libs for executables only if there is the -brtl
  10291. # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
  10292. # To allow for filename-based versioning support, we need to create
  10293. # libNAME.so.V as an archive file, containing:
  10294. # *) an Import File, referring to the versioned filename of the
  10295. # archive as well as the shared archive member, telling the
  10296. # bitwidth (32 or 64) of that shared object, and providing the
  10297. # list of exported symbols of that shared object, eventually
  10298. # decorated with the 'weak' keyword
  10299. # *) the shared object with the F_LOADONLY flag set, to really avoid
  10300. # it being seen by the linker.
  10301. # At run time we better use the real file rather than another symlink,
  10302. # but for link time we create the symlink libNAME.so -> libNAME.so.V
  10303. case $with_aix_soname,$aix_use_runtimelinking in
  10304. # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
  10305. # soname into executable. Probably we can add versioning support to
  10306. # collect2, so additional links can be useful in future.
  10307. aix,yes) # traditional libtool
  10308. dynamic_linker='AIX unversionable lib.so'
  10309. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  10310. # instead of lib<name>.a to let people know that these are not
  10311. # typical AIX shared libraries.
  10312. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10313. ;;
  10314. aix,no) # traditional AIX only
  10315. dynamic_linker='AIX lib.a(lib.so.V)'
  10316. # We preserve .a as extension for shared libraries through AIX4.2
  10317. # and later when we are not doing run time linking.
  10318. library_names_spec='$libname$release.a $libname.a'
  10319. soname_spec='$libname$release$shared_ext$major'
  10320. ;;
  10321. svr4,*) # full svr4 only
  10322. dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
  10323. library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
  10324. # We do not specify a path in Import Files, so LIBPATH fires.
  10325. shlibpath_overrides_runpath=yes
  10326. ;;
  10327. *,yes) # both, prefer svr4
  10328. dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
  10329. library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
  10330. # unpreferred sharedlib libNAME.a needs extra handling
  10331. postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
  10332. postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
  10333. # We do not specify a path in Import Files, so LIBPATH fires.
  10334. shlibpath_overrides_runpath=yes
  10335. ;;
  10336. *,no) # both, prefer aix
  10337. dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
  10338. library_names_spec='$libname$release.a $libname.a'
  10339. soname_spec='$libname$release$shared_ext$major'
  10340. # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
  10341. postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
  10342. postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
  10343. ;;
  10344. esac
  10345. shlibpath_var=LIBPATH
  10346. fi
  10347. ;;
  10348. amigaos*)
  10349. case $host_cpu in
  10350. powerpc)
  10351. # Since July 2007 AmigaOS4 officially supports .so libraries.
  10352. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  10353. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10354. ;;
  10355. m68k)
  10356. library_names_spec='$libname.ixlibrary $libname.a'
  10357. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  10358. finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $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'
  10359. ;;
  10360. esac
  10361. ;;
  10362. beos*)
  10363. library_names_spec='$libname$shared_ext'
  10364. dynamic_linker="$host_os ld.so"
  10365. shlibpath_var=LIBRARY_PATH
  10366. ;;
  10367. bsdi[45]*)
  10368. version_type=linux # correct to gnu/linux during the next big refactor
  10369. need_version=no
  10370. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10371. soname_spec='$libname$release$shared_ext$major'
  10372. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  10373. shlibpath_var=LD_LIBRARY_PATH
  10374. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  10375. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  10376. # the default ld.so.conf also contains /usr/contrib/lib and
  10377. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  10378. # libtool to hard-code these into programs
  10379. ;;
  10380. cygwin* | mingw* | pw32* | cegcc*)
  10381. version_type=windows
  10382. shrext_cmds=.dll
  10383. need_version=no
  10384. need_lib_prefix=no
  10385. case $GCC,$cc_basename in
  10386. yes,*)
  10387. # gcc
  10388. library_names_spec='$libname.dll.a'
  10389. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  10390. postinstall_cmds='base_file=`basename \$file`~
  10391. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
  10392. dldir=$destdir/`dirname \$dlpath`~
  10393. test -d \$dldir || mkdir -p \$dldir~
  10394. $install_prog $dir/$dlname \$dldir/$dlname~
  10395. chmod a+x \$dldir/$dlname~
  10396. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  10397. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  10398. fi'
  10399. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  10400. dlpath=$dir/\$dldll~
  10401. $RM \$dlpath'
  10402. shlibpath_overrides_runpath=yes
  10403. case $host_os in
  10404. cygwin*)
  10405. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  10406. soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  10407. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
  10408. ;;
  10409. mingw* | cegcc*)
  10410. # MinGW DLLs use traditional 'lib' prefix
  10411. soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  10412. ;;
  10413. pw32*)
  10414. # pw32 DLLs use 'pw' prefix rather than 'lib'
  10415. library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  10416. ;;
  10417. esac
  10418. dynamic_linker='Win32 ld.exe'
  10419. ;;
  10420. *,cl* | *,icl*)
  10421. # Native MSVC or ICC
  10422. libname_spec='$name'
  10423. soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  10424. library_names_spec='$libname.dll.lib'
  10425. case $build_os in
  10426. mingw*)
  10427. sys_lib_search_path_spec=
  10428. lt_save_ifs=$IFS
  10429. IFS=';'
  10430. for lt_path in $LIB
  10431. do
  10432. IFS=$lt_save_ifs
  10433. # Let DOS variable expansion print the short 8.3 style file name.
  10434. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
  10435. sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
  10436. done
  10437. IFS=$lt_save_ifs
  10438. # Convert to MSYS style.
  10439. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
  10440. ;;
  10441. cygwin*)
  10442. # Convert to unix form, then to dos form, then back to unix form
  10443. # but this time dos style (no spaces!) so that the unix form looks
  10444. # like /cygdrive/c/PROGRA~1:/cygdr...
  10445. sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
  10446. sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
  10447. sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  10448. ;;
  10449. *)
  10450. sys_lib_search_path_spec=$LIB
  10451. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  10452. # It is most probably a Windows format PATH.
  10453. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  10454. else
  10455. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  10456. fi
  10457. # FIXME: find the short name or the path components, as spaces are
  10458. # common. (e.g. "Program Files" -> "PROGRA~1")
  10459. ;;
  10460. esac
  10461. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  10462. postinstall_cmds='base_file=`basename \$file`~
  10463. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
  10464. dldir=$destdir/`dirname \$dlpath`~
  10465. test -d \$dldir || mkdir -p \$dldir~
  10466. $install_prog $dir/$dlname \$dldir/$dlname'
  10467. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  10468. dlpath=$dir/\$dldll~
  10469. $RM \$dlpath'
  10470. shlibpath_overrides_runpath=yes
  10471. dynamic_linker='Win32 link.exe'
  10472. ;;
  10473. *)
  10474. # Assume MSVC and ICC wrapper
  10475. library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
  10476. dynamic_linker='Win32 ld.exe'
  10477. ;;
  10478. esac
  10479. # FIXME: first we should search . and the directory the executable is in
  10480. shlibpath_var=PATH
  10481. ;;
  10482. darwin* | rhapsody*)
  10483. dynamic_linker="$host_os dyld"
  10484. version_type=darwin
  10485. need_lib_prefix=no
  10486. need_version=no
  10487. library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
  10488. soname_spec='$libname$release$major$shared_ext'
  10489. shlibpath_overrides_runpath=yes
  10490. shlibpath_var=DYLD_LIBRARY_PATH
  10491. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  10492. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
  10493. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  10494. ;;
  10495. dgux*)
  10496. version_type=linux # correct to gnu/linux during the next big refactor
  10497. need_lib_prefix=no
  10498. need_version=no
  10499. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10500. soname_spec='$libname$release$shared_ext$major'
  10501. shlibpath_var=LD_LIBRARY_PATH
  10502. ;;
  10503. freebsd* | dragonfly*)
  10504. # DragonFly does not have aout. When/if they implement a new
  10505. # versioning mechanism, adjust this.
  10506. if test -x /usr/bin/objformat; then
  10507. objformat=`/usr/bin/objformat`
  10508. else
  10509. case $host_os in
  10510. freebsd[23].*) objformat=aout ;;
  10511. *) objformat=elf ;;
  10512. esac
  10513. fi
  10514. version_type=freebsd-$objformat
  10515. case $version_type in
  10516. freebsd-elf*)
  10517. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10518. soname_spec='$libname$release$shared_ext$major'
  10519. need_version=no
  10520. need_lib_prefix=no
  10521. ;;
  10522. freebsd-*)
  10523. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  10524. need_version=yes
  10525. ;;
  10526. esac
  10527. shlibpath_var=LD_LIBRARY_PATH
  10528. case $host_os in
  10529. freebsd2.*)
  10530. shlibpath_overrides_runpath=yes
  10531. ;;
  10532. freebsd3.[01]* | freebsdelf3.[01]*)
  10533. shlibpath_overrides_runpath=yes
  10534. hardcode_into_libs=yes
  10535. ;;
  10536. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  10537. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  10538. shlibpath_overrides_runpath=no
  10539. hardcode_into_libs=yes
  10540. ;;
  10541. *) # from 4.6 on, and DragonFly
  10542. shlibpath_overrides_runpath=yes
  10543. hardcode_into_libs=yes
  10544. ;;
  10545. esac
  10546. ;;
  10547. haiku*)
  10548. version_type=linux # correct to gnu/linux during the next big refactor
  10549. need_lib_prefix=no
  10550. need_version=no
  10551. dynamic_linker="$host_os runtime_loader"
  10552. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10553. soname_spec='$libname$release$shared_ext$major'
  10554. shlibpath_var=LIBRARY_PATH
  10555. shlibpath_overrides_runpath=no
  10556. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  10557. hardcode_into_libs=yes
  10558. ;;
  10559. hpux9* | hpux10* | hpux11*)
  10560. # Give a soname corresponding to the major version so that dld.sl refuses to
  10561. # link against other versions.
  10562. version_type=sunos
  10563. need_lib_prefix=no
  10564. need_version=no
  10565. case $host_cpu in
  10566. ia64*)
  10567. shrext_cmds='.so'
  10568. hardcode_into_libs=yes
  10569. dynamic_linker="$host_os dld.so"
  10570. shlibpath_var=LD_LIBRARY_PATH
  10571. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  10572. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10573. soname_spec='$libname$release$shared_ext$major'
  10574. if test 32 = "$HPUX_IA64_MODE"; then
  10575. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  10576. sys_lib_dlsearch_path_spec=/usr/lib/hpux32
  10577. else
  10578. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  10579. sys_lib_dlsearch_path_spec=/usr/lib/hpux64
  10580. fi
  10581. ;;
  10582. hppa*64*)
  10583. shrext_cmds='.sl'
  10584. hardcode_into_libs=yes
  10585. dynamic_linker="$host_os dld.sl"
  10586. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  10587. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  10588. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10589. soname_spec='$libname$release$shared_ext$major'
  10590. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  10591. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  10592. ;;
  10593. *)
  10594. shrext_cmds='.sl'
  10595. dynamic_linker="$host_os dld.sl"
  10596. shlibpath_var=SHLIB_PATH
  10597. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  10598. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10599. soname_spec='$libname$release$shared_ext$major'
  10600. ;;
  10601. esac
  10602. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  10603. postinstall_cmds='chmod 555 $lib'
  10604. # or fails outright, so override atomically:
  10605. install_override_mode=555
  10606. ;;
  10607. interix[3-9]*)
  10608. version_type=linux # correct to gnu/linux during the next big refactor
  10609. need_lib_prefix=no
  10610. need_version=no
  10611. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10612. soname_spec='$libname$release$shared_ext$major'
  10613. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  10614. shlibpath_var=LD_LIBRARY_PATH
  10615. shlibpath_overrides_runpath=no
  10616. hardcode_into_libs=yes
  10617. ;;
  10618. irix5* | irix6* | nonstopux*)
  10619. case $host_os in
  10620. nonstopux*) version_type=nonstopux ;;
  10621. *)
  10622. if test yes = "$lt_cv_prog_gnu_ld"; then
  10623. version_type=linux # correct to gnu/linux during the next big refactor
  10624. else
  10625. version_type=irix
  10626. fi ;;
  10627. esac
  10628. need_lib_prefix=no
  10629. need_version=no
  10630. soname_spec='$libname$release$shared_ext$major'
  10631. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
  10632. case $host_os in
  10633. irix5* | nonstopux*)
  10634. libsuff= shlibsuff=
  10635. ;;
  10636. *)
  10637. case $LD in # libtool.m4 will add one of these switches to LD
  10638. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  10639. libsuff= shlibsuff= libmagic=32-bit;;
  10640. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  10641. libsuff=32 shlibsuff=N32 libmagic=N32;;
  10642. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  10643. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  10644. *) libsuff= shlibsuff= libmagic=never-match;;
  10645. esac
  10646. ;;
  10647. esac
  10648. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  10649. shlibpath_overrides_runpath=no
  10650. sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
  10651. sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
  10652. hardcode_into_libs=yes
  10653. ;;
  10654. # No shared lib support for Linux oldld, aout, or coff.
  10655. linux*oldld* | linux*aout* | linux*coff*)
  10656. dynamic_linker=no
  10657. ;;
  10658. linux*android*)
  10659. version_type=none # Android doesn't support versioned libraries.
  10660. need_lib_prefix=no
  10661. need_version=no
  10662. library_names_spec='$libname$release$shared_ext'
  10663. soname_spec='$libname$release$shared_ext'
  10664. finish_cmds=
  10665. shlibpath_var=LD_LIBRARY_PATH
  10666. shlibpath_overrides_runpath=yes
  10667. # This implies no fast_install, which is unacceptable.
  10668. # Some rework will be needed to allow for fast_install
  10669. # before this can be enabled.
  10670. hardcode_into_libs=yes
  10671. dynamic_linker='Android linker'
  10672. # Don't embed -rpath directories since the linker doesn't support them.
  10673. hardcode_libdir_flag_spec='-L$libdir'
  10674. ;;
  10675. # This must be glibc/ELF.
  10676. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  10677. version_type=linux # correct to gnu/linux during the next big refactor
  10678. need_lib_prefix=no
  10679. need_version=no
  10680. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10681. soname_spec='$libname$release$shared_ext$major'
  10682. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  10683. shlibpath_var=LD_LIBRARY_PATH
  10684. shlibpath_overrides_runpath=no
  10685. # Some binutils ld are patched to set DT_RUNPATH
  10686. if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
  10687. $as_echo_n "(cached) " >&6
  10688. else
  10689. lt_cv_shlibpath_overrides_runpath=no
  10690. save_LDFLAGS=$LDFLAGS
  10691. save_libdir=$libdir
  10692. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
  10693. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
  10694. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10695. /* end confdefs.h. */
  10696. int
  10697. main ()
  10698. {
  10699. ;
  10700. return 0;
  10701. }
  10702. _ACEOF
  10703. if ac_fn_c_try_link "$LINENO"; then :
  10704. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  10705. lt_cv_shlibpath_overrides_runpath=yes
  10706. fi
  10707. fi
  10708. rm -f core conftest.err conftest.$ac_objext \
  10709. conftest$ac_exeext conftest.$ac_ext
  10710. LDFLAGS=$save_LDFLAGS
  10711. libdir=$save_libdir
  10712. fi
  10713. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  10714. # This implies no fast_install, which is unacceptable.
  10715. # Some rework will be needed to allow for fast_install
  10716. # before this can be enabled.
  10717. hardcode_into_libs=yes
  10718. # Ideally, we could use ldconfig to report *all* directores which are
  10719. # searched for libraries, however this is still not possible. Aside from not
  10720. # being certain /sbin/ldconfig is available, command
  10721. # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
  10722. # even though it is searched at run-time. Try to do the best guess by
  10723. # appending ld.so.conf contents (and includes) to the search path.
  10724. if test -f /etc/ld.so.conf; then
  10725. 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' ' '`
  10726. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  10727. fi
  10728. # We used to test for /lib/ld.so.1 and disable shared libraries on
  10729. # powerpc, because MkLinux only supported shared libraries with the
  10730. # GNU dynamic linker. Since this was broken with cross compilers,
  10731. # most powerpc-linux boxes support dynamic linking these days and
  10732. # people can always --disable-shared, the test was removed, and we
  10733. # assume the GNU/Linux dynamic linker is in use.
  10734. dynamic_linker='GNU/Linux ld.so'
  10735. ;;
  10736. netbsd*)
  10737. version_type=sunos
  10738. need_lib_prefix=no
  10739. need_version=no
  10740. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  10741. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  10742. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  10743. dynamic_linker='NetBSD (a.out) ld.so'
  10744. else
  10745. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10746. soname_spec='$libname$release$shared_ext$major'
  10747. dynamic_linker='NetBSD ld.elf_so'
  10748. fi
  10749. shlibpath_var=LD_LIBRARY_PATH
  10750. shlibpath_overrides_runpath=yes
  10751. hardcode_into_libs=yes
  10752. ;;
  10753. newsos6)
  10754. version_type=linux # correct to gnu/linux during the next big refactor
  10755. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10756. shlibpath_var=LD_LIBRARY_PATH
  10757. shlibpath_overrides_runpath=yes
  10758. ;;
  10759. *nto* | *qnx*)
  10760. version_type=qnx
  10761. need_lib_prefix=no
  10762. need_version=no
  10763. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10764. soname_spec='$libname$release$shared_ext$major'
  10765. shlibpath_var=LD_LIBRARY_PATH
  10766. shlibpath_overrides_runpath=no
  10767. hardcode_into_libs=yes
  10768. dynamic_linker='ldqnx.so'
  10769. ;;
  10770. openbsd* | bitrig*)
  10771. version_type=sunos
  10772. sys_lib_dlsearch_path_spec=/usr/lib
  10773. need_lib_prefix=no
  10774. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
  10775. need_version=no
  10776. else
  10777. need_version=yes
  10778. fi
  10779. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  10780. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  10781. shlibpath_var=LD_LIBRARY_PATH
  10782. shlibpath_overrides_runpath=yes
  10783. ;;
  10784. os2*)
  10785. libname_spec='$name'
  10786. version_type=windows
  10787. shrext_cmds=.dll
  10788. need_version=no
  10789. need_lib_prefix=no
  10790. # OS/2 can only load a DLL with a base name of 8 characters or less.
  10791. soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
  10792. v=$($ECHO $release$versuffix | tr -d .-);
  10793. n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
  10794. $ECHO $n$v`$shared_ext'
  10795. library_names_spec='${libname}_dll.$libext'
  10796. dynamic_linker='OS/2 ld.exe'
  10797. shlibpath_var=BEGINLIBPATH
  10798. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  10799. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  10800. postinstall_cmds='base_file=`basename \$file`~
  10801. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
  10802. dldir=$destdir/`dirname \$dlpath`~
  10803. test -d \$dldir || mkdir -p \$dldir~
  10804. $install_prog $dir/$dlname \$dldir/$dlname~
  10805. chmod a+x \$dldir/$dlname~
  10806. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  10807. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  10808. fi'
  10809. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
  10810. dlpath=$dir/\$dldll~
  10811. $RM \$dlpath'
  10812. ;;
  10813. osf3* | osf4* | osf5*)
  10814. version_type=osf
  10815. need_lib_prefix=no
  10816. need_version=no
  10817. soname_spec='$libname$release$shared_ext$major'
  10818. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10819. shlibpath_var=LD_LIBRARY_PATH
  10820. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  10821. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  10822. ;;
  10823. rdos*)
  10824. dynamic_linker=no
  10825. ;;
  10826. solaris*)
  10827. version_type=linux # correct to gnu/linux during the next big refactor
  10828. need_lib_prefix=no
  10829. need_version=no
  10830. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10831. soname_spec='$libname$release$shared_ext$major'
  10832. shlibpath_var=LD_LIBRARY_PATH
  10833. shlibpath_overrides_runpath=yes
  10834. hardcode_into_libs=yes
  10835. # ldd complains unless libraries are executable
  10836. postinstall_cmds='chmod +x $lib'
  10837. ;;
  10838. sunos4*)
  10839. version_type=sunos
  10840. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  10841. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  10842. shlibpath_var=LD_LIBRARY_PATH
  10843. shlibpath_overrides_runpath=yes
  10844. if test yes = "$with_gnu_ld"; then
  10845. need_lib_prefix=no
  10846. fi
  10847. need_version=yes
  10848. ;;
  10849. sysv4 | sysv4.3*)
  10850. version_type=linux # correct to gnu/linux during the next big refactor
  10851. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10852. soname_spec='$libname$release$shared_ext$major'
  10853. shlibpath_var=LD_LIBRARY_PATH
  10854. case $host_vendor in
  10855. sni)
  10856. shlibpath_overrides_runpath=no
  10857. need_lib_prefix=no
  10858. runpath_var=LD_RUN_PATH
  10859. ;;
  10860. siemens)
  10861. need_lib_prefix=no
  10862. ;;
  10863. motorola)
  10864. need_lib_prefix=no
  10865. need_version=no
  10866. shlibpath_overrides_runpath=no
  10867. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  10868. ;;
  10869. esac
  10870. ;;
  10871. sysv4*MP*)
  10872. if test -d /usr/nec; then
  10873. version_type=linux # correct to gnu/linux during the next big refactor
  10874. library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
  10875. soname_spec='$libname$shared_ext.$major'
  10876. shlibpath_var=LD_LIBRARY_PATH
  10877. fi
  10878. ;;
  10879. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  10880. version_type=sco
  10881. need_lib_prefix=no
  10882. need_version=no
  10883. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
  10884. soname_spec='$libname$release$shared_ext$major'
  10885. shlibpath_var=LD_LIBRARY_PATH
  10886. shlibpath_overrides_runpath=yes
  10887. hardcode_into_libs=yes
  10888. if test yes = "$with_gnu_ld"; then
  10889. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  10890. else
  10891. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  10892. case $host_os in
  10893. sco3.2v5*)
  10894. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  10895. ;;
  10896. esac
  10897. fi
  10898. sys_lib_dlsearch_path_spec='/usr/lib'
  10899. ;;
  10900. tpf*)
  10901. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  10902. version_type=linux # correct to gnu/linux during the next big refactor
  10903. need_lib_prefix=no
  10904. need_version=no
  10905. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10906. shlibpath_var=LD_LIBRARY_PATH
  10907. shlibpath_overrides_runpath=no
  10908. hardcode_into_libs=yes
  10909. ;;
  10910. uts4*)
  10911. version_type=linux # correct to gnu/linux during the next big refactor
  10912. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10913. soname_spec='$libname$release$shared_ext$major'
  10914. shlibpath_var=LD_LIBRARY_PATH
  10915. ;;
  10916. *)
  10917. dynamic_linker=no
  10918. ;;
  10919. esac
  10920. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  10921. $as_echo "$dynamic_linker" >&6; }
  10922. test no = "$dynamic_linker" && can_build_shared=no
  10923. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  10924. if test yes = "$GCC"; then
  10925. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  10926. fi
  10927. if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
  10928. sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
  10929. fi
  10930. if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
  10931. sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
  10932. fi
  10933. # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
  10934. configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
  10935. # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
  10936. func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
  10937. # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
  10938. configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
  10939. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  10940. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  10941. hardcode_action=
  10942. if test -n "$hardcode_libdir_flag_spec" ||
  10943. test -n "$runpath_var" ||
  10944. test yes = "$hardcode_automatic"; then
  10945. # We can hardcode non-existent directories.
  10946. if test no != "$hardcode_direct" &&
  10947. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  10948. # have to relink, otherwise we might link with an installed library
  10949. # when we should be linking with a yet-to-be-installed one
  10950. ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
  10951. test no != "$hardcode_minus_L"; then
  10952. # Linking always hardcodes the temporary library directory.
  10953. hardcode_action=relink
  10954. else
  10955. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  10956. hardcode_action=immediate
  10957. fi
  10958. else
  10959. # We cannot hardcode anything, or else we can only hardcode existing
  10960. # directories.
  10961. hardcode_action=unsupported
  10962. fi
  10963. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
  10964. $as_echo "$hardcode_action" >&6; }
  10965. if test relink = "$hardcode_action" ||
  10966. test yes = "$inherit_rpath"; then
  10967. # Fast installation is not supported
  10968. enable_fast_install=no
  10969. elif test yes = "$shlibpath_overrides_runpath" ||
  10970. test no = "$enable_shared"; then
  10971. # Fast installation is not necessary
  10972. enable_fast_install=needless
  10973. fi
  10974. if test yes != "$enable_dlopen"; then
  10975. enable_dlopen=unknown
  10976. enable_dlopen_self=unknown
  10977. enable_dlopen_self_static=unknown
  10978. else
  10979. lt_cv_dlopen=no
  10980. lt_cv_dlopen_libs=
  10981. case $host_os in
  10982. beos*)
  10983. lt_cv_dlopen=load_add_on
  10984. lt_cv_dlopen_libs=
  10985. lt_cv_dlopen_self=yes
  10986. ;;
  10987. mingw* | pw32* | cegcc*)
  10988. lt_cv_dlopen=LoadLibrary
  10989. lt_cv_dlopen_libs=
  10990. ;;
  10991. cygwin*)
  10992. lt_cv_dlopen=dlopen
  10993. lt_cv_dlopen_libs=
  10994. ;;
  10995. darwin*)
  10996. # if libdl is installed we need to link against it
  10997. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  10998. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  10999. if ${ac_cv_lib_dl_dlopen+:} false; then :
  11000. $as_echo_n "(cached) " >&6
  11001. else
  11002. ac_check_lib_save_LIBS=$LIBS
  11003. LIBS="-ldl $LIBS"
  11004. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11005. /* end confdefs.h. */
  11006. /* Override any GCC internal prototype to avoid an error.
  11007. Use char because int might match the return type of a GCC
  11008. builtin and then its argument prototype would still apply. */
  11009. #ifdef __cplusplus
  11010. extern "C"
  11011. #endif
  11012. char dlopen ();
  11013. int
  11014. main ()
  11015. {
  11016. return dlopen ();
  11017. ;
  11018. return 0;
  11019. }
  11020. _ACEOF
  11021. if ac_fn_c_try_link "$LINENO"; then :
  11022. ac_cv_lib_dl_dlopen=yes
  11023. else
  11024. ac_cv_lib_dl_dlopen=no
  11025. fi
  11026. rm -f core conftest.err conftest.$ac_objext \
  11027. conftest$ac_exeext conftest.$ac_ext
  11028. LIBS=$ac_check_lib_save_LIBS
  11029. fi
  11030. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  11031. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  11032. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  11033. lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
  11034. else
  11035. lt_cv_dlopen=dyld
  11036. lt_cv_dlopen_libs=
  11037. lt_cv_dlopen_self=yes
  11038. fi
  11039. ;;
  11040. tpf*)
  11041. # Don't try to run any link tests for TPF. We know it's impossible
  11042. # because TPF is a cross-compiler, and we know how we open DSOs.
  11043. lt_cv_dlopen=dlopen
  11044. lt_cv_dlopen_libs=
  11045. lt_cv_dlopen_self=no
  11046. ;;
  11047. *)
  11048. ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
  11049. if test "x$ac_cv_func_shl_load" = xyes; then :
  11050. lt_cv_dlopen=shl_load
  11051. else
  11052. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
  11053. $as_echo_n "checking for shl_load in -ldld... " >&6; }
  11054. if ${ac_cv_lib_dld_shl_load+:} false; then :
  11055. $as_echo_n "(cached) " >&6
  11056. else
  11057. ac_check_lib_save_LIBS=$LIBS
  11058. LIBS="-ldld $LIBS"
  11059. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11060. /* end confdefs.h. */
  11061. /* Override any GCC internal prototype to avoid an error.
  11062. Use char because int might match the return type of a GCC
  11063. builtin and then its argument prototype would still apply. */
  11064. #ifdef __cplusplus
  11065. extern "C"
  11066. #endif
  11067. char shl_load ();
  11068. int
  11069. main ()
  11070. {
  11071. return shl_load ();
  11072. ;
  11073. return 0;
  11074. }
  11075. _ACEOF
  11076. if ac_fn_c_try_link "$LINENO"; then :
  11077. ac_cv_lib_dld_shl_load=yes
  11078. else
  11079. ac_cv_lib_dld_shl_load=no
  11080. fi
  11081. rm -f core conftest.err conftest.$ac_objext \
  11082. conftest$ac_exeext conftest.$ac_ext
  11083. LIBS=$ac_check_lib_save_LIBS
  11084. fi
  11085. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
  11086. $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
  11087. if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
  11088. lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
  11089. else
  11090. ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
  11091. if test "x$ac_cv_func_dlopen" = xyes; then :
  11092. lt_cv_dlopen=dlopen
  11093. else
  11094. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  11095. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  11096. if ${ac_cv_lib_dl_dlopen+:} false; then :
  11097. $as_echo_n "(cached) " >&6
  11098. else
  11099. ac_check_lib_save_LIBS=$LIBS
  11100. LIBS="-ldl $LIBS"
  11101. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11102. /* end confdefs.h. */
  11103. /* Override any GCC internal prototype to avoid an error.
  11104. Use char because int might match the return type of a GCC
  11105. builtin and then its argument prototype would still apply. */
  11106. #ifdef __cplusplus
  11107. extern "C"
  11108. #endif
  11109. char dlopen ();
  11110. int
  11111. main ()
  11112. {
  11113. return dlopen ();
  11114. ;
  11115. return 0;
  11116. }
  11117. _ACEOF
  11118. if ac_fn_c_try_link "$LINENO"; then :
  11119. ac_cv_lib_dl_dlopen=yes
  11120. else
  11121. ac_cv_lib_dl_dlopen=no
  11122. fi
  11123. rm -f core conftest.err conftest.$ac_objext \
  11124. conftest$ac_exeext conftest.$ac_ext
  11125. LIBS=$ac_check_lib_save_LIBS
  11126. fi
  11127. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  11128. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  11129. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  11130. lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
  11131. else
  11132. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
  11133. $as_echo_n "checking for dlopen in -lsvld... " >&6; }
  11134. if ${ac_cv_lib_svld_dlopen+:} false; then :
  11135. $as_echo_n "(cached) " >&6
  11136. else
  11137. ac_check_lib_save_LIBS=$LIBS
  11138. LIBS="-lsvld $LIBS"
  11139. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11140. /* end confdefs.h. */
  11141. /* Override any GCC internal prototype to avoid an error.
  11142. Use char because int might match the return type of a GCC
  11143. builtin and then its argument prototype would still apply. */
  11144. #ifdef __cplusplus
  11145. extern "C"
  11146. #endif
  11147. char dlopen ();
  11148. int
  11149. main ()
  11150. {
  11151. return dlopen ();
  11152. ;
  11153. return 0;
  11154. }
  11155. _ACEOF
  11156. if ac_fn_c_try_link "$LINENO"; then :
  11157. ac_cv_lib_svld_dlopen=yes
  11158. else
  11159. ac_cv_lib_svld_dlopen=no
  11160. fi
  11161. rm -f core conftest.err conftest.$ac_objext \
  11162. conftest$ac_exeext conftest.$ac_ext
  11163. LIBS=$ac_check_lib_save_LIBS
  11164. fi
  11165. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
  11166. $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
  11167. if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
  11168. lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
  11169. else
  11170. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
  11171. $as_echo_n "checking for dld_link in -ldld... " >&6; }
  11172. if ${ac_cv_lib_dld_dld_link+:} false; then :
  11173. $as_echo_n "(cached) " >&6
  11174. else
  11175. ac_check_lib_save_LIBS=$LIBS
  11176. LIBS="-ldld $LIBS"
  11177. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11178. /* end confdefs.h. */
  11179. /* Override any GCC internal prototype to avoid an error.
  11180. Use char because int might match the return type of a GCC
  11181. builtin and then its argument prototype would still apply. */
  11182. #ifdef __cplusplus
  11183. extern "C"
  11184. #endif
  11185. char dld_link ();
  11186. int
  11187. main ()
  11188. {
  11189. return dld_link ();
  11190. ;
  11191. return 0;
  11192. }
  11193. _ACEOF
  11194. if ac_fn_c_try_link "$LINENO"; then :
  11195. ac_cv_lib_dld_dld_link=yes
  11196. else
  11197. ac_cv_lib_dld_dld_link=no
  11198. fi
  11199. rm -f core conftest.err conftest.$ac_objext \
  11200. conftest$ac_exeext conftest.$ac_ext
  11201. LIBS=$ac_check_lib_save_LIBS
  11202. fi
  11203. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
  11204. $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
  11205. if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
  11206. lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
  11207. fi
  11208. fi
  11209. fi
  11210. fi
  11211. fi
  11212. fi
  11213. ;;
  11214. esac
  11215. if test no = "$lt_cv_dlopen"; then
  11216. enable_dlopen=no
  11217. else
  11218. enable_dlopen=yes
  11219. fi
  11220. case $lt_cv_dlopen in
  11221. dlopen)
  11222. save_CPPFLAGS=$CPPFLAGS
  11223. test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  11224. save_LDFLAGS=$LDFLAGS
  11225. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  11226. save_LIBS=$LIBS
  11227. LIBS="$lt_cv_dlopen_libs $LIBS"
  11228. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
  11229. $as_echo_n "checking whether a program can dlopen itself... " >&6; }
  11230. if ${lt_cv_dlopen_self+:} false; then :
  11231. $as_echo_n "(cached) " >&6
  11232. else
  11233. if test yes = "$cross_compiling"; then :
  11234. lt_cv_dlopen_self=cross
  11235. else
  11236. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  11237. lt_status=$lt_dlunknown
  11238. cat > conftest.$ac_ext <<_LT_EOF
  11239. #line $LINENO "configure"
  11240. #include "confdefs.h"
  11241. #if HAVE_DLFCN_H
  11242. #include <dlfcn.h>
  11243. #endif
  11244. #include <stdio.h>
  11245. #ifdef RTLD_GLOBAL
  11246. # define LT_DLGLOBAL RTLD_GLOBAL
  11247. #else
  11248. # ifdef DL_GLOBAL
  11249. # define LT_DLGLOBAL DL_GLOBAL
  11250. # else
  11251. # define LT_DLGLOBAL 0
  11252. # endif
  11253. #endif
  11254. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  11255. find out it does not work in some platform. */
  11256. #ifndef LT_DLLAZY_OR_NOW
  11257. # ifdef RTLD_LAZY
  11258. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  11259. # else
  11260. # ifdef DL_LAZY
  11261. # define LT_DLLAZY_OR_NOW DL_LAZY
  11262. # else
  11263. # ifdef RTLD_NOW
  11264. # define LT_DLLAZY_OR_NOW RTLD_NOW
  11265. # else
  11266. # ifdef DL_NOW
  11267. # define LT_DLLAZY_OR_NOW DL_NOW
  11268. # else
  11269. # define LT_DLLAZY_OR_NOW 0
  11270. # endif
  11271. # endif
  11272. # endif
  11273. # endif
  11274. #endif
  11275. /* When -fvisibility=hidden is used, assume the code has been annotated
  11276. correspondingly for the symbols needed. */
  11277. #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  11278. int fnord () __attribute__((visibility("default")));
  11279. #endif
  11280. int fnord () { return 42; }
  11281. int main ()
  11282. {
  11283. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  11284. int status = $lt_dlunknown;
  11285. if (self)
  11286. {
  11287. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  11288. else
  11289. {
  11290. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  11291. else puts (dlerror ());
  11292. }
  11293. /* dlclose (self); */
  11294. }
  11295. else
  11296. puts (dlerror ());
  11297. return status;
  11298. }
  11299. _LT_EOF
  11300. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  11301. (eval $ac_link) 2>&5
  11302. ac_status=$?
  11303. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11304. test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
  11305. (./conftest; exit; ) >&5 2>/dev/null
  11306. lt_status=$?
  11307. case x$lt_status in
  11308. x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  11309. x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  11310. x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
  11311. esac
  11312. else :
  11313. # compilation failed
  11314. lt_cv_dlopen_self=no
  11315. fi
  11316. fi
  11317. rm -fr conftest*
  11318. fi
  11319. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
  11320. $as_echo "$lt_cv_dlopen_self" >&6; }
  11321. if test yes = "$lt_cv_dlopen_self"; then
  11322. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  11323. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
  11324. $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
  11325. if ${lt_cv_dlopen_self_static+:} false; then :
  11326. $as_echo_n "(cached) " >&6
  11327. else
  11328. if test yes = "$cross_compiling"; then :
  11329. lt_cv_dlopen_self_static=cross
  11330. else
  11331. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  11332. lt_status=$lt_dlunknown
  11333. cat > conftest.$ac_ext <<_LT_EOF
  11334. #line $LINENO "configure"
  11335. #include "confdefs.h"
  11336. #if HAVE_DLFCN_H
  11337. #include <dlfcn.h>
  11338. #endif
  11339. #include <stdio.h>
  11340. #ifdef RTLD_GLOBAL
  11341. # define LT_DLGLOBAL RTLD_GLOBAL
  11342. #else
  11343. # ifdef DL_GLOBAL
  11344. # define LT_DLGLOBAL DL_GLOBAL
  11345. # else
  11346. # define LT_DLGLOBAL 0
  11347. # endif
  11348. #endif
  11349. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  11350. find out it does not work in some platform. */
  11351. #ifndef LT_DLLAZY_OR_NOW
  11352. # ifdef RTLD_LAZY
  11353. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  11354. # else
  11355. # ifdef DL_LAZY
  11356. # define LT_DLLAZY_OR_NOW DL_LAZY
  11357. # else
  11358. # ifdef RTLD_NOW
  11359. # define LT_DLLAZY_OR_NOW RTLD_NOW
  11360. # else
  11361. # ifdef DL_NOW
  11362. # define LT_DLLAZY_OR_NOW DL_NOW
  11363. # else
  11364. # define LT_DLLAZY_OR_NOW 0
  11365. # endif
  11366. # endif
  11367. # endif
  11368. # endif
  11369. #endif
  11370. /* When -fvisibility=hidden is used, assume the code has been annotated
  11371. correspondingly for the symbols needed. */
  11372. #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  11373. int fnord () __attribute__((visibility("default")));
  11374. #endif
  11375. int fnord () { return 42; }
  11376. int main ()
  11377. {
  11378. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  11379. int status = $lt_dlunknown;
  11380. if (self)
  11381. {
  11382. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  11383. else
  11384. {
  11385. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  11386. else puts (dlerror ());
  11387. }
  11388. /* dlclose (self); */
  11389. }
  11390. else
  11391. puts (dlerror ());
  11392. return status;
  11393. }
  11394. _LT_EOF
  11395. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  11396. (eval $ac_link) 2>&5
  11397. ac_status=$?
  11398. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11399. test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
  11400. (./conftest; exit; ) >&5 2>/dev/null
  11401. lt_status=$?
  11402. case x$lt_status in
  11403. x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  11404. x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  11405. x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
  11406. esac
  11407. else :
  11408. # compilation failed
  11409. lt_cv_dlopen_self_static=no
  11410. fi
  11411. fi
  11412. rm -fr conftest*
  11413. fi
  11414. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
  11415. $as_echo "$lt_cv_dlopen_self_static" >&6; }
  11416. fi
  11417. CPPFLAGS=$save_CPPFLAGS
  11418. LDFLAGS=$save_LDFLAGS
  11419. LIBS=$save_LIBS
  11420. ;;
  11421. esac
  11422. case $lt_cv_dlopen_self in
  11423. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  11424. *) enable_dlopen_self=unknown ;;
  11425. esac
  11426. case $lt_cv_dlopen_self_static in
  11427. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  11428. *) enable_dlopen_self_static=unknown ;;
  11429. esac
  11430. fi
  11431. striplib=
  11432. old_striplib=
  11433. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
  11434. $as_echo_n "checking whether stripping libraries is possible... " >&6; }
  11435. if test -z "$STRIP"; then
  11436. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11437. $as_echo "no" >&6; }
  11438. else
  11439. if $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  11440. old_striplib="$STRIP --strip-debug"
  11441. striplib="$STRIP --strip-unneeded"
  11442. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  11443. $as_echo "yes" >&6; }
  11444. else
  11445. case $host_os in
  11446. darwin*)
  11447. # FIXME - insert some real tests, host_os isn't really good enough
  11448. striplib="$STRIP -x"
  11449. old_striplib="$STRIP -S"
  11450. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  11451. $as_echo "yes" >&6; }
  11452. ;;
  11453. freebsd*)
  11454. if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then
  11455. old_striplib="$STRIP --strip-debug"
  11456. striplib="$STRIP --strip-unneeded"
  11457. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  11458. $as_echo "yes" >&6; }
  11459. else
  11460. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11461. $as_echo "no" >&6; }
  11462. fi
  11463. ;;
  11464. *)
  11465. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11466. $as_echo "no" >&6; }
  11467. ;;
  11468. esac
  11469. fi
  11470. fi
  11471. # Report what library types will actually be built
  11472. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
  11473. $as_echo_n "checking if libtool supports shared libraries... " >&6; }
  11474. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
  11475. $as_echo "$can_build_shared" >&6; }
  11476. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
  11477. $as_echo_n "checking whether to build shared libraries... " >&6; }
  11478. test no = "$can_build_shared" && enable_shared=no
  11479. # On AIX, shared libraries and static libraries use the same namespace, and
  11480. # are all built from PIC.
  11481. case $host_os in
  11482. aix3*)
  11483. test yes = "$enable_shared" && enable_static=no
  11484. if test -n "$RANLIB"; then
  11485. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  11486. postinstall_cmds='$RANLIB $lib'
  11487. fi
  11488. ;;
  11489. aix[4-9]*)
  11490. if test ia64 != "$host_cpu"; then
  11491. case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
  11492. yes,aix,yes) ;; # shared object as lib.so file only
  11493. yes,svr4,*) ;; # shared object as lib.so archive member only
  11494. yes,*) enable_static=no ;; # shared object in lib.a archive as well
  11495. esac
  11496. fi
  11497. ;;
  11498. esac
  11499. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
  11500. $as_echo "$enable_shared" >&6; }
  11501. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
  11502. $as_echo_n "checking whether to build static libraries... " >&6; }
  11503. # Make sure either enable_shared or enable_static is yes.
  11504. test yes = "$enable_shared" || enable_static=yes
  11505. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
  11506. $as_echo "$enable_static" >&6; }
  11507. fi
  11508. ac_ext=c
  11509. ac_cpp='$CPP $CPPFLAGS'
  11510. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  11511. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  11512. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  11513. CC=$lt_save_CC
  11514. ac_config_commands="$ac_config_commands libtool"
  11515. # Only expand once:
  11516. for ac_header in \
  11517. arpa/inet.h \
  11518. byteswap.h \
  11519. errno.h \
  11520. fcntl.h \
  11521. limits.h \
  11522. linux/serial.h \
  11523. netdb.h \
  11524. netinet/in.h \
  11525. netinet/tcp.h \
  11526. sys/ioctl.h \
  11527. sys/params.h \
  11528. sys/socket.h \
  11529. sys/time.h \
  11530. sys/types.h \
  11531. termios.h \
  11532. time.h \
  11533. unistd.h \
  11534. do :
  11535. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  11536. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  11537. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  11538. cat >>confdefs.h <<_ACEOF
  11539. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  11540. _ACEOF
  11541. fi
  11542. done
  11543. # Check whether to build docs / install man pages
  11544. {
  11545. # Allow user to disable doc build
  11546. # Check whether --with-documentation was given.
  11547. if test "${with_documentation+set}" = set; then :
  11548. withval=$with_documentation;
  11549. fi
  11550. if test "x$with_documentation" = "xno"; then
  11551. ac_libmodbus_build_doc="no"
  11552. else
  11553. # Determine whether or not documentation should be built and installed.
  11554. ac_libmodbus_build_doc="yes"
  11555. # Check for asciidoc and xmlto and don't build the docs if these are not installed.
  11556. # Extract the first word of "asciidoc", so it can be a program name with args.
  11557. set dummy asciidoc; ac_word=$2
  11558. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11559. $as_echo_n "checking for $ac_word... " >&6; }
  11560. if ${ac_cv_prog_ac_libmodbus_have_asciidoc+:} false; then :
  11561. $as_echo_n "(cached) " >&6
  11562. else
  11563. if test -n "$ac_libmodbus_have_asciidoc"; then
  11564. ac_cv_prog_ac_libmodbus_have_asciidoc="$ac_libmodbus_have_asciidoc" # Let the user override the test.
  11565. else
  11566. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11567. for as_dir in $PATH
  11568. do
  11569. IFS=$as_save_IFS
  11570. test -z "$as_dir" && as_dir=.
  11571. for ac_exec_ext in '' $ac_executable_extensions; do
  11572. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  11573. ac_cv_prog_ac_libmodbus_have_asciidoc="yes"
  11574. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  11575. break 2
  11576. fi
  11577. done
  11578. done
  11579. IFS=$as_save_IFS
  11580. test -z "$ac_cv_prog_ac_libmodbus_have_asciidoc" && ac_cv_prog_ac_libmodbus_have_asciidoc="no"
  11581. fi
  11582. fi
  11583. ac_libmodbus_have_asciidoc=$ac_cv_prog_ac_libmodbus_have_asciidoc
  11584. if test -n "$ac_libmodbus_have_asciidoc"; then
  11585. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_libmodbus_have_asciidoc" >&5
  11586. $as_echo "$ac_libmodbus_have_asciidoc" >&6; }
  11587. else
  11588. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11589. $as_echo "no" >&6; }
  11590. fi
  11591. # Extract the first word of "xmlto", so it can be a program name with args.
  11592. set dummy xmlto; ac_word=$2
  11593. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11594. $as_echo_n "checking for $ac_word... " >&6; }
  11595. if ${ac_cv_prog_ac_libmodbus_have_xmlto+:} false; then :
  11596. $as_echo_n "(cached) " >&6
  11597. else
  11598. if test -n "$ac_libmodbus_have_xmlto"; then
  11599. ac_cv_prog_ac_libmodbus_have_xmlto="$ac_libmodbus_have_xmlto" # Let the user override the test.
  11600. else
  11601. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11602. for as_dir in $PATH
  11603. do
  11604. IFS=$as_save_IFS
  11605. test -z "$as_dir" && as_dir=.
  11606. for ac_exec_ext in '' $ac_executable_extensions; do
  11607. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  11608. ac_cv_prog_ac_libmodbus_have_xmlto="yes"
  11609. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  11610. break 2
  11611. fi
  11612. done
  11613. done
  11614. IFS=$as_save_IFS
  11615. test -z "$ac_cv_prog_ac_libmodbus_have_xmlto" && ac_cv_prog_ac_libmodbus_have_xmlto="no"
  11616. fi
  11617. fi
  11618. ac_libmodbus_have_xmlto=$ac_cv_prog_ac_libmodbus_have_xmlto
  11619. if test -n "$ac_libmodbus_have_xmlto"; then
  11620. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_libmodbus_have_xmlto" >&5
  11621. $as_echo "$ac_libmodbus_have_xmlto" >&6; }
  11622. else
  11623. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11624. $as_echo "no" >&6; }
  11625. fi
  11626. if test "x$ac_libmodbus_have_asciidoc" = "xno" -o "x$ac_libmodbus_have_xmlto" = "xno"; then
  11627. ac_libmodbus_build_doc="no"
  11628. fi
  11629. fi
  11630. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build documentation" >&5
  11631. $as_echo_n "checking whether to build documentation... " >&6; }
  11632. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_libmodbus_build_doc" >&5
  11633. $as_echo "$ac_libmodbus_build_doc" >&6; }
  11634. if test "x$ac_libmodbus_build_doc" = "xno"; then
  11635. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The tools to build the documentation aren't installed" >&5
  11636. $as_echo "$as_me: WARNING: The tools to build the documentation aren't installed" >&2;}
  11637. fi
  11638. if test "x$ac_libmodbus_build_doc" = "xyes"; then
  11639. BUILD_DOC_TRUE=
  11640. BUILD_DOC_FALSE='#'
  11641. else
  11642. BUILD_DOC_TRUE='#'
  11643. BUILD_DOC_FALSE=
  11644. fi
  11645. }
  11646. # Cygwin defines IPTOS_LOWDELAY but can't handle that flag so it's necessary to
  11647. # workaround that problem and Cygwin doesn't define MSG_DONTWAIT.
  11648. ac_fn_c_check_decl "$LINENO" "__CYGWIN__" "ac_cv_have_decl___CYGWIN__" "$ac_includes_default"
  11649. if test "x$ac_cv_have_decl___CYGWIN__" = xyes; then :
  11650. ac_have_decl=1
  11651. else
  11652. ac_have_decl=0
  11653. fi
  11654. cat >>confdefs.h <<_ACEOF
  11655. #define HAVE_DECL___CYGWIN__ $ac_have_decl
  11656. _ACEOF
  11657. # Checks for library functions.
  11658. for ac_func in accept4 getaddrinfo gettimeofday inet_ntoa select socket strerror strlcpy
  11659. do :
  11660. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  11661. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  11662. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  11663. cat >>confdefs.h <<_ACEOF
  11664. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  11665. _ACEOF
  11666. fi
  11667. done
  11668. # Required for MinGW with GCC v4.8.1 on Win7
  11669. $as_echo "#define WINVER 0x0501" >>confdefs.h
  11670. # Required for bswap
  11671. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
  11672. $as_echo_n "checking for inline... " >&6; }
  11673. if ${ac_cv_c_inline+:} false; then :
  11674. $as_echo_n "(cached) " >&6
  11675. else
  11676. ac_cv_c_inline=no
  11677. for ac_kw in inline __inline__ __inline; do
  11678. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11679. /* end confdefs.h. */
  11680. #ifndef __cplusplus
  11681. typedef int foo_t;
  11682. static $ac_kw foo_t static_foo () {return 0; }
  11683. $ac_kw foo_t foo () {return 0; }
  11684. #endif
  11685. _ACEOF
  11686. if ac_fn_c_try_compile "$LINENO"; then :
  11687. ac_cv_c_inline=$ac_kw
  11688. fi
  11689. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11690. test "$ac_cv_c_inline" != no && break
  11691. done
  11692. fi
  11693. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
  11694. $as_echo "$ac_cv_c_inline" >&6; }
  11695. case $ac_cv_c_inline in
  11696. inline | yes) ;;
  11697. *)
  11698. case $ac_cv_c_inline in
  11699. no) ac_val=;;
  11700. *) ac_val=$ac_cv_c_inline;;
  11701. esac
  11702. cat >>confdefs.h <<_ACEOF
  11703. #ifndef __cplusplus
  11704. #define inline $ac_val
  11705. #endif
  11706. _ACEOF
  11707. ;;
  11708. esac
  11709. # libtool
  11710. ac_ext=cpp
  11711. ac_cpp='$CXXCPP $CPPFLAGS'
  11712. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  11713. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  11714. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  11715. if test -z "$CXX"; then
  11716. if test -n "$CCC"; then
  11717. CXX=$CCC
  11718. else
  11719. if test -n "$ac_tool_prefix"; then
  11720. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  11721. do
  11722. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  11723. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  11724. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11725. $as_echo_n "checking for $ac_word... " >&6; }
  11726. if ${ac_cv_prog_CXX+:} false; then :
  11727. $as_echo_n "(cached) " >&6
  11728. else
  11729. if test -n "$CXX"; then
  11730. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  11731. else
  11732. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11733. for as_dir in $PATH
  11734. do
  11735. IFS=$as_save_IFS
  11736. test -z "$as_dir" && as_dir=.
  11737. for ac_exec_ext in '' $ac_executable_extensions; do
  11738. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  11739. ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  11740. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  11741. break 2
  11742. fi
  11743. done
  11744. done
  11745. IFS=$as_save_IFS
  11746. fi
  11747. fi
  11748. CXX=$ac_cv_prog_CXX
  11749. if test -n "$CXX"; then
  11750. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
  11751. $as_echo "$CXX" >&6; }
  11752. else
  11753. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11754. $as_echo "no" >&6; }
  11755. fi
  11756. test -n "$CXX" && break
  11757. done
  11758. fi
  11759. if test -z "$CXX"; then
  11760. ac_ct_CXX=$CXX
  11761. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  11762. do
  11763. # Extract the first word of "$ac_prog", so it can be a program name with args.
  11764. set dummy $ac_prog; ac_word=$2
  11765. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11766. $as_echo_n "checking for $ac_word... " >&6; }
  11767. if ${ac_cv_prog_ac_ct_CXX+:} false; then :
  11768. $as_echo_n "(cached) " >&6
  11769. else
  11770. if test -n "$ac_ct_CXX"; then
  11771. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  11772. else
  11773. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11774. for as_dir in $PATH
  11775. do
  11776. IFS=$as_save_IFS
  11777. test -z "$as_dir" && as_dir=.
  11778. for ac_exec_ext in '' $ac_executable_extensions; do
  11779. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  11780. ac_cv_prog_ac_ct_CXX="$ac_prog"
  11781. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  11782. break 2
  11783. fi
  11784. done
  11785. done
  11786. IFS=$as_save_IFS
  11787. fi
  11788. fi
  11789. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  11790. if test -n "$ac_ct_CXX"; then
  11791. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
  11792. $as_echo "$ac_ct_CXX" >&6; }
  11793. else
  11794. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11795. $as_echo "no" >&6; }
  11796. fi
  11797. test -n "$ac_ct_CXX" && break
  11798. done
  11799. if test "x$ac_ct_CXX" = x; then
  11800. CXX="g++"
  11801. else
  11802. case $cross_compiling:$ac_tool_warned in
  11803. yes:)
  11804. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  11805. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  11806. ac_tool_warned=yes ;;
  11807. esac
  11808. CXX=$ac_ct_CXX
  11809. fi
  11810. fi
  11811. fi
  11812. fi
  11813. # Provide some information about the compiler.
  11814. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
  11815. set X $ac_compile
  11816. ac_compiler=$2
  11817. for ac_option in --version -v -V -qversion; do
  11818. { { ac_try="$ac_compiler $ac_option >&5"
  11819. case "(($ac_try" in
  11820. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11821. *) ac_try_echo=$ac_try;;
  11822. esac
  11823. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  11824. $as_echo "$ac_try_echo"; } >&5
  11825. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  11826. ac_status=$?
  11827. if test -s conftest.err; then
  11828. sed '10a\
  11829. ... rest of stderr output deleted ...
  11830. 10q' conftest.err >conftest.er1
  11831. cat conftest.er1 >&5
  11832. fi
  11833. rm -f conftest.er1 conftest.err
  11834. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11835. test $ac_status = 0; }
  11836. done
  11837. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
  11838. $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
  11839. if ${ac_cv_cxx_compiler_gnu+:} false; then :
  11840. $as_echo_n "(cached) " >&6
  11841. else
  11842. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11843. /* end confdefs.h. */
  11844. int
  11845. main ()
  11846. {
  11847. #ifndef __GNUC__
  11848. choke me
  11849. #endif
  11850. ;
  11851. return 0;
  11852. }
  11853. _ACEOF
  11854. if ac_fn_cxx_try_compile "$LINENO"; then :
  11855. ac_compiler_gnu=yes
  11856. else
  11857. ac_compiler_gnu=no
  11858. fi
  11859. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11860. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  11861. fi
  11862. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
  11863. $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
  11864. if test $ac_compiler_gnu = yes; then
  11865. GXX=yes
  11866. else
  11867. GXX=
  11868. fi
  11869. ac_test_CXXFLAGS=${CXXFLAGS+set}
  11870. ac_save_CXXFLAGS=$CXXFLAGS
  11871. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
  11872. $as_echo_n "checking whether $CXX accepts -g... " >&6; }
  11873. if ${ac_cv_prog_cxx_g+:} false; then :
  11874. $as_echo_n "(cached) " >&6
  11875. else
  11876. ac_save_cxx_werror_flag=$ac_cxx_werror_flag
  11877. ac_cxx_werror_flag=yes
  11878. ac_cv_prog_cxx_g=no
  11879. CXXFLAGS="-g"
  11880. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11881. /* end confdefs.h. */
  11882. int
  11883. main ()
  11884. {
  11885. ;
  11886. return 0;
  11887. }
  11888. _ACEOF
  11889. if ac_fn_cxx_try_compile "$LINENO"; then :
  11890. ac_cv_prog_cxx_g=yes
  11891. else
  11892. CXXFLAGS=""
  11893. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11894. /* end confdefs.h. */
  11895. int
  11896. main ()
  11897. {
  11898. ;
  11899. return 0;
  11900. }
  11901. _ACEOF
  11902. if ac_fn_cxx_try_compile "$LINENO"; then :
  11903. else
  11904. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  11905. CXXFLAGS="-g"
  11906. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11907. /* end confdefs.h. */
  11908. int
  11909. main ()
  11910. {
  11911. ;
  11912. return 0;
  11913. }
  11914. _ACEOF
  11915. if ac_fn_cxx_try_compile "$LINENO"; then :
  11916. ac_cv_prog_cxx_g=yes
  11917. fi
  11918. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11919. fi
  11920. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11921. fi
  11922. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11923. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  11924. fi
  11925. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
  11926. $as_echo "$ac_cv_prog_cxx_g" >&6; }
  11927. if test "$ac_test_CXXFLAGS" = set; then
  11928. CXXFLAGS=$ac_save_CXXFLAGS
  11929. elif test $ac_cv_prog_cxx_g = yes; then
  11930. if test "$GXX" = yes; then
  11931. CXXFLAGS="-g -O2"
  11932. else
  11933. CXXFLAGS="-g"
  11934. fi
  11935. else
  11936. if test "$GXX" = yes; then
  11937. CXXFLAGS="-O2"
  11938. else
  11939. CXXFLAGS=
  11940. fi
  11941. fi
  11942. ac_ext=c
  11943. ac_cpp='$CPP $CPPFLAGS'
  11944. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  11945. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  11946. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  11947. depcc="$CXX" am_compiler_list=
  11948. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  11949. $as_echo_n "checking dependency style of $depcc... " >&6; }
  11950. if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
  11951. $as_echo_n "(cached) " >&6
  11952. else
  11953. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  11954. # We make a subdir and do the tests there. Otherwise we can end up
  11955. # making bogus files that we don't know about and never remove. For
  11956. # instance it was reported that on HP-UX the gcc test will end up
  11957. # making a dummy file named 'D' -- because '-MD' means "put the output
  11958. # in D".
  11959. rm -rf conftest.dir
  11960. mkdir conftest.dir
  11961. # Copy depcomp to subdir because otherwise we won't find it if we're
  11962. # using a relative directory.
  11963. cp "$am_depcomp" conftest.dir
  11964. cd conftest.dir
  11965. # We will build objects and dependencies in a subdirectory because
  11966. # it helps to detect inapplicable dependency modes. For instance
  11967. # both Tru64's cc and ICC support -MD to output dependencies as a
  11968. # side effect of compilation, but ICC will put the dependencies in
  11969. # the current directory while Tru64 will put them in the object
  11970. # directory.
  11971. mkdir sub
  11972. am_cv_CXX_dependencies_compiler_type=none
  11973. if test "$am_compiler_list" = ""; then
  11974. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  11975. fi
  11976. am__universal=false
  11977. case " $depcc " in #(
  11978. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  11979. esac
  11980. for depmode in $am_compiler_list; do
  11981. # Setup a source with many dependencies, because some compilers
  11982. # like to wrap large dependency lists on column 80 (with \), and
  11983. # we should not choose a depcomp mode which is confused by this.
  11984. #
  11985. # We need to recreate these files for each test, as the compiler may
  11986. # overwrite some of them when testing with obscure command lines.
  11987. # This happens at least with the AIX C compiler.
  11988. : > sub/conftest.c
  11989. for i in 1 2 3 4 5 6; do
  11990. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  11991. # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
  11992. # Solaris 10 /bin/sh.
  11993. echo '/* dummy */' > sub/conftst$i.h
  11994. done
  11995. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  11996. # We check with '-c' and '-o' for the sake of the "dashmstdout"
  11997. # mode. It turns out that the SunPro C++ compiler does not properly
  11998. # handle '-M -o', and we need to detect this. Also, some Intel
  11999. # versions had trouble with output in subdirs.
  12000. am__obj=sub/conftest.${OBJEXT-o}
  12001. am__minus_obj="-o $am__obj"
  12002. case $depmode in
  12003. gcc)
  12004. # This depmode causes a compiler race in universal mode.
  12005. test "$am__universal" = false || continue
  12006. ;;
  12007. nosideeffect)
  12008. # After this tag, mechanisms are not by side-effect, so they'll
  12009. # only be used when explicitly requested.
  12010. if test "x$enable_dependency_tracking" = xyes; then
  12011. continue
  12012. else
  12013. break
  12014. fi
  12015. ;;
  12016. msvc7 | msvc7msys | msvisualcpp | msvcmsys)
  12017. # This compiler won't grok '-c -o', but also, the minuso test has
  12018. # not run yet. These depmodes are late enough in the game, and
  12019. # so weak that their functioning should not be impacted.
  12020. am__obj=conftest.${OBJEXT-o}
  12021. am__minus_obj=
  12022. ;;
  12023. none) break ;;
  12024. esac
  12025. if depmode=$depmode \
  12026. source=sub/conftest.c object=$am__obj \
  12027. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  12028. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  12029. >/dev/null 2>conftest.err &&
  12030. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  12031. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  12032. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  12033. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  12034. # icc doesn't choke on unknown options, it will just issue warnings
  12035. # or remarks (even with -Werror). So we grep stderr for any message
  12036. # that says an option was ignored or not supported.
  12037. # When given -MP, icc 7.0 and 7.1 complain thusly:
  12038. # icc: Command line warning: ignoring option '-M'; no argument required
  12039. # The diagnosis changed in icc 8.0:
  12040. # icc: Command line remark: option '-MP' not supported
  12041. if (grep 'ignoring option' conftest.err ||
  12042. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  12043. am_cv_CXX_dependencies_compiler_type=$depmode
  12044. break
  12045. fi
  12046. fi
  12047. done
  12048. cd ..
  12049. rm -rf conftest.dir
  12050. else
  12051. am_cv_CXX_dependencies_compiler_type=none
  12052. fi
  12053. fi
  12054. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
  12055. $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
  12056. CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
  12057. if
  12058. test "x$enable_dependency_tracking" != xno \
  12059. && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
  12060. am__fastdepCXX_TRUE=
  12061. am__fastdepCXX_FALSE='#'
  12062. else
  12063. am__fastdepCXX_TRUE='#'
  12064. am__fastdepCXX_FALSE=
  12065. fi
  12066. func_stripname_cnf ()
  12067. {
  12068. case $2 in
  12069. .*) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%\\\\$2\$%%"`;;
  12070. *) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%$2\$%%"`;;
  12071. esac
  12072. } # func_stripname_cnf
  12073. if test -n "$CXX" && ( test no != "$CXX" &&
  12074. ( (test g++ = "$CXX" && `g++ -v >/dev/null 2>&1` ) ||
  12075. (test g++ != "$CXX"))); then
  12076. ac_ext=cpp
  12077. ac_cpp='$CXXCPP $CPPFLAGS'
  12078. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  12079. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12080. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  12081. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
  12082. $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
  12083. if test -z "$CXXCPP"; then
  12084. if ${ac_cv_prog_CXXCPP+:} false; then :
  12085. $as_echo_n "(cached) " >&6
  12086. else
  12087. # Double quotes because CXXCPP needs to be expanded
  12088. for CXXCPP in "$CXX -E" "/lib/cpp"
  12089. do
  12090. ac_preproc_ok=false
  12091. for ac_cxx_preproc_warn_flag in '' yes
  12092. do
  12093. # Use a header file that comes with gcc, so configuring glibc
  12094. # with a fresh cross-compiler works.
  12095. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  12096. # <limits.h> exists even on freestanding compilers.
  12097. # On the NeXT, cc -E runs the code through the compiler's parser,
  12098. # not just through cpp. "Syntax error" is here to catch this case.
  12099. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12100. /* end confdefs.h. */
  12101. #ifdef __STDC__
  12102. # include <limits.h>
  12103. #else
  12104. # include <assert.h>
  12105. #endif
  12106. Syntax error
  12107. _ACEOF
  12108. if ac_fn_cxx_try_cpp "$LINENO"; then :
  12109. else
  12110. # Broken: fails on valid input.
  12111. continue
  12112. fi
  12113. rm -f conftest.err conftest.i conftest.$ac_ext
  12114. # OK, works on sane cases. Now check whether nonexistent headers
  12115. # can be detected and how.
  12116. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12117. /* end confdefs.h. */
  12118. #include <ac_nonexistent.h>
  12119. _ACEOF
  12120. if ac_fn_cxx_try_cpp "$LINENO"; then :
  12121. # Broken: success on invalid input.
  12122. continue
  12123. else
  12124. # Passes both tests.
  12125. ac_preproc_ok=:
  12126. break
  12127. fi
  12128. rm -f conftest.err conftest.i conftest.$ac_ext
  12129. done
  12130. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  12131. rm -f conftest.i conftest.err conftest.$ac_ext
  12132. if $ac_preproc_ok; then :
  12133. break
  12134. fi
  12135. done
  12136. ac_cv_prog_CXXCPP=$CXXCPP
  12137. fi
  12138. CXXCPP=$ac_cv_prog_CXXCPP
  12139. else
  12140. ac_cv_prog_CXXCPP=$CXXCPP
  12141. fi
  12142. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
  12143. $as_echo "$CXXCPP" >&6; }
  12144. ac_preproc_ok=false
  12145. for ac_cxx_preproc_warn_flag in '' yes
  12146. do
  12147. # Use a header file that comes with gcc, so configuring glibc
  12148. # with a fresh cross-compiler works.
  12149. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  12150. # <limits.h> exists even on freestanding compilers.
  12151. # On the NeXT, cc -E runs the code through the compiler's parser,
  12152. # not just through cpp. "Syntax error" is here to catch this case.
  12153. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12154. /* end confdefs.h. */
  12155. #ifdef __STDC__
  12156. # include <limits.h>
  12157. #else
  12158. # include <assert.h>
  12159. #endif
  12160. Syntax error
  12161. _ACEOF
  12162. if ac_fn_cxx_try_cpp "$LINENO"; then :
  12163. else
  12164. # Broken: fails on valid input.
  12165. continue
  12166. fi
  12167. rm -f conftest.err conftest.i conftest.$ac_ext
  12168. # OK, works on sane cases. Now check whether nonexistent headers
  12169. # can be detected and how.
  12170. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12171. /* end confdefs.h. */
  12172. #include <ac_nonexistent.h>
  12173. _ACEOF
  12174. if ac_fn_cxx_try_cpp "$LINENO"; then :
  12175. # Broken: success on invalid input.
  12176. continue
  12177. else
  12178. # Passes both tests.
  12179. ac_preproc_ok=:
  12180. break
  12181. fi
  12182. rm -f conftest.err conftest.i conftest.$ac_ext
  12183. done
  12184. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  12185. rm -f conftest.i conftest.err conftest.$ac_ext
  12186. if $ac_preproc_ok; then :
  12187. else
  12188. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  12189. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  12190. as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
  12191. See \`config.log' for more details" "$LINENO" 5; }
  12192. fi
  12193. ac_ext=c
  12194. ac_cpp='$CPP $CPPFLAGS'
  12195. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  12196. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12197. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  12198. else
  12199. _lt_caught_CXX_error=yes
  12200. fi
  12201. ac_ext=cpp
  12202. ac_cpp='$CXXCPP $CPPFLAGS'
  12203. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  12204. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12205. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  12206. archive_cmds_need_lc_CXX=no
  12207. allow_undefined_flag_CXX=
  12208. always_export_symbols_CXX=no
  12209. archive_expsym_cmds_CXX=
  12210. compiler_needs_object_CXX=no
  12211. export_dynamic_flag_spec_CXX=
  12212. hardcode_direct_CXX=no
  12213. hardcode_direct_absolute_CXX=no
  12214. hardcode_libdir_flag_spec_CXX=
  12215. hardcode_libdir_separator_CXX=
  12216. hardcode_minus_L_CXX=no
  12217. hardcode_shlibpath_var_CXX=unsupported
  12218. hardcode_automatic_CXX=no
  12219. inherit_rpath_CXX=no
  12220. module_cmds_CXX=
  12221. module_expsym_cmds_CXX=
  12222. link_all_deplibs_CXX=unknown
  12223. old_archive_cmds_CXX=$old_archive_cmds
  12224. reload_flag_CXX=$reload_flag
  12225. reload_cmds_CXX=$reload_cmds
  12226. no_undefined_flag_CXX=
  12227. whole_archive_flag_spec_CXX=
  12228. enable_shared_with_static_runtimes_CXX=no
  12229. # Source file extension for C++ test sources.
  12230. ac_ext=cpp
  12231. # Object file extension for compiled C++ test sources.
  12232. objext=o
  12233. objext_CXX=$objext
  12234. # No sense in running all these tests if we already determined that
  12235. # the CXX compiler isn't working. Some variables (like enable_shared)
  12236. # are currently assumed to apply to all compilers on this platform,
  12237. # and will be corrupted by setting them based on a non-working compiler.
  12238. if test yes != "$_lt_caught_CXX_error"; then
  12239. # Code to be used in simple compile tests
  12240. lt_simple_compile_test_code="int some_variable = 0;"
  12241. # Code to be used in simple link tests
  12242. lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
  12243. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  12244. # If no C compiler was specified, use CC.
  12245. LTCC=${LTCC-"$CC"}
  12246. # If no C compiler flags were specified, use CFLAGS.
  12247. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  12248. # Allow CC to be a program name with arguments.
  12249. compiler=$CC
  12250. # save warnings/boilerplate of simple test code
  12251. ac_outfile=conftest.$ac_objext
  12252. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  12253. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  12254. _lt_compiler_boilerplate=`cat conftest.err`
  12255. $RM conftest*
  12256. ac_outfile=conftest.$ac_objext
  12257. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  12258. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  12259. _lt_linker_boilerplate=`cat conftest.err`
  12260. $RM -r conftest*
  12261. # Allow CC to be a program name with arguments.
  12262. lt_save_CC=$CC
  12263. lt_save_CFLAGS=$CFLAGS
  12264. lt_save_LD=$LD
  12265. lt_save_GCC=$GCC
  12266. GCC=$GXX
  12267. lt_save_with_gnu_ld=$with_gnu_ld
  12268. lt_save_path_LD=$lt_cv_path_LD
  12269. if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
  12270. lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
  12271. else
  12272. $as_unset lt_cv_prog_gnu_ld
  12273. fi
  12274. if test -n "${lt_cv_path_LDCXX+set}"; then
  12275. lt_cv_path_LD=$lt_cv_path_LDCXX
  12276. else
  12277. $as_unset lt_cv_path_LD
  12278. fi
  12279. test -z "${LDCXX+set}" || LD=$LDCXX
  12280. CC=${CXX-"c++"}
  12281. CFLAGS=$CXXFLAGS
  12282. compiler=$CC
  12283. compiler_CXX=$CC
  12284. func_cc_basename $compiler
  12285. cc_basename=$func_cc_basename_result
  12286. if test -n "$compiler"; then
  12287. # We don't want -fno-exception when compiling C++ code, so set the
  12288. # no_builtin_flag separately
  12289. if test yes = "$GXX"; then
  12290. lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
  12291. else
  12292. lt_prog_compiler_no_builtin_flag_CXX=
  12293. fi
  12294. if test yes = "$GXX"; then
  12295. # Set up default GNU C++ configuration
  12296. # Check whether --with-gnu-ld was given.
  12297. if test "${with_gnu_ld+set}" = set; then :
  12298. withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
  12299. else
  12300. with_gnu_ld=no
  12301. fi
  12302. ac_prog=ld
  12303. if test yes = "$GCC"; then
  12304. # Check if gcc -print-prog-name=ld gives a path.
  12305. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  12306. $as_echo_n "checking for ld used by $CC... " >&6; }
  12307. case $host in
  12308. *-*-mingw*)
  12309. # gcc leaves a trailing carriage return, which upsets mingw
  12310. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  12311. *)
  12312. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  12313. esac
  12314. case $ac_prog in
  12315. # Accept absolute paths.
  12316. [\\/]* | ?:[\\/]*)
  12317. re_direlt='/[^/][^/]*/\.\./'
  12318. # Canonicalize the pathname of ld
  12319. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  12320. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  12321. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  12322. done
  12323. test -z "$LD" && LD=$ac_prog
  12324. ;;
  12325. "")
  12326. # If it fails, then pretend we aren't using GCC.
  12327. ac_prog=ld
  12328. ;;
  12329. *)
  12330. # If it is relative, then search for the first ld in PATH.
  12331. with_gnu_ld=unknown
  12332. ;;
  12333. esac
  12334. elif test yes = "$with_gnu_ld"; then
  12335. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  12336. $as_echo_n "checking for GNU ld... " >&6; }
  12337. else
  12338. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  12339. $as_echo_n "checking for non-GNU ld... " >&6; }
  12340. fi
  12341. if ${lt_cv_path_LD+:} false; then :
  12342. $as_echo_n "(cached) " >&6
  12343. else
  12344. if test -z "$LD"; then
  12345. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  12346. for ac_dir in $PATH; do
  12347. IFS=$lt_save_ifs
  12348. test -z "$ac_dir" && ac_dir=.
  12349. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  12350. lt_cv_path_LD=$ac_dir/$ac_prog
  12351. # Check to see if the program is GNU ld. I'd rather use --version,
  12352. # but apparently some variants of GNU ld only accept -v.
  12353. # Break only if it was the GNU/non-GNU ld that we prefer.
  12354. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  12355. *GNU* | *'with BFD'*)
  12356. test no != "$with_gnu_ld" && break
  12357. ;;
  12358. *)
  12359. test yes != "$with_gnu_ld" && break
  12360. ;;
  12361. esac
  12362. fi
  12363. done
  12364. IFS=$lt_save_ifs
  12365. else
  12366. lt_cv_path_LD=$LD # Let the user override the test with a path.
  12367. fi
  12368. fi
  12369. LD=$lt_cv_path_LD
  12370. if test -n "$LD"; then
  12371. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  12372. $as_echo "$LD" >&6; }
  12373. else
  12374. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12375. $as_echo "no" >&6; }
  12376. fi
  12377. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  12378. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  12379. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  12380. if ${lt_cv_prog_gnu_ld+:} false; then :
  12381. $as_echo_n "(cached) " >&6
  12382. else
  12383. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  12384. case `$LD -v 2>&1 </dev/null` in
  12385. *GNU* | *'with BFD'*)
  12386. lt_cv_prog_gnu_ld=yes
  12387. ;;
  12388. *)
  12389. lt_cv_prog_gnu_ld=no
  12390. ;;
  12391. esac
  12392. fi
  12393. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  12394. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  12395. with_gnu_ld=$lt_cv_prog_gnu_ld
  12396. # Check if GNU C++ uses GNU ld as the underlying linker, since the
  12397. # archiving commands below assume that GNU ld is being used.
  12398. if test yes = "$with_gnu_ld"; then
  12399. archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
  12400. archive_expsym_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  12401. hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
  12402. export_dynamic_flag_spec_CXX='$wl--export-dynamic'
  12403. # If archive_cmds runs LD, not CC, wlarc should be empty
  12404. # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
  12405. # investigate it a little bit more. (MM)
  12406. wlarc='$wl'
  12407. # ancient GNU ld didn't support --whole-archive et. al.
  12408. if eval "`$CC -print-prog-name=ld` --help 2>&1" |
  12409. $GREP 'no-whole-archive' > /dev/null; then
  12410. whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
  12411. else
  12412. whole_archive_flag_spec_CXX=
  12413. fi
  12414. else
  12415. with_gnu_ld=no
  12416. wlarc=
  12417. # A generic and very simple default shared library creation
  12418. # command for GNU C++ for the case where it uses the native
  12419. # linker, instead of GNU ld. If possible, this setting should
  12420. # overridden to take advantage of the native linker features on
  12421. # the platform it is being used on.
  12422. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  12423. fi
  12424. # Commands to make compiler produce verbose output that lists
  12425. # what "hidden" libraries, object files and flags are used when
  12426. # linking a shared library.
  12427. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  12428. else
  12429. GXX=no
  12430. with_gnu_ld=no
  12431. wlarc=
  12432. fi
  12433. # PORTME: fill in a description of your system's C++ link characteristics
  12434. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  12435. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  12436. ld_shlibs_CXX=yes
  12437. case $host_os in
  12438. aix3*)
  12439. # FIXME: insert proper C++ library support
  12440. ld_shlibs_CXX=no
  12441. ;;
  12442. aix[4-9]*)
  12443. if test ia64 = "$host_cpu"; then
  12444. # On IA64, the linker does run time linking by default, so we don't
  12445. # have to do anything special.
  12446. aix_use_runtimelinking=no
  12447. exp_sym_flag='-Bexport'
  12448. no_entry_flag=
  12449. else
  12450. aix_use_runtimelinking=no
  12451. # Test if we are trying to use run time linking or normal
  12452. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  12453. # have runtime linking enabled, and use it for executables.
  12454. # For shared libraries, we enable/disable runtime linking
  12455. # depending on the kind of the shared library created -
  12456. # when "with_aix_soname,aix_use_runtimelinking" is:
  12457. # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
  12458. # "aix,yes" lib.so shared, rtl:yes, for executables
  12459. # lib.a static archive
  12460. # "both,no" lib.so.V(shr.o) shared, rtl:yes
  12461. # lib.a(lib.so.V) shared, rtl:no, for executables
  12462. # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
  12463. # lib.a(lib.so.V) shared, rtl:no
  12464. # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
  12465. # lib.a static archive
  12466. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  12467. for ld_flag in $LDFLAGS; do
  12468. case $ld_flag in
  12469. *-brtl*)
  12470. aix_use_runtimelinking=yes
  12471. break
  12472. ;;
  12473. esac
  12474. done
  12475. if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
  12476. # With aix-soname=svr4, we create the lib.so.V shared archives only,
  12477. # so we don't have lib.a shared libs to link our executables.
  12478. # We have to force runtime linking in this case.
  12479. aix_use_runtimelinking=yes
  12480. LDFLAGS="$LDFLAGS -Wl,-brtl"
  12481. fi
  12482. ;;
  12483. esac
  12484. exp_sym_flag='-bexport'
  12485. no_entry_flag='-bnoentry'
  12486. fi
  12487. # When large executables or shared objects are built, AIX ld can
  12488. # have problems creating the table of contents. If linking a library
  12489. # or program results in "error TOC overflow" add -mminimal-toc to
  12490. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  12491. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  12492. archive_cmds_CXX=''
  12493. hardcode_direct_CXX=yes
  12494. hardcode_direct_absolute_CXX=yes
  12495. hardcode_libdir_separator_CXX=':'
  12496. link_all_deplibs_CXX=yes
  12497. file_list_spec_CXX='$wl-f,'
  12498. case $with_aix_soname,$aix_use_runtimelinking in
  12499. aix,*) ;; # no import file
  12500. svr4,* | *,yes) # use import file
  12501. # The Import File defines what to hardcode.
  12502. hardcode_direct_CXX=no
  12503. hardcode_direct_absolute_CXX=no
  12504. ;;
  12505. esac
  12506. if test yes = "$GXX"; then
  12507. case $host_os in aix4.[012]|aix4.[012].*)
  12508. # We only want to do this on AIX 4.2 and lower, the check
  12509. # below for broken collect2 doesn't work under 4.3+
  12510. collect2name=`$CC -print-prog-name=collect2`
  12511. if test -f "$collect2name" &&
  12512. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  12513. then
  12514. # We have reworked collect2
  12515. :
  12516. else
  12517. # We have old collect2
  12518. hardcode_direct_CXX=unsupported
  12519. # It fails to find uninstalled libraries when the uninstalled
  12520. # path is not listed in the libpath. Setting hardcode_minus_L
  12521. # to unsupported forces relinking
  12522. hardcode_minus_L_CXX=yes
  12523. hardcode_libdir_flag_spec_CXX='-L$libdir'
  12524. hardcode_libdir_separator_CXX=
  12525. fi
  12526. esac
  12527. shared_flag='-shared'
  12528. if test yes = "$aix_use_runtimelinking"; then
  12529. shared_flag=$shared_flag' $wl-G'
  12530. fi
  12531. # Need to ensure runtime linking is disabled for the traditional
  12532. # shared library, or the linker may eventually find shared libraries
  12533. # /with/ Import File - we do not want to mix them.
  12534. shared_flag_aix='-shared'
  12535. shared_flag_svr4='-shared $wl-G'
  12536. else
  12537. # not using gcc
  12538. if test ia64 = "$host_cpu"; then
  12539. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  12540. # chokes on -Wl,-G. The following line is correct:
  12541. shared_flag='-G'
  12542. else
  12543. if test yes = "$aix_use_runtimelinking"; then
  12544. shared_flag='$wl-G'
  12545. else
  12546. shared_flag='$wl-bM:SRE'
  12547. fi
  12548. shared_flag_aix='$wl-bM:SRE'
  12549. shared_flag_svr4='$wl-G'
  12550. fi
  12551. fi
  12552. export_dynamic_flag_spec_CXX='$wl-bexpall'
  12553. # It seems that -bexpall does not export symbols beginning with
  12554. # underscore (_), so it is better to generate a list of symbols to
  12555. # export.
  12556. always_export_symbols_CXX=yes
  12557. if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
  12558. # Warning - without using the other runtime loading flags (-brtl),
  12559. # -berok will link without error, but may produce a broken library.
  12560. # The "-G" linker flag allows undefined symbols.
  12561. no_undefined_flag_CXX='-bernotok'
  12562. # Determine the default libpath from the value encoded in an empty
  12563. # executable.
  12564. if test set = "${lt_cv_aix_libpath+set}"; then
  12565. aix_libpath=$lt_cv_aix_libpath
  12566. else
  12567. if ${lt_cv_aix_libpath__CXX+:} false; then :
  12568. $as_echo_n "(cached) " >&6
  12569. else
  12570. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12571. /* end confdefs.h. */
  12572. int
  12573. main ()
  12574. {
  12575. ;
  12576. return 0;
  12577. }
  12578. _ACEOF
  12579. if ac_fn_cxx_try_link "$LINENO"; then :
  12580. lt_aix_libpath_sed='
  12581. /Import File Strings/,/^$/ {
  12582. /^0/ {
  12583. s/^0 *\([^ ]*\) *$/\1/
  12584. p
  12585. }
  12586. }'
  12587. lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  12588. # Check for a 64-bit object if we didn't find anything.
  12589. if test -z "$lt_cv_aix_libpath__CXX"; then
  12590. lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  12591. fi
  12592. fi
  12593. rm -f core conftest.err conftest.$ac_objext \
  12594. conftest$ac_exeext conftest.$ac_ext
  12595. if test -z "$lt_cv_aix_libpath__CXX"; then
  12596. lt_cv_aix_libpath__CXX=/usr/lib:/lib
  12597. fi
  12598. fi
  12599. aix_libpath=$lt_cv_aix_libpath__CXX
  12600. fi
  12601. hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
  12602. archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
  12603. else
  12604. if test ia64 = "$host_cpu"; then
  12605. hardcode_libdir_flag_spec_CXX='$wl-R $libdir:/usr/lib:/lib'
  12606. allow_undefined_flag_CXX="-z nodefs"
  12607. archive_expsym_cmds_CXX="\$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"
  12608. else
  12609. # Determine the default libpath from the value encoded in an
  12610. # empty executable.
  12611. if test set = "${lt_cv_aix_libpath+set}"; then
  12612. aix_libpath=$lt_cv_aix_libpath
  12613. else
  12614. if ${lt_cv_aix_libpath__CXX+:} false; then :
  12615. $as_echo_n "(cached) " >&6
  12616. else
  12617. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12618. /* end confdefs.h. */
  12619. int
  12620. main ()
  12621. {
  12622. ;
  12623. return 0;
  12624. }
  12625. _ACEOF
  12626. if ac_fn_cxx_try_link "$LINENO"; then :
  12627. lt_aix_libpath_sed='
  12628. /Import File Strings/,/^$/ {
  12629. /^0/ {
  12630. s/^0 *\([^ ]*\) *$/\1/
  12631. p
  12632. }
  12633. }'
  12634. lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  12635. # Check for a 64-bit object if we didn't find anything.
  12636. if test -z "$lt_cv_aix_libpath__CXX"; then
  12637. lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  12638. fi
  12639. fi
  12640. rm -f core conftest.err conftest.$ac_objext \
  12641. conftest$ac_exeext conftest.$ac_ext
  12642. if test -z "$lt_cv_aix_libpath__CXX"; then
  12643. lt_cv_aix_libpath__CXX=/usr/lib:/lib
  12644. fi
  12645. fi
  12646. aix_libpath=$lt_cv_aix_libpath__CXX
  12647. fi
  12648. hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
  12649. # Warning - without using the other run time loading flags,
  12650. # -berok will link without error, but may produce a broken library.
  12651. no_undefined_flag_CXX=' $wl-bernotok'
  12652. allow_undefined_flag_CXX=' $wl-berok'
  12653. if test yes = "$with_gnu_ld"; then
  12654. # We only use this code for GNU lds that support --whole-archive.
  12655. whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
  12656. else
  12657. # Exported symbols can be pulled into shared objects from archives
  12658. whole_archive_flag_spec_CXX='$convenience'
  12659. fi
  12660. archive_cmds_need_lc_CXX=yes
  12661. archive_expsym_cmds_CXX='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
  12662. # -brtl affects multiple linker settings, -berok does not and is overridden later
  12663. compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
  12664. if test svr4 != "$with_aix_soname"; then
  12665. # This is similar to how AIX traditionally builds its shared
  12666. # libraries. Need -bnortl late, we may have -brtl in LDFLAGS.
  12667. archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
  12668. fi
  12669. if test aix != "$with_aix_soname"; then
  12670. archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
  12671. else
  12672. # used by -dlpreopen to get the symbols
  12673. archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
  12674. fi
  12675. archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$RM -r $output_objdir/$realname.d'
  12676. fi
  12677. fi
  12678. ;;
  12679. beos*)
  12680. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  12681. allow_undefined_flag_CXX=unsupported
  12682. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  12683. # support --undefined. This deserves some investigation. FIXME
  12684. archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  12685. else
  12686. ld_shlibs_CXX=no
  12687. fi
  12688. ;;
  12689. chorus*)
  12690. case $cc_basename in
  12691. *)
  12692. # FIXME: insert proper C++ library support
  12693. ld_shlibs_CXX=no
  12694. ;;
  12695. esac
  12696. ;;
  12697. cygwin* | mingw* | pw32* | cegcc*)
  12698. case $GXX,$cc_basename in
  12699. ,cl* | no,cl* | ,icl* | no,icl*)
  12700. # Native MSVC or ICC
  12701. # hardcode_libdir_flag_spec is actually meaningless, as there is
  12702. # no search path for DLLs.
  12703. hardcode_libdir_flag_spec_CXX=' '
  12704. allow_undefined_flag_CXX=unsupported
  12705. always_export_symbols_CXX=yes
  12706. file_list_spec_CXX='@'
  12707. # Tell ltmain to make .lib files, not .a files.
  12708. libext=lib
  12709. # Tell ltmain to make .dll files, not .so files.
  12710. shrext_cmds=.dll
  12711. # FIXME: Setting linknames here is a bad hack.
  12712. archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
  12713. archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
  12714. cp "$export_symbols" "$output_objdir/$soname.def";
  12715. echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
  12716. else
  12717. $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
  12718. fi~
  12719. $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  12720. linknames='
  12721. # The linker will not automatically build a static lib if we build a DLL.
  12722. # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
  12723. enable_shared_with_static_runtimes_CXX=yes
  12724. # Don't use ranlib
  12725. old_postinstall_cmds_CXX='chmod 644 $oldlib'
  12726. postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
  12727. lt_tool_outputfile="@TOOL_OUTPUT@"~
  12728. case $lt_outputfile in
  12729. *.exe|*.EXE) ;;
  12730. *)
  12731. lt_outputfile=$lt_outputfile.exe
  12732. lt_tool_outputfile=$lt_tool_outputfile.exe
  12733. ;;
  12734. esac~
  12735. func_to_tool_file "$lt_outputfile"~
  12736. if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
  12737. $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  12738. $RM "$lt_outputfile.manifest";
  12739. fi'
  12740. ;;
  12741. *)
  12742. # g++
  12743. # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
  12744. # as there is no search path for DLLs.
  12745. hardcode_libdir_flag_spec_CXX='-L$libdir'
  12746. export_dynamic_flag_spec_CXX='$wl--export-all-symbols'
  12747. allow_undefined_flag_CXX=unsupported
  12748. always_export_symbols_CXX=no
  12749. enable_shared_with_static_runtimes_CXX=yes
  12750. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  12751. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  12752. # If the export-symbols file already is a .def file, use it as
  12753. # is; otherwise, prepend EXPORTS...
  12754. archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
  12755. cp $export_symbols $output_objdir/$soname.def;
  12756. else
  12757. echo EXPORTS > $output_objdir/$soname.def;
  12758. cat $export_symbols >> $output_objdir/$soname.def;
  12759. fi~
  12760. $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  12761. else
  12762. ld_shlibs_CXX=no
  12763. fi
  12764. ;;
  12765. esac
  12766. ;;
  12767. darwin* | rhapsody*)
  12768. archive_cmds_need_lc_CXX=no
  12769. hardcode_direct_CXX=no
  12770. hardcode_automatic_CXX=yes
  12771. hardcode_shlibpath_var_CXX=unsupported
  12772. if test yes = "$lt_cv_ld_force_load"; then
  12773. whole_archive_flag_spec_CXX='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience $wl-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
  12774. else
  12775. whole_archive_flag_spec_CXX=''
  12776. fi
  12777. link_all_deplibs_CXX=yes
  12778. allow_undefined_flag_CXX=$_lt_dar_allow_undefined
  12779. case $cc_basename in
  12780. ifort*|nagfor*) _lt_dar_can_shared=yes ;;
  12781. *) _lt_dar_can_shared=$GCC ;;
  12782. esac
  12783. if test yes = "$_lt_dar_can_shared"; then
  12784. output_verbose_link_cmd=func_echo_all
  12785. archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
  12786. module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
  12787. archive_expsym_cmds_CXX="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"
  12788. module_expsym_cmds_CXX="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"
  12789. if test yes != "$lt_cv_apple_cc_single_mod"; then
  12790. archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \$lib-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$lib-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring$_lt_dsymutil"
  12791. archive_expsym_cmds_CXX="sed 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \$lib-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$lib-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring$_lt_dar_export_syms$_lt_dsymutil"
  12792. fi
  12793. else
  12794. ld_shlibs_CXX=no
  12795. fi
  12796. ;;
  12797. os2*)
  12798. hardcode_libdir_flag_spec_CXX='-L$libdir'
  12799. hardcode_minus_L_CXX=yes
  12800. allow_undefined_flag_CXX=unsupported
  12801. shrext_cmds=.dll
  12802. archive_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  12803. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  12804. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  12805. $ECHO EXPORTS >> $output_objdir/$libname.def~
  12806. emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
  12807. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  12808. emximp -o $lib $output_objdir/$libname.def'
  12809. archive_expsym_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  12810. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  12811. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  12812. $ECHO EXPORTS >> $output_objdir/$libname.def~
  12813. prefix_cmds="$SED"~
  12814. if test EXPORTS = "`$SED 1q $export_symbols`"; then
  12815. prefix_cmds="$prefix_cmds -e 1d";
  12816. fi~
  12817. prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
  12818. cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
  12819. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  12820. emximp -o $lib $output_objdir/$libname.def'
  12821. old_archive_From_new_cmds_CXX='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
  12822. enable_shared_with_static_runtimes_CXX=yes
  12823. file_list_spec_CXX='@'
  12824. ;;
  12825. dgux*)
  12826. case $cc_basename in
  12827. ec++*)
  12828. # FIXME: insert proper C++ library support
  12829. ld_shlibs_CXX=no
  12830. ;;
  12831. ghcx*)
  12832. # Green Hills C++ Compiler
  12833. # FIXME: insert proper C++ library support
  12834. ld_shlibs_CXX=no
  12835. ;;
  12836. *)
  12837. # FIXME: insert proper C++ library support
  12838. ld_shlibs_CXX=no
  12839. ;;
  12840. esac
  12841. ;;
  12842. freebsd2.*)
  12843. # C++ shared libraries reported to be fairly broken before
  12844. # switch to ELF
  12845. ld_shlibs_CXX=no
  12846. ;;
  12847. freebsd-elf*)
  12848. archive_cmds_need_lc_CXX=no
  12849. ;;
  12850. freebsd* | dragonfly*)
  12851. # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
  12852. # conventions
  12853. ld_shlibs_CXX=yes
  12854. ;;
  12855. haiku*)
  12856. archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  12857. link_all_deplibs_CXX=yes
  12858. ;;
  12859. hpux9*)
  12860. hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
  12861. hardcode_libdir_separator_CXX=:
  12862. export_dynamic_flag_spec_CXX='$wl-E'
  12863. hardcode_direct_CXX=yes
  12864. hardcode_minus_L_CXX=yes # Not in the search PATH,
  12865. # but as the default
  12866. # location of the library.
  12867. case $cc_basename in
  12868. CC*)
  12869. # FIXME: insert proper C++ library support
  12870. ld_shlibs_CXX=no
  12871. ;;
  12872. aCC*)
  12873. archive_cmds_CXX='$RM $output_objdir/$soname~$CC -b $wl+b $wl$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
  12874. # Commands to make compiler produce verbose output that lists
  12875. # what "hidden" libraries, object files and flags are used when
  12876. # linking a shared library.
  12877. #
  12878. # There doesn't appear to be a way to prevent this compiler from
  12879. # explicitly linking system object files so we need to strip them
  12880. # from the output so that they don't get included in the library
  12881. # dependencies.
  12882. output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
  12883. ;;
  12884. *)
  12885. if test yes = "$GXX"; then
  12886. archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
  12887. else
  12888. # FIXME: insert proper C++ library support
  12889. ld_shlibs_CXX=no
  12890. fi
  12891. ;;
  12892. esac
  12893. ;;
  12894. hpux10*|hpux11*)
  12895. if test no = "$with_gnu_ld"; then
  12896. hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
  12897. hardcode_libdir_separator_CXX=:
  12898. case $host_cpu in
  12899. hppa*64*|ia64*)
  12900. ;;
  12901. *)
  12902. export_dynamic_flag_spec_CXX='$wl-E'
  12903. ;;
  12904. esac
  12905. fi
  12906. case $host_cpu in
  12907. hppa*64*|ia64*)
  12908. hardcode_direct_CXX=no
  12909. hardcode_shlibpath_var_CXX=no
  12910. ;;
  12911. *)
  12912. hardcode_direct_CXX=yes
  12913. hardcode_direct_absolute_CXX=yes
  12914. hardcode_minus_L_CXX=yes # Not in the search PATH,
  12915. # but as the default
  12916. # location of the library.
  12917. ;;
  12918. esac
  12919. case $cc_basename in
  12920. CC*)
  12921. # FIXME: insert proper C++ library support
  12922. ld_shlibs_CXX=no
  12923. ;;
  12924. aCC*)
  12925. case $host_cpu in
  12926. hppa*64*)
  12927. archive_cmds_CXX='$CC -b $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  12928. ;;
  12929. ia64*)
  12930. archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  12931. ;;
  12932. *)
  12933. archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  12934. ;;
  12935. esac
  12936. # Commands to make compiler produce verbose output that lists
  12937. # what "hidden" libraries, object files and flags are used when
  12938. # linking a shared library.
  12939. #
  12940. # There doesn't appear to be a way to prevent this compiler from
  12941. # explicitly linking system object files so we need to strip them
  12942. # from the output so that they don't get included in the library
  12943. # dependencies.
  12944. output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
  12945. ;;
  12946. *)
  12947. if test yes = "$GXX"; then
  12948. if test no = "$with_gnu_ld"; then
  12949. case $host_cpu in
  12950. hppa*64*)
  12951. archive_cmds_CXX='$CC -shared -nostdlib -fPIC $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  12952. ;;
  12953. ia64*)
  12954. archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  12955. ;;
  12956. *)
  12957. archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  12958. ;;
  12959. esac
  12960. fi
  12961. else
  12962. # FIXME: insert proper C++ library support
  12963. ld_shlibs_CXX=no
  12964. fi
  12965. ;;
  12966. esac
  12967. ;;
  12968. interix[3-9]*)
  12969. hardcode_direct_CXX=no
  12970. hardcode_shlibpath_var_CXX=no
  12971. hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
  12972. export_dynamic_flag_spec_CXX='$wl-E'
  12973. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  12974. # Instead, shared libraries are loaded at an image base (0x10000000 by
  12975. # default) and relocated if they conflict, which is a slow very memory
  12976. # consuming and fragmenting process. To avoid this, we pick a random,
  12977. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  12978. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  12979. archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  12980. archive_expsym_cmds_CXX='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'
  12981. ;;
  12982. irix5* | irix6*)
  12983. case $cc_basename in
  12984. CC*)
  12985. # SGI C++
  12986. archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
  12987. # Archives containing C++ object files must be created using
  12988. # "CC -ar", where "CC" is the IRIX C++ compiler. This is
  12989. # necessary to make sure instantiated templates are included
  12990. # in the archive.
  12991. old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
  12992. ;;
  12993. *)
  12994. if test yes = "$GXX"; then
  12995. if test no = "$with_gnu_ld"; then
  12996. archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $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'
  12997. else
  12998. archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` -o $lib'
  12999. fi
  13000. fi
  13001. link_all_deplibs_CXX=yes
  13002. ;;
  13003. esac
  13004. hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
  13005. hardcode_libdir_separator_CXX=:
  13006. inherit_rpath_CXX=yes
  13007. ;;
  13008. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  13009. case $cc_basename in
  13010. KCC*)
  13011. # Kuck and Associates, Inc. (KAI) C++ Compiler
  13012. # KCC will only create a shared library if the output file
  13013. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  13014. # to its proper name (with version) after linking.
  13015. archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\$tempext\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
  13016. archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\$tempext\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib $wl-retain-symbols-file,$export_symbols; mv \$templib $lib'
  13017. # Commands to make compiler produce verbose output that lists
  13018. # what "hidden" libraries, object files and flags are used when
  13019. # linking a shared library.
  13020. #
  13021. # There doesn't appear to be a way to prevent this compiler from
  13022. # explicitly linking system object files so we need to strip them
  13023. # from the output so that they don't get included in the library
  13024. # dependencies.
  13025. output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
  13026. hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
  13027. export_dynamic_flag_spec_CXX='$wl--export-dynamic'
  13028. # Archives containing C++ object files must be created using
  13029. # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  13030. old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
  13031. ;;
  13032. icpc* | ecpc* )
  13033. # Intel C++
  13034. with_gnu_ld=yes
  13035. # version 8.0 and above of icpc choke on multiply defined symbols
  13036. # if we add $predep_objects and $postdep_objects, however 7.1 and
  13037. # earlier do not add the objects themselves.
  13038. case `$CC -V 2>&1` in
  13039. *"Version 7."*)
  13040. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
  13041. archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  13042. ;;
  13043. *) # Version 8.0 or newer
  13044. tmp_idyn=
  13045. case $host_cpu in
  13046. ia64*) tmp_idyn=' -i_dynamic';;
  13047. esac
  13048. archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  13049. archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  13050. ;;
  13051. esac
  13052. archive_cmds_need_lc_CXX=no
  13053. hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
  13054. export_dynamic_flag_spec_CXX='$wl--export-dynamic'
  13055. whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
  13056. ;;
  13057. pgCC* | pgcpp*)
  13058. # Portland Group C++ compiler
  13059. case `$CC -V` in
  13060. *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
  13061. prelink_cmds_CXX='tpldir=Template.dir~
  13062. rm -rf $tpldir~
  13063. $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
  13064. compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
  13065. old_archive_cmds_CXX='tpldir=Template.dir~
  13066. rm -rf $tpldir~
  13067. $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
  13068. $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
  13069. $RANLIB $oldlib'
  13070. archive_cmds_CXX='tpldir=Template.dir~
  13071. rm -rf $tpldir~
  13072. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  13073. $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
  13074. archive_expsym_cmds_CXX='tpldir=Template.dir~
  13075. rm -rf $tpldir~
  13076. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  13077. $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  13078. ;;
  13079. *) # Version 6 and above use weak symbols
  13080. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
  13081. archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  13082. ;;
  13083. esac
  13084. hardcode_libdir_flag_spec_CXX='$wl--rpath $wl$libdir'
  13085. export_dynamic_flag_spec_CXX='$wl--export-dynamic'
  13086. whole_archive_flag_spec_CXX='$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'
  13087. ;;
  13088. cxx*)
  13089. # Compaq C++
  13090. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
  13091. archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib $wl-retain-symbols-file $wl$export_symbols'
  13092. runpath_var=LD_RUN_PATH
  13093. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  13094. hardcode_libdir_separator_CXX=:
  13095. # Commands to make compiler produce verbose output that lists
  13096. # what "hidden" libraries, object files and flags are used when
  13097. # linking a shared library.
  13098. #
  13099. # There doesn't appear to be a way to prevent this compiler from
  13100. # explicitly linking system object files so we need to strip them
  13101. # from the output so that they don't get included in the library
  13102. # dependencies.
  13103. output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "X$list" | $Xsed'
  13104. ;;
  13105. xl* | mpixl* | bgxl*)
  13106. # IBM XL 8.0 on PPC, with GNU ld
  13107. hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
  13108. export_dynamic_flag_spec_CXX='$wl--export-dynamic'
  13109. archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  13110. if test yes = "$supports_anon_versioning"; then
  13111. archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
  13112. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  13113. echo "local: *; };" >> $output_objdir/$libname.ver~
  13114. $CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
  13115. fi
  13116. ;;
  13117. *)
  13118. case `$CC -V 2>&1 | sed 5q` in
  13119. *Sun\ C*)
  13120. # Sun C++ 5.9
  13121. no_undefined_flag_CXX=' -zdefs'
  13122. archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  13123. archive_expsym_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file $wl$export_symbols'
  13124. hardcode_libdir_flag_spec_CXX='-R$libdir'
  13125. whole_archive_flag_spec_CXX='$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'
  13126. compiler_needs_object_CXX=yes
  13127. # Not sure whether something based on
  13128. # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
  13129. # would be better.
  13130. output_verbose_link_cmd='func_echo_all'
  13131. # Archives containing C++ object files must be created using
  13132. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  13133. # necessary to make sure instantiated templates are included
  13134. # in the archive.
  13135. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  13136. ;;
  13137. esac
  13138. ;;
  13139. esac
  13140. ;;
  13141. lynxos*)
  13142. # FIXME: insert proper C++ library support
  13143. ld_shlibs_CXX=no
  13144. ;;
  13145. m88k*)
  13146. # FIXME: insert proper C++ library support
  13147. ld_shlibs_CXX=no
  13148. ;;
  13149. mvs*)
  13150. case $cc_basename in
  13151. cxx*)
  13152. # FIXME: insert proper C++ library support
  13153. ld_shlibs_CXX=no
  13154. ;;
  13155. *)
  13156. # FIXME: insert proper C++ library support
  13157. ld_shlibs_CXX=no
  13158. ;;
  13159. esac
  13160. ;;
  13161. netbsd*)
  13162. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  13163. archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
  13164. wlarc=
  13165. hardcode_libdir_flag_spec_CXX='-R$libdir'
  13166. hardcode_direct_CXX=yes
  13167. hardcode_shlibpath_var_CXX=no
  13168. fi
  13169. # Workaround some broken pre-1.5 toolchains
  13170. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
  13171. ;;
  13172. *nto* | *qnx*)
  13173. ld_shlibs_CXX=yes
  13174. ;;
  13175. openbsd* | bitrig*)
  13176. if test -f /usr/libexec/ld.so; then
  13177. hardcode_direct_CXX=yes
  13178. hardcode_shlibpath_var_CXX=no
  13179. hardcode_direct_absolute_CXX=yes
  13180. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  13181. hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
  13182. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`"; then
  13183. archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file,$export_symbols -o $lib'
  13184. export_dynamic_flag_spec_CXX='$wl-E'
  13185. whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
  13186. fi
  13187. output_verbose_link_cmd=func_echo_all
  13188. else
  13189. ld_shlibs_CXX=no
  13190. fi
  13191. ;;
  13192. osf3* | osf4* | osf5*)
  13193. case $cc_basename in
  13194. KCC*)
  13195. # Kuck and Associates, Inc. (KAI) C++ Compiler
  13196. # KCC will only create a shared library if the output file
  13197. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  13198. # to its proper name (with version) after linking.
  13199. archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\$tempext\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
  13200. hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
  13201. hardcode_libdir_separator_CXX=:
  13202. # Archives containing C++ object files must be created using
  13203. # the KAI C++ compiler.
  13204. case $host in
  13205. osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
  13206. *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
  13207. esac
  13208. ;;
  13209. RCC*)
  13210. # Rational C++ 2.4.1
  13211. # FIXME: insert proper C++ library support
  13212. ld_shlibs_CXX=no
  13213. ;;
  13214. cxx*)
  13215. case $host in
  13216. osf3*)
  13217. allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
  13218. archive_cmds_CXX='$CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $soname `test -n "$verstring" && func_echo_all "$wl-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
  13219. hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
  13220. ;;
  13221. *)
  13222. allow_undefined_flag_CXX=' -expect_unresolved \*'
  13223. archive_cmds_CXX='$CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
  13224. archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
  13225. echo "-hidden">> $lib.exp~
  13226. $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname $wl-input $wl$lib.exp `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib~
  13227. $RM $lib.exp'
  13228. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  13229. ;;
  13230. esac
  13231. hardcode_libdir_separator_CXX=:
  13232. # Commands to make compiler produce verbose output that lists
  13233. # what "hidden" libraries, object files and flags are used when
  13234. # linking a shared library.
  13235. #
  13236. # There doesn't appear to be a way to prevent this compiler from
  13237. # explicitly linking system object files so we need to strip them
  13238. # from the output so that they don't get included in the library
  13239. # dependencies.
  13240. output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
  13241. ;;
  13242. *)
  13243. if test yes,no = "$GXX,$with_gnu_ld"; then
  13244. allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
  13245. case $host in
  13246. osf3*)
  13247. archive_cmds_CXX='$CC -shared -nostdlib $allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $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'
  13248. ;;
  13249. *)
  13250. archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $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'
  13251. ;;
  13252. esac
  13253. hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
  13254. hardcode_libdir_separator_CXX=:
  13255. # Commands to make compiler produce verbose output that lists
  13256. # what "hidden" libraries, object files and flags are used when
  13257. # linking a shared library.
  13258. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  13259. else
  13260. # FIXME: insert proper C++ library support
  13261. ld_shlibs_CXX=no
  13262. fi
  13263. ;;
  13264. esac
  13265. ;;
  13266. psos*)
  13267. # FIXME: insert proper C++ library support
  13268. ld_shlibs_CXX=no
  13269. ;;
  13270. sunos4*)
  13271. case $cc_basename in
  13272. CC*)
  13273. # Sun C++ 4.x
  13274. # FIXME: insert proper C++ library support
  13275. ld_shlibs_CXX=no
  13276. ;;
  13277. lcc*)
  13278. # Lucid
  13279. # FIXME: insert proper C++ library support
  13280. ld_shlibs_CXX=no
  13281. ;;
  13282. *)
  13283. # FIXME: insert proper C++ library support
  13284. ld_shlibs_CXX=no
  13285. ;;
  13286. esac
  13287. ;;
  13288. solaris*)
  13289. case $cc_basename in
  13290. CC* | sunCC*)
  13291. # Sun C++ 4.2, 5.x and Centerline C++
  13292. archive_cmds_need_lc_CXX=yes
  13293. no_undefined_flag_CXX=' -zdefs'
  13294. archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  13295. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  13296. $CC -G$allow_undefined_flag $wl-M $wl$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  13297. hardcode_libdir_flag_spec_CXX='-R$libdir'
  13298. hardcode_shlibpath_var_CXX=no
  13299. case $host_os in
  13300. solaris2.[0-5] | solaris2.[0-5].*) ;;
  13301. *)
  13302. # The compiler driver will combine and reorder linker options,
  13303. # but understands '-z linker_flag'.
  13304. # Supported since Solaris 2.6 (maybe 2.5.1?)
  13305. whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
  13306. ;;
  13307. esac
  13308. link_all_deplibs_CXX=yes
  13309. output_verbose_link_cmd='func_echo_all'
  13310. # Archives containing C++ object files must be created using
  13311. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  13312. # necessary to make sure instantiated templates are included
  13313. # in the archive.
  13314. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  13315. ;;
  13316. gcx*)
  13317. # Green Hills C++ Compiler
  13318. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
  13319. # The C++ compiler must be used to create the archive.
  13320. old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
  13321. ;;
  13322. *)
  13323. # GNU C++ compiler with Solaris linker
  13324. if test yes,no = "$GXX,$with_gnu_ld"; then
  13325. no_undefined_flag_CXX=' $wl-z ${wl}defs'
  13326. if $CC --version | $GREP -v '^2\.7' > /dev/null; then
  13327. archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
  13328. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  13329. $CC -shared $pic_flag -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  13330. # Commands to make compiler produce verbose output that lists
  13331. # what "hidden" libraries, object files and flags are used when
  13332. # linking a shared library.
  13333. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  13334. else
  13335. # g++ 2.7 appears to require '-G' NOT '-shared' on this
  13336. # platform.
  13337. archive_cmds_CXX='$CC -G -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
  13338. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  13339. $CC -G -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  13340. # Commands to make compiler produce verbose output that lists
  13341. # what "hidden" libraries, object files and flags are used when
  13342. # linking a shared library.
  13343. output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  13344. fi
  13345. hardcode_libdir_flag_spec_CXX='$wl-R $wl$libdir'
  13346. case $host_os in
  13347. solaris2.[0-5] | solaris2.[0-5].*) ;;
  13348. *)
  13349. whole_archive_flag_spec_CXX='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
  13350. ;;
  13351. esac
  13352. fi
  13353. ;;
  13354. esac
  13355. ;;
  13356. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  13357. no_undefined_flag_CXX='$wl-z,text'
  13358. archive_cmds_need_lc_CXX=no
  13359. hardcode_shlibpath_var_CXX=no
  13360. runpath_var='LD_RUN_PATH'
  13361. case $cc_basename in
  13362. CC*)
  13363. archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13364. archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13365. ;;
  13366. *)
  13367. archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13368. archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13369. ;;
  13370. esac
  13371. ;;
  13372. sysv5* | sco3.2v5* | sco5v6*)
  13373. # Note: We CANNOT use -z defs as we might desire, because we do not
  13374. # link with -lc, and that would cause any symbols used from libc to
  13375. # always be unresolved, which means just about no library would
  13376. # ever link correctly. If we're not using GNU ld we use -z text
  13377. # though, which does catch some bad symbols but isn't as heavy-handed
  13378. # as -z defs.
  13379. no_undefined_flag_CXX='$wl-z,text'
  13380. allow_undefined_flag_CXX='$wl-z,nodefs'
  13381. archive_cmds_need_lc_CXX=no
  13382. hardcode_shlibpath_var_CXX=no
  13383. hardcode_libdir_flag_spec_CXX='$wl-R,$libdir'
  13384. hardcode_libdir_separator_CXX=':'
  13385. link_all_deplibs_CXX=yes
  13386. export_dynamic_flag_spec_CXX='$wl-Bexport'
  13387. runpath_var='LD_RUN_PATH'
  13388. case $cc_basename in
  13389. CC*)
  13390. archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13391. archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13392. old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
  13393. '"$old_archive_cmds_CXX"
  13394. reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
  13395. '"$reload_cmds_CXX"
  13396. ;;
  13397. *)
  13398. archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13399. archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13400. ;;
  13401. esac
  13402. ;;
  13403. tandem*)
  13404. case $cc_basename in
  13405. NCC*)
  13406. # NonStop-UX NCC 3.20
  13407. # FIXME: insert proper C++ library support
  13408. ld_shlibs_CXX=no
  13409. ;;
  13410. *)
  13411. # FIXME: insert proper C++ library support
  13412. ld_shlibs_CXX=no
  13413. ;;
  13414. esac
  13415. ;;
  13416. vxworks*)
  13417. # FIXME: insert proper C++ library support
  13418. ld_shlibs_CXX=no
  13419. ;;
  13420. *)
  13421. # FIXME: insert proper C++ library support
  13422. ld_shlibs_CXX=no
  13423. ;;
  13424. esac
  13425. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
  13426. $as_echo "$ld_shlibs_CXX" >&6; }
  13427. test no = "$ld_shlibs_CXX" && can_build_shared=no
  13428. GCC_CXX=$GXX
  13429. LD_CXX=$LD
  13430. ## CAVEAT EMPTOR:
  13431. ## There is no encapsulation within the following macros, do not change
  13432. ## the running order or otherwise move them around unless you know exactly
  13433. ## what you are doing...
  13434. # Dependencies to place before and after the object being linked:
  13435. predep_objects_CXX=
  13436. postdep_objects_CXX=
  13437. predeps_CXX=
  13438. postdeps_CXX=
  13439. compiler_lib_search_path_CXX=
  13440. cat > conftest.$ac_ext <<_LT_EOF
  13441. class Foo
  13442. {
  13443. public:
  13444. Foo (void) { a = 0; }
  13445. private:
  13446. int a;
  13447. };
  13448. _LT_EOF
  13449. _lt_libdeps_save_CFLAGS=$CFLAGS
  13450. case "$CC $CFLAGS " in #(
  13451. *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
  13452. *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
  13453. *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
  13454. esac
  13455. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  13456. (eval $ac_compile) 2>&5
  13457. ac_status=$?
  13458. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  13459. test $ac_status = 0; }; then
  13460. # Parse the compiler output and extract the necessary
  13461. # objects, libraries and library flags.
  13462. # Sentinel used to keep track of whether or not we are before
  13463. # the conftest object file.
  13464. pre_test_object_deps_done=no
  13465. for p in `eval "$output_verbose_link_cmd"`; do
  13466. case $prev$p in
  13467. -L* | -R* | -l*)
  13468. # Some compilers place space between "-{L,R}" and the path.
  13469. # Remove the space.
  13470. if test x-L = "$p" ||
  13471. test x-R = "$p"; then
  13472. prev=$p
  13473. continue
  13474. fi
  13475. # Expand the sysroot to ease extracting the directories later.
  13476. if test -z "$prev"; then
  13477. case $p in
  13478. -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
  13479. -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
  13480. -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
  13481. esac
  13482. fi
  13483. case $p in
  13484. =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
  13485. esac
  13486. if test no = "$pre_test_object_deps_done"; then
  13487. case $prev in
  13488. -L | -R)
  13489. # Internal compiler library paths should come after those
  13490. # provided the user. The postdeps already come after the
  13491. # user supplied libs so there is no need to process them.
  13492. if test -z "$compiler_lib_search_path_CXX"; then
  13493. compiler_lib_search_path_CXX=$prev$p
  13494. else
  13495. compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} $prev$p"
  13496. fi
  13497. ;;
  13498. # The "-l" case would never come before the object being
  13499. # linked, so don't bother handling this case.
  13500. esac
  13501. else
  13502. if test -z "$postdeps_CXX"; then
  13503. postdeps_CXX=$prev$p
  13504. else
  13505. postdeps_CXX="${postdeps_CXX} $prev$p"
  13506. fi
  13507. fi
  13508. prev=
  13509. ;;
  13510. *.lto.$objext) ;; # Ignore GCC LTO objects
  13511. *.$objext)
  13512. # This assumes that the test object file only shows up
  13513. # once in the compiler output.
  13514. if test "$p" = "conftest.$objext"; then
  13515. pre_test_object_deps_done=yes
  13516. continue
  13517. fi
  13518. if test no = "$pre_test_object_deps_done"; then
  13519. if test -z "$predep_objects_CXX"; then
  13520. predep_objects_CXX=$p
  13521. else
  13522. predep_objects_CXX="$predep_objects_CXX $p"
  13523. fi
  13524. else
  13525. if test -z "$postdep_objects_CXX"; then
  13526. postdep_objects_CXX=$p
  13527. else
  13528. postdep_objects_CXX="$postdep_objects_CXX $p"
  13529. fi
  13530. fi
  13531. ;;
  13532. *) ;; # Ignore the rest.
  13533. esac
  13534. done
  13535. # Clean up.
  13536. rm -f a.out a.exe
  13537. else
  13538. echo "libtool.m4: error: problem compiling CXX test program"
  13539. fi
  13540. $RM -f confest.$objext
  13541. CFLAGS=$_lt_libdeps_save_CFLAGS
  13542. # PORTME: override above test on systems where it is broken
  13543. case $host_os in
  13544. interix[3-9]*)
  13545. # Interix 3.5 installs completely hosed .la files for C++, so rather than
  13546. # hack all around it, let's just trust "g++" to DTRT.
  13547. predep_objects_CXX=
  13548. postdep_objects_CXX=
  13549. postdeps_CXX=
  13550. ;;
  13551. esac
  13552. case " $postdeps_CXX " in
  13553. *" -lc "*) archive_cmds_need_lc_CXX=no ;;
  13554. esac
  13555. compiler_lib_search_dirs_CXX=
  13556. if test -n "${compiler_lib_search_path_CXX}"; then
  13557. compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | $SED -e 's! -L! !g' -e 's!^ !!'`
  13558. fi
  13559. lt_prog_compiler_wl_CXX=
  13560. lt_prog_compiler_pic_CXX=
  13561. lt_prog_compiler_static_CXX=
  13562. # C++ specific cases for pic, static, wl, etc.
  13563. if test yes = "$GXX"; then
  13564. lt_prog_compiler_wl_CXX='-Wl,'
  13565. lt_prog_compiler_static_CXX='-static'
  13566. case $host_os in
  13567. aix*)
  13568. # All AIX code is PIC.
  13569. if test ia64 = "$host_cpu"; then
  13570. # AIX 5 now supports IA64 processor
  13571. lt_prog_compiler_static_CXX='-Bstatic'
  13572. fi
  13573. lt_prog_compiler_pic_CXX='-fPIC'
  13574. ;;
  13575. amigaos*)
  13576. case $host_cpu in
  13577. powerpc)
  13578. # see comment about AmigaOS4 .so support
  13579. lt_prog_compiler_pic_CXX='-fPIC'
  13580. ;;
  13581. m68k)
  13582. # FIXME: we need at least 68020 code to build shared libraries, but
  13583. # adding the '-m68020' flag to GCC prevents building anything better,
  13584. # like '-m68040'.
  13585. lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
  13586. ;;
  13587. esac
  13588. ;;
  13589. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  13590. # PIC is the default for these OSes.
  13591. ;;
  13592. mingw* | cygwin* | os2* | pw32* | cegcc*)
  13593. # This hack is so that the source file can tell whether it is being
  13594. # built for inclusion in a dll (and should export symbols for example).
  13595. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  13596. # (--disable-auto-import) libraries
  13597. lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  13598. case $host_os in
  13599. os2*)
  13600. lt_prog_compiler_static_CXX='$wl-static'
  13601. ;;
  13602. esac
  13603. ;;
  13604. darwin* | rhapsody*)
  13605. # PIC is the default on this platform
  13606. # Common symbols not allowed in MH_DYLIB files
  13607. lt_prog_compiler_pic_CXX='-fno-common'
  13608. ;;
  13609. *djgpp*)
  13610. # DJGPP does not support shared libraries at all
  13611. lt_prog_compiler_pic_CXX=
  13612. ;;
  13613. haiku*)
  13614. # PIC is the default for Haiku.
  13615. # The "-static" flag exists, but is broken.
  13616. lt_prog_compiler_static_CXX=
  13617. ;;
  13618. interix[3-9]*)
  13619. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  13620. # Instead, we relocate shared libraries at runtime.
  13621. ;;
  13622. sysv4*MP*)
  13623. if test -d /usr/nec; then
  13624. lt_prog_compiler_pic_CXX=-Kconform_pic
  13625. fi
  13626. ;;
  13627. hpux*)
  13628. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  13629. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  13630. # sets the default TLS model and affects inlining.
  13631. case $host_cpu in
  13632. hppa*64*)
  13633. ;;
  13634. *)
  13635. lt_prog_compiler_pic_CXX='-fPIC'
  13636. ;;
  13637. esac
  13638. ;;
  13639. *qnx* | *nto*)
  13640. # QNX uses GNU C++, but need to define -shared option too, otherwise
  13641. # it will coredump.
  13642. lt_prog_compiler_pic_CXX='-fPIC -shared'
  13643. ;;
  13644. *)
  13645. lt_prog_compiler_pic_CXX='-fPIC'
  13646. ;;
  13647. esac
  13648. else
  13649. case $host_os in
  13650. aix[4-9]*)
  13651. # All AIX code is PIC.
  13652. if test ia64 = "$host_cpu"; then
  13653. # AIX 5 now supports IA64 processor
  13654. lt_prog_compiler_static_CXX='-Bstatic'
  13655. else
  13656. lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
  13657. fi
  13658. ;;
  13659. chorus*)
  13660. case $cc_basename in
  13661. cxch68*)
  13662. # Green Hills C++ Compiler
  13663. # _LT_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
  13664. ;;
  13665. esac
  13666. ;;
  13667. mingw* | cygwin* | os2* | pw32* | cegcc*)
  13668. # This hack is so that the source file can tell whether it is being
  13669. # built for inclusion in a dll (and should export symbols for example).
  13670. lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  13671. ;;
  13672. dgux*)
  13673. case $cc_basename in
  13674. ec++*)
  13675. lt_prog_compiler_pic_CXX='-KPIC'
  13676. ;;
  13677. ghcx*)
  13678. # Green Hills C++ Compiler
  13679. lt_prog_compiler_pic_CXX='-pic'
  13680. ;;
  13681. *)
  13682. ;;
  13683. esac
  13684. ;;
  13685. freebsd* | dragonfly*)
  13686. # FreeBSD uses GNU C++
  13687. ;;
  13688. hpux9* | hpux10* | hpux11*)
  13689. case $cc_basename in
  13690. CC*)
  13691. lt_prog_compiler_wl_CXX='-Wl,'
  13692. lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
  13693. if test ia64 != "$host_cpu"; then
  13694. lt_prog_compiler_pic_CXX='+Z'
  13695. fi
  13696. ;;
  13697. aCC*)
  13698. lt_prog_compiler_wl_CXX='-Wl,'
  13699. lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
  13700. case $host_cpu in
  13701. hppa*64*|ia64*)
  13702. # +Z the default
  13703. ;;
  13704. *)
  13705. lt_prog_compiler_pic_CXX='+Z'
  13706. ;;
  13707. esac
  13708. ;;
  13709. *)
  13710. ;;
  13711. esac
  13712. ;;
  13713. interix*)
  13714. # This is c89, which is MS Visual C++ (no shared libs)
  13715. # Anyone wants to do a port?
  13716. ;;
  13717. irix5* | irix6* | nonstopux*)
  13718. case $cc_basename in
  13719. CC*)
  13720. lt_prog_compiler_wl_CXX='-Wl,'
  13721. lt_prog_compiler_static_CXX='-non_shared'
  13722. # CC pic flag -KPIC is the default.
  13723. ;;
  13724. *)
  13725. ;;
  13726. esac
  13727. ;;
  13728. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  13729. case $cc_basename in
  13730. KCC*)
  13731. # KAI C++ Compiler
  13732. lt_prog_compiler_wl_CXX='--backend -Wl,'
  13733. lt_prog_compiler_pic_CXX='-fPIC'
  13734. ;;
  13735. ecpc* )
  13736. # old Intel C++ for x86_64, which still supported -KPIC.
  13737. lt_prog_compiler_wl_CXX='-Wl,'
  13738. lt_prog_compiler_pic_CXX='-KPIC'
  13739. lt_prog_compiler_static_CXX='-static'
  13740. ;;
  13741. icpc* )
  13742. # Intel C++, used to be incompatible with GCC.
  13743. # ICC 10 doesn't accept -KPIC any more.
  13744. lt_prog_compiler_wl_CXX='-Wl,'
  13745. lt_prog_compiler_pic_CXX='-fPIC'
  13746. lt_prog_compiler_static_CXX='-static'
  13747. ;;
  13748. pgCC* | pgcpp*)
  13749. # Portland Group C++ compiler
  13750. lt_prog_compiler_wl_CXX='-Wl,'
  13751. lt_prog_compiler_pic_CXX='-fpic'
  13752. lt_prog_compiler_static_CXX='-Bstatic'
  13753. ;;
  13754. cxx*)
  13755. # Compaq C++
  13756. # Make sure the PIC flag is empty. It appears that all Alpha
  13757. # Linux and Compaq Tru64 Unix objects are PIC.
  13758. lt_prog_compiler_pic_CXX=
  13759. lt_prog_compiler_static_CXX='-non_shared'
  13760. ;;
  13761. xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
  13762. # IBM XL 8.0, 9.0 on PPC and BlueGene
  13763. lt_prog_compiler_wl_CXX='-Wl,'
  13764. lt_prog_compiler_pic_CXX='-qpic'
  13765. lt_prog_compiler_static_CXX='-qstaticlink'
  13766. ;;
  13767. *)
  13768. case `$CC -V 2>&1 | sed 5q` in
  13769. *Sun\ C*)
  13770. # Sun C++ 5.9
  13771. lt_prog_compiler_pic_CXX='-KPIC'
  13772. lt_prog_compiler_static_CXX='-Bstatic'
  13773. lt_prog_compiler_wl_CXX='-Qoption ld '
  13774. ;;
  13775. esac
  13776. ;;
  13777. esac
  13778. ;;
  13779. lynxos*)
  13780. ;;
  13781. m88k*)
  13782. ;;
  13783. mvs*)
  13784. case $cc_basename in
  13785. cxx*)
  13786. lt_prog_compiler_pic_CXX='-W c,exportall'
  13787. ;;
  13788. *)
  13789. ;;
  13790. esac
  13791. ;;
  13792. netbsd*)
  13793. ;;
  13794. *qnx* | *nto*)
  13795. # QNX uses GNU C++, but need to define -shared option too, otherwise
  13796. # it will coredump.
  13797. lt_prog_compiler_pic_CXX='-fPIC -shared'
  13798. ;;
  13799. osf3* | osf4* | osf5*)
  13800. case $cc_basename in
  13801. KCC*)
  13802. lt_prog_compiler_wl_CXX='--backend -Wl,'
  13803. ;;
  13804. RCC*)
  13805. # Rational C++ 2.4.1
  13806. lt_prog_compiler_pic_CXX='-pic'
  13807. ;;
  13808. cxx*)
  13809. # Digital/Compaq C++
  13810. lt_prog_compiler_wl_CXX='-Wl,'
  13811. # Make sure the PIC flag is empty. It appears that all Alpha
  13812. # Linux and Compaq Tru64 Unix objects are PIC.
  13813. lt_prog_compiler_pic_CXX=
  13814. lt_prog_compiler_static_CXX='-non_shared'
  13815. ;;
  13816. *)
  13817. ;;
  13818. esac
  13819. ;;
  13820. psos*)
  13821. ;;
  13822. solaris*)
  13823. case $cc_basename in
  13824. CC* | sunCC*)
  13825. # Sun C++ 4.2, 5.x and Centerline C++
  13826. lt_prog_compiler_pic_CXX='-KPIC'
  13827. lt_prog_compiler_static_CXX='-Bstatic'
  13828. lt_prog_compiler_wl_CXX='-Qoption ld '
  13829. ;;
  13830. gcx*)
  13831. # Green Hills C++ Compiler
  13832. lt_prog_compiler_pic_CXX='-PIC'
  13833. ;;
  13834. *)
  13835. ;;
  13836. esac
  13837. ;;
  13838. sunos4*)
  13839. case $cc_basename in
  13840. CC*)
  13841. # Sun C++ 4.x
  13842. lt_prog_compiler_pic_CXX='-pic'
  13843. lt_prog_compiler_static_CXX='-Bstatic'
  13844. ;;
  13845. lcc*)
  13846. # Lucid
  13847. lt_prog_compiler_pic_CXX='-pic'
  13848. ;;
  13849. *)
  13850. ;;
  13851. esac
  13852. ;;
  13853. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  13854. case $cc_basename in
  13855. CC*)
  13856. lt_prog_compiler_wl_CXX='-Wl,'
  13857. lt_prog_compiler_pic_CXX='-KPIC'
  13858. lt_prog_compiler_static_CXX='-Bstatic'
  13859. ;;
  13860. esac
  13861. ;;
  13862. tandem*)
  13863. case $cc_basename in
  13864. NCC*)
  13865. # NonStop-UX NCC 3.20
  13866. lt_prog_compiler_pic_CXX='-KPIC'
  13867. ;;
  13868. *)
  13869. ;;
  13870. esac
  13871. ;;
  13872. vxworks*)
  13873. ;;
  13874. *)
  13875. lt_prog_compiler_can_build_shared_CXX=no
  13876. ;;
  13877. esac
  13878. fi
  13879. case $host_os in
  13880. # For platforms that do not support PIC, -DPIC is meaningless:
  13881. *djgpp*)
  13882. lt_prog_compiler_pic_CXX=
  13883. ;;
  13884. *)
  13885. lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
  13886. ;;
  13887. esac
  13888. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  13889. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  13890. if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
  13891. $as_echo_n "(cached) " >&6
  13892. else
  13893. lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
  13894. fi
  13895. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
  13896. $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
  13897. lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
  13898. #
  13899. # Check to make sure the PIC flag actually works.
  13900. #
  13901. if test -n "$lt_prog_compiler_pic_CXX"; then
  13902. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
  13903. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
  13904. if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
  13905. $as_echo_n "(cached) " >&6
  13906. else
  13907. lt_cv_prog_compiler_pic_works_CXX=no
  13908. ac_outfile=conftest.$ac_objext
  13909. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  13910. lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" ## exclude from sc_useless_quotes_in_assignment
  13911. # Insert the option either (1) after the last *FLAGS variable, or
  13912. # (2) before a word containing "conftest.", or (3) at the end.
  13913. # Note that $ac_compile itself does not contain backslashes and begins
  13914. # with a dollar sign (not a hyphen), so the echo should work correctly.
  13915. # The option is referenced via a variable to avoid confusing sed.
  13916. lt_compile=`echo "$ac_compile" | $SED \
  13917. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  13918. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  13919. -e 's:$: $lt_compiler_flag:'`
  13920. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  13921. (eval "$lt_compile" 2>conftest.err)
  13922. ac_status=$?
  13923. cat conftest.err >&5
  13924. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13925. if (exit $ac_status) && test -s "$ac_outfile"; then
  13926. # The compiler can only warn and ignore the option if not recognized
  13927. # So say no if there are warnings other than the usual output.
  13928. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  13929. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  13930. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  13931. lt_cv_prog_compiler_pic_works_CXX=yes
  13932. fi
  13933. fi
  13934. $RM conftest*
  13935. fi
  13936. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
  13937. $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
  13938. if test yes = "$lt_cv_prog_compiler_pic_works_CXX"; then
  13939. case $lt_prog_compiler_pic_CXX in
  13940. "" | " "*) ;;
  13941. *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
  13942. esac
  13943. else
  13944. lt_prog_compiler_pic_CXX=
  13945. lt_prog_compiler_can_build_shared_CXX=no
  13946. fi
  13947. fi
  13948. #
  13949. # Check to make sure the static flag actually works.
  13950. #
  13951. wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
  13952. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  13953. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  13954. if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
  13955. $as_echo_n "(cached) " >&6
  13956. else
  13957. lt_cv_prog_compiler_static_works_CXX=no
  13958. save_LDFLAGS=$LDFLAGS
  13959. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  13960. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  13961. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  13962. # The linker can only warn and ignore the option if not recognized
  13963. # So say no if there are warnings
  13964. if test -s conftest.err; then
  13965. # Append any errors to the config.log.
  13966. cat conftest.err 1>&5
  13967. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  13968. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  13969. if diff conftest.exp conftest.er2 >/dev/null; then
  13970. lt_cv_prog_compiler_static_works_CXX=yes
  13971. fi
  13972. else
  13973. lt_cv_prog_compiler_static_works_CXX=yes
  13974. fi
  13975. fi
  13976. $RM -r conftest*
  13977. LDFLAGS=$save_LDFLAGS
  13978. fi
  13979. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
  13980. $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
  13981. if test yes = "$lt_cv_prog_compiler_static_works_CXX"; then
  13982. :
  13983. else
  13984. lt_prog_compiler_static_CXX=
  13985. fi
  13986. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  13987. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  13988. if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
  13989. $as_echo_n "(cached) " >&6
  13990. else
  13991. lt_cv_prog_compiler_c_o_CXX=no
  13992. $RM -r conftest 2>/dev/null
  13993. mkdir conftest
  13994. cd conftest
  13995. mkdir out
  13996. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  13997. lt_compiler_flag="-o out/conftest2.$ac_objext"
  13998. # Insert the option either (1) after the last *FLAGS variable, or
  13999. # (2) before a word containing "conftest.", or (3) at the end.
  14000. # Note that $ac_compile itself does not contain backslashes and begins
  14001. # with a dollar sign (not a hyphen), so the echo should work correctly.
  14002. lt_compile=`echo "$ac_compile" | $SED \
  14003. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  14004. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  14005. -e 's:$: $lt_compiler_flag:'`
  14006. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  14007. (eval "$lt_compile" 2>out/conftest.err)
  14008. ac_status=$?
  14009. cat out/conftest.err >&5
  14010. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14011. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  14012. then
  14013. # The compiler can only warn and ignore the option if not recognized
  14014. # So say no if there are warnings
  14015. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  14016. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  14017. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  14018. lt_cv_prog_compiler_c_o_CXX=yes
  14019. fi
  14020. fi
  14021. chmod u+w . 2>&5
  14022. $RM conftest*
  14023. # SGI C++ compiler will create directory out/ii_files/ for
  14024. # template instantiation
  14025. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  14026. $RM out/* && rmdir out
  14027. cd ..
  14028. $RM -r conftest
  14029. $RM conftest*
  14030. fi
  14031. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  14032. $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  14033. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  14034. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  14035. if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
  14036. $as_echo_n "(cached) " >&6
  14037. else
  14038. lt_cv_prog_compiler_c_o_CXX=no
  14039. $RM -r conftest 2>/dev/null
  14040. mkdir conftest
  14041. cd conftest
  14042. mkdir out
  14043. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  14044. lt_compiler_flag="-o out/conftest2.$ac_objext"
  14045. # Insert the option either (1) after the last *FLAGS variable, or
  14046. # (2) before a word containing "conftest.", or (3) at the end.
  14047. # Note that $ac_compile itself does not contain backslashes and begins
  14048. # with a dollar sign (not a hyphen), so the echo should work correctly.
  14049. lt_compile=`echo "$ac_compile" | $SED \
  14050. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  14051. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  14052. -e 's:$: $lt_compiler_flag:'`
  14053. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  14054. (eval "$lt_compile" 2>out/conftest.err)
  14055. ac_status=$?
  14056. cat out/conftest.err >&5
  14057. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14058. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  14059. then
  14060. # The compiler can only warn and ignore the option if not recognized
  14061. # So say no if there are warnings
  14062. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  14063. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  14064. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  14065. lt_cv_prog_compiler_c_o_CXX=yes
  14066. fi
  14067. fi
  14068. chmod u+w . 2>&5
  14069. $RM conftest*
  14070. # SGI C++ compiler will create directory out/ii_files/ for
  14071. # template instantiation
  14072. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  14073. $RM out/* && rmdir out
  14074. cd ..
  14075. $RM -r conftest
  14076. $RM conftest*
  14077. fi
  14078. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  14079. $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  14080. hard_links=nottested
  14081. if test no = "$lt_cv_prog_compiler_c_o_CXX" && test no != "$need_locks"; then
  14082. # do not overwrite the value of need_locks provided by the user
  14083. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  14084. $as_echo_n "checking if we can lock with hard links... " >&6; }
  14085. hard_links=yes
  14086. $RM conftest*
  14087. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  14088. touch conftest.a
  14089. ln conftest.a conftest.b 2>&5 || hard_links=no
  14090. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  14091. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  14092. $as_echo "$hard_links" >&6; }
  14093. if test no = "$hard_links"; then
  14094. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
  14095. $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
  14096. need_locks=warn
  14097. fi
  14098. else
  14099. need_locks=no
  14100. fi
  14101. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  14102. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  14103. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  14104. exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  14105. case $host_os in
  14106. aix[4-9]*)
  14107. # If we're using GNU nm, then we don't want the "-C" option.
  14108. # -C means demangle to GNU nm, but means don't demangle to AIX nm.
  14109. # Without the "-l" option, or with the "-B" option, AIX nm treats
  14110. # weak defined symbols like other global defined symbols, whereas
  14111. # GNU nm marks them as "W".
  14112. # While the 'weak' keyword is ignored in the Export File, we need
  14113. # it in the Import File for the 'aix-soname' feature, so we have
  14114. # to replace the "-B" option with "-P" for AIX nm.
  14115. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  14116. export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
  14117. else
  14118. export_symbols_cmds_CXX='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
  14119. fi
  14120. ;;
  14121. pw32*)
  14122. export_symbols_cmds_CXX=$ltdll_cmds
  14123. ;;
  14124. cygwin* | mingw* | cegcc*)
  14125. case $cc_basename in
  14126. cl* | icl*)
  14127. exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
  14128. ;;
  14129. *)
  14130. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
  14131. exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
  14132. ;;
  14133. esac
  14134. ;;
  14135. *)
  14136. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  14137. ;;
  14138. esac
  14139. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
  14140. $as_echo "$ld_shlibs_CXX" >&6; }
  14141. test no = "$ld_shlibs_CXX" && can_build_shared=no
  14142. with_gnu_ld_CXX=$with_gnu_ld
  14143. #
  14144. # Do we need to explicitly link libc?
  14145. #
  14146. case "x$archive_cmds_need_lc_CXX" in
  14147. x|xyes)
  14148. # Assume -lc should be added
  14149. archive_cmds_need_lc_CXX=yes
  14150. if test yes,yes = "$GCC,$enable_shared"; then
  14151. case $archive_cmds_CXX in
  14152. *'~'*)
  14153. # FIXME: we may have to deal with multi-command sequences.
  14154. ;;
  14155. '$CC '*)
  14156. # Test whether the compiler implicitly links with -lc since on some
  14157. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  14158. # to ld, don't add -lc before -lgcc.
  14159. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  14160. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  14161. if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
  14162. $as_echo_n "(cached) " >&6
  14163. else
  14164. $RM conftest*
  14165. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  14166. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  14167. (eval $ac_compile) 2>&5
  14168. ac_status=$?
  14169. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  14170. test $ac_status = 0; } 2>conftest.err; then
  14171. soname=conftest
  14172. lib=conftest
  14173. libobjs=conftest.$ac_objext
  14174. deplibs=
  14175. wl=$lt_prog_compiler_wl_CXX
  14176. pic_flag=$lt_prog_compiler_pic_CXX
  14177. compiler_flags=-v
  14178. linker_flags=-v
  14179. verstring=
  14180. output_objdir=.
  14181. libname=conftest
  14182. lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
  14183. allow_undefined_flag_CXX=
  14184. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  14185. (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  14186. ac_status=$?
  14187. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  14188. test $ac_status = 0; }
  14189. then
  14190. lt_cv_archive_cmds_need_lc_CXX=no
  14191. else
  14192. lt_cv_archive_cmds_need_lc_CXX=yes
  14193. fi
  14194. allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
  14195. else
  14196. cat conftest.err 1>&5
  14197. fi
  14198. $RM conftest*
  14199. fi
  14200. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
  14201. $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
  14202. archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
  14203. ;;
  14204. esac
  14205. fi
  14206. ;;
  14207. esac
  14208. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  14209. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  14210. library_names_spec=
  14211. libname_spec='lib$name'
  14212. soname_spec=
  14213. shrext_cmds=.so
  14214. postinstall_cmds=
  14215. postuninstall_cmds=
  14216. finish_cmds=
  14217. finish_eval=
  14218. shlibpath_var=
  14219. shlibpath_overrides_runpath=unknown
  14220. version_type=none
  14221. dynamic_linker="$host_os ld.so"
  14222. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  14223. need_lib_prefix=unknown
  14224. hardcode_into_libs=no
  14225. # when you set need_version to no, make sure it does not cause -set_version
  14226. # flags to be left without arguments
  14227. need_version=unknown
  14228. case $host_os in
  14229. aix3*)
  14230. version_type=linux # correct to gnu/linux during the next big refactor
  14231. library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
  14232. shlibpath_var=LIBPATH
  14233. # AIX 3 has no versioning support, so we append a major version to the name.
  14234. soname_spec='$libname$release$shared_ext$major'
  14235. ;;
  14236. aix[4-9]*)
  14237. version_type=linux # correct to gnu/linux during the next big refactor
  14238. need_lib_prefix=no
  14239. need_version=no
  14240. hardcode_into_libs=yes
  14241. if test ia64 = "$host_cpu"; then
  14242. # AIX 5 supports IA64
  14243. library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
  14244. shlibpath_var=LD_LIBRARY_PATH
  14245. else
  14246. # With GCC up to 2.95.x, collect2 would create an import file
  14247. # for dependence libraries. The import file would start with
  14248. # the line '#! .'. This would cause the generated library to
  14249. # depend on '.', always an invalid library. This was fixed in
  14250. # development snapshots of GCC prior to 3.0.
  14251. case $host_os in
  14252. aix4 | aix4.[01] | aix4.[01].*)
  14253. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  14254. echo ' yes '
  14255. echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
  14256. :
  14257. else
  14258. can_build_shared=no
  14259. fi
  14260. ;;
  14261. esac
  14262. # Using Import Files as archive members, it is possible to support
  14263. # filename-based versioning of shared library archives on AIX. While
  14264. # this would work for both with and without runtime linking, it will
  14265. # prevent static linking of such archives. So we do filename-based
  14266. # shared library versioning with .so extension only, which is used
  14267. # when both runtime linking and shared linking is enabled.
  14268. # Unfortunately, runtime linking may impact performance, so we do
  14269. # not want this to be the default eventually. Also, we use the
  14270. # versioned .so libs for executables only if there is the -brtl
  14271. # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
  14272. # To allow for filename-based versioning support, we need to create
  14273. # libNAME.so.V as an archive file, containing:
  14274. # *) an Import File, referring to the versioned filename of the
  14275. # archive as well as the shared archive member, telling the
  14276. # bitwidth (32 or 64) of that shared object, and providing the
  14277. # list of exported symbols of that shared object, eventually
  14278. # decorated with the 'weak' keyword
  14279. # *) the shared object with the F_LOADONLY flag set, to really avoid
  14280. # it being seen by the linker.
  14281. # At run time we better use the real file rather than another symlink,
  14282. # but for link time we create the symlink libNAME.so -> libNAME.so.V
  14283. case $with_aix_soname,$aix_use_runtimelinking in
  14284. # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
  14285. # soname into executable. Probably we can add versioning support to
  14286. # collect2, so additional links can be useful in future.
  14287. aix,yes) # traditional libtool
  14288. dynamic_linker='AIX unversionable lib.so'
  14289. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  14290. # instead of lib<name>.a to let people know that these are not
  14291. # typical AIX shared libraries.
  14292. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14293. ;;
  14294. aix,no) # traditional AIX only
  14295. dynamic_linker='AIX lib.a(lib.so.V)'
  14296. # We preserve .a as extension for shared libraries through AIX4.2
  14297. # and later when we are not doing run time linking.
  14298. library_names_spec='$libname$release.a $libname.a'
  14299. soname_spec='$libname$release$shared_ext$major'
  14300. ;;
  14301. svr4,*) # full svr4 only
  14302. dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
  14303. library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
  14304. # We do not specify a path in Import Files, so LIBPATH fires.
  14305. shlibpath_overrides_runpath=yes
  14306. ;;
  14307. *,yes) # both, prefer svr4
  14308. dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
  14309. library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
  14310. # unpreferred sharedlib libNAME.a needs extra handling
  14311. postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
  14312. postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
  14313. # We do not specify a path in Import Files, so LIBPATH fires.
  14314. shlibpath_overrides_runpath=yes
  14315. ;;
  14316. *,no) # both, prefer aix
  14317. dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
  14318. library_names_spec='$libname$release.a $libname.a'
  14319. soname_spec='$libname$release$shared_ext$major'
  14320. # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
  14321. postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
  14322. postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
  14323. ;;
  14324. esac
  14325. shlibpath_var=LIBPATH
  14326. fi
  14327. ;;
  14328. amigaos*)
  14329. case $host_cpu in
  14330. powerpc)
  14331. # Since July 2007 AmigaOS4 officially supports .so libraries.
  14332. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  14333. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14334. ;;
  14335. m68k)
  14336. library_names_spec='$libname.ixlibrary $libname.a'
  14337. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  14338. finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $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'
  14339. ;;
  14340. esac
  14341. ;;
  14342. beos*)
  14343. library_names_spec='$libname$shared_ext'
  14344. dynamic_linker="$host_os ld.so"
  14345. shlibpath_var=LIBRARY_PATH
  14346. ;;
  14347. bsdi[45]*)
  14348. version_type=linux # correct to gnu/linux during the next big refactor
  14349. need_version=no
  14350. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14351. soname_spec='$libname$release$shared_ext$major'
  14352. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  14353. shlibpath_var=LD_LIBRARY_PATH
  14354. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  14355. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  14356. # the default ld.so.conf also contains /usr/contrib/lib and
  14357. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  14358. # libtool to hard-code these into programs
  14359. ;;
  14360. cygwin* | mingw* | pw32* | cegcc*)
  14361. version_type=windows
  14362. shrext_cmds=.dll
  14363. need_version=no
  14364. need_lib_prefix=no
  14365. case $GCC,$cc_basename in
  14366. yes,*)
  14367. # gcc
  14368. library_names_spec='$libname.dll.a'
  14369. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  14370. postinstall_cmds='base_file=`basename \$file`~
  14371. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
  14372. dldir=$destdir/`dirname \$dlpath`~
  14373. test -d \$dldir || mkdir -p \$dldir~
  14374. $install_prog $dir/$dlname \$dldir/$dlname~
  14375. chmod a+x \$dldir/$dlname~
  14376. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  14377. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  14378. fi'
  14379. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  14380. dlpath=$dir/\$dldll~
  14381. $RM \$dlpath'
  14382. shlibpath_overrides_runpath=yes
  14383. case $host_os in
  14384. cygwin*)
  14385. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  14386. soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  14387. ;;
  14388. mingw* | cegcc*)
  14389. # MinGW DLLs use traditional 'lib' prefix
  14390. soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  14391. ;;
  14392. pw32*)
  14393. # pw32 DLLs use 'pw' prefix rather than 'lib'
  14394. library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  14395. ;;
  14396. esac
  14397. dynamic_linker='Win32 ld.exe'
  14398. ;;
  14399. *,cl* | *,icl*)
  14400. # Native MSVC or ICC
  14401. libname_spec='$name'
  14402. soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  14403. library_names_spec='$libname.dll.lib'
  14404. case $build_os in
  14405. mingw*)
  14406. sys_lib_search_path_spec=
  14407. lt_save_ifs=$IFS
  14408. IFS=';'
  14409. for lt_path in $LIB
  14410. do
  14411. IFS=$lt_save_ifs
  14412. # Let DOS variable expansion print the short 8.3 style file name.
  14413. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
  14414. sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
  14415. done
  14416. IFS=$lt_save_ifs
  14417. # Convert to MSYS style.
  14418. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
  14419. ;;
  14420. cygwin*)
  14421. # Convert to unix form, then to dos form, then back to unix form
  14422. # but this time dos style (no spaces!) so that the unix form looks
  14423. # like /cygdrive/c/PROGRA~1:/cygdr...
  14424. sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
  14425. sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
  14426. sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  14427. ;;
  14428. *)
  14429. sys_lib_search_path_spec=$LIB
  14430. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  14431. # It is most probably a Windows format PATH.
  14432. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  14433. else
  14434. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  14435. fi
  14436. # FIXME: find the short name or the path components, as spaces are
  14437. # common. (e.g. "Program Files" -> "PROGRA~1")
  14438. ;;
  14439. esac
  14440. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  14441. postinstall_cmds='base_file=`basename \$file`~
  14442. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
  14443. dldir=$destdir/`dirname \$dlpath`~
  14444. test -d \$dldir || mkdir -p \$dldir~
  14445. $install_prog $dir/$dlname \$dldir/$dlname'
  14446. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  14447. dlpath=$dir/\$dldll~
  14448. $RM \$dlpath'
  14449. shlibpath_overrides_runpath=yes
  14450. dynamic_linker='Win32 link.exe'
  14451. ;;
  14452. *)
  14453. # Assume MSVC and ICC wrapper
  14454. library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
  14455. dynamic_linker='Win32 ld.exe'
  14456. ;;
  14457. esac
  14458. # FIXME: first we should search . and the directory the executable is in
  14459. shlibpath_var=PATH
  14460. ;;
  14461. darwin* | rhapsody*)
  14462. dynamic_linker="$host_os dyld"
  14463. version_type=darwin
  14464. need_lib_prefix=no
  14465. need_version=no
  14466. library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
  14467. soname_spec='$libname$release$major$shared_ext'
  14468. shlibpath_overrides_runpath=yes
  14469. shlibpath_var=DYLD_LIBRARY_PATH
  14470. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  14471. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  14472. ;;
  14473. dgux*)
  14474. version_type=linux # correct to gnu/linux during the next big refactor
  14475. need_lib_prefix=no
  14476. need_version=no
  14477. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14478. soname_spec='$libname$release$shared_ext$major'
  14479. shlibpath_var=LD_LIBRARY_PATH
  14480. ;;
  14481. freebsd* | dragonfly*)
  14482. # DragonFly does not have aout. When/if they implement a new
  14483. # versioning mechanism, adjust this.
  14484. if test -x /usr/bin/objformat; then
  14485. objformat=`/usr/bin/objformat`
  14486. else
  14487. case $host_os in
  14488. freebsd[23].*) objformat=aout ;;
  14489. *) objformat=elf ;;
  14490. esac
  14491. fi
  14492. version_type=freebsd-$objformat
  14493. case $version_type in
  14494. freebsd-elf*)
  14495. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14496. soname_spec='$libname$release$shared_ext$major'
  14497. need_version=no
  14498. need_lib_prefix=no
  14499. ;;
  14500. freebsd-*)
  14501. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  14502. need_version=yes
  14503. ;;
  14504. esac
  14505. shlibpath_var=LD_LIBRARY_PATH
  14506. case $host_os in
  14507. freebsd2.*)
  14508. shlibpath_overrides_runpath=yes
  14509. ;;
  14510. freebsd3.[01]* | freebsdelf3.[01]*)
  14511. shlibpath_overrides_runpath=yes
  14512. hardcode_into_libs=yes
  14513. ;;
  14514. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  14515. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  14516. shlibpath_overrides_runpath=no
  14517. hardcode_into_libs=yes
  14518. ;;
  14519. *) # from 4.6 on, and DragonFly
  14520. shlibpath_overrides_runpath=yes
  14521. hardcode_into_libs=yes
  14522. ;;
  14523. esac
  14524. ;;
  14525. haiku*)
  14526. version_type=linux # correct to gnu/linux during the next big refactor
  14527. need_lib_prefix=no
  14528. need_version=no
  14529. dynamic_linker="$host_os runtime_loader"
  14530. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14531. soname_spec='$libname$release$shared_ext$major'
  14532. shlibpath_var=LIBRARY_PATH
  14533. shlibpath_overrides_runpath=no
  14534. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  14535. hardcode_into_libs=yes
  14536. ;;
  14537. hpux9* | hpux10* | hpux11*)
  14538. # Give a soname corresponding to the major version so that dld.sl refuses to
  14539. # link against other versions.
  14540. version_type=sunos
  14541. need_lib_prefix=no
  14542. need_version=no
  14543. case $host_cpu in
  14544. ia64*)
  14545. shrext_cmds='.so'
  14546. hardcode_into_libs=yes
  14547. dynamic_linker="$host_os dld.so"
  14548. shlibpath_var=LD_LIBRARY_PATH
  14549. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  14550. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14551. soname_spec='$libname$release$shared_ext$major'
  14552. if test 32 = "$HPUX_IA64_MODE"; then
  14553. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  14554. sys_lib_dlsearch_path_spec=/usr/lib/hpux32
  14555. else
  14556. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  14557. sys_lib_dlsearch_path_spec=/usr/lib/hpux64
  14558. fi
  14559. ;;
  14560. hppa*64*)
  14561. shrext_cmds='.sl'
  14562. hardcode_into_libs=yes
  14563. dynamic_linker="$host_os dld.sl"
  14564. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  14565. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  14566. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14567. soname_spec='$libname$release$shared_ext$major'
  14568. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  14569. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  14570. ;;
  14571. *)
  14572. shrext_cmds='.sl'
  14573. dynamic_linker="$host_os dld.sl"
  14574. shlibpath_var=SHLIB_PATH
  14575. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  14576. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14577. soname_spec='$libname$release$shared_ext$major'
  14578. ;;
  14579. esac
  14580. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  14581. postinstall_cmds='chmod 555 $lib'
  14582. # or fails outright, so override atomically:
  14583. install_override_mode=555
  14584. ;;
  14585. interix[3-9]*)
  14586. version_type=linux # correct to gnu/linux during the next big refactor
  14587. need_lib_prefix=no
  14588. need_version=no
  14589. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14590. soname_spec='$libname$release$shared_ext$major'
  14591. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  14592. shlibpath_var=LD_LIBRARY_PATH
  14593. shlibpath_overrides_runpath=no
  14594. hardcode_into_libs=yes
  14595. ;;
  14596. irix5* | irix6* | nonstopux*)
  14597. case $host_os in
  14598. nonstopux*) version_type=nonstopux ;;
  14599. *)
  14600. if test yes = "$lt_cv_prog_gnu_ld"; then
  14601. version_type=linux # correct to gnu/linux during the next big refactor
  14602. else
  14603. version_type=irix
  14604. fi ;;
  14605. esac
  14606. need_lib_prefix=no
  14607. need_version=no
  14608. soname_spec='$libname$release$shared_ext$major'
  14609. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
  14610. case $host_os in
  14611. irix5* | nonstopux*)
  14612. libsuff= shlibsuff=
  14613. ;;
  14614. *)
  14615. case $LD in # libtool.m4 will add one of these switches to LD
  14616. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  14617. libsuff= shlibsuff= libmagic=32-bit;;
  14618. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  14619. libsuff=32 shlibsuff=N32 libmagic=N32;;
  14620. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  14621. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  14622. *) libsuff= shlibsuff= libmagic=never-match;;
  14623. esac
  14624. ;;
  14625. esac
  14626. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  14627. shlibpath_overrides_runpath=no
  14628. sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
  14629. sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
  14630. hardcode_into_libs=yes
  14631. ;;
  14632. # No shared lib support for Linux oldld, aout, or coff.
  14633. linux*oldld* | linux*aout* | linux*coff*)
  14634. dynamic_linker=no
  14635. ;;
  14636. linux*android*)
  14637. version_type=none # Android doesn't support versioned libraries.
  14638. need_lib_prefix=no
  14639. need_version=no
  14640. library_names_spec='$libname$release$shared_ext'
  14641. soname_spec='$libname$release$shared_ext'
  14642. finish_cmds=
  14643. shlibpath_var=LD_LIBRARY_PATH
  14644. shlibpath_overrides_runpath=yes
  14645. # This implies no fast_install, which is unacceptable.
  14646. # Some rework will be needed to allow for fast_install
  14647. # before this can be enabled.
  14648. hardcode_into_libs=yes
  14649. dynamic_linker='Android linker'
  14650. # Don't embed -rpath directories since the linker doesn't support them.
  14651. hardcode_libdir_flag_spec_CXX='-L$libdir'
  14652. ;;
  14653. # This must be glibc/ELF.
  14654. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  14655. version_type=linux # correct to gnu/linux during the next big refactor
  14656. need_lib_prefix=no
  14657. need_version=no
  14658. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14659. soname_spec='$libname$release$shared_ext$major'
  14660. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  14661. shlibpath_var=LD_LIBRARY_PATH
  14662. shlibpath_overrides_runpath=no
  14663. # Some binutils ld are patched to set DT_RUNPATH
  14664. if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
  14665. $as_echo_n "(cached) " >&6
  14666. else
  14667. lt_cv_shlibpath_overrides_runpath=no
  14668. save_LDFLAGS=$LDFLAGS
  14669. save_libdir=$libdir
  14670. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
  14671. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
  14672. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14673. /* end confdefs.h. */
  14674. int
  14675. main ()
  14676. {
  14677. ;
  14678. return 0;
  14679. }
  14680. _ACEOF
  14681. if ac_fn_cxx_try_link "$LINENO"; then :
  14682. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  14683. lt_cv_shlibpath_overrides_runpath=yes
  14684. fi
  14685. fi
  14686. rm -f core conftest.err conftest.$ac_objext \
  14687. conftest$ac_exeext conftest.$ac_ext
  14688. LDFLAGS=$save_LDFLAGS
  14689. libdir=$save_libdir
  14690. fi
  14691. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  14692. # This implies no fast_install, which is unacceptable.
  14693. # Some rework will be needed to allow for fast_install
  14694. # before this can be enabled.
  14695. hardcode_into_libs=yes
  14696. # Ideally, we could use ldconfig to report *all* directores which are
  14697. # searched for libraries, however this is still not possible. Aside from not
  14698. # being certain /sbin/ldconfig is available, command
  14699. # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
  14700. # even though it is searched at run-time. Try to do the best guess by
  14701. # appending ld.so.conf contents (and includes) to the search path.
  14702. if test -f /etc/ld.so.conf; then
  14703. 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' ' '`
  14704. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  14705. fi
  14706. # We used to test for /lib/ld.so.1 and disable shared libraries on
  14707. # powerpc, because MkLinux only supported shared libraries with the
  14708. # GNU dynamic linker. Since this was broken with cross compilers,
  14709. # most powerpc-linux boxes support dynamic linking these days and
  14710. # people can always --disable-shared, the test was removed, and we
  14711. # assume the GNU/Linux dynamic linker is in use.
  14712. dynamic_linker='GNU/Linux ld.so'
  14713. ;;
  14714. netbsd*)
  14715. version_type=sunos
  14716. need_lib_prefix=no
  14717. need_version=no
  14718. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  14719. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  14720. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  14721. dynamic_linker='NetBSD (a.out) ld.so'
  14722. else
  14723. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14724. soname_spec='$libname$release$shared_ext$major'
  14725. dynamic_linker='NetBSD ld.elf_so'
  14726. fi
  14727. shlibpath_var=LD_LIBRARY_PATH
  14728. shlibpath_overrides_runpath=yes
  14729. hardcode_into_libs=yes
  14730. ;;
  14731. newsos6)
  14732. version_type=linux # correct to gnu/linux during the next big refactor
  14733. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14734. shlibpath_var=LD_LIBRARY_PATH
  14735. shlibpath_overrides_runpath=yes
  14736. ;;
  14737. *nto* | *qnx*)
  14738. version_type=qnx
  14739. need_lib_prefix=no
  14740. need_version=no
  14741. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14742. soname_spec='$libname$release$shared_ext$major'
  14743. shlibpath_var=LD_LIBRARY_PATH
  14744. shlibpath_overrides_runpath=no
  14745. hardcode_into_libs=yes
  14746. dynamic_linker='ldqnx.so'
  14747. ;;
  14748. openbsd* | bitrig*)
  14749. version_type=sunos
  14750. sys_lib_dlsearch_path_spec=/usr/lib
  14751. need_lib_prefix=no
  14752. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
  14753. need_version=no
  14754. else
  14755. need_version=yes
  14756. fi
  14757. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  14758. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  14759. shlibpath_var=LD_LIBRARY_PATH
  14760. shlibpath_overrides_runpath=yes
  14761. ;;
  14762. os2*)
  14763. libname_spec='$name'
  14764. version_type=windows
  14765. shrext_cmds=.dll
  14766. need_version=no
  14767. need_lib_prefix=no
  14768. # OS/2 can only load a DLL with a base name of 8 characters or less.
  14769. soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
  14770. v=$($ECHO $release$versuffix | tr -d .-);
  14771. n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
  14772. $ECHO $n$v`$shared_ext'
  14773. library_names_spec='${libname}_dll.$libext'
  14774. dynamic_linker='OS/2 ld.exe'
  14775. shlibpath_var=BEGINLIBPATH
  14776. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  14777. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  14778. postinstall_cmds='base_file=`basename \$file`~
  14779. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
  14780. dldir=$destdir/`dirname \$dlpath`~
  14781. test -d \$dldir || mkdir -p \$dldir~
  14782. $install_prog $dir/$dlname \$dldir/$dlname~
  14783. chmod a+x \$dldir/$dlname~
  14784. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  14785. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  14786. fi'
  14787. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
  14788. dlpath=$dir/\$dldll~
  14789. $RM \$dlpath'
  14790. ;;
  14791. osf3* | osf4* | osf5*)
  14792. version_type=osf
  14793. need_lib_prefix=no
  14794. need_version=no
  14795. soname_spec='$libname$release$shared_ext$major'
  14796. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14797. shlibpath_var=LD_LIBRARY_PATH
  14798. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  14799. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  14800. ;;
  14801. rdos*)
  14802. dynamic_linker=no
  14803. ;;
  14804. solaris*)
  14805. version_type=linux # correct to gnu/linux during the next big refactor
  14806. need_lib_prefix=no
  14807. need_version=no
  14808. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14809. soname_spec='$libname$release$shared_ext$major'
  14810. shlibpath_var=LD_LIBRARY_PATH
  14811. shlibpath_overrides_runpath=yes
  14812. hardcode_into_libs=yes
  14813. # ldd complains unless libraries are executable
  14814. postinstall_cmds='chmod +x $lib'
  14815. ;;
  14816. sunos4*)
  14817. version_type=sunos
  14818. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  14819. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  14820. shlibpath_var=LD_LIBRARY_PATH
  14821. shlibpath_overrides_runpath=yes
  14822. if test yes = "$with_gnu_ld"; then
  14823. need_lib_prefix=no
  14824. fi
  14825. need_version=yes
  14826. ;;
  14827. sysv4 | sysv4.3*)
  14828. version_type=linux # correct to gnu/linux during the next big refactor
  14829. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14830. soname_spec='$libname$release$shared_ext$major'
  14831. shlibpath_var=LD_LIBRARY_PATH
  14832. case $host_vendor in
  14833. sni)
  14834. shlibpath_overrides_runpath=no
  14835. need_lib_prefix=no
  14836. runpath_var=LD_RUN_PATH
  14837. ;;
  14838. siemens)
  14839. need_lib_prefix=no
  14840. ;;
  14841. motorola)
  14842. need_lib_prefix=no
  14843. need_version=no
  14844. shlibpath_overrides_runpath=no
  14845. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  14846. ;;
  14847. esac
  14848. ;;
  14849. sysv4*MP*)
  14850. if test -d /usr/nec; then
  14851. version_type=linux # correct to gnu/linux during the next big refactor
  14852. library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
  14853. soname_spec='$libname$shared_ext.$major'
  14854. shlibpath_var=LD_LIBRARY_PATH
  14855. fi
  14856. ;;
  14857. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  14858. version_type=sco
  14859. need_lib_prefix=no
  14860. need_version=no
  14861. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
  14862. soname_spec='$libname$release$shared_ext$major'
  14863. shlibpath_var=LD_LIBRARY_PATH
  14864. shlibpath_overrides_runpath=yes
  14865. hardcode_into_libs=yes
  14866. if test yes = "$with_gnu_ld"; then
  14867. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  14868. else
  14869. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  14870. case $host_os in
  14871. sco3.2v5*)
  14872. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  14873. ;;
  14874. esac
  14875. fi
  14876. sys_lib_dlsearch_path_spec='/usr/lib'
  14877. ;;
  14878. tpf*)
  14879. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  14880. version_type=linux # correct to gnu/linux during the next big refactor
  14881. need_lib_prefix=no
  14882. need_version=no
  14883. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14884. shlibpath_var=LD_LIBRARY_PATH
  14885. shlibpath_overrides_runpath=no
  14886. hardcode_into_libs=yes
  14887. ;;
  14888. uts4*)
  14889. version_type=linux # correct to gnu/linux during the next big refactor
  14890. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14891. soname_spec='$libname$release$shared_ext$major'
  14892. shlibpath_var=LD_LIBRARY_PATH
  14893. ;;
  14894. *)
  14895. dynamic_linker=no
  14896. ;;
  14897. esac
  14898. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  14899. $as_echo "$dynamic_linker" >&6; }
  14900. test no = "$dynamic_linker" && can_build_shared=no
  14901. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  14902. if test yes = "$GCC"; then
  14903. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  14904. fi
  14905. if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
  14906. sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
  14907. fi
  14908. if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
  14909. sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
  14910. fi
  14911. # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
  14912. configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
  14913. # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
  14914. func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
  14915. # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
  14916. configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
  14917. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  14918. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  14919. hardcode_action_CXX=
  14920. if test -n "$hardcode_libdir_flag_spec_CXX" ||
  14921. test -n "$runpath_var_CXX" ||
  14922. test yes = "$hardcode_automatic_CXX"; then
  14923. # We can hardcode non-existent directories.
  14924. if test no != "$hardcode_direct_CXX" &&
  14925. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  14926. # have to relink, otherwise we might link with an installed library
  14927. # when we should be linking with a yet-to-be-installed one
  14928. ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" &&
  14929. test no != "$hardcode_minus_L_CXX"; then
  14930. # Linking always hardcodes the temporary library directory.
  14931. hardcode_action_CXX=relink
  14932. else
  14933. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  14934. hardcode_action_CXX=immediate
  14935. fi
  14936. else
  14937. # We cannot hardcode anything, or else we can only hardcode existing
  14938. # directories.
  14939. hardcode_action_CXX=unsupported
  14940. fi
  14941. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
  14942. $as_echo "$hardcode_action_CXX" >&6; }
  14943. if test relink = "$hardcode_action_CXX" ||
  14944. test yes = "$inherit_rpath_CXX"; then
  14945. # Fast installation is not supported
  14946. enable_fast_install=no
  14947. elif test yes = "$shlibpath_overrides_runpath" ||
  14948. test no = "$enable_shared"; then
  14949. # Fast installation is not necessary
  14950. enable_fast_install=needless
  14951. fi
  14952. fi # test -n "$compiler"
  14953. CC=$lt_save_CC
  14954. CFLAGS=$lt_save_CFLAGS
  14955. LDCXX=$LD
  14956. LD=$lt_save_LD
  14957. GCC=$lt_save_GCC
  14958. with_gnu_ld=$lt_save_with_gnu_ld
  14959. lt_cv_path_LDCXX=$lt_cv_path_LD
  14960. lt_cv_path_LD=$lt_save_path_LD
  14961. lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
  14962. lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
  14963. fi # test yes != "$_lt_caught_CXX_error"
  14964. ac_ext=c
  14965. ac_cpp='$CPP $CPPFLAGS'
  14966. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  14967. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  14968. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  14969. # Various types
  14970. ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
  14971. case $ac_cv_c_int64_t in #(
  14972. no|yes) ;; #(
  14973. *)
  14974. cat >>confdefs.h <<_ACEOF
  14975. #define int64_t $ac_cv_c_int64_t
  14976. _ACEOF
  14977. ;;
  14978. esac
  14979. ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
  14980. if test "x$ac_cv_type_size_t" = xyes; then :
  14981. else
  14982. cat >>confdefs.h <<_ACEOF
  14983. #define size_t unsigned int
  14984. _ACEOF
  14985. fi
  14986. ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
  14987. if test "x$ac_cv_type_ssize_t" = xyes; then :
  14988. else
  14989. cat >>confdefs.h <<_ACEOF
  14990. #define ssize_t int
  14991. _ACEOF
  14992. fi
  14993. ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
  14994. case $ac_cv_c_uint16_t in #(
  14995. no|yes) ;; #(
  14996. *)
  14997. cat >>confdefs.h <<_ACEOF
  14998. #define uint16_t $ac_cv_c_uint16_t
  14999. _ACEOF
  15000. ;;
  15001. esac
  15002. ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
  15003. case $ac_cv_c_uint32_t in #(
  15004. no|yes) ;; #(
  15005. *)
  15006. $as_echo "#define _UINT32_T 1" >>confdefs.h
  15007. cat >>confdefs.h <<_ACEOF
  15008. #define uint32_t $ac_cv_c_uint32_t
  15009. _ACEOF
  15010. ;;
  15011. esac
  15012. ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
  15013. case $ac_cv_c_uint8_t in #(
  15014. no|yes) ;; #(
  15015. *)
  15016. $as_echo "#define _UINT8_T 1" >>confdefs.h
  15017. cat >>confdefs.h <<_ACEOF
  15018. #define uint8_t $ac_cv_c_uint8_t
  15019. _ACEOF
  15020. ;;
  15021. esac
  15022. if test "$os_cygwin" = "false"; then
  15023. # Required for getaddrinfo (TCP IP - IPv6)
  15024. for ac_header in winsock2.h
  15025. do :
  15026. ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
  15027. if test "x$ac_cv_header_winsock2_h" = xyes; then :
  15028. cat >>confdefs.h <<_ACEOF
  15029. #define HAVE_WINSOCK2_H 1
  15030. _ACEOF
  15031. HAVE_WINSOCK2_H=yes
  15032. fi
  15033. done
  15034. if test "x$HAVE_WINSOCK2_H" = "xyes"; then
  15035. LIBS="$LIBS -lws2_32"
  15036. fi
  15037. fi
  15038. # Check for RS485 support (Linux kernel version 2.6.28+)
  15039. ac_fn_c_check_decl "$LINENO" "TIOCSRS485" "ac_cv_have_decl_TIOCSRS485" "#include <sys/ioctl.h>
  15040. "
  15041. if test "x$ac_cv_have_decl_TIOCSRS485" = xyes; then :
  15042. ac_have_decl=1
  15043. else
  15044. ac_have_decl=0
  15045. fi
  15046. cat >>confdefs.h <<_ACEOF
  15047. #define HAVE_DECL_TIOCSRS485 $ac_have_decl
  15048. _ACEOF
  15049. # Check for RTS flags
  15050. ac_fn_c_check_decl "$LINENO" "TIOCM_RTS" "ac_cv_have_decl_TIOCM_RTS" "#include <sys/ioctl.h>
  15051. "
  15052. if test "x$ac_cv_have_decl_TIOCM_RTS" = xyes; then :
  15053. ac_have_decl=1
  15054. else
  15055. ac_have_decl=0
  15056. fi
  15057. cat >>confdefs.h <<_ACEOF
  15058. #define HAVE_DECL_TIOCM_RTS $ac_have_decl
  15059. _ACEOF
  15060. # Wtype-limits is not supported by gcc 4.2 (default on recent Mac OS X)
  15061. my_CFLAGS="-Wall \
  15062. -Wmissing-declarations -Wmissing-prototypes \
  15063. -Wnested-externs -Wpointer-arith \
  15064. -Wpointer-arith -Wsign-compare -Wchar-subscripts \
  15065. -Wstrict-prototypes -Wshadow \
  15066. -Wformat-security"
  15067. # Build options
  15068. # Check whether --enable-tests was given.
  15069. if test "${enable_tests+set}" = set; then :
  15070. enableval=$enable_tests;
  15071. else
  15072. enable_tests=yes
  15073. fi
  15074. if test $enable_tests != no; then
  15075. BUILD_TESTS_TRUE=
  15076. BUILD_TESTS_FALSE='#'
  15077. else
  15078. BUILD_TESTS_TRUE='#'
  15079. BUILD_TESTS_FALSE=
  15080. fi
  15081. ac_config_headers="$ac_config_headers config.h tests/unit-test.h"
  15082. ac_config_files="$ac_config_files Makefile src/Makefile src/modbus-version.h src/win32/modbus.dll.manifest tests/Makefile doc/Makefile libmodbus.pc"
  15083. cat >confcache <<\_ACEOF
  15084. # This file is a shell script that caches the results of configure
  15085. # tests run on this system so they can be shared between configure
  15086. # scripts and configure runs, see configure's option --config-cache.
  15087. # It is not useful on other systems. If it contains results you don't
  15088. # want to keep, you may remove or edit it.
  15089. #
  15090. # config.status only pays attention to the cache file if you give it
  15091. # the --recheck option to rerun configure.
  15092. #
  15093. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  15094. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  15095. # following values.
  15096. _ACEOF
  15097. # The following way of writing the cache mishandles newlines in values,
  15098. # but we know of no workaround that is simple, portable, and efficient.
  15099. # So, we kill variables containing newlines.
  15100. # Ultrix sh set writes to stderr and can't be redirected directly,
  15101. # and sets the high bit in the cache file unless we assign to the vars.
  15102. (
  15103. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  15104. eval ac_val=\$$ac_var
  15105. case $ac_val in #(
  15106. *${as_nl}*)
  15107. case $ac_var in #(
  15108. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  15109. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  15110. esac
  15111. case $ac_var in #(
  15112. _ | IFS | as_nl) ;; #(
  15113. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  15114. *) { eval $ac_var=; unset $ac_var;} ;;
  15115. esac ;;
  15116. esac
  15117. done
  15118. (set) 2>&1 |
  15119. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  15120. *${as_nl}ac_space=\ *)
  15121. # `set' does not quote correctly, so add quotes: double-quote
  15122. # substitution turns \\\\ into \\, and sed turns \\ into \.
  15123. sed -n \
  15124. "s/'/'\\\\''/g;
  15125. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  15126. ;; #(
  15127. *)
  15128. # `set' quotes correctly as required by POSIX, so do not add quotes.
  15129. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  15130. ;;
  15131. esac |
  15132. sort
  15133. ) |
  15134. sed '
  15135. /^ac_cv_env_/b end
  15136. t clear
  15137. :clear
  15138. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  15139. t end
  15140. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  15141. :end' >>confcache
  15142. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  15143. if test -w "$cache_file"; then
  15144. if test "x$cache_file" != "x/dev/null"; then
  15145. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  15146. $as_echo "$as_me: updating cache $cache_file" >&6;}
  15147. if test ! -f "$cache_file" || test -h "$cache_file"; then
  15148. cat confcache >"$cache_file"
  15149. else
  15150. case $cache_file in #(
  15151. */* | ?:*)
  15152. mv -f confcache "$cache_file"$$ &&
  15153. mv -f "$cache_file"$$ "$cache_file" ;; #(
  15154. *)
  15155. mv -f confcache "$cache_file" ;;
  15156. esac
  15157. fi
  15158. fi
  15159. else
  15160. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  15161. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  15162. fi
  15163. fi
  15164. rm -f confcache
  15165. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  15166. # Let make expand exec_prefix.
  15167. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  15168. DEFS=-DHAVE_CONFIG_H
  15169. ac_libobjs=
  15170. ac_ltlibobjs=
  15171. U=
  15172. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  15173. # 1. Remove the extension, and $U if already installed.
  15174. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  15175. ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  15176. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  15177. # will be set to the directory where LIBOBJS objects are built.
  15178. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  15179. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  15180. done
  15181. LIBOBJS=$ac_libobjs
  15182. LTLIBOBJS=$ac_ltlibobjs
  15183. { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
  15184. $as_echo_n "checking that generated files are newer than configure... " >&6; }
  15185. if test -n "$am_sleep_pid"; then
  15186. # Hide warnings about reused PIDs.
  15187. wait $am_sleep_pid 2>/dev/null
  15188. fi
  15189. { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
  15190. $as_echo "done" >&6; }
  15191. if test -n "$EXEEXT"; then
  15192. am__EXEEXT_TRUE=
  15193. am__EXEEXT_FALSE='#'
  15194. else
  15195. am__EXEEXT_TRUE='#'
  15196. am__EXEEXT_FALSE=
  15197. fi
  15198. if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
  15199. as_fn_error $? "conditional \"AMDEP\" was never defined.
  15200. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  15201. fi
  15202. if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  15203. as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
  15204. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  15205. fi
  15206. if test -z "${OS_WIN32_TRUE}" && test -z "${OS_WIN32_FALSE}"; then
  15207. as_fn_error $? "conditional \"OS_WIN32\" was never defined.
  15208. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  15209. fi
  15210. if test -z "${OS_QNX_TRUE}" && test -z "${OS_QNX_FALSE}"; then
  15211. as_fn_error $? "conditional \"OS_QNX\" was never defined.
  15212. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  15213. fi
  15214. if test -z "${BUILD_DOC_TRUE}" && test -z "${BUILD_DOC_FALSE}"; then
  15215. as_fn_error $? "conditional \"BUILD_DOC\" was never defined.
  15216. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  15217. fi
  15218. if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
  15219. as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
  15220. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  15221. fi
  15222. if test -z "${BUILD_TESTS_TRUE}" && test -z "${BUILD_TESTS_FALSE}"; then
  15223. as_fn_error $? "conditional \"BUILD_TESTS\" was never defined.
  15224. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  15225. fi
  15226. : "${CONFIG_STATUS=./config.status}"
  15227. ac_write_fail=0
  15228. ac_clean_files_save=$ac_clean_files
  15229. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  15230. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  15231. $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  15232. as_write_fail=0
  15233. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  15234. #! $SHELL
  15235. # Generated by $as_me.
  15236. # Run this file to recreate the current configuration.
  15237. # Compiler output produced by configure, useful for debugging
  15238. # configure, is in config.log if it exists.
  15239. debug=false
  15240. ac_cs_recheck=false
  15241. ac_cs_silent=false
  15242. SHELL=\${CONFIG_SHELL-$SHELL}
  15243. export SHELL
  15244. _ASEOF
  15245. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  15246. ## -------------------- ##
  15247. ## M4sh Initialization. ##
  15248. ## -------------------- ##
  15249. # Be more Bourne compatible
  15250. DUALCASE=1; export DUALCASE # for MKS sh
  15251. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  15252. emulate sh
  15253. NULLCMD=:
  15254. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  15255. # is contrary to our usage. Disable this feature.
  15256. alias -g '${1+"$@"}'='"$@"'
  15257. setopt NO_GLOB_SUBST
  15258. else
  15259. case `(set -o) 2>/dev/null` in #(
  15260. *posix*) :
  15261. set -o posix ;; #(
  15262. *) :
  15263. ;;
  15264. esac
  15265. fi
  15266. as_nl='
  15267. '
  15268. export as_nl
  15269. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  15270. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  15271. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  15272. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  15273. # Prefer a ksh shell builtin over an external printf program on Solaris,
  15274. # but without wasting forks for bash or zsh.
  15275. if test -z "$BASH_VERSION$ZSH_VERSION" \
  15276. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  15277. as_echo='print -r --'
  15278. as_echo_n='print -rn --'
  15279. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  15280. as_echo='printf %s\n'
  15281. as_echo_n='printf %s'
  15282. else
  15283. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  15284. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  15285. as_echo_n='/usr/ucb/echo -n'
  15286. else
  15287. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  15288. as_echo_n_body='eval
  15289. arg=$1;
  15290. case $arg in #(
  15291. *"$as_nl"*)
  15292. expr "X$arg" : "X\\(.*\\)$as_nl";
  15293. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  15294. esac;
  15295. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  15296. '
  15297. export as_echo_n_body
  15298. as_echo_n='sh -c $as_echo_n_body as_echo'
  15299. fi
  15300. export as_echo_body
  15301. as_echo='sh -c $as_echo_body as_echo'
  15302. fi
  15303. # The user is always right.
  15304. if test "${PATH_SEPARATOR+set}" != set; then
  15305. PATH_SEPARATOR=:
  15306. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  15307. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  15308. PATH_SEPARATOR=';'
  15309. }
  15310. fi
  15311. # IFS
  15312. # We need space, tab and new line, in precisely that order. Quoting is
  15313. # there to prevent editors from complaining about space-tab.
  15314. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  15315. # splitting by setting IFS to empty value.)
  15316. IFS=" "" $as_nl"
  15317. # Find who we are. Look in the path if we contain no directory separator.
  15318. as_myself=
  15319. case $0 in #((
  15320. *[\\/]* ) as_myself=$0 ;;
  15321. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15322. for as_dir in $PATH
  15323. do
  15324. IFS=$as_save_IFS
  15325. test -z "$as_dir" && as_dir=.
  15326. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  15327. done
  15328. IFS=$as_save_IFS
  15329. ;;
  15330. esac
  15331. # We did not find ourselves, most probably we were run as `sh COMMAND'
  15332. # in which case we are not to be found in the path.
  15333. if test "x$as_myself" = x; then
  15334. as_myself=$0
  15335. fi
  15336. if test ! -f "$as_myself"; then
  15337. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  15338. exit 1
  15339. fi
  15340. # Unset variables that we do not need and which cause bugs (e.g. in
  15341. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  15342. # suppresses any "Segmentation fault" message there. '((' could
  15343. # trigger a bug in pdksh 5.2.14.
  15344. for as_var in BASH_ENV ENV MAIL MAILPATH
  15345. do eval test x\${$as_var+set} = xset \
  15346. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  15347. done
  15348. PS1='$ '
  15349. PS2='> '
  15350. PS4='+ '
  15351. # NLS nuisances.
  15352. LC_ALL=C
  15353. export LC_ALL
  15354. LANGUAGE=C
  15355. export LANGUAGE
  15356. # CDPATH.
  15357. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  15358. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  15359. # ----------------------------------------
  15360. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  15361. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  15362. # script with STATUS, using 1 if that was 0.
  15363. as_fn_error ()
  15364. {
  15365. as_status=$1; test $as_status -eq 0 && as_status=1
  15366. if test "$4"; then
  15367. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  15368. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  15369. fi
  15370. $as_echo "$as_me: error: $2" >&2
  15371. as_fn_exit $as_status
  15372. } # as_fn_error
  15373. # as_fn_set_status STATUS
  15374. # -----------------------
  15375. # Set $? to STATUS, without forking.
  15376. as_fn_set_status ()
  15377. {
  15378. return $1
  15379. } # as_fn_set_status
  15380. # as_fn_exit STATUS
  15381. # -----------------
  15382. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  15383. as_fn_exit ()
  15384. {
  15385. set +e
  15386. as_fn_set_status $1
  15387. exit $1
  15388. } # as_fn_exit
  15389. # as_fn_unset VAR
  15390. # ---------------
  15391. # Portably unset VAR.
  15392. as_fn_unset ()
  15393. {
  15394. { eval $1=; unset $1;}
  15395. }
  15396. as_unset=as_fn_unset
  15397. # as_fn_append VAR VALUE
  15398. # ----------------------
  15399. # Append the text in VALUE to the end of the definition contained in VAR. Take
  15400. # advantage of any shell optimizations that allow amortized linear growth over
  15401. # repeated appends, instead of the typical quadratic growth present in naive
  15402. # implementations.
  15403. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  15404. eval 'as_fn_append ()
  15405. {
  15406. eval $1+=\$2
  15407. }'
  15408. else
  15409. as_fn_append ()
  15410. {
  15411. eval $1=\$$1\$2
  15412. }
  15413. fi # as_fn_append
  15414. # as_fn_arith ARG...
  15415. # ------------------
  15416. # Perform arithmetic evaluation on the ARGs, and store the result in the
  15417. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  15418. # must be portable across $(()) and expr.
  15419. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  15420. eval 'as_fn_arith ()
  15421. {
  15422. as_val=$(( $* ))
  15423. }'
  15424. else
  15425. as_fn_arith ()
  15426. {
  15427. as_val=`expr "$@" || test $? -eq 1`
  15428. }
  15429. fi # as_fn_arith
  15430. if expr a : '\(a\)' >/dev/null 2>&1 &&
  15431. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  15432. as_expr=expr
  15433. else
  15434. as_expr=false
  15435. fi
  15436. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  15437. as_basename=basename
  15438. else
  15439. as_basename=false
  15440. fi
  15441. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  15442. as_dirname=dirname
  15443. else
  15444. as_dirname=false
  15445. fi
  15446. as_me=`$as_basename -- "$0" ||
  15447. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  15448. X"$0" : 'X\(//\)$' \| \
  15449. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  15450. $as_echo X/"$0" |
  15451. sed '/^.*\/\([^/][^/]*\)\/*$/{
  15452. s//\1/
  15453. q
  15454. }
  15455. /^X\/\(\/\/\)$/{
  15456. s//\1/
  15457. q
  15458. }
  15459. /^X\/\(\/\).*/{
  15460. s//\1/
  15461. q
  15462. }
  15463. s/.*/./; q'`
  15464. # Avoid depending upon Character Ranges.
  15465. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  15466. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  15467. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  15468. as_cr_digits='0123456789'
  15469. as_cr_alnum=$as_cr_Letters$as_cr_digits
  15470. ECHO_C= ECHO_N= ECHO_T=
  15471. case `echo -n x` in #(((((
  15472. -n*)
  15473. case `echo 'xy\c'` in
  15474. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  15475. xy) ECHO_C='\c';;
  15476. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  15477. ECHO_T=' ';;
  15478. esac;;
  15479. *)
  15480. ECHO_N='-n';;
  15481. esac
  15482. rm -f conf$$ conf$$.exe conf$$.file
  15483. if test -d conf$$.dir; then
  15484. rm -f conf$$.dir/conf$$.file
  15485. else
  15486. rm -f conf$$.dir
  15487. mkdir conf$$.dir 2>/dev/null
  15488. fi
  15489. if (echo >conf$$.file) 2>/dev/null; then
  15490. if ln -s conf$$.file conf$$ 2>/dev/null; then
  15491. as_ln_s='ln -s'
  15492. # ... but there are two gotchas:
  15493. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  15494. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  15495. # In both cases, we have to default to `cp -pR'.
  15496. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  15497. as_ln_s='cp -pR'
  15498. elif ln conf$$.file conf$$ 2>/dev/null; then
  15499. as_ln_s=ln
  15500. else
  15501. as_ln_s='cp -pR'
  15502. fi
  15503. else
  15504. as_ln_s='cp -pR'
  15505. fi
  15506. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  15507. rmdir conf$$.dir 2>/dev/null
  15508. # as_fn_mkdir_p
  15509. # -------------
  15510. # Create "$as_dir" as a directory, including parents if necessary.
  15511. as_fn_mkdir_p ()
  15512. {
  15513. case $as_dir in #(
  15514. -*) as_dir=./$as_dir;;
  15515. esac
  15516. test -d "$as_dir" || eval $as_mkdir_p || {
  15517. as_dirs=
  15518. while :; do
  15519. case $as_dir in #(
  15520. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  15521. *) as_qdir=$as_dir;;
  15522. esac
  15523. as_dirs="'$as_qdir' $as_dirs"
  15524. as_dir=`$as_dirname -- "$as_dir" ||
  15525. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  15526. X"$as_dir" : 'X\(//\)[^/]' \| \
  15527. X"$as_dir" : 'X\(//\)$' \| \
  15528. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  15529. $as_echo X"$as_dir" |
  15530. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  15531. s//\1/
  15532. q
  15533. }
  15534. /^X\(\/\/\)[^/].*/{
  15535. s//\1/
  15536. q
  15537. }
  15538. /^X\(\/\/\)$/{
  15539. s//\1/
  15540. q
  15541. }
  15542. /^X\(\/\).*/{
  15543. s//\1/
  15544. q
  15545. }
  15546. s/.*/./; q'`
  15547. test -d "$as_dir" && break
  15548. done
  15549. test -z "$as_dirs" || eval "mkdir $as_dirs"
  15550. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  15551. } # as_fn_mkdir_p
  15552. if mkdir -p . 2>/dev/null; then
  15553. as_mkdir_p='mkdir -p "$as_dir"'
  15554. else
  15555. test -d ./-p && rmdir ./-p
  15556. as_mkdir_p=false
  15557. fi
  15558. # as_fn_executable_p FILE
  15559. # -----------------------
  15560. # Test if FILE is an executable regular file.
  15561. as_fn_executable_p ()
  15562. {
  15563. test -f "$1" && test -x "$1"
  15564. } # as_fn_executable_p
  15565. as_test_x='test -x'
  15566. as_executable_p=as_fn_executable_p
  15567. # Sed expression to map a string onto a valid CPP name.
  15568. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  15569. # Sed expression to map a string onto a valid variable name.
  15570. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  15571. exec 6>&1
  15572. ## ----------------------------------- ##
  15573. ## Main body of $CONFIG_STATUS script. ##
  15574. ## ----------------------------------- ##
  15575. _ASEOF
  15576. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  15577. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  15578. # Save the log message, to keep $0 and so on meaningful, and to
  15579. # report actual input values of CONFIG_FILES etc. instead of their
  15580. # values after options handling.
  15581. ac_log="
  15582. This file was extended by libmodbus $as_me 3.1.6, which was
  15583. generated by GNU Autoconf 2.69. Invocation command line was
  15584. CONFIG_FILES = $CONFIG_FILES
  15585. CONFIG_HEADERS = $CONFIG_HEADERS
  15586. CONFIG_LINKS = $CONFIG_LINKS
  15587. CONFIG_COMMANDS = $CONFIG_COMMANDS
  15588. $ $0 $@
  15589. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  15590. "
  15591. _ACEOF
  15592. case $ac_config_files in *"
  15593. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  15594. esac
  15595. case $ac_config_headers in *"
  15596. "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  15597. esac
  15598. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  15599. # Files that config.status was made for.
  15600. config_files="$ac_config_files"
  15601. config_headers="$ac_config_headers"
  15602. config_commands="$ac_config_commands"
  15603. _ACEOF
  15604. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  15605. ac_cs_usage="\
  15606. \`$as_me' instantiates files and other configuration actions
  15607. from templates according to the current configuration. Unless the files
  15608. and actions are specified as TAGs, all are instantiated by default.
  15609. Usage: $0 [OPTION]... [TAG]...
  15610. -h, --help print this help, then exit
  15611. -V, --version print version number and configuration settings, then exit
  15612. --config print configuration, then exit
  15613. -q, --quiet, --silent
  15614. do not print progress messages
  15615. -d, --debug don't remove temporary files
  15616. --recheck update $as_me by reconfiguring in the same conditions
  15617. --file=FILE[:TEMPLATE]
  15618. instantiate the configuration file FILE
  15619. --header=FILE[:TEMPLATE]
  15620. instantiate the configuration header FILE
  15621. Configuration files:
  15622. $config_files
  15623. Configuration headers:
  15624. $config_headers
  15625. Configuration commands:
  15626. $config_commands
  15627. Report bugs to <https://github.com/stephane/libmodbus/issues>.
  15628. libmodbus home page: <http://libmodbus.org/>."
  15629. _ACEOF
  15630. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  15631. ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
  15632. ac_cs_version="\\
  15633. libmodbus config.status 3.1.6
  15634. configured by $0, generated by GNU Autoconf 2.69,
  15635. with options \\"\$ac_cs_config\\"
  15636. Copyright (C) 2012 Free Software Foundation, Inc.
  15637. This config.status script is free software; the Free Software Foundation
  15638. gives unlimited permission to copy, distribute and modify it."
  15639. ac_pwd='$ac_pwd'
  15640. srcdir='$srcdir'
  15641. INSTALL='$INSTALL'
  15642. MKDIR_P='$MKDIR_P'
  15643. AWK='$AWK'
  15644. test -n "\$AWK" || AWK=awk
  15645. _ACEOF
  15646. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  15647. # The default lists apply if the user does not specify any file.
  15648. ac_need_defaults=:
  15649. while test $# != 0
  15650. do
  15651. case $1 in
  15652. --*=?*)
  15653. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  15654. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  15655. ac_shift=:
  15656. ;;
  15657. --*=)
  15658. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  15659. ac_optarg=
  15660. ac_shift=:
  15661. ;;
  15662. *)
  15663. ac_option=$1
  15664. ac_optarg=$2
  15665. ac_shift=shift
  15666. ;;
  15667. esac
  15668. case $ac_option in
  15669. # Handling of the options.
  15670. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  15671. ac_cs_recheck=: ;;
  15672. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  15673. $as_echo "$ac_cs_version"; exit ;;
  15674. --config | --confi | --conf | --con | --co | --c )
  15675. $as_echo "$ac_cs_config"; exit ;;
  15676. --debug | --debu | --deb | --de | --d | -d )
  15677. debug=: ;;
  15678. --file | --fil | --fi | --f )
  15679. $ac_shift
  15680. case $ac_optarg in
  15681. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  15682. '') as_fn_error $? "missing file argument" ;;
  15683. esac
  15684. as_fn_append CONFIG_FILES " '$ac_optarg'"
  15685. ac_need_defaults=false;;
  15686. --header | --heade | --head | --hea )
  15687. $ac_shift
  15688. case $ac_optarg in
  15689. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  15690. esac
  15691. as_fn_append CONFIG_HEADERS " '$ac_optarg'"
  15692. ac_need_defaults=false;;
  15693. --he | --h)
  15694. # Conflict between --help and --header
  15695. as_fn_error $? "ambiguous option: \`$1'
  15696. Try \`$0 --help' for more information.";;
  15697. --help | --hel | -h )
  15698. $as_echo "$ac_cs_usage"; exit ;;
  15699. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  15700. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  15701. ac_cs_silent=: ;;
  15702. # This is an error.
  15703. -*) as_fn_error $? "unrecognized option: \`$1'
  15704. Try \`$0 --help' for more information." ;;
  15705. *) as_fn_append ac_config_targets " $1"
  15706. ac_need_defaults=false ;;
  15707. esac
  15708. shift
  15709. done
  15710. ac_configure_extra_args=
  15711. if $ac_cs_silent; then
  15712. exec 6>/dev/null
  15713. ac_configure_extra_args="$ac_configure_extra_args --silent"
  15714. fi
  15715. _ACEOF
  15716. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  15717. if \$ac_cs_recheck; then
  15718. set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  15719. shift
  15720. \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  15721. CONFIG_SHELL='$SHELL'
  15722. export CONFIG_SHELL
  15723. exec "\$@"
  15724. fi
  15725. _ACEOF
  15726. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  15727. exec 5>>config.log
  15728. {
  15729. echo
  15730. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  15731. ## Running $as_me. ##
  15732. _ASBOX
  15733. $as_echo "$ac_log"
  15734. } >&5
  15735. _ACEOF
  15736. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  15737. #
  15738. # INIT-COMMANDS
  15739. #
  15740. AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
  15741. # The HP-UX ksh and POSIX shell print the target directory to stdout
  15742. # if CDPATH is set.
  15743. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  15744. sed_quote_subst='$sed_quote_subst'
  15745. double_quote_subst='$double_quote_subst'
  15746. delay_variable_subst='$delay_variable_subst'
  15747. macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
  15748. macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
  15749. enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
  15750. AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
  15751. DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
  15752. OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
  15753. pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
  15754. enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
  15755. enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
  15756. shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
  15757. SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
  15758. ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
  15759. PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
  15760. host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
  15761. host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
  15762. host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
  15763. build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
  15764. build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
  15765. build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
  15766. SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
  15767. Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
  15768. GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
  15769. EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
  15770. FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
  15771. LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
  15772. NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
  15773. LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
  15774. max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
  15775. ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
  15776. exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
  15777. lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
  15778. lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
  15779. lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
  15780. lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
  15781. lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
  15782. reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
  15783. reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
  15784. deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
  15785. file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
  15786. file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
  15787. want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
  15788. sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
  15789. AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
  15790. lt_ar_flags='`$ECHO "$lt_ar_flags" | $SED "$delay_single_quote_subst"`'
  15791. AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
  15792. archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
  15793. STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
  15794. RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
  15795. old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  15796. old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  15797. old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
  15798. lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
  15799. CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
  15800. CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
  15801. compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
  15802. GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
  15803. lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
  15804. lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
  15805. lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
  15806. lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
  15807. 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"`'
  15808. lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
  15809. nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
  15810. lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
  15811. lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
  15812. objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
  15813. MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
  15814. lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
  15815. lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
  15816. lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
  15817. lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
  15818. lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
  15819. need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
  15820. MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
  15821. DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
  15822. NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
  15823. LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
  15824. OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
  15825. OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
  15826. libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
  15827. shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
  15828. extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  15829. archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
  15830. enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
  15831. export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
  15832. whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
  15833. compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
  15834. old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
  15835. old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  15836. archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
  15837. archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  15838. module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
  15839. module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  15840. with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
  15841. allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
  15842. no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
  15843. hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
  15844. hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
  15845. hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
  15846. hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
  15847. hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
  15848. hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
  15849. hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
  15850. inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
  15851. link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
  15852. always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
  15853. export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
  15854. exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
  15855. include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
  15856. prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
  15857. postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
  15858. file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
  15859. variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
  15860. need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
  15861. need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
  15862. version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
  15863. runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
  15864. shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
  15865. shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
  15866. libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
  15867. library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
  15868. soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
  15869. install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
  15870. postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  15871. postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  15872. finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
  15873. finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
  15874. hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
  15875. sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
  15876. configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
  15877. configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
  15878. hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
  15879. enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
  15880. enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
  15881. enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
  15882. old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
  15883. striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
  15884. compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
  15885. predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
  15886. postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
  15887. predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
  15888. postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
  15889. compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
  15890. LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
  15891. reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
  15892. reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  15893. old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  15894. compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
  15895. GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
  15896. lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
  15897. lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
  15898. lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
  15899. lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
  15900. lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
  15901. archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
  15902. enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
  15903. export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  15904. whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  15905. compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
  15906. old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  15907. old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  15908. archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  15909. archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  15910. module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  15911. module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  15912. with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
  15913. allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
  15914. no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
  15915. hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  15916. hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
  15917. hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
  15918. hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
  15919. hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
  15920. hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
  15921. hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
  15922. inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
  15923. link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
  15924. always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
  15925. export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  15926. exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
  15927. include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
  15928. prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  15929. postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  15930. file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
  15931. hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
  15932. compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
  15933. predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
  15934. postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
  15935. predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
  15936. postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
  15937. compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
  15938. LTCC='$LTCC'
  15939. LTCFLAGS='$LTCFLAGS'
  15940. compiler='$compiler_DEFAULT'
  15941. # A function that is used when there is no print builtin or printf.
  15942. func_fallback_echo ()
  15943. {
  15944. eval 'cat <<_LTECHO_EOF
  15945. \$1
  15946. _LTECHO_EOF'
  15947. }
  15948. # Quote evaled strings.
  15949. for var in AS \
  15950. DLLTOOL \
  15951. OBJDUMP \
  15952. SHELL \
  15953. ECHO \
  15954. PATH_SEPARATOR \
  15955. SED \
  15956. GREP \
  15957. EGREP \
  15958. FGREP \
  15959. LD \
  15960. NM \
  15961. LN_S \
  15962. lt_SP2NL \
  15963. lt_NL2SP \
  15964. reload_flag \
  15965. deplibs_check_method \
  15966. file_magic_cmd \
  15967. file_magic_glob \
  15968. want_nocaseglob \
  15969. sharedlib_from_linklib_cmd \
  15970. AR \
  15971. archiver_list_spec \
  15972. STRIP \
  15973. RANLIB \
  15974. CC \
  15975. CFLAGS \
  15976. compiler \
  15977. lt_cv_sys_global_symbol_pipe \
  15978. lt_cv_sys_global_symbol_to_cdecl \
  15979. lt_cv_sys_global_symbol_to_import \
  15980. lt_cv_sys_global_symbol_to_c_name_address \
  15981. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
  15982. lt_cv_nm_interface \
  15983. nm_file_list_spec \
  15984. lt_cv_truncate_bin \
  15985. lt_prog_compiler_no_builtin_flag \
  15986. lt_prog_compiler_pic \
  15987. lt_prog_compiler_wl \
  15988. lt_prog_compiler_static \
  15989. lt_cv_prog_compiler_c_o \
  15990. need_locks \
  15991. MANIFEST_TOOL \
  15992. DSYMUTIL \
  15993. NMEDIT \
  15994. LIPO \
  15995. OTOOL \
  15996. OTOOL64 \
  15997. shrext_cmds \
  15998. export_dynamic_flag_spec \
  15999. whole_archive_flag_spec \
  16000. compiler_needs_object \
  16001. with_gnu_ld \
  16002. allow_undefined_flag \
  16003. no_undefined_flag \
  16004. hardcode_libdir_flag_spec \
  16005. hardcode_libdir_separator \
  16006. exclude_expsyms \
  16007. include_expsyms \
  16008. file_list_spec \
  16009. variables_saved_for_relink \
  16010. libname_spec \
  16011. library_names_spec \
  16012. soname_spec \
  16013. install_override_mode \
  16014. finish_eval \
  16015. old_striplib \
  16016. striplib \
  16017. compiler_lib_search_dirs \
  16018. predep_objects \
  16019. postdep_objects \
  16020. predeps \
  16021. postdeps \
  16022. compiler_lib_search_path \
  16023. LD_CXX \
  16024. reload_flag_CXX \
  16025. compiler_CXX \
  16026. lt_prog_compiler_no_builtin_flag_CXX \
  16027. lt_prog_compiler_pic_CXX \
  16028. lt_prog_compiler_wl_CXX \
  16029. lt_prog_compiler_static_CXX \
  16030. lt_cv_prog_compiler_c_o_CXX \
  16031. export_dynamic_flag_spec_CXX \
  16032. whole_archive_flag_spec_CXX \
  16033. compiler_needs_object_CXX \
  16034. with_gnu_ld_CXX \
  16035. allow_undefined_flag_CXX \
  16036. no_undefined_flag_CXX \
  16037. hardcode_libdir_flag_spec_CXX \
  16038. hardcode_libdir_separator_CXX \
  16039. exclude_expsyms_CXX \
  16040. include_expsyms_CXX \
  16041. file_list_spec_CXX \
  16042. compiler_lib_search_dirs_CXX \
  16043. predep_objects_CXX \
  16044. postdep_objects_CXX \
  16045. predeps_CXX \
  16046. postdeps_CXX \
  16047. compiler_lib_search_path_CXX; do
  16048. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  16049. *[\\\\\\\`\\"\\\$]*)
  16050. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
  16051. ;;
  16052. *)
  16053. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  16054. ;;
  16055. esac
  16056. done
  16057. # Double-quote double-evaled strings.
  16058. for var in reload_cmds \
  16059. old_postinstall_cmds \
  16060. old_postuninstall_cmds \
  16061. old_archive_cmds \
  16062. extract_expsyms_cmds \
  16063. old_archive_from_new_cmds \
  16064. old_archive_from_expsyms_cmds \
  16065. archive_cmds \
  16066. archive_expsym_cmds \
  16067. module_cmds \
  16068. module_expsym_cmds \
  16069. export_symbols_cmds \
  16070. prelink_cmds \
  16071. postlink_cmds \
  16072. postinstall_cmds \
  16073. postuninstall_cmds \
  16074. finish_cmds \
  16075. sys_lib_search_path_spec \
  16076. configure_time_dlsearch_path \
  16077. configure_time_lt_sys_library_path \
  16078. reload_cmds_CXX \
  16079. old_archive_cmds_CXX \
  16080. old_archive_from_new_cmds_CXX \
  16081. old_archive_from_expsyms_cmds_CXX \
  16082. archive_cmds_CXX \
  16083. archive_expsym_cmds_CXX \
  16084. module_cmds_CXX \
  16085. module_expsym_cmds_CXX \
  16086. export_symbols_cmds_CXX \
  16087. prelink_cmds_CXX \
  16088. postlink_cmds_CXX; do
  16089. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  16090. *[\\\\\\\`\\"\\\$]*)
  16091. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
  16092. ;;
  16093. *)
  16094. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  16095. ;;
  16096. esac
  16097. done
  16098. ac_aux_dir='$ac_aux_dir'
  16099. # See if we are running on zsh, and set the options that allow our
  16100. # commands through without removal of \ escapes INIT.
  16101. if test -n "\${ZSH_VERSION+set}"; then
  16102. setopt NO_GLOB_SUBST
  16103. fi
  16104. PACKAGE='$PACKAGE'
  16105. VERSION='$VERSION'
  16106. RM='$RM'
  16107. ofile='$ofile'
  16108. _ACEOF
  16109. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  16110. # Handling of arguments.
  16111. for ac_config_target in $ac_config_targets
  16112. do
  16113. case $ac_config_target in
  16114. "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
  16115. "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
  16116. "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
  16117. "tests/unit-test.h") CONFIG_HEADERS="$CONFIG_HEADERS tests/unit-test.h" ;;
  16118. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  16119. "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
  16120. "src/modbus-version.h") CONFIG_FILES="$CONFIG_FILES src/modbus-version.h" ;;
  16121. "src/win32/modbus.dll.manifest") CONFIG_FILES="$CONFIG_FILES src/win32/modbus.dll.manifest" ;;
  16122. "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
  16123. "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
  16124. "libmodbus.pc") CONFIG_FILES="$CONFIG_FILES libmodbus.pc" ;;
  16125. *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  16126. esac
  16127. done
  16128. # If the user did not use the arguments to specify the items to instantiate,
  16129. # then the envvar interface is used. Set only those that are not.
  16130. # We use the long form for the default assignment because of an extremely
  16131. # bizarre bug on SunOS 4.1.3.
  16132. if $ac_need_defaults; then
  16133. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  16134. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  16135. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  16136. fi
  16137. # Have a temporary directory for convenience. Make it in the build tree
  16138. # simply because there is no reason against having it here, and in addition,
  16139. # creating and moving files from /tmp can sometimes cause problems.
  16140. # Hook for its removal unless debugging.
  16141. # Note that there is a small window in which the directory will not be cleaned:
  16142. # after its creation but before its name has been assigned to `$tmp'.
  16143. $debug ||
  16144. {
  16145. tmp= ac_tmp=
  16146. trap 'exit_status=$?
  16147. : "${ac_tmp:=$tmp}"
  16148. { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
  16149. ' 0
  16150. trap 'as_fn_exit 1' 1 2 13 15
  16151. }
  16152. # Create a (secure) tmp directory for tmp files.
  16153. {
  16154. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  16155. test -d "$tmp"
  16156. } ||
  16157. {
  16158. tmp=./conf$$-$RANDOM
  16159. (umask 077 && mkdir "$tmp")
  16160. } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
  16161. ac_tmp=$tmp
  16162. # Set up the scripts for CONFIG_FILES section.
  16163. # No need to generate them if there are no CONFIG_FILES.
  16164. # This happens for instance with `./config.status config.h'.
  16165. if test -n "$CONFIG_FILES"; then
  16166. ac_cr=`echo X | tr X '\015'`
  16167. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  16168. # But we know of no other shell where ac_cr would be empty at this
  16169. # point, so we can use a bashism as a fallback.
  16170. if test "x$ac_cr" = x; then
  16171. eval ac_cr=\$\'\\r\'
  16172. fi
  16173. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  16174. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  16175. ac_cs_awk_cr='\\r'
  16176. else
  16177. ac_cs_awk_cr=$ac_cr
  16178. fi
  16179. echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
  16180. _ACEOF
  16181. {
  16182. echo "cat >conf$$subs.awk <<_ACEOF" &&
  16183. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  16184. echo "_ACEOF"
  16185. } >conf$$subs.sh ||
  16186. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  16187. ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
  16188. ac_delim='%!_!# '
  16189. for ac_last_try in false false false false false :; do
  16190. . ./conf$$subs.sh ||
  16191. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  16192. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  16193. if test $ac_delim_n = $ac_delim_num; then
  16194. break
  16195. elif $ac_last_try; then
  16196. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  16197. else
  16198. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  16199. fi
  16200. done
  16201. rm -f conf$$subs.sh
  16202. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  16203. cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
  16204. _ACEOF
  16205. sed -n '
  16206. h
  16207. s/^/S["/; s/!.*/"]=/
  16208. p
  16209. g
  16210. s/^[^!]*!//
  16211. :repl
  16212. t repl
  16213. s/'"$ac_delim"'$//
  16214. t delim
  16215. :nl
  16216. h
  16217. s/\(.\{148\}\)..*/\1/
  16218. t more1
  16219. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  16220. p
  16221. n
  16222. b repl
  16223. :more1
  16224. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  16225. p
  16226. g
  16227. s/.\{148\}//
  16228. t nl
  16229. :delim
  16230. h
  16231. s/\(.\{148\}\)..*/\1/
  16232. t more2
  16233. s/["\\]/\\&/g; s/^/"/; s/$/"/
  16234. p
  16235. b
  16236. :more2
  16237. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  16238. p
  16239. g
  16240. s/.\{148\}//
  16241. t delim
  16242. ' <conf$$subs.awk | sed '
  16243. /^[^""]/{
  16244. N
  16245. s/\n//
  16246. }
  16247. ' >>$CONFIG_STATUS || ac_write_fail=1
  16248. rm -f conf$$subs.awk
  16249. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  16250. _ACAWK
  16251. cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
  16252. for (key in S) S_is_set[key] = 1
  16253. FS = ""
  16254. }
  16255. {
  16256. line = $ 0
  16257. nfields = split(line, field, "@")
  16258. substed = 0
  16259. len = length(field[1])
  16260. for (i = 2; i < nfields; i++) {
  16261. key = field[i]
  16262. keylen = length(key)
  16263. if (S_is_set[key]) {
  16264. value = S[key]
  16265. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  16266. len += length(value) + length(field[++i])
  16267. substed = 1
  16268. } else
  16269. len += 1 + keylen
  16270. }
  16271. print line
  16272. }
  16273. _ACAWK
  16274. _ACEOF
  16275. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  16276. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  16277. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  16278. else
  16279. cat
  16280. fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
  16281. || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
  16282. _ACEOF
  16283. # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
  16284. # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
  16285. # trailing colons and then remove the whole line if VPATH becomes empty
  16286. # (actually we leave an empty line to preserve line numbers).
  16287. if test "x$srcdir" = x.; then
  16288. ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
  16289. h
  16290. s///
  16291. s/^/:/
  16292. s/[ ]*$/:/
  16293. s/:\$(srcdir):/:/g
  16294. s/:\${srcdir}:/:/g
  16295. s/:@srcdir@:/:/g
  16296. s/^:*//
  16297. s/:*$//
  16298. x
  16299. s/\(=[ ]*\).*/\1/
  16300. G
  16301. s/\n//
  16302. s/^[^=]*=[ ]*$//
  16303. }'
  16304. fi
  16305. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  16306. fi # test -n "$CONFIG_FILES"
  16307. # Set up the scripts for CONFIG_HEADERS section.
  16308. # No need to generate them if there are no CONFIG_HEADERS.
  16309. # This happens for instance with `./config.status Makefile'.
  16310. if test -n "$CONFIG_HEADERS"; then
  16311. cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
  16312. BEGIN {
  16313. _ACEOF
  16314. # Transform confdefs.h into an awk script `defines.awk', embedded as
  16315. # here-document in config.status, that substitutes the proper values into
  16316. # config.h.in to produce config.h.
  16317. # Create a delimiter string that does not exist in confdefs.h, to ease
  16318. # handling of long lines.
  16319. ac_delim='%!_!# '
  16320. for ac_last_try in false false :; do
  16321. ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
  16322. if test -z "$ac_tt"; then
  16323. break
  16324. elif $ac_last_try; then
  16325. as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
  16326. else
  16327. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  16328. fi
  16329. done
  16330. # For the awk script, D is an array of macro values keyed by name,
  16331. # likewise P contains macro parameters if any. Preserve backslash
  16332. # newline sequences.
  16333. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  16334. sed -n '
  16335. s/.\{148\}/&'"$ac_delim"'/g
  16336. t rset
  16337. :rset
  16338. s/^[ ]*#[ ]*define[ ][ ]*/ /
  16339. t def
  16340. d
  16341. :def
  16342. s/\\$//
  16343. t bsnl
  16344. s/["\\]/\\&/g
  16345. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  16346. D["\1"]=" \3"/p
  16347. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  16348. d
  16349. :bsnl
  16350. s/["\\]/\\&/g
  16351. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  16352. D["\1"]=" \3\\\\\\n"\\/p
  16353. t cont
  16354. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  16355. t cont
  16356. d
  16357. :cont
  16358. n
  16359. s/.\{148\}/&'"$ac_delim"'/g
  16360. t clear
  16361. :clear
  16362. s/\\$//
  16363. t bsnlc
  16364. s/["\\]/\\&/g; s/^/"/; s/$/"/p
  16365. d
  16366. :bsnlc
  16367. s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  16368. b cont
  16369. ' <confdefs.h | sed '
  16370. s/'"$ac_delim"'/"\\\
  16371. "/g' >>$CONFIG_STATUS || ac_write_fail=1
  16372. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  16373. for (key in D) D_is_set[key] = 1
  16374. FS = ""
  16375. }
  16376. /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  16377. line = \$ 0
  16378. split(line, arg, " ")
  16379. if (arg[1] == "#") {
  16380. defundef = arg[2]
  16381. mac1 = arg[3]
  16382. } else {
  16383. defundef = substr(arg[1], 2)
  16384. mac1 = arg[2]
  16385. }
  16386. split(mac1, mac2, "(") #)
  16387. macro = mac2[1]
  16388. prefix = substr(line, 1, index(line, defundef) - 1)
  16389. if (D_is_set[macro]) {
  16390. # Preserve the white space surrounding the "#".
  16391. print prefix "define", macro P[macro] D[macro]
  16392. next
  16393. } else {
  16394. # Replace #undef with comments. This is necessary, for example,
  16395. # in the case of _POSIX_SOURCE, which is predefined and required
  16396. # on some systems where configure will not decide to define it.
  16397. if (defundef == "undef") {
  16398. print "/*", prefix defundef, macro, "*/"
  16399. next
  16400. }
  16401. }
  16402. }
  16403. { print }
  16404. _ACAWK
  16405. _ACEOF
  16406. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  16407. as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
  16408. fi # test -n "$CONFIG_HEADERS"
  16409. eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
  16410. shift
  16411. for ac_tag
  16412. do
  16413. case $ac_tag in
  16414. :[FHLC]) ac_mode=$ac_tag; continue;;
  16415. esac
  16416. case $ac_mode$ac_tag in
  16417. :[FHL]*:*);;
  16418. :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
  16419. :[FH]-) ac_tag=-:-;;
  16420. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  16421. esac
  16422. ac_save_IFS=$IFS
  16423. IFS=:
  16424. set x $ac_tag
  16425. IFS=$ac_save_IFS
  16426. shift
  16427. ac_file=$1
  16428. shift
  16429. case $ac_mode in
  16430. :L) ac_source=$1;;
  16431. :[FH])
  16432. ac_file_inputs=
  16433. for ac_f
  16434. do
  16435. case $ac_f in
  16436. -) ac_f="$ac_tmp/stdin";;
  16437. *) # Look for the file first in the build tree, then in the source tree
  16438. # (if the path is not absolute). The absolute path cannot be DOS-style,
  16439. # because $ac_f cannot contain `:'.
  16440. test -f "$ac_f" ||
  16441. case $ac_f in
  16442. [\\/$]*) false;;
  16443. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  16444. esac ||
  16445. as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  16446. esac
  16447. case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  16448. as_fn_append ac_file_inputs " '$ac_f'"
  16449. done
  16450. # Let's still pretend it is `configure' which instantiates (i.e., don't
  16451. # use $as_me), people would be surprised to read:
  16452. # /* config.h. Generated by config.status. */
  16453. configure_input='Generated from '`
  16454. $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  16455. `' by configure.'
  16456. if test x"$ac_file" != x-; then
  16457. configure_input="$ac_file. $configure_input"
  16458. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  16459. $as_echo "$as_me: creating $ac_file" >&6;}
  16460. fi
  16461. # Neutralize special characters interpreted by sed in replacement strings.
  16462. case $configure_input in #(
  16463. *\&* | *\|* | *\\* )
  16464. ac_sed_conf_input=`$as_echo "$configure_input" |
  16465. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  16466. *) ac_sed_conf_input=$configure_input;;
  16467. esac
  16468. case $ac_tag in
  16469. *:-:* | *:-) cat >"$ac_tmp/stdin" \
  16470. || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
  16471. esac
  16472. ;;
  16473. esac
  16474. ac_dir=`$as_dirname -- "$ac_file" ||
  16475. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  16476. X"$ac_file" : 'X\(//\)[^/]' \| \
  16477. X"$ac_file" : 'X\(//\)$' \| \
  16478. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  16479. $as_echo X"$ac_file" |
  16480. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  16481. s//\1/
  16482. q
  16483. }
  16484. /^X\(\/\/\)[^/].*/{
  16485. s//\1/
  16486. q
  16487. }
  16488. /^X\(\/\/\)$/{
  16489. s//\1/
  16490. q
  16491. }
  16492. /^X\(\/\).*/{
  16493. s//\1/
  16494. q
  16495. }
  16496. s/.*/./; q'`
  16497. as_dir="$ac_dir"; as_fn_mkdir_p
  16498. ac_builddir=.
  16499. case "$ac_dir" in
  16500. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  16501. *)
  16502. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  16503. # A ".." for each directory in $ac_dir_suffix.
  16504. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  16505. case $ac_top_builddir_sub in
  16506. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  16507. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  16508. esac ;;
  16509. esac
  16510. ac_abs_top_builddir=$ac_pwd
  16511. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  16512. # for backward compatibility:
  16513. ac_top_builddir=$ac_top_build_prefix
  16514. case $srcdir in
  16515. .) # We are building in place.
  16516. ac_srcdir=.
  16517. ac_top_srcdir=$ac_top_builddir_sub
  16518. ac_abs_top_srcdir=$ac_pwd ;;
  16519. [\\/]* | ?:[\\/]* ) # Absolute name.
  16520. ac_srcdir=$srcdir$ac_dir_suffix;
  16521. ac_top_srcdir=$srcdir
  16522. ac_abs_top_srcdir=$srcdir ;;
  16523. *) # Relative name.
  16524. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  16525. ac_top_srcdir=$ac_top_build_prefix$srcdir
  16526. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  16527. esac
  16528. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  16529. case $ac_mode in
  16530. :F)
  16531. #
  16532. # CONFIG_FILE
  16533. #
  16534. case $INSTALL in
  16535. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  16536. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  16537. esac
  16538. ac_MKDIR_P=$MKDIR_P
  16539. case $MKDIR_P in
  16540. [\\/$]* | ?:[\\/]* ) ;;
  16541. */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
  16542. esac
  16543. _ACEOF
  16544. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  16545. # If the template does not know about datarootdir, expand it.
  16546. # FIXME: This hack should be removed a few years after 2.60.
  16547. ac_datarootdir_hack=; ac_datarootdir_seen=
  16548. ac_sed_dataroot='
  16549. /datarootdir/ {
  16550. p
  16551. q
  16552. }
  16553. /@datadir@/p
  16554. /@docdir@/p
  16555. /@infodir@/p
  16556. /@localedir@/p
  16557. /@mandir@/p'
  16558. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  16559. *datarootdir*) ac_datarootdir_seen=yes;;
  16560. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  16561. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  16562. $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  16563. _ACEOF
  16564. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  16565. ac_datarootdir_hack='
  16566. s&@datadir@&$datadir&g
  16567. s&@docdir@&$docdir&g
  16568. s&@infodir@&$infodir&g
  16569. s&@localedir@&$localedir&g
  16570. s&@mandir@&$mandir&g
  16571. s&\\\${datarootdir}&$datarootdir&g' ;;
  16572. esac
  16573. _ACEOF
  16574. # Neutralize VPATH when `$srcdir' = `.'.
  16575. # Shell code in configure.ac might set extrasub.
  16576. # FIXME: do we really want to maintain this feature?
  16577. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  16578. ac_sed_extra="$ac_vpsub
  16579. $extrasub
  16580. _ACEOF
  16581. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  16582. :t
  16583. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  16584. s|@configure_input@|$ac_sed_conf_input|;t t
  16585. s&@top_builddir@&$ac_top_builddir_sub&;t t
  16586. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  16587. s&@srcdir@&$ac_srcdir&;t t
  16588. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  16589. s&@top_srcdir@&$ac_top_srcdir&;t t
  16590. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  16591. s&@builddir@&$ac_builddir&;t t
  16592. s&@abs_builddir@&$ac_abs_builddir&;t t
  16593. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  16594. s&@INSTALL@&$ac_INSTALL&;t t
  16595. s&@MKDIR_P@&$ac_MKDIR_P&;t t
  16596. $ac_datarootdir_hack
  16597. "
  16598. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
  16599. >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  16600. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  16601. { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
  16602. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
  16603. "$ac_tmp/out"`; test -z "$ac_out"; } &&
  16604. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  16605. which seems to be undefined. Please make sure it is defined" >&5
  16606. $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  16607. which seems to be undefined. Please make sure it is defined" >&2;}
  16608. rm -f "$ac_tmp/stdin"
  16609. case $ac_file in
  16610. -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
  16611. *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
  16612. esac \
  16613. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  16614. ;;
  16615. :H)
  16616. #
  16617. # CONFIG_HEADER
  16618. #
  16619. if test x"$ac_file" != x-; then
  16620. {
  16621. $as_echo "/* $configure_input */" \
  16622. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
  16623. } >"$ac_tmp/config.h" \
  16624. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  16625. if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
  16626. { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
  16627. $as_echo "$as_me: $ac_file is unchanged" >&6;}
  16628. else
  16629. rm -f "$ac_file"
  16630. mv "$ac_tmp/config.h" "$ac_file" \
  16631. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  16632. fi
  16633. else
  16634. $as_echo "/* $configure_input */" \
  16635. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
  16636. || as_fn_error $? "could not create -" "$LINENO" 5
  16637. fi
  16638. # Compute "$ac_file"'s index in $config_headers.
  16639. _am_arg="$ac_file"
  16640. _am_stamp_count=1
  16641. for _am_header in $config_headers :; do
  16642. case $_am_header in
  16643. $_am_arg | $_am_arg:* )
  16644. break ;;
  16645. * )
  16646. _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  16647. esac
  16648. done
  16649. echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
  16650. $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  16651. X"$_am_arg" : 'X\(//\)[^/]' \| \
  16652. X"$_am_arg" : 'X\(//\)$' \| \
  16653. X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
  16654. $as_echo X"$_am_arg" |
  16655. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  16656. s//\1/
  16657. q
  16658. }
  16659. /^X\(\/\/\)[^/].*/{
  16660. s//\1/
  16661. q
  16662. }
  16663. /^X\(\/\/\)$/{
  16664. s//\1/
  16665. q
  16666. }
  16667. /^X\(\/\).*/{
  16668. s//\1/
  16669. q
  16670. }
  16671. s/.*/./; q'`/stamp-h$_am_stamp_count
  16672. ;;
  16673. :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
  16674. $as_echo "$as_me: executing $ac_file commands" >&6;}
  16675. ;;
  16676. esac
  16677. case $ac_file$ac_mode in
  16678. "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
  16679. # Older Autoconf quotes --file arguments for eval, but not when files
  16680. # are listed without --file. Let's play safe and only enable the eval
  16681. # if we detect the quoting.
  16682. # TODO: see whether this extra hack can be removed once we start
  16683. # requiring Autoconf 2.70 or later.
  16684. case $CONFIG_FILES in #(
  16685. *\'*) :
  16686. eval set x "$CONFIG_FILES" ;; #(
  16687. *) :
  16688. set x $CONFIG_FILES ;; #(
  16689. *) :
  16690. ;;
  16691. esac
  16692. shift
  16693. # Used to flag and report bootstrapping failures.
  16694. am_rc=0
  16695. for am_mf
  16696. do
  16697. # Strip MF so we end up with the name of the file.
  16698. am_mf=`$as_echo "$am_mf" | sed -e 's/:.*$//'`
  16699. # Check whether this is an Automake generated Makefile which includes
  16700. # dependency-tracking related rules and includes.
  16701. # Grep'ing the whole file directly is not great: AIX grep has a line
  16702. # limit of 2048, but all sed's we know have understand at least 4000.
  16703. sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
  16704. || continue
  16705. am_dirpart=`$as_dirname -- "$am_mf" ||
  16706. $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  16707. X"$am_mf" : 'X\(//\)[^/]' \| \
  16708. X"$am_mf" : 'X\(//\)$' \| \
  16709. X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
  16710. $as_echo X"$am_mf" |
  16711. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  16712. s//\1/
  16713. q
  16714. }
  16715. /^X\(\/\/\)[^/].*/{
  16716. s//\1/
  16717. q
  16718. }
  16719. /^X\(\/\/\)$/{
  16720. s//\1/
  16721. q
  16722. }
  16723. /^X\(\/\).*/{
  16724. s//\1/
  16725. q
  16726. }
  16727. s/.*/./; q'`
  16728. am_filepart=`$as_basename -- "$am_mf" ||
  16729. $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
  16730. X"$am_mf" : 'X\(//\)$' \| \
  16731. X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
  16732. $as_echo X/"$am_mf" |
  16733. sed '/^.*\/\([^/][^/]*\)\/*$/{
  16734. s//\1/
  16735. q
  16736. }
  16737. /^X\/\(\/\/\)$/{
  16738. s//\1/
  16739. q
  16740. }
  16741. /^X\/\(\/\).*/{
  16742. s//\1/
  16743. q
  16744. }
  16745. s/.*/./; q'`
  16746. { echo "$as_me:$LINENO: cd "$am_dirpart" \
  16747. && sed -e '/# am--include-marker/d' "$am_filepart" \
  16748. | $MAKE -f - am--depfiles" >&5
  16749. (cd "$am_dirpart" \
  16750. && sed -e '/# am--include-marker/d' "$am_filepart" \
  16751. | $MAKE -f - am--depfiles) >&5 2>&5
  16752. ac_status=$?
  16753. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16754. (exit $ac_status); } || am_rc=$?
  16755. done
  16756. if test $am_rc -ne 0; then
  16757. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  16758. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  16759. as_fn_error $? "Something went wrong bootstrapping makefile fragments
  16760. for automatic dependency tracking. Try re-running configure with the
  16761. '--disable-dependency-tracking' option to at least be able to build
  16762. the package (albeit without support for automatic dependency tracking).
  16763. See \`config.log' for more details" "$LINENO" 5; }
  16764. fi
  16765. { am_dirpart=; unset am_dirpart;}
  16766. { am_filepart=; unset am_filepart;}
  16767. { am_mf=; unset am_mf;}
  16768. { am_rc=; unset am_rc;}
  16769. rm -f conftest-deps.mk
  16770. }
  16771. ;;
  16772. "libtool":C)
  16773. # See if we are running on zsh, and set the options that allow our
  16774. # commands through without removal of \ escapes.
  16775. if test -n "${ZSH_VERSION+set}"; then
  16776. setopt NO_GLOB_SUBST
  16777. fi
  16778. cfgfile=${ofile}T
  16779. trap "$RM \"$cfgfile\"; exit 1" 1 2 15
  16780. $RM "$cfgfile"
  16781. cat <<_LT_EOF >> "$cfgfile"
  16782. #! $SHELL
  16783. # Generated automatically by $as_me ($PACKAGE) $VERSION
  16784. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  16785. # NOTE: Changes made to this file will be lost: look at ltmain.sh.
  16786. # Provide generalized library-building support services.
  16787. # Written by Gordon Matzigkeit, 1996
  16788. # Copyright (C) 2014 Free Software Foundation, Inc.
  16789. # This is free software; see the source for copying conditions. There is NO
  16790. # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  16791. # GNU Libtool is free software; you can redistribute it and/or modify
  16792. # it under the terms of the GNU General Public License as published by
  16793. # the Free Software Foundation; either version 2 of of the License, or
  16794. # (at your option) any later version.
  16795. #
  16796. # As a special exception to the GNU General Public License, if you
  16797. # distribute this file as part of a program or library that is built
  16798. # using GNU Libtool, you may include this file under the same
  16799. # distribution terms that you use for the rest of that program.
  16800. #
  16801. # GNU Libtool is distributed in the hope that it will be useful, but
  16802. # WITHOUT ANY WARRANTY; without even the implied warranty of
  16803. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  16804. # GNU General Public License for more details.
  16805. #
  16806. # You should have received a copy of the GNU General Public License
  16807. # along with this program. If not, see <http://www.gnu.org/licenses/>.
  16808. # The names of the tagged configurations supported by this script.
  16809. available_tags='CXX '
  16810. # Configured defaults for sys_lib_dlsearch_path munging.
  16811. : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
  16812. # ### BEGIN LIBTOOL CONFIG
  16813. # Which release of libtool.m4 was used?
  16814. macro_version=$macro_version
  16815. macro_revision=$macro_revision
  16816. # Whether or not to build static libraries.
  16817. build_old_libs=$enable_static
  16818. # Assembler program.
  16819. AS=$lt_AS
  16820. # DLL creation program.
  16821. DLLTOOL=$lt_DLLTOOL
  16822. # Object dumper program.
  16823. OBJDUMP=$lt_OBJDUMP
  16824. # What type of objects to build.
  16825. pic_mode=$pic_mode
  16826. # Whether or not to build shared libraries.
  16827. build_libtool_libs=$enable_shared
  16828. # Whether or not to optimize for fast installation.
  16829. fast_install=$enable_fast_install
  16830. # Shared archive member basename,for filename based shared library versioning on AIX.
  16831. shared_archive_member_spec=$shared_archive_member_spec
  16832. # Shell to use when invoking shell scripts.
  16833. SHELL=$lt_SHELL
  16834. # An echo program that protects backslashes.
  16835. ECHO=$lt_ECHO
  16836. # The PATH separator for the build system.
  16837. PATH_SEPARATOR=$lt_PATH_SEPARATOR
  16838. # The host system.
  16839. host_alias=$host_alias
  16840. host=$host
  16841. host_os=$host_os
  16842. # The build system.
  16843. build_alias=$build_alias
  16844. build=$build
  16845. build_os=$build_os
  16846. # A sed program that does not truncate output.
  16847. SED=$lt_SED
  16848. # Sed that helps us avoid accidentally triggering echo(1) options like -n.
  16849. Xsed="\$SED -e 1s/^X//"
  16850. # A grep program that handles long lines.
  16851. GREP=$lt_GREP
  16852. # An ERE matcher.
  16853. EGREP=$lt_EGREP
  16854. # A literal string matcher.
  16855. FGREP=$lt_FGREP
  16856. # A BSD- or MS-compatible name lister.
  16857. NM=$lt_NM
  16858. # Whether we need soft or hard links.
  16859. LN_S=$lt_LN_S
  16860. # What is the maximum length of a command?
  16861. max_cmd_len=$max_cmd_len
  16862. # Object file suffix (normally "o").
  16863. objext=$ac_objext
  16864. # Executable file suffix (normally "").
  16865. exeext=$exeext
  16866. # whether the shell understands "unset".
  16867. lt_unset=$lt_unset
  16868. # turn spaces into newlines.
  16869. SP2NL=$lt_lt_SP2NL
  16870. # turn newlines into spaces.
  16871. NL2SP=$lt_lt_NL2SP
  16872. # convert \$build file names to \$host format.
  16873. to_host_file_cmd=$lt_cv_to_host_file_cmd
  16874. # convert \$build files to toolchain format.
  16875. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  16876. # Method to check whether dependent libraries are shared objects.
  16877. deplibs_check_method=$lt_deplibs_check_method
  16878. # Command to use when deplibs_check_method = "file_magic".
  16879. file_magic_cmd=$lt_file_magic_cmd
  16880. # How to find potential files when deplibs_check_method = "file_magic".
  16881. file_magic_glob=$lt_file_magic_glob
  16882. # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
  16883. want_nocaseglob=$lt_want_nocaseglob
  16884. # Command to associate shared and link libraries.
  16885. sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
  16886. # The archiver.
  16887. AR=$lt_AR
  16888. # Flags to create an archive (by configure).
  16889. lt_ar_flags=$lt_ar_flags
  16890. # Flags to create an archive.
  16891. AR_FLAGS=\${ARFLAGS-"\$lt_ar_flags"}
  16892. # How to feed a file listing to the archiver.
  16893. archiver_list_spec=$lt_archiver_list_spec
  16894. # A symbol stripping program.
  16895. STRIP=$lt_STRIP
  16896. # Commands used to install an old-style archive.
  16897. RANLIB=$lt_RANLIB
  16898. old_postinstall_cmds=$lt_old_postinstall_cmds
  16899. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  16900. # Whether to use a lock for old archive extraction.
  16901. lock_old_archive_extraction=$lock_old_archive_extraction
  16902. # A C compiler.
  16903. LTCC=$lt_CC
  16904. # LTCC compiler flags.
  16905. LTCFLAGS=$lt_CFLAGS
  16906. # Take the output of nm and produce a listing of raw symbols and C names.
  16907. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  16908. # Transform the output of nm in a proper C declaration.
  16909. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  16910. # Transform the output of nm into a list of symbols to manually relocate.
  16911. global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
  16912. # Transform the output of nm in a C name address pair.
  16913. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  16914. # Transform the output of nm in a C name address pair when lib prefix is needed.
  16915. global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
  16916. # The name lister interface.
  16917. nm_interface=$lt_lt_cv_nm_interface
  16918. # Specify filename containing input files for \$NM.
  16919. nm_file_list_spec=$lt_nm_file_list_spec
  16920. # The root where to search for dependent libraries,and where our libraries should be installed.
  16921. lt_sysroot=$lt_sysroot
  16922. # Command to truncate a binary pipe.
  16923. lt_truncate_bin=$lt_lt_cv_truncate_bin
  16924. # The name of the directory that contains temporary libtool files.
  16925. objdir=$objdir
  16926. # Used to examine libraries when file_magic_cmd begins with "file".
  16927. MAGIC_CMD=$MAGIC_CMD
  16928. # Must we lock files when doing compilation?
  16929. need_locks=$lt_need_locks
  16930. # Manifest tool.
  16931. MANIFEST_TOOL=$lt_MANIFEST_TOOL
  16932. # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
  16933. DSYMUTIL=$lt_DSYMUTIL
  16934. # Tool to change global to local symbols on Mac OS X.
  16935. NMEDIT=$lt_NMEDIT
  16936. # Tool to manipulate fat objects and archives on Mac OS X.
  16937. LIPO=$lt_LIPO
  16938. # ldd/readelf like tool for Mach-O binaries on Mac OS X.
  16939. OTOOL=$lt_OTOOL
  16940. # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
  16941. OTOOL64=$lt_OTOOL64
  16942. # Old archive suffix (normally "a").
  16943. libext=$libext
  16944. # Shared library suffix (normally ".so").
  16945. shrext_cmds=$lt_shrext_cmds
  16946. # The commands to extract the exported symbol list from a shared archive.
  16947. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  16948. # Variables whose values should be saved in libtool wrapper scripts and
  16949. # restored at link time.
  16950. variables_saved_for_relink=$lt_variables_saved_for_relink
  16951. # Do we need the "lib" prefix for modules?
  16952. need_lib_prefix=$need_lib_prefix
  16953. # Do we need a version for libraries?
  16954. need_version=$need_version
  16955. # Library versioning type.
  16956. version_type=$version_type
  16957. # Shared library runtime path variable.
  16958. runpath_var=$runpath_var
  16959. # Shared library path variable.
  16960. shlibpath_var=$shlibpath_var
  16961. # Is shlibpath searched before the hard-coded library search path?
  16962. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  16963. # Format of library name prefix.
  16964. libname_spec=$lt_libname_spec
  16965. # List of archive names. First name is the real one, the rest are links.
  16966. # The last name is the one that the linker finds with -lNAME
  16967. library_names_spec=$lt_library_names_spec
  16968. # The coded name of the library, if different from the real name.
  16969. soname_spec=$lt_soname_spec
  16970. # Permission mode override for installation of shared libraries.
  16971. install_override_mode=$lt_install_override_mode
  16972. # Command to use after installation of a shared archive.
  16973. postinstall_cmds=$lt_postinstall_cmds
  16974. # Command to use after uninstallation of a shared archive.
  16975. postuninstall_cmds=$lt_postuninstall_cmds
  16976. # Commands used to finish a libtool library installation in a directory.
  16977. finish_cmds=$lt_finish_cmds
  16978. # As "finish_cmds", except a single script fragment to be evaled but
  16979. # not shown.
  16980. finish_eval=$lt_finish_eval
  16981. # Whether we should hardcode library paths into libraries.
  16982. hardcode_into_libs=$hardcode_into_libs
  16983. # Compile-time system search path for libraries.
  16984. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  16985. # Detected run-time system search path for libraries.
  16986. sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
  16987. # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
  16988. configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
  16989. # Whether dlopen is supported.
  16990. dlopen_support=$enable_dlopen
  16991. # Whether dlopen of programs is supported.
  16992. dlopen_self=$enable_dlopen_self
  16993. # Whether dlopen of statically linked programs is supported.
  16994. dlopen_self_static=$enable_dlopen_self_static
  16995. # Commands to strip libraries.
  16996. old_striplib=$lt_old_striplib
  16997. striplib=$lt_striplib
  16998. # The linker used to build libraries.
  16999. LD=$lt_LD
  17000. # How to create reloadable object files.
  17001. reload_flag=$lt_reload_flag
  17002. reload_cmds=$lt_reload_cmds
  17003. # Commands used to build an old-style archive.
  17004. old_archive_cmds=$lt_old_archive_cmds
  17005. # A language specific compiler.
  17006. CC=$lt_compiler
  17007. # Is the compiler the GNU compiler?
  17008. with_gcc=$GCC
  17009. # Compiler flag to turn off builtin functions.
  17010. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  17011. # Additional compiler flags for building library objects.
  17012. pic_flag=$lt_lt_prog_compiler_pic
  17013. # How to pass a linker flag through the compiler.
  17014. wl=$lt_lt_prog_compiler_wl
  17015. # Compiler flag to prevent dynamic linking.
  17016. link_static_flag=$lt_lt_prog_compiler_static
  17017. # Does compiler simultaneously support -c and -o options?
  17018. compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  17019. # Whether or not to add -lc for building shared libraries.
  17020. build_libtool_need_lc=$archive_cmds_need_lc
  17021. # Whether or not to disallow shared libs when runtime libs are static.
  17022. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  17023. # Compiler flag to allow reflexive dlopens.
  17024. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  17025. # Compiler flag to generate shared objects directly from archives.
  17026. whole_archive_flag_spec=$lt_whole_archive_flag_spec
  17027. # Whether the compiler copes with passing no objects directly.
  17028. compiler_needs_object=$lt_compiler_needs_object
  17029. # Create an old-style archive from a shared archive.
  17030. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  17031. # Create a temporary old-style archive to link instead of a shared archive.
  17032. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  17033. # Commands used to build a shared archive.
  17034. archive_cmds=$lt_archive_cmds
  17035. archive_expsym_cmds=$lt_archive_expsym_cmds
  17036. # Commands used to build a loadable module if different from building
  17037. # a shared archive.
  17038. module_cmds=$lt_module_cmds
  17039. module_expsym_cmds=$lt_module_expsym_cmds
  17040. # Whether we are building with GNU ld or not.
  17041. with_gnu_ld=$lt_with_gnu_ld
  17042. # Flag that allows shared libraries with undefined symbols to be built.
  17043. allow_undefined_flag=$lt_allow_undefined_flag
  17044. # Flag that enforces no undefined symbols.
  17045. no_undefined_flag=$lt_no_undefined_flag
  17046. # Flag to hardcode \$libdir into a binary during linking.
  17047. # This must work even if \$libdir does not exist
  17048. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  17049. # Whether we need a single "-rpath" flag with a separated argument.
  17050. hardcode_libdir_separator=$lt_hardcode_libdir_separator
  17051. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  17052. # DIR into the resulting binary.
  17053. hardcode_direct=$hardcode_direct
  17054. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  17055. # DIR into the resulting binary and the resulting library dependency is
  17056. # "absolute",i.e impossible to change by setting \$shlibpath_var if the
  17057. # library is relocated.
  17058. hardcode_direct_absolute=$hardcode_direct_absolute
  17059. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  17060. # into the resulting binary.
  17061. hardcode_minus_L=$hardcode_minus_L
  17062. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  17063. # into the resulting binary.
  17064. hardcode_shlibpath_var=$hardcode_shlibpath_var
  17065. # Set to "yes" if building a shared library automatically hardcodes DIR
  17066. # into the library and all subsequent libraries and executables linked
  17067. # against it.
  17068. hardcode_automatic=$hardcode_automatic
  17069. # Set to yes if linker adds runtime paths of dependent libraries
  17070. # to runtime path list.
  17071. inherit_rpath=$inherit_rpath
  17072. # Whether libtool must link a program against all its dependency libraries.
  17073. link_all_deplibs=$link_all_deplibs
  17074. # Set to "yes" if exported symbols are required.
  17075. always_export_symbols=$always_export_symbols
  17076. # The commands to list exported symbols.
  17077. export_symbols_cmds=$lt_export_symbols_cmds
  17078. # Symbols that should not be listed in the preloaded symbols.
  17079. exclude_expsyms=$lt_exclude_expsyms
  17080. # Symbols that must always be exported.
  17081. include_expsyms=$lt_include_expsyms
  17082. # Commands necessary for linking programs (against libraries) with templates.
  17083. prelink_cmds=$lt_prelink_cmds
  17084. # Commands necessary for finishing linking programs.
  17085. postlink_cmds=$lt_postlink_cmds
  17086. # Specify filename containing input files.
  17087. file_list_spec=$lt_file_list_spec
  17088. # How to hardcode a shared library path into an executable.
  17089. hardcode_action=$hardcode_action
  17090. # The directories searched by this compiler when creating a shared library.
  17091. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
  17092. # Dependencies to place before and after the objects being linked to
  17093. # create a shared library.
  17094. predep_objects=$lt_predep_objects
  17095. postdep_objects=$lt_postdep_objects
  17096. predeps=$lt_predeps
  17097. postdeps=$lt_postdeps
  17098. # The library search path used internally by the compiler when linking
  17099. # a shared library.
  17100. compiler_lib_search_path=$lt_compiler_lib_search_path
  17101. # ### END LIBTOOL CONFIG
  17102. _LT_EOF
  17103. cat <<'_LT_EOF' >> "$cfgfile"
  17104. # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
  17105. # func_munge_path_list VARIABLE PATH
  17106. # -----------------------------------
  17107. # VARIABLE is name of variable containing _space_ separated list of
  17108. # directories to be munged by the contents of PATH, which is string
  17109. # having a format:
  17110. # "DIR[:DIR]:"
  17111. # string "DIR[ DIR]" will be prepended to VARIABLE
  17112. # ":DIR[:DIR]"
  17113. # string "DIR[ DIR]" will be appended to VARIABLE
  17114. # "DIRP[:DIRP]::[DIRA:]DIRA"
  17115. # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
  17116. # "DIRA[ DIRA]" will be appended to VARIABLE
  17117. # "DIR[:DIR]"
  17118. # VARIABLE will be replaced by "DIR[ DIR]"
  17119. func_munge_path_list ()
  17120. {
  17121. case x$2 in
  17122. x)
  17123. ;;
  17124. *:)
  17125. eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
  17126. ;;
  17127. x:*)
  17128. eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
  17129. ;;
  17130. *::*)
  17131. eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
  17132. eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
  17133. ;;
  17134. *)
  17135. eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
  17136. ;;
  17137. esac
  17138. }
  17139. # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
  17140. func_cc_basename ()
  17141. {
  17142. for cc_temp in $*""; do
  17143. case $cc_temp in
  17144. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  17145. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  17146. \-*) ;;
  17147. *) break;;
  17148. esac
  17149. done
  17150. func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  17151. }
  17152. # ### END FUNCTIONS SHARED WITH CONFIGURE
  17153. _LT_EOF
  17154. case $host_os in
  17155. aix3*)
  17156. cat <<\_LT_EOF >> "$cfgfile"
  17157. # AIX sometimes has problems with the GCC collect2 program. For some
  17158. # reason, if we set the COLLECT_NAMES environment variable, the problems
  17159. # vanish in a puff of smoke.
  17160. if test set != "${COLLECT_NAMES+set}"; then
  17161. COLLECT_NAMES=
  17162. export COLLECT_NAMES
  17163. fi
  17164. _LT_EOF
  17165. ;;
  17166. esac
  17167. ltmain=$ac_aux_dir/ltmain.sh
  17168. # We use sed instead of cat because bash on DJGPP gets confused if
  17169. # if finds mixed CR/LF and LF-only lines. Since sed operates in
  17170. # text mode, it properly converts lines to CR/LF. This bash problem
  17171. # is reportedly fixed, but why not run on old versions too?
  17172. sed '$q' "$ltmain" >> "$cfgfile" \
  17173. || (rm -f "$cfgfile"; exit 1)
  17174. mv -f "$cfgfile" "$ofile" ||
  17175. (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  17176. chmod +x "$ofile"
  17177. cat <<_LT_EOF >> "$ofile"
  17178. # ### BEGIN LIBTOOL TAG CONFIG: CXX
  17179. # The linker used to build libraries.
  17180. LD=$lt_LD_CXX
  17181. # How to create reloadable object files.
  17182. reload_flag=$lt_reload_flag_CXX
  17183. reload_cmds=$lt_reload_cmds_CXX
  17184. # Commands used to build an old-style archive.
  17185. old_archive_cmds=$lt_old_archive_cmds_CXX
  17186. # A language specific compiler.
  17187. CC=$lt_compiler_CXX
  17188. # Is the compiler the GNU compiler?
  17189. with_gcc=$GCC_CXX
  17190. # Compiler flag to turn off builtin functions.
  17191. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
  17192. # Additional compiler flags for building library objects.
  17193. pic_flag=$lt_lt_prog_compiler_pic_CXX
  17194. # How to pass a linker flag through the compiler.
  17195. wl=$lt_lt_prog_compiler_wl_CXX
  17196. # Compiler flag to prevent dynamic linking.
  17197. link_static_flag=$lt_lt_prog_compiler_static_CXX
  17198. # Does compiler simultaneously support -c and -o options?
  17199. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
  17200. # Whether or not to add -lc for building shared libraries.
  17201. build_libtool_need_lc=$archive_cmds_need_lc_CXX
  17202. # Whether or not to disallow shared libs when runtime libs are static.
  17203. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
  17204. # Compiler flag to allow reflexive dlopens.
  17205. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
  17206. # Compiler flag to generate shared objects directly from archives.
  17207. whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
  17208. # Whether the compiler copes with passing no objects directly.
  17209. compiler_needs_object=$lt_compiler_needs_object_CXX
  17210. # Create an old-style archive from a shared archive.
  17211. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
  17212. # Create a temporary old-style archive to link instead of a shared archive.
  17213. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
  17214. # Commands used to build a shared archive.
  17215. archive_cmds=$lt_archive_cmds_CXX
  17216. archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
  17217. # Commands used to build a loadable module if different from building
  17218. # a shared archive.
  17219. module_cmds=$lt_module_cmds_CXX
  17220. module_expsym_cmds=$lt_module_expsym_cmds_CXX
  17221. # Whether we are building with GNU ld or not.
  17222. with_gnu_ld=$lt_with_gnu_ld_CXX
  17223. # Flag that allows shared libraries with undefined symbols to be built.
  17224. allow_undefined_flag=$lt_allow_undefined_flag_CXX
  17225. # Flag that enforces no undefined symbols.
  17226. no_undefined_flag=$lt_no_undefined_flag_CXX
  17227. # Flag to hardcode \$libdir into a binary during linking.
  17228. # This must work even if \$libdir does not exist
  17229. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
  17230. # Whether we need a single "-rpath" flag with a separated argument.
  17231. hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
  17232. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  17233. # DIR into the resulting binary.
  17234. hardcode_direct=$hardcode_direct_CXX
  17235. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  17236. # DIR into the resulting binary and the resulting library dependency is
  17237. # "absolute",i.e impossible to change by setting \$shlibpath_var if the
  17238. # library is relocated.
  17239. hardcode_direct_absolute=$hardcode_direct_absolute_CXX
  17240. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  17241. # into the resulting binary.
  17242. hardcode_minus_L=$hardcode_minus_L_CXX
  17243. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  17244. # into the resulting binary.
  17245. hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
  17246. # Set to "yes" if building a shared library automatically hardcodes DIR
  17247. # into the library and all subsequent libraries and executables linked
  17248. # against it.
  17249. hardcode_automatic=$hardcode_automatic_CXX
  17250. # Set to yes if linker adds runtime paths of dependent libraries
  17251. # to runtime path list.
  17252. inherit_rpath=$inherit_rpath_CXX
  17253. # Whether libtool must link a program against all its dependency libraries.
  17254. link_all_deplibs=$link_all_deplibs_CXX
  17255. # Set to "yes" if exported symbols are required.
  17256. always_export_symbols=$always_export_symbols_CXX
  17257. # The commands to list exported symbols.
  17258. export_symbols_cmds=$lt_export_symbols_cmds_CXX
  17259. # Symbols that should not be listed in the preloaded symbols.
  17260. exclude_expsyms=$lt_exclude_expsyms_CXX
  17261. # Symbols that must always be exported.
  17262. include_expsyms=$lt_include_expsyms_CXX
  17263. # Commands necessary for linking programs (against libraries) with templates.
  17264. prelink_cmds=$lt_prelink_cmds_CXX
  17265. # Commands necessary for finishing linking programs.
  17266. postlink_cmds=$lt_postlink_cmds_CXX
  17267. # Specify filename containing input files.
  17268. file_list_spec=$lt_file_list_spec_CXX
  17269. # How to hardcode a shared library path into an executable.
  17270. hardcode_action=$hardcode_action_CXX
  17271. # The directories searched by this compiler when creating a shared library.
  17272. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
  17273. # Dependencies to place before and after the objects being linked to
  17274. # create a shared library.
  17275. predep_objects=$lt_predep_objects_CXX
  17276. postdep_objects=$lt_postdep_objects_CXX
  17277. predeps=$lt_predeps_CXX
  17278. postdeps=$lt_postdeps_CXX
  17279. # The library search path used internally by the compiler when linking
  17280. # a shared library.
  17281. compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
  17282. # ### END LIBTOOL TAG CONFIG: CXX
  17283. _LT_EOF
  17284. ;;
  17285. esac
  17286. done # for ac_tag
  17287. as_fn_exit 0
  17288. _ACEOF
  17289. ac_clean_files=$ac_clean_files_save
  17290. test $ac_write_fail = 0 ||
  17291. as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
  17292. # configure is writing to config.log, and then calls config.status.
  17293. # config.status does its own redirection, appending to config.log.
  17294. # Unfortunately, on DOS this fails, as config.log is still kept open
  17295. # by configure, so config.status won't be able to write to it; its
  17296. # output is simply discarded. So we exec the FD to /dev/null,
  17297. # effectively closing config.log, so it can be properly (re)opened and
  17298. # appended to by config.status. When coming back to configure, we
  17299. # need to make the FD available again.
  17300. if test "$no_create" != yes; then
  17301. ac_cs_success=:
  17302. ac_config_status_args=
  17303. test "$silent" = yes &&
  17304. ac_config_status_args="$ac_config_status_args --quiet"
  17305. exec 5>/dev/null
  17306. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  17307. exec 5>>config.log
  17308. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  17309. # would make configure fail if this is the last instruction.
  17310. $ac_cs_success || as_fn_exit 1
  17311. fi
  17312. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  17313. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  17314. $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  17315. fi
  17316. { $as_echo "$as_me:${as_lineno-$LINENO}: result:
  17317. $PACKAGE $VERSION
  17318. ===============
  17319. prefix: ${prefix}
  17320. sysconfdir: ${sysconfdir}
  17321. libdir: ${libdir}
  17322. includedir: ${includedir}
  17323. compiler: ${CC}
  17324. cflags: ${CFLAGS}
  17325. ldflags: ${LDFLAGS}
  17326. documentation: ${ac_libmodbus_build_doc}
  17327. tests: ${enable_tests}
  17328. " >&5
  17329. $as_echo "
  17330. $PACKAGE $VERSION
  17331. ===============
  17332. prefix: ${prefix}
  17333. sysconfdir: ${sysconfdir}
  17334. libdir: ${libdir}
  17335. includedir: ${includedir}
  17336. compiler: ${CC}
  17337. cflags: ${CFLAGS}
  17338. ldflags: ${LDFLAGS}
  17339. documentation: ${ac_libmodbus_build_doc}
  17340. tests: ${enable_tests}
  17341. " >&6; }