configure 515 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425134261342713428134291343013431134321343313434134351343613437134381343913440134411344213443134441344513446134471344813449134501345113452134531345413455134561345713458134591346013461134621346313464134651346613467134681346913470134711347213473134741347513476134771347813479134801348113482134831348413485134861348713488134891349013491134921349313494134951349613497134981349913500135011350213503135041350513506135071350813509135101351113512135131351413515135161351713518135191352013521135221352313524135251352613527135281352913530135311353213533135341353513536135371353813539135401354113542135431354413545135461354713548135491355013551135521355313554135551355613557135581355913560135611356213563135641356513566135671356813569135701357113572135731357413575135761357713578135791358013581135821358313584135851358613587135881358913590135911359213593135941359513596135971359813599136001360113602136031360413605136061360713608136091361013611136121361313614136151361613617136181361913620136211362213623136241362513626136271362813629136301363113632136331363413635136361363713638136391364013641136421364313644136451364613647136481364913650136511365213653136541365513656136571365813659136601366113662136631366413665136661366713668136691367013671136721367313674136751367613677136781367913680136811368213683136841368513686136871368813689136901369113692136931369413695136961369713698136991370013701137021370313704137051370613707137081370913710137111371213713137141371513716137171371813719137201372113722137231372413725137261372713728137291373013731137321373313734137351373613737137381373913740137411374213743137441374513746137471374813749137501375113752137531375413755137561375713758137591376013761137621376313764137651376613767137681376913770137711377213773137741377513776137771377813779137801378113782137831378413785137861378713788137891379013791137921379313794137951379613797137981379913800138011380213803138041380513806138071380813809138101381113812138131381413815138161381713818138191382013821138221382313824138251382613827138281382913830138311383213833138341383513836138371383813839138401384113842138431384413845138461384713848138491385013851138521385313854138551385613857138581385913860138611386213863138641386513866138671386813869138701387113872138731387413875138761387713878138791388013881138821388313884138851388613887138881388913890138911389213893138941389513896138971389813899139001390113902139031390413905139061390713908139091391013911139121391313914139151391613917139181391913920139211392213923139241392513926139271392813929139301393113932139331393413935139361393713938139391394013941139421394313944139451394613947139481394913950139511395213953139541395513956139571395813959139601396113962139631396413965139661396713968139691397013971139721397313974139751397613977139781397913980139811398213983139841398513986139871398813989139901399113992139931399413995139961399713998139991400014001140021400314004140051400614007140081400914010140111401214013140141401514016140171401814019140201402114022140231402414025140261402714028140291403014031140321403314034140351403614037140381403914040140411404214043140441404514046140471404814049140501405114052140531405414055140561405714058140591406014061140621406314064140651406614067140681406914070140711407214073140741407514076140771407814079140801408114082140831408414085140861408714088140891409014091140921409314094140951409614097140981409914100141011410214103141041410514106141071410814109141101411114112141131411414115141161411714118141191412014121141221412314124141251412614127141281412914130141311413214133141341413514136141371413814139141401414114142141431414414145141461414714148141491415014151141521415314154141551415614157141581415914160141611416214163141641416514166141671416814169141701417114172141731417414175141761417714178141791418014181141821418314184141851418614187141881418914190141911419214193141941419514196141971419814199142001420114202142031420414205142061420714208142091421014211142121421314214142151421614217142181421914220142211422214223142241422514226142271422814229142301423114232142331423414235142361423714238142391424014241142421424314244142451424614247142481424914250142511425214253142541425514256142571425814259142601426114262142631426414265142661426714268142691427014271142721427314274142751427614277142781427914280142811428214283142841428514286142871428814289142901429114292142931429414295142961429714298142991430014301143021430314304143051430614307143081430914310143111431214313143141431514316143171431814319143201432114322143231432414325143261432714328143291433014331143321433314334143351433614337143381433914340143411434214343143441434514346143471434814349143501435114352143531435414355143561435714358143591436014361143621436314364143651436614367143681436914370143711437214373143741437514376143771437814379143801438114382143831438414385143861438714388143891439014391143921439314394143951439614397143981439914400144011440214403144041440514406144071440814409144101441114412144131441414415144161441714418144191442014421144221442314424144251442614427144281442914430144311443214433144341443514436144371443814439144401444114442144431444414445144461444714448144491445014451144521445314454144551445614457144581445914460144611446214463144641446514466144671446814469144701447114472144731447414475144761447714478144791448014481144821448314484144851448614487144881448914490144911449214493144941449514496144971449814499145001450114502145031450414505145061450714508145091451014511145121451314514145151451614517145181451914520145211452214523145241452514526145271452814529145301453114532145331453414535145361453714538145391454014541145421454314544145451454614547145481454914550145511455214553145541455514556145571455814559145601456114562145631456414565145661456714568145691457014571145721457314574145751457614577145781457914580145811458214583145841458514586145871458814589145901459114592145931459414595145961459714598145991460014601146021460314604146051460614607146081460914610146111461214613146141461514616146171461814619146201462114622146231462414625146261462714628146291463014631146321463314634146351463614637146381463914640146411464214643146441464514646146471464814649146501465114652146531465414655146561465714658146591466014661146621466314664146651466614667146681466914670146711467214673146741467514676146771467814679146801468114682146831468414685146861468714688146891469014691146921469314694146951469614697146981469914700147011470214703147041470514706147071470814709147101471114712147131471414715147161471714718147191472014721147221472314724147251472614727147281472914730147311473214733147341473514736147371473814739147401474114742147431474414745147461474714748147491475014751147521475314754147551475614757147581475914760147611476214763147641476514766147671476814769147701477114772147731477414775147761477714778147791478014781147821478314784147851478614787147881478914790147911479214793147941479514796147971479814799148001480114802148031480414805148061480714808148091481014811148121481314814148151481614817148181481914820148211482214823148241482514826148271482814829148301483114832148331483414835148361483714838148391484014841148421484314844148451484614847148481484914850148511485214853148541485514856148571485814859148601486114862148631486414865148661486714868148691487014871148721487314874148751487614877148781487914880148811488214883148841488514886148871488814889148901489114892148931489414895148961489714898148991490014901149021490314904149051490614907149081490914910149111491214913149141491514916149171491814919149201492114922149231492414925149261492714928149291493014931149321493314934149351493614937149381493914940149411494214943149441494514946149471494814949149501495114952149531495414955149561495714958149591496014961149621496314964149651496614967149681496914970149711497214973149741497514976149771497814979149801498114982149831498414985149861498714988149891499014991149921499314994149951499614997149981499915000150011500215003150041500515006150071500815009150101501115012150131501415015150161501715018150191502015021150221502315024150251502615027150281502915030150311503215033150341503515036150371503815039150401504115042150431504415045150461504715048150491505015051150521505315054150551505615057150581505915060150611506215063150641506515066150671506815069150701507115072150731507415075150761507715078150791508015081150821508315084150851508615087150881508915090150911509215093150941509515096150971509815099151001510115102151031510415105151061510715108151091511015111151121511315114151151511615117151181511915120151211512215123151241512515126151271512815129151301513115132151331513415135151361513715138151391514015141151421514315144151451514615147151481514915150151511515215153151541515515156151571515815159151601516115162151631516415165151661516715168151691517015171151721517315174151751517615177151781517915180151811518215183151841518515186151871518815189151901519115192151931519415195151961519715198151991520015201152021520315204152051520615207152081520915210152111521215213152141521515216152171521815219152201522115222152231522415225152261522715228152291523015231152321523315234152351523615237152381523915240152411524215243152441524515246152471524815249152501525115252152531525415255152561525715258152591526015261152621526315264152651526615267152681526915270152711527215273152741527515276152771527815279152801528115282152831528415285152861528715288152891529015291152921529315294152951529615297152981529915300153011530215303153041530515306153071530815309153101531115312153131531415315153161531715318153191532015321153221532315324153251532615327153281532915330153311533215333153341533515336153371533815339153401534115342153431534415345153461534715348153491535015351153521535315354153551535615357153581535915360153611536215363153641536515366153671536815369153701537115372153731537415375153761537715378153791538015381153821538315384153851538615387153881538915390153911539215393153941539515396153971539815399154001540115402154031540415405154061540715408154091541015411154121541315414154151541615417154181541915420154211542215423154241542515426154271542815429154301543115432154331543415435154361543715438154391544015441154421544315444154451544615447154481544915450154511545215453154541545515456154571545815459154601546115462154631546415465154661546715468154691547015471154721547315474154751547615477154781547915480154811548215483154841548515486154871548815489154901549115492154931549415495154961549715498154991550015501155021550315504155051550615507155081550915510155111551215513155141551515516155171551815519155201552115522155231552415525155261552715528155291553015531155321553315534155351553615537155381553915540155411554215543155441554515546155471554815549155501555115552155531555415555155561555715558155591556015561155621556315564155651556615567155681556915570155711557215573155741557515576155771557815579155801558115582155831558415585155861558715588155891559015591155921559315594155951559615597155981559915600156011560215603156041560515606156071560815609156101561115612156131561415615156161561715618156191562015621156221562315624156251562615627156281562915630156311563215633156341563515636156371563815639156401564115642156431564415645156461564715648156491565015651156521565315654156551565615657156581565915660156611566215663156641566515666156671566815669156701567115672156731567415675156761567715678156791568015681156821568315684156851568615687156881568915690156911569215693156941569515696156971569815699157001570115702157031570415705157061570715708157091571015711157121571315714157151571615717157181571915720157211572215723157241572515726157271572815729157301573115732157331573415735157361573715738157391574015741157421574315744157451574615747157481574915750157511575215753157541575515756157571575815759157601576115762157631576415765157661576715768157691577015771157721577315774157751577615777157781577915780157811578215783157841578515786157871578815789157901579115792157931579415795157961579715798157991580015801158021580315804158051580615807158081580915810158111581215813158141581515816158171581815819158201582115822158231582415825158261582715828158291583015831158321583315834158351583615837158381583915840158411584215843158441584515846158471584815849158501585115852158531585415855158561585715858158591586015861158621586315864158651586615867158681586915870158711587215873158741587515876158771587815879158801588115882158831588415885158861588715888158891589015891158921589315894158951589615897158981589915900159011590215903159041590515906159071590815909159101591115912159131591415915159161591715918159191592015921159221592315924159251592615927159281592915930159311593215933159341593515936159371593815939159401594115942159431594415945159461594715948159491595015951159521595315954159551595615957159581595915960159611596215963159641596515966159671596815969159701597115972159731597415975159761597715978159791598015981159821598315984159851598615987159881598915990159911599215993159941599515996159971599815999160001600116002160031600416005160061600716008160091601016011160121601316014160151601616017160181601916020160211602216023160241602516026160271602816029160301603116032160331603416035160361603716038160391604016041160421604316044160451604616047160481604916050160511605216053160541605516056160571605816059160601606116062160631606416065160661606716068160691607016071160721607316074160751607616077160781607916080160811608216083160841608516086160871608816089160901609116092160931609416095160961609716098160991610016101161021610316104161051610616107161081610916110161111611216113161141611516116161171611816119161201612116122161231612416125161261612716128161291613016131161321613316134161351613616137161381613916140161411614216143161441614516146161471614816149161501615116152161531615416155161561615716158161591616016161161621616316164161651616616167161681616916170161711617216173161741617516176161771617816179161801618116182161831618416185161861618716188161891619016191161921619316194161951619616197161981619916200162011620216203162041620516206162071620816209162101621116212162131621416215162161621716218162191622016221162221622316224162251622616227162281622916230162311623216233162341623516236162371623816239162401624116242162431624416245162461624716248162491625016251162521625316254162551625616257162581625916260162611626216263162641626516266162671626816269162701627116272162731627416275162761627716278162791628016281162821628316284162851628616287162881628916290162911629216293162941629516296162971629816299163001630116302163031630416305163061630716308163091631016311163121631316314163151631616317163181631916320163211632216323163241632516326163271632816329163301633116332163331633416335163361633716338163391634016341163421634316344163451634616347163481634916350163511635216353163541635516356163571635816359163601636116362163631636416365163661636716368163691637016371163721637316374163751637616377163781637916380163811638216383163841638516386163871638816389163901639116392163931639416395163961639716398163991640016401164021640316404164051640616407164081640916410164111641216413164141641516416164171641816419164201642116422164231642416425164261642716428164291643016431164321643316434164351643616437164381643916440164411644216443164441644516446164471644816449164501645116452164531645416455164561645716458164591646016461164621646316464164651646616467164681646916470164711647216473164741647516476164771647816479164801648116482164831648416485164861648716488164891649016491164921649316494164951649616497164981649916500165011650216503165041650516506165071650816509165101651116512165131651416515165161651716518165191652016521165221652316524165251652616527165281652916530165311653216533165341653516536165371653816539165401654116542165431654416545165461654716548165491655016551165521655316554165551655616557165581655916560165611656216563165641656516566165671656816569165701657116572165731657416575165761657716578165791658016581165821658316584165851658616587165881658916590165911659216593165941659516596165971659816599166001660116602166031660416605166061660716608166091661016611166121661316614166151661616617166181661916620166211662216623166241662516626166271662816629166301663116632166331663416635166361663716638166391664016641166421664316644166451664616647166481664916650166511665216653166541665516656166571665816659166601666116662166631666416665166661666716668166691667016671166721667316674166751667616677166781667916680166811668216683166841668516686166871668816689166901669116692166931669416695166961669716698166991670016701167021670316704167051670616707167081670916710167111671216713167141671516716167171671816719167201672116722167231672416725167261672716728167291673016731167321673316734167351673616737167381673916740167411674216743167441674516746167471674816749167501675116752167531675416755167561675716758167591676016761167621676316764167651676616767167681676916770167711677216773167741677516776167771677816779167801678116782167831678416785167861678716788167891679016791167921679316794167951679616797167981679916800168011680216803168041680516806168071680816809168101681116812168131681416815168161681716818168191682016821168221682316824168251682616827168281682916830168311683216833168341683516836168371683816839168401684116842168431684416845168461684716848168491685016851168521685316854168551685616857168581685916860168611686216863168641686516866168671686816869168701687116872168731687416875168761687716878168791688016881168821688316884168851688616887168881688916890168911689216893168941689516896168971689816899169001690116902169031690416905169061690716908169091691016911169121691316914169151691616917169181691916920169211692216923169241692516926169271692816929169301693116932169331693416935169361693716938169391694016941169421694316944169451694616947169481694916950169511695216953169541695516956169571695816959169601696116962169631696416965169661696716968169691697016971169721697316974169751697616977169781697916980169811698216983169841698516986169871698816989169901699116992169931699416995169961699716998169991700017001170021700317004170051700617007170081700917010170111701217013170141701517016170171701817019170201702117022170231702417025170261702717028170291703017031170321703317034170351703617037170381703917040170411704217043170441704517046170471704817049170501705117052170531705417055170561705717058170591706017061170621706317064170651706617067170681706917070170711707217073170741707517076170771707817079170801708117082170831708417085170861708717088170891709017091170921709317094170951709617097170981709917100171011710217103171041710517106171071710817109171101711117112171131711417115171161711717118171191712017121171221712317124171251712617127171281712917130171311713217133171341713517136171371713817139171401714117142171431714417145171461714717148171491715017151171521715317154171551715617157171581715917160171611716217163171641716517166171671716817169171701717117172171731717417175171761717717178171791718017181171821718317184171851718617187171881718917190171911719217193171941719517196171971719817199172001720117202172031720417205172061720717208172091721017211172121721317214172151721617217172181721917220172211722217223172241722517226
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.67 for libPolyCore 0.8.2.
  4. #
  5. # Report bugs to <[email protected]>.
  6. #
  7. #
  8. # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
  9. # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
  10. # Foundation, Inc.
  11. #
  12. #
  13. # This configure script is free software; the Free Software Foundation
  14. # gives unlimited permission to copy, distribute and modify it.
  15. ## -------------------- ##
  16. ## M4sh Initialization. ##
  17. ## -------------------- ##
  18. # Be more Bourne compatible
  19. DUALCASE=1; export DUALCASE # for MKS sh
  20. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  21. emulate sh
  22. NULLCMD=:
  23. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  24. # is contrary to our usage. Disable this feature.
  25. alias -g '${1+"$@"}'='"$@"'
  26. setopt NO_GLOB_SUBST
  27. else
  28. case `(set -o) 2>/dev/null` in #(
  29. *posix*) :
  30. set -o posix ;; #(
  31. *) :
  32. ;;
  33. esac
  34. fi
  35. as_nl='
  36. '
  37. export as_nl
  38. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  39. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  40. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  41. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  42. # Prefer a ksh shell builtin over an external printf program on Solaris,
  43. # but without wasting forks for bash or zsh.
  44. if test -z "$BASH_VERSION$ZSH_VERSION" \
  45. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  46. as_echo='print -r --'
  47. as_echo_n='print -rn --'
  48. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  49. as_echo='printf %s\n'
  50. as_echo_n='printf %s'
  51. else
  52. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  53. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  54. as_echo_n='/usr/ucb/echo -n'
  55. else
  56. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  57. as_echo_n_body='eval
  58. arg=$1;
  59. case $arg in #(
  60. *"$as_nl"*)
  61. expr "X$arg" : "X\\(.*\\)$as_nl";
  62. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  63. esac;
  64. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  65. '
  66. export as_echo_n_body
  67. as_echo_n='sh -c $as_echo_n_body as_echo'
  68. fi
  69. export as_echo_body
  70. as_echo='sh -c $as_echo_body as_echo'
  71. fi
  72. # The user is always right.
  73. if test "${PATH_SEPARATOR+set}" != set; then
  74. PATH_SEPARATOR=:
  75. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  76. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  77. PATH_SEPARATOR=';'
  78. }
  79. fi
  80. # IFS
  81. # We need space, tab and new line, in precisely that order. Quoting is
  82. # there to prevent editors from complaining about space-tab.
  83. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  84. # splitting by setting IFS to empty value.)
  85. IFS=" "" $as_nl"
  86. # Find who we are. Look in the path if we contain no directory separator.
  87. case $0 in #((
  88. *[\\/]* ) as_myself=$0 ;;
  89. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  90. for as_dir in $PATH
  91. do
  92. IFS=$as_save_IFS
  93. test -z "$as_dir" && as_dir=.
  94. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  95. done
  96. IFS=$as_save_IFS
  97. ;;
  98. esac
  99. # We did not find ourselves, most probably we were run as `sh COMMAND'
  100. # in which case we are not to be found in the path.
  101. if test "x$as_myself" = x; then
  102. as_myself=$0
  103. fi
  104. if test ! -f "$as_myself"; then
  105. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  106. exit 1
  107. fi
  108. # Unset variables that we do not need and which cause bugs (e.g. in
  109. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  110. # suppresses any "Segmentation fault" message there. '((' could
  111. # trigger a bug in pdksh 5.2.14.
  112. for as_var in BASH_ENV ENV MAIL MAILPATH
  113. do eval test x\${$as_var+set} = xset \
  114. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  115. done
  116. PS1='$ '
  117. PS2='> '
  118. PS4='+ '
  119. # NLS nuisances.
  120. LC_ALL=C
  121. export LC_ALL
  122. LANGUAGE=C
  123. export LANGUAGE
  124. # CDPATH.
  125. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  126. if test "x$CONFIG_SHELL" = x; then
  127. as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
  128. emulate sh
  129. NULLCMD=:
  130. # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
  131. # is contrary to our usage. Disable this feature.
  132. alias -g '\${1+\"\$@\"}'='\"\$@\"'
  133. setopt NO_GLOB_SUBST
  134. else
  135. case \`(set -o) 2>/dev/null\` in #(
  136. *posix*) :
  137. set -o posix ;; #(
  138. *) :
  139. ;;
  140. esac
  141. fi
  142. "
  143. as_required="as_fn_return () { (exit \$1); }
  144. as_fn_success () { as_fn_return 0; }
  145. as_fn_failure () { as_fn_return 1; }
  146. as_fn_ret_success () { return 0; }
  147. as_fn_ret_failure () { return 1; }
  148. exitcode=0
  149. as_fn_success || { exitcode=1; echo as_fn_success failed.; }
  150. as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
  151. as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
  152. as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
  153. if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
  154. else
  155. exitcode=1; echo positional parameters were not saved.
  156. fi
  157. test x\$exitcode = x0 || exit 1"
  158. as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
  159. as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
  160. eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
  161. test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
  162. test \$(( 1 + 1 )) = 2 || exit 1"
  163. if (eval "$as_required") 2>/dev/null; then :
  164. as_have_required=yes
  165. else
  166. as_have_required=no
  167. fi
  168. if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
  169. else
  170. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  171. as_found=false
  172. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  173. do
  174. IFS=$as_save_IFS
  175. test -z "$as_dir" && as_dir=.
  176. as_found=:
  177. case $as_dir in #(
  178. /*)
  179. for as_base in sh bash ksh sh5; do
  180. # Try only shells that exist, to save several forks.
  181. as_shell=$as_dir/$as_base
  182. if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  183. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
  184. CONFIG_SHELL=$as_shell as_have_required=yes
  185. if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
  186. break 2
  187. fi
  188. fi
  189. done;;
  190. esac
  191. as_found=false
  192. done
  193. $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
  194. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
  195. CONFIG_SHELL=$SHELL as_have_required=yes
  196. fi; }
  197. IFS=$as_save_IFS
  198. if test "x$CONFIG_SHELL" != x; then :
  199. # We cannot yet assume a decent shell, so we have to provide a
  200. # neutralization value for shells without unset; and this also
  201. # works around shells that cannot unset nonexistent variables.
  202. BASH_ENV=/dev/null
  203. ENV=/dev/null
  204. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  205. export CONFIG_SHELL
  206. exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
  207. fi
  208. if test x$as_have_required = xno; then :
  209. $as_echo "$0: This script requires a shell more modern than all"
  210. $as_echo "$0: the shells that I found on your system."
  211. if test x${ZSH_VERSION+set} = xset ; then
  212. $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
  213. $as_echo "$0: be upgraded to zsh 4.3.4 or later."
  214. else
  215. $as_echo "$0: Please tell [email protected] and [email protected]
  216. $0: about your system, including any error possibly output
  217. $0: before this message. Then install a modern shell, or
  218. $0: manually run the script under such a shell if you do
  219. $0: have one."
  220. fi
  221. exit 1
  222. fi
  223. fi
  224. fi
  225. SHELL=${CONFIG_SHELL-/bin/sh}
  226. export SHELL
  227. # Unset more variables known to interfere with behavior of common tools.
  228. CLICOLOR_FORCE= GREP_OPTIONS=
  229. unset CLICOLOR_FORCE GREP_OPTIONS
  230. ## --------------------- ##
  231. ## M4sh Shell Functions. ##
  232. ## --------------------- ##
  233. # as_fn_unset VAR
  234. # ---------------
  235. # Portably unset VAR.
  236. as_fn_unset ()
  237. {
  238. { eval $1=; unset $1;}
  239. }
  240. as_unset=as_fn_unset
  241. # as_fn_set_status STATUS
  242. # -----------------------
  243. # Set $? to STATUS, without forking.
  244. as_fn_set_status ()
  245. {
  246. return $1
  247. } # as_fn_set_status
  248. # as_fn_exit STATUS
  249. # -----------------
  250. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  251. as_fn_exit ()
  252. {
  253. set +e
  254. as_fn_set_status $1
  255. exit $1
  256. } # as_fn_exit
  257. # as_fn_mkdir_p
  258. # -------------
  259. # Create "$as_dir" as a directory, including parents if necessary.
  260. as_fn_mkdir_p ()
  261. {
  262. case $as_dir in #(
  263. -*) as_dir=./$as_dir;;
  264. esac
  265. test -d "$as_dir" || eval $as_mkdir_p || {
  266. as_dirs=
  267. while :; do
  268. case $as_dir in #(
  269. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  270. *) as_qdir=$as_dir;;
  271. esac
  272. as_dirs="'$as_qdir' $as_dirs"
  273. as_dir=`$as_dirname -- "$as_dir" ||
  274. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  275. X"$as_dir" : 'X\(//\)[^/]' \| \
  276. X"$as_dir" : 'X\(//\)$' \| \
  277. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  278. $as_echo X"$as_dir" |
  279. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  280. s//\1/
  281. q
  282. }
  283. /^X\(\/\/\)[^/].*/{
  284. s//\1/
  285. q
  286. }
  287. /^X\(\/\/\)$/{
  288. s//\1/
  289. q
  290. }
  291. /^X\(\/\).*/{
  292. s//\1/
  293. q
  294. }
  295. s/.*/./; q'`
  296. test -d "$as_dir" && break
  297. done
  298. test -z "$as_dirs" || eval "mkdir $as_dirs"
  299. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  300. } # as_fn_mkdir_p
  301. # as_fn_append VAR VALUE
  302. # ----------------------
  303. # Append the text in VALUE to the end of the definition contained in VAR. Take
  304. # advantage of any shell optimizations that allow amortized linear growth over
  305. # repeated appends, instead of the typical quadratic growth present in naive
  306. # implementations.
  307. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  308. eval 'as_fn_append ()
  309. {
  310. eval $1+=\$2
  311. }'
  312. else
  313. as_fn_append ()
  314. {
  315. eval $1=\$$1\$2
  316. }
  317. fi # as_fn_append
  318. # as_fn_arith ARG...
  319. # ------------------
  320. # Perform arithmetic evaluation on the ARGs, and store the result in the
  321. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  322. # must be portable across $(()) and expr.
  323. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  324. eval 'as_fn_arith ()
  325. {
  326. as_val=$(( $* ))
  327. }'
  328. else
  329. as_fn_arith ()
  330. {
  331. as_val=`expr "$@" || test $? -eq 1`
  332. }
  333. fi # as_fn_arith
  334. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  335. # ----------------------------------------
  336. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  337. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  338. # script with STATUS, using 1 if that was 0.
  339. as_fn_error ()
  340. {
  341. as_status=$1; test $as_status -eq 0 && as_status=1
  342. if test "$4"; then
  343. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  344. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  345. fi
  346. $as_echo "$as_me: error: $2" >&2
  347. as_fn_exit $as_status
  348. } # as_fn_error
  349. if expr a : '\(a\)' >/dev/null 2>&1 &&
  350. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  351. as_expr=expr
  352. else
  353. as_expr=false
  354. fi
  355. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  356. as_basename=basename
  357. else
  358. as_basename=false
  359. fi
  360. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  361. as_dirname=dirname
  362. else
  363. as_dirname=false
  364. fi
  365. as_me=`$as_basename -- "$0" ||
  366. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  367. X"$0" : 'X\(//\)$' \| \
  368. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  369. $as_echo X/"$0" |
  370. sed '/^.*\/\([^/][^/]*\)\/*$/{
  371. s//\1/
  372. q
  373. }
  374. /^X\/\(\/\/\)$/{
  375. s//\1/
  376. q
  377. }
  378. /^X\/\(\/\).*/{
  379. s//\1/
  380. q
  381. }
  382. s/.*/./; q'`
  383. # Avoid depending upon Character Ranges.
  384. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  385. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  386. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  387. as_cr_digits='0123456789'
  388. as_cr_alnum=$as_cr_Letters$as_cr_digits
  389. as_lineno_1=$LINENO as_lineno_1a=$LINENO
  390. as_lineno_2=$LINENO as_lineno_2a=$LINENO
  391. eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
  392. test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
  393. # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
  394. sed -n '
  395. p
  396. /[$]LINENO/=
  397. ' <$as_myself |
  398. sed '
  399. s/[$]LINENO.*/&-/
  400. t lineno
  401. b
  402. :lineno
  403. N
  404. :loop
  405. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  406. t loop
  407. s/-\n.*//
  408. ' >$as_me.lineno &&
  409. chmod +x "$as_me.lineno" ||
  410. { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
  411. # Don't try to exec as it changes $[0], causing all sort of problems
  412. # (the dirname of $[0] is not the place where we might find the
  413. # original and so on. Autoconf is especially sensitive to this).
  414. . "./$as_me.lineno"
  415. # Exit status is that of the last command.
  416. exit
  417. }
  418. ECHO_C= ECHO_N= ECHO_T=
  419. case `echo -n x` in #(((((
  420. -n*)
  421. case `echo 'xy\c'` in
  422. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  423. xy) ECHO_C='\c';;
  424. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  425. ECHO_T=' ';;
  426. esac;;
  427. *)
  428. ECHO_N='-n';;
  429. esac
  430. rm -f conf$$ conf$$.exe conf$$.file
  431. if test -d conf$$.dir; then
  432. rm -f conf$$.dir/conf$$.file
  433. else
  434. rm -f conf$$.dir
  435. mkdir conf$$.dir 2>/dev/null
  436. fi
  437. if (echo >conf$$.file) 2>/dev/null; then
  438. if ln -s conf$$.file conf$$ 2>/dev/null; then
  439. as_ln_s='ln -s'
  440. # ... but there are two gotchas:
  441. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  442. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  443. # In both cases, we have to default to `cp -p'.
  444. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  445. as_ln_s='cp -p'
  446. elif ln conf$$.file conf$$ 2>/dev/null; then
  447. as_ln_s=ln
  448. else
  449. as_ln_s='cp -p'
  450. fi
  451. else
  452. as_ln_s='cp -p'
  453. fi
  454. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  455. rmdir conf$$.dir 2>/dev/null
  456. if mkdir -p . 2>/dev/null; then
  457. as_mkdir_p='mkdir -p "$as_dir"'
  458. else
  459. test -d ./-p && rmdir ./-p
  460. as_mkdir_p=false
  461. fi
  462. if test -x / >/dev/null 2>&1; then
  463. as_test_x='test -x'
  464. else
  465. if ls -dL / >/dev/null 2>&1; then
  466. as_ls_L_option=L
  467. else
  468. as_ls_L_option=
  469. fi
  470. as_test_x='
  471. eval sh -c '\''
  472. if test -d "$1"; then
  473. test -d "$1/.";
  474. else
  475. case $1 in #(
  476. -*)set "./$1";;
  477. esac;
  478. case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
  479. ???[sx]*):;;*)false;;esac;fi
  480. '\'' sh
  481. '
  482. fi
  483. as_executable_p=$as_test_x
  484. # Sed expression to map a string onto a valid CPP name.
  485. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  486. # Sed expression to map a string onto a valid variable name.
  487. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  488. # Check that we are running under the correct shell.
  489. SHELL=${CONFIG_SHELL-/bin/sh}
  490. case X$lt_ECHO in
  491. X*--fallback-echo)
  492. # Remove one level of quotation (which was required for Make).
  493. ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
  494. ;;
  495. esac
  496. ECHO=${lt_ECHO-echo}
  497. if test "X$1" = X--no-reexec; then
  498. # Discard the --no-reexec flag, and continue.
  499. shift
  500. elif test "X$1" = X--fallback-echo; then
  501. # Avoid inline document here, it may be left over
  502. :
  503. elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
  504. # Yippee, $ECHO works!
  505. :
  506. else
  507. # Restart under the correct shell.
  508. exec $SHELL "$0" --no-reexec ${1+"$@"}
  509. fi
  510. if test "X$1" = X--fallback-echo; then
  511. # used as fallback echo
  512. shift
  513. cat <<_LT_EOF
  514. $*
  515. _LT_EOF
  516. exit 0
  517. fi
  518. # The HP-UX ksh and POSIX shell print the target directory to stdout
  519. # if CDPATH is set.
  520. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  521. if test -z "$lt_ECHO"; then
  522. if test "X${echo_test_string+set}" != Xset; then
  523. # find a string as large as possible, as long as the shell can cope with it
  524. for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
  525. # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
  526. if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
  527. { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
  528. then
  529. break
  530. fi
  531. done
  532. fi
  533. if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
  534. echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
  535. test "X$echo_testing_string" = "X$echo_test_string"; then
  536. :
  537. else
  538. # The Solaris, AIX, and Digital Unix default echo programs unquote
  539. # backslashes. This makes it impossible to quote backslashes using
  540. # echo "$something" | sed 's/\\/\\\\/g'
  541. #
  542. # So, first we look for a working echo in the user's PATH.
  543. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  544. for dir in $PATH /usr/ucb; do
  545. IFS="$lt_save_ifs"
  546. if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
  547. test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
  548. echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
  549. test "X$echo_testing_string" = "X$echo_test_string"; then
  550. ECHO="$dir/echo"
  551. break
  552. fi
  553. done
  554. IFS="$lt_save_ifs"
  555. if test "X$ECHO" = Xecho; then
  556. # We didn't find a better echo, so look for alternatives.
  557. if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
  558. echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
  559. test "X$echo_testing_string" = "X$echo_test_string"; then
  560. # This shell has a builtin print -r that does the trick.
  561. ECHO='print -r'
  562. elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
  563. test "X$CONFIG_SHELL" != X/bin/ksh; then
  564. # If we have ksh, try running configure again with it.
  565. ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
  566. export ORIGINAL_CONFIG_SHELL
  567. CONFIG_SHELL=/bin/ksh
  568. export CONFIG_SHELL
  569. exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
  570. else
  571. # Try using printf.
  572. ECHO='printf %s\n'
  573. if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
  574. echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
  575. test "X$echo_testing_string" = "X$echo_test_string"; then
  576. # Cool, printf works
  577. :
  578. elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
  579. test "X$echo_testing_string" = 'X\t' &&
  580. echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
  581. test "X$echo_testing_string" = "X$echo_test_string"; then
  582. CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
  583. export CONFIG_SHELL
  584. SHELL="$CONFIG_SHELL"
  585. export SHELL
  586. ECHO="$CONFIG_SHELL $0 --fallback-echo"
  587. elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
  588. test "X$echo_testing_string" = 'X\t' &&
  589. echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
  590. test "X$echo_testing_string" = "X$echo_test_string"; then
  591. ECHO="$CONFIG_SHELL $0 --fallback-echo"
  592. else
  593. # maybe with a smaller string...
  594. prev=:
  595. for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
  596. if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
  597. then
  598. break
  599. fi
  600. prev="$cmd"
  601. done
  602. if test "$prev" != 'sed 50q "$0"'; then
  603. echo_test_string=`eval $prev`
  604. export echo_test_string
  605. exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
  606. else
  607. # Oops. We lost completely, so just stick with echo.
  608. ECHO=echo
  609. fi
  610. fi
  611. fi
  612. fi
  613. fi
  614. fi
  615. # Copy echo and quote the copy suitably for passing to libtool from
  616. # the Makefile, instead of quoting the original, which is used later.
  617. lt_ECHO=$ECHO
  618. if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
  619. lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
  620. fi
  621. test -n "$DJDIR" || exec 7<&0 </dev/null
  622. exec 6>&1
  623. # Name of the host.
  624. # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
  625. # so uname gets run too.
  626. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  627. #
  628. # Initializations.
  629. #
  630. ac_default_prefix=/usr/local
  631. ac_clean_files=
  632. ac_config_libobj_dir=.
  633. LIBOBJS=
  634. cross_compiling=no
  635. subdirs=
  636. MFLAGS=
  637. MAKEFLAGS=
  638. # Identity of this package.
  639. PACKAGE_NAME='libPolyCore'
  640. PACKAGE_TARNAME='libpolycore'
  641. PACKAGE_VERSION='0.8.2'
  642. PACKAGE_STRING='libPolyCore 0.8.2'
  643. PACKAGE_BUGREPORT='[email protected]'
  644. PACKAGE_URL=''
  645. # Factoring default headers for most tests.
  646. ac_includes_default="\
  647. #include <stdio.h>
  648. #ifdef HAVE_SYS_TYPES_H
  649. # include <sys/types.h>
  650. #endif
  651. #ifdef HAVE_SYS_STAT_H
  652. # include <sys/stat.h>
  653. #endif
  654. #ifdef STDC_HEADERS
  655. # include <stdlib.h>
  656. # include <stddef.h>
  657. #else
  658. # ifdef HAVE_STDLIB_H
  659. # include <stdlib.h>
  660. # endif
  661. #endif
  662. #ifdef HAVE_STRING_H
  663. # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
  664. # include <memory.h>
  665. # endif
  666. # include <string.h>
  667. #endif
  668. #ifdef HAVE_STRINGS_H
  669. # include <strings.h>
  670. #endif
  671. #ifdef HAVE_INTTYPES_H
  672. # include <inttypes.h>
  673. #endif
  674. #ifdef HAVE_STDINT_H
  675. # include <stdint.h>
  676. #endif
  677. #ifdef HAVE_UNISTD_H
  678. # include <unistd.h>
  679. #endif"
  680. ac_subst_vars='am__EXEEXT_FALSE
  681. am__EXEEXT_TRUE
  682. LTLIBOBJS
  683. LIBOBJS
  684. CXXCPP
  685. am__fastdepCXX_FALSE
  686. am__fastdepCXX_TRUE
  687. CXXDEPMODE
  688. ac_ct_CXX
  689. CXXFLAGS
  690. CXX
  691. CPP
  692. OTOOL64
  693. OTOOL
  694. LIPO
  695. NMEDIT
  696. DSYMUTIL
  697. lt_ECHO
  698. RANLIB
  699. AR
  700. OBJDUMP
  701. LN_S
  702. NM
  703. ac_ct_DUMPBIN
  704. DUMPBIN
  705. LD
  706. FGREP
  707. EGREP
  708. GREP
  709. SED
  710. am__fastdepCC_FALSE
  711. am__fastdepCC_TRUE
  712. CCDEPMODE
  713. AMDEPBACKSLASH
  714. AMDEP_FALSE
  715. AMDEP_TRUE
  716. am__quote
  717. am__include
  718. DEPDIR
  719. OBJEXT
  720. EXEEXT
  721. ac_ct_CC
  722. CPPFLAGS
  723. LDFLAGS
  724. CFLAGS
  725. CC
  726. host_os
  727. host_vendor
  728. host_cpu
  729. host
  730. build_os
  731. build_vendor
  732. build_cpu
  733. build
  734. LIBTOOL
  735. am__untar
  736. am__tar
  737. AMTAR
  738. am__leading_dot
  739. SET_MAKE
  740. AWK
  741. mkdir_p
  742. MKDIR_P
  743. INSTALL_STRIP_PROGRAM
  744. STRIP
  745. install_sh
  746. MAKEINFO
  747. AUTOHEADER
  748. AUTOMAKE
  749. AUTOCONF
  750. ACLOCAL
  751. VERSION
  752. PACKAGE
  753. CYGPATH_W
  754. am__isrc
  755. INSTALL_DATA
  756. INSTALL_SCRIPT
  757. INSTALL_PROGRAM
  758. target_alias
  759. host_alias
  760. build_alias
  761. LIBS
  762. ECHO_T
  763. ECHO_N
  764. ECHO_C
  765. DEFS
  766. mandir
  767. localedir
  768. libdir
  769. psdir
  770. pdfdir
  771. dvidir
  772. htmldir
  773. infodir
  774. docdir
  775. oldincludedir
  776. includedir
  777. localstatedir
  778. sharedstatedir
  779. sysconfdir
  780. datadir
  781. datarootdir
  782. libexecdir
  783. sbindir
  784. bindir
  785. program_transform_name
  786. prefix
  787. exec_prefix
  788. PACKAGE_URL
  789. PACKAGE_BUGREPORT
  790. PACKAGE_STRING
  791. PACKAGE_VERSION
  792. PACKAGE_TARNAME
  793. PACKAGE_NAME
  794. PATH_SEPARATOR
  795. SHELL'
  796. ac_subst_files=''
  797. ac_user_opts='
  798. enable_option_checking
  799. enable_shared
  800. enable_static
  801. with_pic
  802. enable_fast_install
  803. enable_dependency_tracking
  804. with_gnu_ld
  805. enable_libtool_lock
  806. '
  807. ac_precious_vars='build_alias
  808. host_alias
  809. target_alias
  810. CC
  811. CFLAGS
  812. LDFLAGS
  813. LIBS
  814. CPPFLAGS
  815. CPP
  816. CXX
  817. CXXFLAGS
  818. CCC
  819. CXXCPP'
  820. # Initialize some variables set by options.
  821. ac_init_help=
  822. ac_init_version=false
  823. ac_unrecognized_opts=
  824. ac_unrecognized_sep=
  825. # The variables have the same names as the options, with
  826. # dashes changed to underlines.
  827. cache_file=/dev/null
  828. exec_prefix=NONE
  829. no_create=
  830. no_recursion=
  831. prefix=NONE
  832. program_prefix=NONE
  833. program_suffix=NONE
  834. program_transform_name=s,x,x,
  835. silent=
  836. site=
  837. srcdir=
  838. verbose=
  839. x_includes=NONE
  840. x_libraries=NONE
  841. # Installation directory options.
  842. # These are left unexpanded so users can "make install exec_prefix=/foo"
  843. # and all the variables that are supposed to be based on exec_prefix
  844. # by default will actually change.
  845. # Use braces instead of parens because sh, perl, etc. also accept them.
  846. # (The list follows the same order as the GNU Coding Standards.)
  847. bindir='${exec_prefix}/bin'
  848. sbindir='${exec_prefix}/sbin'
  849. libexecdir='${exec_prefix}/libexec'
  850. datarootdir='${prefix}/share'
  851. datadir='${datarootdir}'
  852. sysconfdir='${prefix}/etc'
  853. sharedstatedir='${prefix}/com'
  854. localstatedir='${prefix}/var'
  855. includedir='${prefix}/include'
  856. oldincludedir='/usr/include'
  857. docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
  858. infodir='${datarootdir}/info'
  859. htmldir='${docdir}'
  860. dvidir='${docdir}'
  861. pdfdir='${docdir}'
  862. psdir='${docdir}'
  863. libdir='${exec_prefix}/lib'
  864. localedir='${datarootdir}/locale'
  865. mandir='${datarootdir}/man'
  866. ac_prev=
  867. ac_dashdash=
  868. for ac_option
  869. do
  870. # If the previous option needs an argument, assign it.
  871. if test -n "$ac_prev"; then
  872. eval $ac_prev=\$ac_option
  873. ac_prev=
  874. continue
  875. fi
  876. case $ac_option in
  877. *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  878. *=) ac_optarg= ;;
  879. *) ac_optarg=yes ;;
  880. esac
  881. # Accept the important Cygnus configure options, so we can diagnose typos.
  882. case $ac_dashdash$ac_option in
  883. --)
  884. ac_dashdash=yes ;;
  885. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  886. ac_prev=bindir ;;
  887. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  888. bindir=$ac_optarg ;;
  889. -build | --build | --buil | --bui | --bu)
  890. ac_prev=build_alias ;;
  891. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  892. build_alias=$ac_optarg ;;
  893. -cache-file | --cache-file | --cache-fil | --cache-fi \
  894. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  895. ac_prev=cache_file ;;
  896. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  897. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  898. cache_file=$ac_optarg ;;
  899. --config-cache | -C)
  900. cache_file=config.cache ;;
  901. -datadir | --datadir | --datadi | --datad)
  902. ac_prev=datadir ;;
  903. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  904. datadir=$ac_optarg ;;
  905. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  906. | --dataroo | --dataro | --datar)
  907. ac_prev=datarootdir ;;
  908. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  909. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  910. datarootdir=$ac_optarg ;;
  911. -disable-* | --disable-*)
  912. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  913. # Reject names that are not valid shell variable names.
  914. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  915. as_fn_error $? "invalid feature name: $ac_useropt"
  916. ac_useropt_orig=$ac_useropt
  917. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  918. case $ac_user_opts in
  919. *"
  920. "enable_$ac_useropt"
  921. "*) ;;
  922. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  923. ac_unrecognized_sep=', ';;
  924. esac
  925. eval enable_$ac_useropt=no ;;
  926. -docdir | --docdir | --docdi | --doc | --do)
  927. ac_prev=docdir ;;
  928. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  929. docdir=$ac_optarg ;;
  930. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  931. ac_prev=dvidir ;;
  932. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  933. dvidir=$ac_optarg ;;
  934. -enable-* | --enable-*)
  935. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  936. # Reject names that are not valid shell variable names.
  937. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  938. as_fn_error $? "invalid feature name: $ac_useropt"
  939. ac_useropt_orig=$ac_useropt
  940. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  941. case $ac_user_opts in
  942. *"
  943. "enable_$ac_useropt"
  944. "*) ;;
  945. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  946. ac_unrecognized_sep=', ';;
  947. esac
  948. eval enable_$ac_useropt=\$ac_optarg ;;
  949. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  950. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  951. | --exec | --exe | --ex)
  952. ac_prev=exec_prefix ;;
  953. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  954. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  955. | --exec=* | --exe=* | --ex=*)
  956. exec_prefix=$ac_optarg ;;
  957. -gas | --gas | --ga | --g)
  958. # Obsolete; use --with-gas.
  959. with_gas=yes ;;
  960. -help | --help | --hel | --he | -h)
  961. ac_init_help=long ;;
  962. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  963. ac_init_help=recursive ;;
  964. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  965. ac_init_help=short ;;
  966. -host | --host | --hos | --ho)
  967. ac_prev=host_alias ;;
  968. -host=* | --host=* | --hos=* | --ho=*)
  969. host_alias=$ac_optarg ;;
  970. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  971. ac_prev=htmldir ;;
  972. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  973. | --ht=*)
  974. htmldir=$ac_optarg ;;
  975. -includedir | --includedir | --includedi | --included | --include \
  976. | --includ | --inclu | --incl | --inc)
  977. ac_prev=includedir ;;
  978. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  979. | --includ=* | --inclu=* | --incl=* | --inc=*)
  980. includedir=$ac_optarg ;;
  981. -infodir | --infodir | --infodi | --infod | --info | --inf)
  982. ac_prev=infodir ;;
  983. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  984. infodir=$ac_optarg ;;
  985. -libdir | --libdir | --libdi | --libd)
  986. ac_prev=libdir ;;
  987. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  988. libdir=$ac_optarg ;;
  989. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  990. | --libexe | --libex | --libe)
  991. ac_prev=libexecdir ;;
  992. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  993. | --libexe=* | --libex=* | --libe=*)
  994. libexecdir=$ac_optarg ;;
  995. -localedir | --localedir | --localedi | --localed | --locale)
  996. ac_prev=localedir ;;
  997. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  998. localedir=$ac_optarg ;;
  999. -localstatedir | --localstatedir | --localstatedi | --localstated \
  1000. | --localstate | --localstat | --localsta | --localst | --locals)
  1001. ac_prev=localstatedir ;;
  1002. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  1003. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  1004. localstatedir=$ac_optarg ;;
  1005. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  1006. ac_prev=mandir ;;
  1007. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  1008. mandir=$ac_optarg ;;
  1009. -nfp | --nfp | --nf)
  1010. # Obsolete; use --without-fp.
  1011. with_fp=no ;;
  1012. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  1013. | --no-cr | --no-c | -n)
  1014. no_create=yes ;;
  1015. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  1016. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  1017. no_recursion=yes ;;
  1018. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  1019. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  1020. | --oldin | --oldi | --old | --ol | --o)
  1021. ac_prev=oldincludedir ;;
  1022. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  1023. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  1024. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  1025. oldincludedir=$ac_optarg ;;
  1026. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  1027. ac_prev=prefix ;;
  1028. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  1029. prefix=$ac_optarg ;;
  1030. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  1031. | --program-pre | --program-pr | --program-p)
  1032. ac_prev=program_prefix ;;
  1033. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  1034. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  1035. program_prefix=$ac_optarg ;;
  1036. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  1037. | --program-suf | --program-su | --program-s)
  1038. ac_prev=program_suffix ;;
  1039. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  1040. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  1041. program_suffix=$ac_optarg ;;
  1042. -program-transform-name | --program-transform-name \
  1043. | --program-transform-nam | --program-transform-na \
  1044. | --program-transform-n | --program-transform- \
  1045. | --program-transform | --program-transfor \
  1046. | --program-transfo | --program-transf \
  1047. | --program-trans | --program-tran \
  1048. | --progr-tra | --program-tr | --program-t)
  1049. ac_prev=program_transform_name ;;
  1050. -program-transform-name=* | --program-transform-name=* \
  1051. | --program-transform-nam=* | --program-transform-na=* \
  1052. | --program-transform-n=* | --program-transform-=* \
  1053. | --program-transform=* | --program-transfor=* \
  1054. | --program-transfo=* | --program-transf=* \
  1055. | --program-trans=* | --program-tran=* \
  1056. | --progr-tra=* | --program-tr=* | --program-t=*)
  1057. program_transform_name=$ac_optarg ;;
  1058. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  1059. ac_prev=pdfdir ;;
  1060. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  1061. pdfdir=$ac_optarg ;;
  1062. -psdir | --psdir | --psdi | --psd | --ps)
  1063. ac_prev=psdir ;;
  1064. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  1065. psdir=$ac_optarg ;;
  1066. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1067. | -silent | --silent | --silen | --sile | --sil)
  1068. silent=yes ;;
  1069. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  1070. ac_prev=sbindir ;;
  1071. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  1072. | --sbi=* | --sb=*)
  1073. sbindir=$ac_optarg ;;
  1074. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  1075. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  1076. | --sharedst | --shareds | --shared | --share | --shar \
  1077. | --sha | --sh)
  1078. ac_prev=sharedstatedir ;;
  1079. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  1080. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  1081. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  1082. | --sha=* | --sh=*)
  1083. sharedstatedir=$ac_optarg ;;
  1084. -site | --site | --sit)
  1085. ac_prev=site ;;
  1086. -site=* | --site=* | --sit=*)
  1087. site=$ac_optarg ;;
  1088. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1089. ac_prev=srcdir ;;
  1090. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1091. srcdir=$ac_optarg ;;
  1092. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  1093. | --syscon | --sysco | --sysc | --sys | --sy)
  1094. ac_prev=sysconfdir ;;
  1095. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1096. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1097. sysconfdir=$ac_optarg ;;
  1098. -target | --target | --targe | --targ | --tar | --ta | --t)
  1099. ac_prev=target_alias ;;
  1100. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1101. target_alias=$ac_optarg ;;
  1102. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1103. verbose=yes ;;
  1104. -version | --version | --versio | --versi | --vers | -V)
  1105. ac_init_version=: ;;
  1106. -with-* | --with-*)
  1107. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1108. # Reject names that are not valid shell variable names.
  1109. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1110. as_fn_error $? "invalid package name: $ac_useropt"
  1111. ac_useropt_orig=$ac_useropt
  1112. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1113. case $ac_user_opts in
  1114. *"
  1115. "with_$ac_useropt"
  1116. "*) ;;
  1117. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  1118. ac_unrecognized_sep=', ';;
  1119. esac
  1120. eval with_$ac_useropt=\$ac_optarg ;;
  1121. -without-* | --without-*)
  1122. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1123. # Reject names that are not valid shell variable names.
  1124. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1125. as_fn_error $? "invalid package name: $ac_useropt"
  1126. ac_useropt_orig=$ac_useropt
  1127. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1128. case $ac_user_opts in
  1129. *"
  1130. "with_$ac_useropt"
  1131. "*) ;;
  1132. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1133. ac_unrecognized_sep=', ';;
  1134. esac
  1135. eval with_$ac_useropt=no ;;
  1136. --x)
  1137. # Obsolete; use --with-x.
  1138. with_x=yes ;;
  1139. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1140. | --x-incl | --x-inc | --x-in | --x-i)
  1141. ac_prev=x_includes ;;
  1142. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1143. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1144. x_includes=$ac_optarg ;;
  1145. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1146. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1147. ac_prev=x_libraries ;;
  1148. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1149. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1150. x_libraries=$ac_optarg ;;
  1151. -*) as_fn_error $? "unrecognized option: \`$ac_option'
  1152. Try \`$0 --help' for more information"
  1153. ;;
  1154. *=*)
  1155. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1156. # Reject names that are not valid shell variable names.
  1157. case $ac_envvar in #(
  1158. '' | [0-9]* | *[!_$as_cr_alnum]* )
  1159. as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
  1160. esac
  1161. eval $ac_envvar=\$ac_optarg
  1162. export $ac_envvar ;;
  1163. *)
  1164. # FIXME: should be removed in autoconf 3.0.
  1165. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1166. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1167. $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1168. : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
  1169. ;;
  1170. esac
  1171. done
  1172. if test -n "$ac_prev"; then
  1173. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1174. as_fn_error $? "missing argument to $ac_option"
  1175. fi
  1176. if test -n "$ac_unrecognized_opts"; then
  1177. case $enable_option_checking in
  1178. no) ;;
  1179. fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
  1180. *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1181. esac
  1182. fi
  1183. # Check all directory arguments for consistency.
  1184. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1185. datadir sysconfdir sharedstatedir localstatedir includedir \
  1186. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1187. libdir localedir mandir
  1188. do
  1189. eval ac_val=\$$ac_var
  1190. # Remove trailing slashes.
  1191. case $ac_val in
  1192. */ )
  1193. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1194. eval $ac_var=\$ac_val;;
  1195. esac
  1196. # Be sure to have absolute directory names.
  1197. case $ac_val in
  1198. [\\/$]* | ?:[\\/]* ) continue;;
  1199. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1200. esac
  1201. as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
  1202. done
  1203. # There might be people who depend on the old broken behavior: `$host'
  1204. # used to hold the argument of --host etc.
  1205. # FIXME: To remove some day.
  1206. build=$build_alias
  1207. host=$host_alias
  1208. target=$target_alias
  1209. # FIXME: To remove some day.
  1210. if test "x$host_alias" != x; then
  1211. if test "x$build_alias" = x; then
  1212. cross_compiling=maybe
  1213. $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
  1214. If a cross compiler is detected then cross compile mode will be used" >&2
  1215. elif test "x$build_alias" != "x$host_alias"; then
  1216. cross_compiling=yes
  1217. fi
  1218. fi
  1219. ac_tool_prefix=
  1220. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1221. test "$silent" = yes && exec 6>/dev/null
  1222. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1223. ac_ls_di=`ls -di .` &&
  1224. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1225. as_fn_error $? "working directory cannot be determined"
  1226. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1227. as_fn_error $? "pwd does not report name of working directory"
  1228. # Find the source files, if location was not specified.
  1229. if test -z "$srcdir"; then
  1230. ac_srcdir_defaulted=yes
  1231. # Try the directory containing this script, then the parent directory.
  1232. ac_confdir=`$as_dirname -- "$as_myself" ||
  1233. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1234. X"$as_myself" : 'X\(//\)[^/]' \| \
  1235. X"$as_myself" : 'X\(//\)$' \| \
  1236. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1237. $as_echo X"$as_myself" |
  1238. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1239. s//\1/
  1240. q
  1241. }
  1242. /^X\(\/\/\)[^/].*/{
  1243. s//\1/
  1244. q
  1245. }
  1246. /^X\(\/\/\)$/{
  1247. s//\1/
  1248. q
  1249. }
  1250. /^X\(\/\).*/{
  1251. s//\1/
  1252. q
  1253. }
  1254. s/.*/./; q'`
  1255. srcdir=$ac_confdir
  1256. if test ! -r "$srcdir/$ac_unique_file"; then
  1257. srcdir=..
  1258. fi
  1259. else
  1260. ac_srcdir_defaulted=no
  1261. fi
  1262. if test ! -r "$srcdir/$ac_unique_file"; then
  1263. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1264. as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
  1265. fi
  1266. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1267. ac_abs_confdir=`(
  1268. cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
  1269. pwd)`
  1270. # When building in place, set srcdir=.
  1271. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1272. srcdir=.
  1273. fi
  1274. # Remove unnecessary trailing slashes from srcdir.
  1275. # Double slashes in file names in object file debugging info
  1276. # mess up M-x gdb in Emacs.
  1277. case $srcdir in
  1278. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1279. esac
  1280. for ac_var in $ac_precious_vars; do
  1281. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1282. eval ac_env_${ac_var}_value=\$${ac_var}
  1283. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1284. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1285. done
  1286. #
  1287. # Report the --help message.
  1288. #
  1289. if test "$ac_init_help" = "long"; then
  1290. # Omit some internal or obsolete options to make the list less imposing.
  1291. # This message is too long to be a string in the A/UX 3.1 sh.
  1292. cat <<_ACEOF
  1293. \`configure' configures libPolyCore 0.8.2 to adapt to many kinds of systems.
  1294. Usage: $0 [OPTION]... [VAR=VALUE]...
  1295. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1296. VAR=VALUE. See below for descriptions of some of the useful variables.
  1297. Defaults for the options are specified in brackets.
  1298. Configuration:
  1299. -h, --help display this help and exit
  1300. --help=short display options specific to this package
  1301. --help=recursive display the short help of all the included packages
  1302. -V, --version display version information and exit
  1303. -q, --quiet, --silent do not print \`checking ...' messages
  1304. --cache-file=FILE cache test results in FILE [disabled]
  1305. -C, --config-cache alias for \`--cache-file=config.cache'
  1306. -n, --no-create do not create output files
  1307. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1308. Installation directories:
  1309. --prefix=PREFIX install architecture-independent files in PREFIX
  1310. [$ac_default_prefix]
  1311. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1312. [PREFIX]
  1313. By default, \`make install' will install all the files in
  1314. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1315. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1316. for instance \`--prefix=\$HOME'.
  1317. For better control, use the options below.
  1318. Fine tuning of the installation directories:
  1319. --bindir=DIR user executables [EPREFIX/bin]
  1320. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1321. --libexecdir=DIR program executables [EPREFIX/libexec]
  1322. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1323. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1324. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1325. --libdir=DIR object code libraries [EPREFIX/lib]
  1326. --includedir=DIR C header files [PREFIX/include]
  1327. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1328. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1329. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1330. --infodir=DIR info documentation [DATAROOTDIR/info]
  1331. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1332. --mandir=DIR man documentation [DATAROOTDIR/man]
  1333. --docdir=DIR documentation root [DATAROOTDIR/doc/libpolycore]
  1334. --htmldir=DIR html documentation [DOCDIR]
  1335. --dvidir=DIR dvi documentation [DOCDIR]
  1336. --pdfdir=DIR pdf documentation [DOCDIR]
  1337. --psdir=DIR ps documentation [DOCDIR]
  1338. _ACEOF
  1339. cat <<\_ACEOF
  1340. Program names:
  1341. --program-prefix=PREFIX prepend PREFIX to installed program names
  1342. --program-suffix=SUFFIX append SUFFIX to installed program names
  1343. --program-transform-name=PROGRAM run sed PROGRAM on installed program names
  1344. System types:
  1345. --build=BUILD configure for building on BUILD [guessed]
  1346. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1347. _ACEOF
  1348. fi
  1349. if test -n "$ac_init_help"; then
  1350. case $ac_init_help in
  1351. short | recursive ) echo "Configuration of libPolyCore 0.8.2:";;
  1352. esac
  1353. cat <<\_ACEOF
  1354. Optional Features:
  1355. --disable-option-checking ignore unrecognized --enable/--with options
  1356. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1357. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1358. --enable-shared[=PKGS] build shared libraries [default=yes]
  1359. --enable-static[=PKGS] build static libraries [default=yes]
  1360. --enable-fast-install[=PKGS]
  1361. optimize for fast installation [default=yes]
  1362. --disable-dependency-tracking speeds up one-time build
  1363. --enable-dependency-tracking do not reject slow dependency extractors
  1364. --disable-libtool-lock avoid locking (might break parallel builds)
  1365. Optional Packages:
  1366. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1367. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1368. --with-pic try to use only PIC/non-PIC objects [default=use
  1369. both]
  1370. --with-gnu-ld assume the C compiler uses GNU ld [default=no]
  1371. Some influential environment variables:
  1372. CC C compiler command
  1373. CFLAGS C compiler flags
  1374. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1375. nonstandard directory <lib dir>
  1376. LIBS libraries to pass to the linker, e.g. -l<library>
  1377. CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
  1378. you have headers in a nonstandard directory <include dir>
  1379. CPP C preprocessor
  1380. CXX C++ compiler command
  1381. CXXFLAGS C++ compiler flags
  1382. CXXCPP C++ preprocessor
  1383. Use these variables to override the choices made by `configure' or to help
  1384. it to find libraries and programs with nonstandard names/locations.
  1385. Report bugs to <[email protected]>.
  1386. _ACEOF
  1387. ac_status=$?
  1388. fi
  1389. if test "$ac_init_help" = "recursive"; then
  1390. # If there are subdirs, report their specific --help.
  1391. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1392. test -d "$ac_dir" ||
  1393. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1394. continue
  1395. ac_builddir=.
  1396. case "$ac_dir" in
  1397. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1398. *)
  1399. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  1400. # A ".." for each directory in $ac_dir_suffix.
  1401. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1402. case $ac_top_builddir_sub in
  1403. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1404. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1405. esac ;;
  1406. esac
  1407. ac_abs_top_builddir=$ac_pwd
  1408. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1409. # for backward compatibility:
  1410. ac_top_builddir=$ac_top_build_prefix
  1411. case $srcdir in
  1412. .) # We are building in place.
  1413. ac_srcdir=.
  1414. ac_top_srcdir=$ac_top_builddir_sub
  1415. ac_abs_top_srcdir=$ac_pwd ;;
  1416. [\\/]* | ?:[\\/]* ) # Absolute name.
  1417. ac_srcdir=$srcdir$ac_dir_suffix;
  1418. ac_top_srcdir=$srcdir
  1419. ac_abs_top_srcdir=$srcdir ;;
  1420. *) # Relative name.
  1421. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1422. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1423. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1424. esac
  1425. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1426. cd "$ac_dir" || { ac_status=$?; continue; }
  1427. # Check for guested configure.
  1428. if test -f "$ac_srcdir/configure.gnu"; then
  1429. echo &&
  1430. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1431. elif test -f "$ac_srcdir/configure"; then
  1432. echo &&
  1433. $SHELL "$ac_srcdir/configure" --help=recursive
  1434. else
  1435. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1436. fi || ac_status=$?
  1437. cd "$ac_pwd" || { ac_status=$?; break; }
  1438. done
  1439. fi
  1440. test -n "$ac_init_help" && exit $ac_status
  1441. if $ac_init_version; then
  1442. cat <<\_ACEOF
  1443. libPolyCore configure 0.8.2
  1444. generated by GNU Autoconf 2.67
  1445. Copyright (C) 2010 Free Software Foundation, Inc.
  1446. This configure script is free software; the Free Software Foundation
  1447. gives unlimited permission to copy, distribute and modify it.
  1448. _ACEOF
  1449. exit
  1450. fi
  1451. ## ------------------------ ##
  1452. ## Autoconf initialization. ##
  1453. ## ------------------------ ##
  1454. # ac_fn_c_try_compile LINENO
  1455. # --------------------------
  1456. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1457. ac_fn_c_try_compile ()
  1458. {
  1459. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1460. rm -f conftest.$ac_objext
  1461. if { { ac_try="$ac_compile"
  1462. case "(($ac_try" in
  1463. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1464. *) ac_try_echo=$ac_try;;
  1465. esac
  1466. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1467. $as_echo "$ac_try_echo"; } >&5
  1468. (eval "$ac_compile") 2>conftest.err
  1469. ac_status=$?
  1470. if test -s conftest.err; then
  1471. grep -v '^ *+' conftest.err >conftest.er1
  1472. cat conftest.er1 >&5
  1473. mv -f conftest.er1 conftest.err
  1474. fi
  1475. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1476. test $ac_status = 0; } && {
  1477. test -z "$ac_c_werror_flag" ||
  1478. test ! -s conftest.err
  1479. } && test -s conftest.$ac_objext; then :
  1480. ac_retval=0
  1481. else
  1482. $as_echo "$as_me: failed program was:" >&5
  1483. sed 's/^/| /' conftest.$ac_ext >&5
  1484. ac_retval=1
  1485. fi
  1486. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1487. as_fn_set_status $ac_retval
  1488. } # ac_fn_c_try_compile
  1489. # ac_fn_c_try_link LINENO
  1490. # -----------------------
  1491. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1492. ac_fn_c_try_link ()
  1493. {
  1494. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1495. rm -f conftest.$ac_objext conftest$ac_exeext
  1496. if { { ac_try="$ac_link"
  1497. case "(($ac_try" in
  1498. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1499. *) ac_try_echo=$ac_try;;
  1500. esac
  1501. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1502. $as_echo "$ac_try_echo"; } >&5
  1503. (eval "$ac_link") 2>conftest.err
  1504. ac_status=$?
  1505. if test -s conftest.err; then
  1506. grep -v '^ *+' conftest.err >conftest.er1
  1507. cat conftest.er1 >&5
  1508. mv -f conftest.er1 conftest.err
  1509. fi
  1510. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1511. test $ac_status = 0; } && {
  1512. test -z "$ac_c_werror_flag" ||
  1513. test ! -s conftest.err
  1514. } && test -s conftest$ac_exeext && {
  1515. test "$cross_compiling" = yes ||
  1516. $as_test_x conftest$ac_exeext
  1517. }; then :
  1518. ac_retval=0
  1519. else
  1520. $as_echo "$as_me: failed program was:" >&5
  1521. sed 's/^/| /' conftest.$ac_ext >&5
  1522. ac_retval=1
  1523. fi
  1524. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1525. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1526. # interfere with the next link command; also delete a directory that is
  1527. # left behind by Apple's compiler. We do this before executing the actions.
  1528. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1529. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1530. as_fn_set_status $ac_retval
  1531. } # ac_fn_c_try_link
  1532. # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
  1533. # -------------------------------------------------------
  1534. # Tests whether HEADER exists and can be compiled using the include files in
  1535. # INCLUDES, setting the cache variable VAR accordingly.
  1536. ac_fn_c_check_header_compile ()
  1537. {
  1538. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1539. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1540. $as_echo_n "checking for $2... " >&6; }
  1541. if eval "test \"\${$3+set}\"" = set; then :
  1542. $as_echo_n "(cached) " >&6
  1543. else
  1544. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1545. /* end confdefs.h. */
  1546. $4
  1547. #include <$2>
  1548. _ACEOF
  1549. if ac_fn_c_try_compile "$LINENO"; then :
  1550. eval "$3=yes"
  1551. else
  1552. eval "$3=no"
  1553. fi
  1554. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1555. fi
  1556. eval ac_res=\$$3
  1557. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1558. $as_echo "$ac_res" >&6; }
  1559. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1560. } # ac_fn_c_check_header_compile
  1561. # ac_fn_c_try_cpp LINENO
  1562. # ----------------------
  1563. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1564. ac_fn_c_try_cpp ()
  1565. {
  1566. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1567. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1568. case "(($ac_try" in
  1569. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1570. *) ac_try_echo=$ac_try;;
  1571. esac
  1572. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1573. $as_echo "$ac_try_echo"; } >&5
  1574. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1575. ac_status=$?
  1576. if test -s conftest.err; then
  1577. grep -v '^ *+' conftest.err >conftest.er1
  1578. cat conftest.er1 >&5
  1579. mv -f conftest.er1 conftest.err
  1580. fi
  1581. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1582. test $ac_status = 0; } > conftest.i && {
  1583. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  1584. test ! -s conftest.err
  1585. }; then :
  1586. ac_retval=0
  1587. else
  1588. $as_echo "$as_me: failed program was:" >&5
  1589. sed 's/^/| /' conftest.$ac_ext >&5
  1590. ac_retval=1
  1591. fi
  1592. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1593. as_fn_set_status $ac_retval
  1594. } # ac_fn_c_try_cpp
  1595. # ac_fn_c_try_run LINENO
  1596. # ----------------------
  1597. # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
  1598. # that executables *can* be run.
  1599. ac_fn_c_try_run ()
  1600. {
  1601. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1602. if { { ac_try="$ac_link"
  1603. case "(($ac_try" in
  1604. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1605. *) ac_try_echo=$ac_try;;
  1606. esac
  1607. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1608. $as_echo "$ac_try_echo"; } >&5
  1609. (eval "$ac_link") 2>&5
  1610. ac_status=$?
  1611. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1612. test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  1613. { { case "(($ac_try" in
  1614. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1615. *) ac_try_echo=$ac_try;;
  1616. esac
  1617. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1618. $as_echo "$ac_try_echo"; } >&5
  1619. (eval "$ac_try") 2>&5
  1620. ac_status=$?
  1621. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1622. test $ac_status = 0; }; }; then :
  1623. ac_retval=0
  1624. else
  1625. $as_echo "$as_me: program exited with status $ac_status" >&5
  1626. $as_echo "$as_me: failed program was:" >&5
  1627. sed 's/^/| /' conftest.$ac_ext >&5
  1628. ac_retval=$ac_status
  1629. fi
  1630. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1631. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1632. as_fn_set_status $ac_retval
  1633. } # ac_fn_c_try_run
  1634. # ac_fn_c_check_func LINENO FUNC VAR
  1635. # ----------------------------------
  1636. # Tests whether FUNC exists, setting the cache variable VAR accordingly
  1637. ac_fn_c_check_func ()
  1638. {
  1639. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1640. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1641. $as_echo_n "checking for $2... " >&6; }
  1642. if eval "test \"\${$3+set}\"" = set; then :
  1643. $as_echo_n "(cached) " >&6
  1644. else
  1645. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1646. /* end confdefs.h. */
  1647. /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  1648. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  1649. #define $2 innocuous_$2
  1650. /* System header to define __stub macros and hopefully few prototypes,
  1651. which can conflict with char $2 (); below.
  1652. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  1653. <limits.h> exists even on freestanding compilers. */
  1654. #ifdef __STDC__
  1655. # include <limits.h>
  1656. #else
  1657. # include <assert.h>
  1658. #endif
  1659. #undef $2
  1660. /* Override any GCC internal prototype to avoid an error.
  1661. Use char because int might match the return type of a GCC
  1662. builtin and then its argument prototype would still apply. */
  1663. #ifdef __cplusplus
  1664. extern "C"
  1665. #endif
  1666. char $2 ();
  1667. /* The GNU C library defines this for functions which it implements
  1668. to always fail with ENOSYS. Some functions are actually named
  1669. something starting with __ and the normal name is an alias. */
  1670. #if defined __stub_$2 || defined __stub___$2
  1671. choke me
  1672. #endif
  1673. int
  1674. main ()
  1675. {
  1676. return $2 ();
  1677. ;
  1678. return 0;
  1679. }
  1680. _ACEOF
  1681. if ac_fn_c_try_link "$LINENO"; then :
  1682. eval "$3=yes"
  1683. else
  1684. eval "$3=no"
  1685. fi
  1686. rm -f core conftest.err conftest.$ac_objext \
  1687. conftest$ac_exeext conftest.$ac_ext
  1688. fi
  1689. eval ac_res=\$$3
  1690. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1691. $as_echo "$ac_res" >&6; }
  1692. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1693. } # ac_fn_c_check_func
  1694. # ac_fn_cxx_try_compile LINENO
  1695. # ----------------------------
  1696. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1697. ac_fn_cxx_try_compile ()
  1698. {
  1699. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1700. rm -f conftest.$ac_objext
  1701. if { { ac_try="$ac_compile"
  1702. case "(($ac_try" in
  1703. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1704. *) ac_try_echo=$ac_try;;
  1705. esac
  1706. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1707. $as_echo "$ac_try_echo"; } >&5
  1708. (eval "$ac_compile") 2>conftest.err
  1709. ac_status=$?
  1710. if test -s conftest.err; then
  1711. grep -v '^ *+' conftest.err >conftest.er1
  1712. cat conftest.er1 >&5
  1713. mv -f conftest.er1 conftest.err
  1714. fi
  1715. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1716. test $ac_status = 0; } && {
  1717. test -z "$ac_cxx_werror_flag" ||
  1718. test ! -s conftest.err
  1719. } && test -s conftest.$ac_objext; then :
  1720. ac_retval=0
  1721. else
  1722. $as_echo "$as_me: failed program was:" >&5
  1723. sed 's/^/| /' conftest.$ac_ext >&5
  1724. ac_retval=1
  1725. fi
  1726. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1727. as_fn_set_status $ac_retval
  1728. } # ac_fn_cxx_try_compile
  1729. # ac_fn_cxx_try_cpp LINENO
  1730. # ------------------------
  1731. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1732. ac_fn_cxx_try_cpp ()
  1733. {
  1734. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1735. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1736. case "(($ac_try" in
  1737. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1738. *) ac_try_echo=$ac_try;;
  1739. esac
  1740. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1741. $as_echo "$ac_try_echo"; } >&5
  1742. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1743. ac_status=$?
  1744. if test -s conftest.err; then
  1745. grep -v '^ *+' conftest.err >conftest.er1
  1746. cat conftest.er1 >&5
  1747. mv -f conftest.er1 conftest.err
  1748. fi
  1749. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1750. test $ac_status = 0; } > conftest.i && {
  1751. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  1752. test ! -s conftest.err
  1753. }; then :
  1754. ac_retval=0
  1755. else
  1756. $as_echo "$as_me: failed program was:" >&5
  1757. sed 's/^/| /' conftest.$ac_ext >&5
  1758. ac_retval=1
  1759. fi
  1760. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1761. as_fn_set_status $ac_retval
  1762. } # ac_fn_cxx_try_cpp
  1763. # ac_fn_cxx_try_link LINENO
  1764. # -------------------------
  1765. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1766. ac_fn_cxx_try_link ()
  1767. {
  1768. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1769. rm -f conftest.$ac_objext conftest$ac_exeext
  1770. if { { ac_try="$ac_link"
  1771. case "(($ac_try" in
  1772. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1773. *) ac_try_echo=$ac_try;;
  1774. esac
  1775. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1776. $as_echo "$ac_try_echo"; } >&5
  1777. (eval "$ac_link") 2>conftest.err
  1778. ac_status=$?
  1779. if test -s conftest.err; then
  1780. grep -v '^ *+' conftest.err >conftest.er1
  1781. cat conftest.er1 >&5
  1782. mv -f conftest.er1 conftest.err
  1783. fi
  1784. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1785. test $ac_status = 0; } && {
  1786. test -z "$ac_cxx_werror_flag" ||
  1787. test ! -s conftest.err
  1788. } && test -s conftest$ac_exeext && {
  1789. test "$cross_compiling" = yes ||
  1790. $as_test_x conftest$ac_exeext
  1791. }; then :
  1792. ac_retval=0
  1793. else
  1794. $as_echo "$as_me: failed program was:" >&5
  1795. sed 's/^/| /' conftest.$ac_ext >&5
  1796. ac_retval=1
  1797. fi
  1798. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1799. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1800. # interfere with the next link command; also delete a directory that is
  1801. # left behind by Apple's compiler. We do this before executing the actions.
  1802. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1803. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1804. as_fn_set_status $ac_retval
  1805. } # ac_fn_cxx_try_link
  1806. cat >config.log <<_ACEOF
  1807. This file contains any messages produced by compilers while
  1808. running configure, to aid debugging if configure makes a mistake.
  1809. It was created by libPolyCore $as_me 0.8.2, which was
  1810. generated by GNU Autoconf 2.67. Invocation command line was
  1811. $ $0 $@
  1812. _ACEOF
  1813. exec 5>>config.log
  1814. {
  1815. cat <<_ASUNAME
  1816. ## --------- ##
  1817. ## Platform. ##
  1818. ## --------- ##
  1819. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  1820. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  1821. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  1822. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  1823. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  1824. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  1825. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  1826. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  1827. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  1828. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  1829. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  1830. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  1831. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  1832. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  1833. _ASUNAME
  1834. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1835. for as_dir in $PATH
  1836. do
  1837. IFS=$as_save_IFS
  1838. test -z "$as_dir" && as_dir=.
  1839. $as_echo "PATH: $as_dir"
  1840. done
  1841. IFS=$as_save_IFS
  1842. } >&5
  1843. cat >&5 <<_ACEOF
  1844. ## ----------- ##
  1845. ## Core tests. ##
  1846. ## ----------- ##
  1847. _ACEOF
  1848. # Keep a trace of the command line.
  1849. # Strip out --no-create and --no-recursion so they do not pile up.
  1850. # Strip out --silent because we don't want to record it for future runs.
  1851. # Also quote any args containing shell meta-characters.
  1852. # Make two passes to allow for proper duplicate-argument suppression.
  1853. ac_configure_args=
  1854. ac_configure_args0=
  1855. ac_configure_args1=
  1856. ac_must_keep_next=false
  1857. for ac_pass in 1 2
  1858. do
  1859. for ac_arg
  1860. do
  1861. case $ac_arg in
  1862. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  1863. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1864. | -silent | --silent | --silen | --sile | --sil)
  1865. continue ;;
  1866. *\'*)
  1867. ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  1868. esac
  1869. case $ac_pass in
  1870. 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  1871. 2)
  1872. as_fn_append ac_configure_args1 " '$ac_arg'"
  1873. if test $ac_must_keep_next = true; then
  1874. ac_must_keep_next=false # Got value, back to normal.
  1875. else
  1876. case $ac_arg in
  1877. *=* | --config-cache | -C | -disable-* | --disable-* \
  1878. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  1879. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  1880. | -with-* | --with-* | -without-* | --without-* | --x)
  1881. case "$ac_configure_args0 " in
  1882. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  1883. esac
  1884. ;;
  1885. -* ) ac_must_keep_next=true ;;
  1886. esac
  1887. fi
  1888. as_fn_append ac_configure_args " '$ac_arg'"
  1889. ;;
  1890. esac
  1891. done
  1892. done
  1893. { ac_configure_args0=; unset ac_configure_args0;}
  1894. { ac_configure_args1=; unset ac_configure_args1;}
  1895. # When interrupted or exit'd, cleanup temporary files, and complete
  1896. # config.log. We remove comments because anyway the quotes in there
  1897. # would cause problems or look ugly.
  1898. # WARNING: Use '\'' to represent an apostrophe within the trap.
  1899. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  1900. trap 'exit_status=$?
  1901. # Save into config.log some information that might help in debugging.
  1902. {
  1903. echo
  1904. $as_echo "## ---------------- ##
  1905. ## Cache variables. ##
  1906. ## ---------------- ##"
  1907. echo
  1908. # The following way of writing the cache mishandles newlines in values,
  1909. (
  1910. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  1911. eval ac_val=\$$ac_var
  1912. case $ac_val in #(
  1913. *${as_nl}*)
  1914. case $ac_var in #(
  1915. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  1916. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  1917. esac
  1918. case $ac_var in #(
  1919. _ | IFS | as_nl) ;; #(
  1920. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  1921. *) { eval $ac_var=; unset $ac_var;} ;;
  1922. esac ;;
  1923. esac
  1924. done
  1925. (set) 2>&1 |
  1926. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  1927. *${as_nl}ac_space=\ *)
  1928. sed -n \
  1929. "s/'\''/'\''\\\\'\'''\''/g;
  1930. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  1931. ;; #(
  1932. *)
  1933. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  1934. ;;
  1935. esac |
  1936. sort
  1937. )
  1938. echo
  1939. $as_echo "## ----------------- ##
  1940. ## Output variables. ##
  1941. ## ----------------- ##"
  1942. echo
  1943. for ac_var in $ac_subst_vars
  1944. do
  1945. eval ac_val=\$$ac_var
  1946. case $ac_val in
  1947. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1948. esac
  1949. $as_echo "$ac_var='\''$ac_val'\''"
  1950. done | sort
  1951. echo
  1952. if test -n "$ac_subst_files"; then
  1953. $as_echo "## ------------------- ##
  1954. ## File substitutions. ##
  1955. ## ------------------- ##"
  1956. echo
  1957. for ac_var in $ac_subst_files
  1958. do
  1959. eval ac_val=\$$ac_var
  1960. case $ac_val in
  1961. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1962. esac
  1963. $as_echo "$ac_var='\''$ac_val'\''"
  1964. done | sort
  1965. echo
  1966. fi
  1967. if test -s confdefs.h; then
  1968. $as_echo "## ----------- ##
  1969. ## confdefs.h. ##
  1970. ## ----------- ##"
  1971. echo
  1972. cat confdefs.h
  1973. echo
  1974. fi
  1975. test "$ac_signal" != 0 &&
  1976. $as_echo "$as_me: caught signal $ac_signal"
  1977. $as_echo "$as_me: exit $exit_status"
  1978. } >&5
  1979. rm -f core *.core core.conftest.* &&
  1980. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  1981. exit $exit_status
  1982. ' 0
  1983. for ac_signal in 1 2 13 15; do
  1984. trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  1985. done
  1986. ac_signal=0
  1987. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  1988. rm -f -r conftest* confdefs.h
  1989. $as_echo "/* confdefs.h */" > confdefs.h
  1990. # Predefined preprocessor variables.
  1991. cat >>confdefs.h <<_ACEOF
  1992. #define PACKAGE_NAME "$PACKAGE_NAME"
  1993. _ACEOF
  1994. cat >>confdefs.h <<_ACEOF
  1995. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  1996. _ACEOF
  1997. cat >>confdefs.h <<_ACEOF
  1998. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  1999. _ACEOF
  2000. cat >>confdefs.h <<_ACEOF
  2001. #define PACKAGE_STRING "$PACKAGE_STRING"
  2002. _ACEOF
  2003. cat >>confdefs.h <<_ACEOF
  2004. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  2005. _ACEOF
  2006. cat >>confdefs.h <<_ACEOF
  2007. #define PACKAGE_URL "$PACKAGE_URL"
  2008. _ACEOF
  2009. # Let the site file select an alternate cache file if it wants to.
  2010. # Prefer an explicitly selected file to automatically selected ones.
  2011. ac_site_file1=NONE
  2012. ac_site_file2=NONE
  2013. if test -n "$CONFIG_SITE"; then
  2014. # We do not want a PATH search for config.site.
  2015. case $CONFIG_SITE in #((
  2016. -*) ac_site_file1=./$CONFIG_SITE;;
  2017. */*) ac_site_file1=$CONFIG_SITE;;
  2018. *) ac_site_file1=./$CONFIG_SITE;;
  2019. esac
  2020. elif test "x$prefix" != xNONE; then
  2021. ac_site_file1=$prefix/share/config.site
  2022. ac_site_file2=$prefix/etc/config.site
  2023. else
  2024. ac_site_file1=$ac_default_prefix/share/config.site
  2025. ac_site_file2=$ac_default_prefix/etc/config.site
  2026. fi
  2027. for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  2028. do
  2029. test "x$ac_site_file" = xNONE && continue
  2030. if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
  2031. { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  2032. $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  2033. sed 's/^/| /' "$ac_site_file" >&5
  2034. . "$ac_site_file" \
  2035. || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2036. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2037. as_fn_error $? "failed to load site script $ac_site_file
  2038. See \`config.log' for more details" "$LINENO" 5 ; }
  2039. fi
  2040. done
  2041. if test -r "$cache_file"; then
  2042. # Some versions of bash will fail to source /dev/null (special files
  2043. # actually), so we avoid doing that. DJGPP emulates it as a regular file.
  2044. if test /dev/null != "$cache_file" && test -f "$cache_file"; then
  2045. { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  2046. $as_echo "$as_me: loading cache $cache_file" >&6;}
  2047. case $cache_file in
  2048. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  2049. *) . "./$cache_file";;
  2050. esac
  2051. fi
  2052. else
  2053. { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  2054. $as_echo "$as_me: creating cache $cache_file" >&6;}
  2055. >$cache_file
  2056. fi
  2057. # Check that the precious variables saved in the cache have kept the same
  2058. # value.
  2059. ac_cache_corrupted=false
  2060. for ac_var in $ac_precious_vars; do
  2061. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  2062. eval ac_new_set=\$ac_env_${ac_var}_set
  2063. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  2064. eval ac_new_val=\$ac_env_${ac_var}_value
  2065. case $ac_old_set,$ac_new_set in
  2066. set,)
  2067. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  2068. $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  2069. ac_cache_corrupted=: ;;
  2070. ,set)
  2071. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  2072. $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  2073. ac_cache_corrupted=: ;;
  2074. ,);;
  2075. *)
  2076. if test "x$ac_old_val" != "x$ac_new_val"; then
  2077. # differences in whitespace do not lead to failure.
  2078. ac_old_val_w=`echo x $ac_old_val`
  2079. ac_new_val_w=`echo x $ac_new_val`
  2080. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  2081. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  2082. $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  2083. ac_cache_corrupted=:
  2084. else
  2085. { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  2086. $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  2087. eval $ac_var=\$ac_old_val
  2088. fi
  2089. { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  2090. $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  2091. { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  2092. $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  2093. fi;;
  2094. esac
  2095. # Pass precious variables to config.status.
  2096. if test "$ac_new_set" = set; then
  2097. case $ac_new_val in
  2098. *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  2099. *) ac_arg=$ac_var=$ac_new_val ;;
  2100. esac
  2101. case " $ac_configure_args " in
  2102. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  2103. *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  2104. esac
  2105. fi
  2106. done
  2107. if $ac_cache_corrupted; then
  2108. { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2109. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2110. { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  2111. $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  2112. as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
  2113. fi
  2114. ## -------------------- ##
  2115. ## Main body of script. ##
  2116. ## -------------------- ##
  2117. ac_ext=c
  2118. ac_cpp='$CPP $CPPFLAGS'
  2119. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2120. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2121. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2122. ac_config_files="$ac_config_files Makefile"
  2123. am__api_version='1.11'
  2124. ac_aux_dir=
  2125. for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
  2126. if test -f "$ac_dir/install-sh"; then
  2127. ac_aux_dir=$ac_dir
  2128. ac_install_sh="$ac_aux_dir/install-sh -c"
  2129. break
  2130. elif test -f "$ac_dir/install.sh"; then
  2131. ac_aux_dir=$ac_dir
  2132. ac_install_sh="$ac_aux_dir/install.sh -c"
  2133. break
  2134. elif test -f "$ac_dir/shtool"; then
  2135. ac_aux_dir=$ac_dir
  2136. ac_install_sh="$ac_aux_dir/shtool install -c"
  2137. break
  2138. fi
  2139. done
  2140. if test -z "$ac_aux_dir"; then
  2141. as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
  2142. fi
  2143. # These three variables are undocumented and unsupported,
  2144. # and are intended to be withdrawn in a future Autoconf release.
  2145. # They can cause serious problems if a builder's source tree is in a directory
  2146. # whose full name contains unusual characters.
  2147. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  2148. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  2149. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  2150. # Find a good install program. We prefer a C program (faster),
  2151. # so one script is as good as another. But avoid the broken or
  2152. # incompatible versions:
  2153. # SysV /etc/install, /usr/sbin/install
  2154. # SunOS /usr/etc/install
  2155. # IRIX /sbin/install
  2156. # AIX /bin/install
  2157. # AmigaOS /C/install, which installs bootblocks on floppy discs
  2158. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  2159. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  2160. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  2161. # OS/2's system install, which has a completely different semantic
  2162. # ./install, which can be erroneously created by make from ./install.sh.
  2163. # Reject install programs that cannot install multiple files.
  2164. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  2165. $as_echo_n "checking for a BSD-compatible install... " >&6; }
  2166. if test -z "$INSTALL"; then
  2167. if test "${ac_cv_path_install+set}" = set; then :
  2168. $as_echo_n "(cached) " >&6
  2169. else
  2170. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2171. for as_dir in $PATH
  2172. do
  2173. IFS=$as_save_IFS
  2174. test -z "$as_dir" && as_dir=.
  2175. # Account for people who put trailing slashes in PATH elements.
  2176. case $as_dir/ in #((
  2177. ./ | .// | /[cC]/* | \
  2178. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  2179. ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  2180. /usr/ucb/* ) ;;
  2181. *)
  2182. # OSF1 and SCO ODT 3.0 have their own names for install.
  2183. # Don't use installbsd from OSF since it installs stuff as root
  2184. # by default.
  2185. for ac_prog in ginstall scoinst install; do
  2186. for ac_exec_ext in '' $ac_executable_extensions; do
  2187. if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
  2188. if test $ac_prog = install &&
  2189. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2190. # AIX install. It has an incompatible calling convention.
  2191. :
  2192. elif test $ac_prog = install &&
  2193. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2194. # program-specific install script used by HP pwplus--don't use.
  2195. :
  2196. else
  2197. rm -rf conftest.one conftest.two conftest.dir
  2198. echo one > conftest.one
  2199. echo two > conftest.two
  2200. mkdir conftest.dir
  2201. if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
  2202. test -s conftest.one && test -s conftest.two &&
  2203. test -s conftest.dir/conftest.one &&
  2204. test -s conftest.dir/conftest.two
  2205. then
  2206. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  2207. break 3
  2208. fi
  2209. fi
  2210. fi
  2211. done
  2212. done
  2213. ;;
  2214. esac
  2215. done
  2216. IFS=$as_save_IFS
  2217. rm -rf conftest.one conftest.two conftest.dir
  2218. fi
  2219. if test "${ac_cv_path_install+set}" = set; then
  2220. INSTALL=$ac_cv_path_install
  2221. else
  2222. # As a last resort, use the slow shell script. Don't cache a
  2223. # value for INSTALL within a source directory, because that will
  2224. # break other packages using the cache if that directory is
  2225. # removed, or if the value is a relative name.
  2226. INSTALL=$ac_install_sh
  2227. fi
  2228. fi
  2229. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  2230. $as_echo "$INSTALL" >&6; }
  2231. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  2232. # It thinks the first close brace ends the variable substitution.
  2233. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  2234. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  2235. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  2236. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
  2237. $as_echo_n "checking whether build environment is sane... " >&6; }
  2238. # Just in case
  2239. sleep 1
  2240. echo timestamp > conftest.file
  2241. # Reject unsafe characters in $srcdir or the absolute working directory
  2242. # name. Accept space and tab only in the latter.
  2243. am_lf='
  2244. '
  2245. case `pwd` in
  2246. *[\\\"\#\$\&\'\`$am_lf]*)
  2247. as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5 ;;
  2248. esac
  2249. case $srcdir in
  2250. *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
  2251. as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5 ;;
  2252. esac
  2253. # Do `set' in a subshell so we don't clobber the current shell's
  2254. # arguments. Must try -L first in case configure is actually a
  2255. # symlink; some systems play weird games with the mod time of symlinks
  2256. # (eg FreeBSD returns the mod time of the symlink's containing
  2257. # directory).
  2258. if (
  2259. set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
  2260. if test "$*" = "X"; then
  2261. # -L didn't work.
  2262. set X `ls -t "$srcdir/configure" conftest.file`
  2263. fi
  2264. rm -f conftest.file
  2265. if test "$*" != "X $srcdir/configure conftest.file" \
  2266. && test "$*" != "X conftest.file $srcdir/configure"; then
  2267. # If neither matched, then we have a broken ls. This can happen
  2268. # if, for instance, CONFIG_SHELL is bash and it inherits a
  2269. # broken ls alias from the environment. This has actually
  2270. # happened. Such a system could not be considered "sane".
  2271. as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
  2272. alias in your environment" "$LINENO" 5
  2273. fi
  2274. test "$2" = conftest.file
  2275. )
  2276. then
  2277. # Ok.
  2278. :
  2279. else
  2280. as_fn_error $? "newly created file is older than distributed files!
  2281. Check your system clock" "$LINENO" 5
  2282. fi
  2283. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2284. $as_echo "yes" >&6; }
  2285. test "$program_prefix" != NONE &&
  2286. program_transform_name="s&^&$program_prefix&;$program_transform_name"
  2287. # Use a double $ so make ignores it.
  2288. test "$program_suffix" != NONE &&
  2289. program_transform_name="s&\$&$program_suffix&;$program_transform_name"
  2290. # Double any \ or $.
  2291. # By default was `s,x,x', remove it if useless.
  2292. ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
  2293. program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
  2294. # expand $ac_aux_dir to an absolute path
  2295. am_aux_dir=`cd $ac_aux_dir && pwd`
  2296. if test x"${MISSING+set}" != xset; then
  2297. case $am_aux_dir in
  2298. *\ * | *\ *)
  2299. MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
  2300. *)
  2301. MISSING="\${SHELL} $am_aux_dir/missing" ;;
  2302. esac
  2303. fi
  2304. # Use eval to expand $SHELL
  2305. if eval "$MISSING --run true"; then
  2306. am_missing_run="$MISSING --run "
  2307. else
  2308. am_missing_run=
  2309. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
  2310. $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
  2311. fi
  2312. if test x"${install_sh}" != xset; then
  2313. case $am_aux_dir in
  2314. *\ * | *\ *)
  2315. install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
  2316. *)
  2317. install_sh="\${SHELL} $am_aux_dir/install-sh"
  2318. esac
  2319. fi
  2320. # Installed binaries are usually stripped using `strip' when the user
  2321. # run `make install-strip'. However `strip' might not be the right
  2322. # tool to use in cross-compilation environments, therefore Automake
  2323. # will honor the `STRIP' environment variable to overrule this program.
  2324. if test "$cross_compiling" != no; then
  2325. if test -n "$ac_tool_prefix"; then
  2326. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  2327. set dummy ${ac_tool_prefix}strip; ac_word=$2
  2328. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2329. $as_echo_n "checking for $ac_word... " >&6; }
  2330. if test "${ac_cv_prog_STRIP+set}" = set; then :
  2331. $as_echo_n "(cached) " >&6
  2332. else
  2333. if test -n "$STRIP"; then
  2334. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  2335. else
  2336. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2337. for as_dir in $PATH
  2338. do
  2339. IFS=$as_save_IFS
  2340. test -z "$as_dir" && as_dir=.
  2341. for ac_exec_ext in '' $ac_executable_extensions; do
  2342. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2343. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  2344. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2345. break 2
  2346. fi
  2347. done
  2348. done
  2349. IFS=$as_save_IFS
  2350. fi
  2351. fi
  2352. STRIP=$ac_cv_prog_STRIP
  2353. if test -n "$STRIP"; then
  2354. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  2355. $as_echo "$STRIP" >&6; }
  2356. else
  2357. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2358. $as_echo "no" >&6; }
  2359. fi
  2360. fi
  2361. if test -z "$ac_cv_prog_STRIP"; then
  2362. ac_ct_STRIP=$STRIP
  2363. # Extract the first word of "strip", so it can be a program name with args.
  2364. set dummy strip; ac_word=$2
  2365. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2366. $as_echo_n "checking for $ac_word... " >&6; }
  2367. if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
  2368. $as_echo_n "(cached) " >&6
  2369. else
  2370. if test -n "$ac_ct_STRIP"; then
  2371. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  2372. else
  2373. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2374. for as_dir in $PATH
  2375. do
  2376. IFS=$as_save_IFS
  2377. test -z "$as_dir" && as_dir=.
  2378. for ac_exec_ext in '' $ac_executable_extensions; do
  2379. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2380. ac_cv_prog_ac_ct_STRIP="strip"
  2381. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2382. break 2
  2383. fi
  2384. done
  2385. done
  2386. IFS=$as_save_IFS
  2387. fi
  2388. fi
  2389. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  2390. if test -n "$ac_ct_STRIP"; then
  2391. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  2392. $as_echo "$ac_ct_STRIP" >&6; }
  2393. else
  2394. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2395. $as_echo "no" >&6; }
  2396. fi
  2397. if test "x$ac_ct_STRIP" = x; then
  2398. STRIP=":"
  2399. else
  2400. case $cross_compiling:$ac_tool_warned in
  2401. yes:)
  2402. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2403. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2404. ac_tool_warned=yes ;;
  2405. esac
  2406. STRIP=$ac_ct_STRIP
  2407. fi
  2408. else
  2409. STRIP="$ac_cv_prog_STRIP"
  2410. fi
  2411. fi
  2412. INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
  2413. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
  2414. $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
  2415. if test -z "$MKDIR_P"; then
  2416. if test "${ac_cv_path_mkdir+set}" = set; then :
  2417. $as_echo_n "(cached) " >&6
  2418. else
  2419. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2420. for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
  2421. do
  2422. IFS=$as_save_IFS
  2423. test -z "$as_dir" && as_dir=.
  2424. for ac_prog in mkdir gmkdir; do
  2425. for ac_exec_ext in '' $ac_executable_extensions; do
  2426. { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
  2427. case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
  2428. 'mkdir (GNU coreutils) '* | \
  2429. 'mkdir (coreutils) '* | \
  2430. 'mkdir (fileutils) '4.1*)
  2431. ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
  2432. break 3;;
  2433. esac
  2434. done
  2435. done
  2436. done
  2437. IFS=$as_save_IFS
  2438. fi
  2439. test -d ./--version && rmdir ./--version
  2440. if test "${ac_cv_path_mkdir+set}" = set; then
  2441. MKDIR_P="$ac_cv_path_mkdir -p"
  2442. else
  2443. # As a last resort, use the slow shell script. Don't cache a
  2444. # value for MKDIR_P within a source directory, because that will
  2445. # break other packages using the cache if that directory is
  2446. # removed, or if the value is a relative name.
  2447. MKDIR_P="$ac_install_sh -d"
  2448. fi
  2449. fi
  2450. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
  2451. $as_echo "$MKDIR_P" >&6; }
  2452. mkdir_p="$MKDIR_P"
  2453. case $mkdir_p in
  2454. [\\/$]* | ?:[\\/]*) ;;
  2455. */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
  2456. esac
  2457. for ac_prog in gawk mawk nawk awk
  2458. do
  2459. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2460. set dummy $ac_prog; ac_word=$2
  2461. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2462. $as_echo_n "checking for $ac_word... " >&6; }
  2463. if test "${ac_cv_prog_AWK+set}" = set; then :
  2464. $as_echo_n "(cached) " >&6
  2465. else
  2466. if test -n "$AWK"; then
  2467. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  2468. else
  2469. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2470. for as_dir in $PATH
  2471. do
  2472. IFS=$as_save_IFS
  2473. test -z "$as_dir" && as_dir=.
  2474. for ac_exec_ext in '' $ac_executable_extensions; do
  2475. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2476. ac_cv_prog_AWK="$ac_prog"
  2477. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2478. break 2
  2479. fi
  2480. done
  2481. done
  2482. IFS=$as_save_IFS
  2483. fi
  2484. fi
  2485. AWK=$ac_cv_prog_AWK
  2486. if test -n "$AWK"; then
  2487. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  2488. $as_echo "$AWK" >&6; }
  2489. else
  2490. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2491. $as_echo "no" >&6; }
  2492. fi
  2493. test -n "$AWK" && break
  2494. done
  2495. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  2496. $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  2497. set x ${MAKE-make}
  2498. ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  2499. if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\"" = set; then :
  2500. $as_echo_n "(cached) " >&6
  2501. else
  2502. cat >conftest.make <<\_ACEOF
  2503. SHELL = /bin/sh
  2504. all:
  2505. @echo '@@@%%%=$(MAKE)=@@@%%%'
  2506. _ACEOF
  2507. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  2508. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  2509. *@@@%%%=?*=@@@%%%*)
  2510. eval ac_cv_prog_make_${ac_make}_set=yes;;
  2511. *)
  2512. eval ac_cv_prog_make_${ac_make}_set=no;;
  2513. esac
  2514. rm -f conftest.make
  2515. fi
  2516. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  2517. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2518. $as_echo "yes" >&6; }
  2519. SET_MAKE=
  2520. else
  2521. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2522. $as_echo "no" >&6; }
  2523. SET_MAKE="MAKE=${MAKE-make}"
  2524. fi
  2525. rm -rf .tst 2>/dev/null
  2526. mkdir .tst 2>/dev/null
  2527. if test -d .tst; then
  2528. am__leading_dot=.
  2529. else
  2530. am__leading_dot=_
  2531. fi
  2532. rmdir .tst 2>/dev/null
  2533. if test "`cd $srcdir && pwd`" != "`pwd`"; then
  2534. # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
  2535. # is not polluted with repeated "-I."
  2536. am__isrc=' -I$(srcdir)'
  2537. # test to see if srcdir already configured
  2538. if test -f $srcdir/config.status; then
  2539. as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
  2540. fi
  2541. fi
  2542. # test whether we have cygpath
  2543. if test -z "$CYGPATH_W"; then
  2544. if (cygpath --version) >/dev/null 2>/dev/null; then
  2545. CYGPATH_W='cygpath -w'
  2546. else
  2547. CYGPATH_W=echo
  2548. fi
  2549. fi
  2550. # Define the identity of the package.
  2551. PACKAGE=libPolyCore
  2552. VERSION=0.8.2
  2553. cat >>confdefs.h <<_ACEOF
  2554. #define PACKAGE "$PACKAGE"
  2555. _ACEOF
  2556. cat >>confdefs.h <<_ACEOF
  2557. #define VERSION "$VERSION"
  2558. _ACEOF
  2559. # Some tools Automake needs.
  2560. ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
  2561. AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
  2562. AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
  2563. AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
  2564. MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
  2565. # We need awk for the "check" target. The system "awk" is bad on
  2566. # some platforms.
  2567. # Always define AMTAR for backward compatibility.
  2568. AMTAR=${AMTAR-"${am_missing_run}tar"}
  2569. am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
  2570. case `pwd` in
  2571. *\ * | *\ *)
  2572. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
  2573. $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
  2574. esac
  2575. macro_version='2.2.6b'
  2576. macro_revision='1.3017'
  2577. ltmain="$ac_aux_dir/ltmain.sh"
  2578. # Make sure we can run config.sub.
  2579. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  2580. as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
  2581. { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  2582. $as_echo_n "checking build system type... " >&6; }
  2583. if test "${ac_cv_build+set}" = set; then :
  2584. $as_echo_n "(cached) " >&6
  2585. else
  2586. ac_build_alias=$build_alias
  2587. test "x$ac_build_alias" = x &&
  2588. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  2589. test "x$ac_build_alias" = x &&
  2590. as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
  2591. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  2592. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
  2593. fi
  2594. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  2595. $as_echo "$ac_cv_build" >&6; }
  2596. case $ac_cv_build in
  2597. *-*-*) ;;
  2598. *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5 ;;
  2599. esac
  2600. build=$ac_cv_build
  2601. ac_save_IFS=$IFS; IFS='-'
  2602. set x $ac_cv_build
  2603. shift
  2604. build_cpu=$1
  2605. build_vendor=$2
  2606. shift; shift
  2607. # Remember, the first character of IFS is used to create $*,
  2608. # except with old shells:
  2609. build_os=$*
  2610. IFS=$ac_save_IFS
  2611. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  2612. { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  2613. $as_echo_n "checking host system type... " >&6; }
  2614. if test "${ac_cv_host+set}" = set; then :
  2615. $as_echo_n "(cached) " >&6
  2616. else
  2617. if test "x$host_alias" = x; then
  2618. ac_cv_host=$ac_cv_build
  2619. else
  2620. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  2621. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
  2622. fi
  2623. fi
  2624. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  2625. $as_echo "$ac_cv_host" >&6; }
  2626. case $ac_cv_host in
  2627. *-*-*) ;;
  2628. *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5 ;;
  2629. esac
  2630. host=$ac_cv_host
  2631. ac_save_IFS=$IFS; IFS='-'
  2632. set x $ac_cv_host
  2633. shift
  2634. host_cpu=$1
  2635. host_vendor=$2
  2636. shift; shift
  2637. # Remember, the first character of IFS is used to create $*,
  2638. # except with old shells:
  2639. host_os=$*
  2640. IFS=$ac_save_IFS
  2641. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  2642. DEPDIR="${am__leading_dot}deps"
  2643. ac_config_commands="$ac_config_commands depfiles"
  2644. am_make=${MAKE-make}
  2645. cat > confinc << 'END'
  2646. am__doit:
  2647. @echo this is the am__doit target
  2648. .PHONY: am__doit
  2649. END
  2650. # If we don't find an include directive, just comment out the code.
  2651. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
  2652. $as_echo_n "checking for style of include used by $am_make... " >&6; }
  2653. am__include="#"
  2654. am__quote=
  2655. _am_result=none
  2656. # First try GNU make style include.
  2657. echo "include confinc" > confmf
  2658. # Ignore all kinds of additional output from `make'.
  2659. case `$am_make -s -f confmf 2> /dev/null` in #(
  2660. *the\ am__doit\ target*)
  2661. am__include=include
  2662. am__quote=
  2663. _am_result=GNU
  2664. ;;
  2665. esac
  2666. # Now try BSD make style include.
  2667. if test "$am__include" = "#"; then
  2668. echo '.include "confinc"' > confmf
  2669. case `$am_make -s -f confmf 2> /dev/null` in #(
  2670. *the\ am__doit\ target*)
  2671. am__include=.include
  2672. am__quote="\""
  2673. _am_result=BSD
  2674. ;;
  2675. esac
  2676. fi
  2677. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
  2678. $as_echo "$_am_result" >&6; }
  2679. rm -f confinc confmf
  2680. # Check whether --enable-dependency-tracking was given.
  2681. if test "${enable_dependency_tracking+set}" = set; then :
  2682. enableval=$enable_dependency_tracking;
  2683. fi
  2684. if test "x$enable_dependency_tracking" != xno; then
  2685. am_depcomp="$ac_aux_dir/depcomp"
  2686. AMDEPBACKSLASH='\'
  2687. fi
  2688. if test "x$enable_dependency_tracking" != xno; then
  2689. AMDEP_TRUE=
  2690. AMDEP_FALSE='#'
  2691. else
  2692. AMDEP_TRUE='#'
  2693. AMDEP_FALSE=
  2694. fi
  2695. ac_ext=c
  2696. ac_cpp='$CPP $CPPFLAGS'
  2697. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2698. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2699. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2700. if test -n "$ac_tool_prefix"; then
  2701. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  2702. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  2703. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2704. $as_echo_n "checking for $ac_word... " >&6; }
  2705. if test "${ac_cv_prog_CC+set}" = set; then :
  2706. $as_echo_n "(cached) " >&6
  2707. else
  2708. if test -n "$CC"; then
  2709. ac_cv_prog_CC="$CC" # Let the user override the test.
  2710. else
  2711. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2712. for as_dir in $PATH
  2713. do
  2714. IFS=$as_save_IFS
  2715. test -z "$as_dir" && as_dir=.
  2716. for ac_exec_ext in '' $ac_executable_extensions; do
  2717. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2718. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  2719. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2720. break 2
  2721. fi
  2722. done
  2723. done
  2724. IFS=$as_save_IFS
  2725. fi
  2726. fi
  2727. CC=$ac_cv_prog_CC
  2728. if test -n "$CC"; then
  2729. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2730. $as_echo "$CC" >&6; }
  2731. else
  2732. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2733. $as_echo "no" >&6; }
  2734. fi
  2735. fi
  2736. if test -z "$ac_cv_prog_CC"; then
  2737. ac_ct_CC=$CC
  2738. # Extract the first word of "gcc", so it can be a program name with args.
  2739. set dummy gcc; ac_word=$2
  2740. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2741. $as_echo_n "checking for $ac_word... " >&6; }
  2742. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
  2743. $as_echo_n "(cached) " >&6
  2744. else
  2745. if test -n "$ac_ct_CC"; then
  2746. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2747. else
  2748. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2749. for as_dir in $PATH
  2750. do
  2751. IFS=$as_save_IFS
  2752. test -z "$as_dir" && as_dir=.
  2753. for ac_exec_ext in '' $ac_executable_extensions; do
  2754. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2755. ac_cv_prog_ac_ct_CC="gcc"
  2756. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2757. break 2
  2758. fi
  2759. done
  2760. done
  2761. IFS=$as_save_IFS
  2762. fi
  2763. fi
  2764. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2765. if test -n "$ac_ct_CC"; then
  2766. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2767. $as_echo "$ac_ct_CC" >&6; }
  2768. else
  2769. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2770. $as_echo "no" >&6; }
  2771. fi
  2772. if test "x$ac_ct_CC" = x; then
  2773. CC=""
  2774. else
  2775. case $cross_compiling:$ac_tool_warned in
  2776. yes:)
  2777. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2778. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2779. ac_tool_warned=yes ;;
  2780. esac
  2781. CC=$ac_ct_CC
  2782. fi
  2783. else
  2784. CC="$ac_cv_prog_CC"
  2785. fi
  2786. if test -z "$CC"; then
  2787. if test -n "$ac_tool_prefix"; then
  2788. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  2789. set dummy ${ac_tool_prefix}cc; ac_word=$2
  2790. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2791. $as_echo_n "checking for $ac_word... " >&6; }
  2792. if test "${ac_cv_prog_CC+set}" = set; then :
  2793. $as_echo_n "(cached) " >&6
  2794. else
  2795. if test -n "$CC"; then
  2796. ac_cv_prog_CC="$CC" # Let the user override the test.
  2797. else
  2798. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2799. for as_dir in $PATH
  2800. do
  2801. IFS=$as_save_IFS
  2802. test -z "$as_dir" && as_dir=.
  2803. for ac_exec_ext in '' $ac_executable_extensions; do
  2804. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2805. ac_cv_prog_CC="${ac_tool_prefix}cc"
  2806. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2807. break 2
  2808. fi
  2809. done
  2810. done
  2811. IFS=$as_save_IFS
  2812. fi
  2813. fi
  2814. CC=$ac_cv_prog_CC
  2815. if test -n "$CC"; then
  2816. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2817. $as_echo "$CC" >&6; }
  2818. else
  2819. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2820. $as_echo "no" >&6; }
  2821. fi
  2822. fi
  2823. fi
  2824. if test -z "$CC"; then
  2825. # Extract the first word of "cc", so it can be a program name with args.
  2826. set dummy cc; ac_word=$2
  2827. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2828. $as_echo_n "checking for $ac_word... " >&6; }
  2829. if test "${ac_cv_prog_CC+set}" = set; then :
  2830. $as_echo_n "(cached) " >&6
  2831. else
  2832. if test -n "$CC"; then
  2833. ac_cv_prog_CC="$CC" # Let the user override the test.
  2834. else
  2835. ac_prog_rejected=no
  2836. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2837. for as_dir in $PATH
  2838. do
  2839. IFS=$as_save_IFS
  2840. test -z "$as_dir" && as_dir=.
  2841. for ac_exec_ext in '' $ac_executable_extensions; do
  2842. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2843. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  2844. ac_prog_rejected=yes
  2845. continue
  2846. fi
  2847. ac_cv_prog_CC="cc"
  2848. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2849. break 2
  2850. fi
  2851. done
  2852. done
  2853. IFS=$as_save_IFS
  2854. if test $ac_prog_rejected = yes; then
  2855. # We found a bogon in the path, so make sure we never use it.
  2856. set dummy $ac_cv_prog_CC
  2857. shift
  2858. if test $# != 0; then
  2859. # We chose a different compiler from the bogus one.
  2860. # However, it has the same basename, so the bogon will be chosen
  2861. # first if we set CC to just the basename; use the full file name.
  2862. shift
  2863. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  2864. fi
  2865. fi
  2866. fi
  2867. fi
  2868. CC=$ac_cv_prog_CC
  2869. if test -n "$CC"; then
  2870. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2871. $as_echo "$CC" >&6; }
  2872. else
  2873. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2874. $as_echo "no" >&6; }
  2875. fi
  2876. fi
  2877. if test -z "$CC"; then
  2878. if test -n "$ac_tool_prefix"; then
  2879. for ac_prog in cl.exe
  2880. do
  2881. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  2882. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  2883. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2884. $as_echo_n "checking for $ac_word... " >&6; }
  2885. if test "${ac_cv_prog_CC+set}" = set; then :
  2886. $as_echo_n "(cached) " >&6
  2887. else
  2888. if test -n "$CC"; then
  2889. ac_cv_prog_CC="$CC" # Let the user override the test.
  2890. else
  2891. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2892. for as_dir in $PATH
  2893. do
  2894. IFS=$as_save_IFS
  2895. test -z "$as_dir" && as_dir=.
  2896. for ac_exec_ext in '' $ac_executable_extensions; do
  2897. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2898. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  2899. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2900. break 2
  2901. fi
  2902. done
  2903. done
  2904. IFS=$as_save_IFS
  2905. fi
  2906. fi
  2907. CC=$ac_cv_prog_CC
  2908. if test -n "$CC"; then
  2909. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2910. $as_echo "$CC" >&6; }
  2911. else
  2912. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2913. $as_echo "no" >&6; }
  2914. fi
  2915. test -n "$CC" && break
  2916. done
  2917. fi
  2918. if test -z "$CC"; then
  2919. ac_ct_CC=$CC
  2920. for ac_prog in cl.exe
  2921. do
  2922. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2923. set dummy $ac_prog; ac_word=$2
  2924. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2925. $as_echo_n "checking for $ac_word... " >&6; }
  2926. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
  2927. $as_echo_n "(cached) " >&6
  2928. else
  2929. if test -n "$ac_ct_CC"; then
  2930. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2931. else
  2932. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2933. for as_dir in $PATH
  2934. do
  2935. IFS=$as_save_IFS
  2936. test -z "$as_dir" && as_dir=.
  2937. for ac_exec_ext in '' $ac_executable_extensions; do
  2938. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2939. ac_cv_prog_ac_ct_CC="$ac_prog"
  2940. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2941. break 2
  2942. fi
  2943. done
  2944. done
  2945. IFS=$as_save_IFS
  2946. fi
  2947. fi
  2948. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2949. if test -n "$ac_ct_CC"; then
  2950. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2951. $as_echo "$ac_ct_CC" >&6; }
  2952. else
  2953. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2954. $as_echo "no" >&6; }
  2955. fi
  2956. test -n "$ac_ct_CC" && break
  2957. done
  2958. if test "x$ac_ct_CC" = x; then
  2959. CC=""
  2960. else
  2961. case $cross_compiling:$ac_tool_warned in
  2962. yes:)
  2963. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2964. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2965. ac_tool_warned=yes ;;
  2966. esac
  2967. CC=$ac_ct_CC
  2968. fi
  2969. fi
  2970. fi
  2971. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2972. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2973. as_fn_error $? "no acceptable C compiler found in \$PATH
  2974. See \`config.log' for more details" "$LINENO" 5 ; }
  2975. # Provide some information about the compiler.
  2976. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  2977. set X $ac_compile
  2978. ac_compiler=$2
  2979. for ac_option in --version -v -V -qversion; do
  2980. { { ac_try="$ac_compiler $ac_option >&5"
  2981. case "(($ac_try" in
  2982. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2983. *) ac_try_echo=$ac_try;;
  2984. esac
  2985. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2986. $as_echo "$ac_try_echo"; } >&5
  2987. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  2988. ac_status=$?
  2989. if test -s conftest.err; then
  2990. sed '10a\
  2991. ... rest of stderr output deleted ...
  2992. 10q' conftest.err >conftest.er1
  2993. cat conftest.er1 >&5
  2994. fi
  2995. rm -f conftest.er1 conftest.err
  2996. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2997. test $ac_status = 0; }
  2998. done
  2999. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3000. /* end confdefs.h. */
  3001. int
  3002. main ()
  3003. {
  3004. ;
  3005. return 0;
  3006. }
  3007. _ACEOF
  3008. ac_clean_files_save=$ac_clean_files
  3009. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  3010. # Try to create an executable without -o first, disregard a.out.
  3011. # It will help us diagnose broken compilers, and finding out an intuition
  3012. # of exeext.
  3013. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
  3014. $as_echo_n "checking whether the C compiler works... " >&6; }
  3015. ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  3016. # The possible output files:
  3017. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  3018. ac_rmfiles=
  3019. for ac_file in $ac_files
  3020. do
  3021. case $ac_file in
  3022. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3023. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  3024. esac
  3025. done
  3026. rm -f $ac_rmfiles
  3027. if { { ac_try="$ac_link_default"
  3028. case "(($ac_try" in
  3029. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3030. *) ac_try_echo=$ac_try;;
  3031. esac
  3032. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3033. $as_echo "$ac_try_echo"; } >&5
  3034. (eval "$ac_link_default") 2>&5
  3035. ac_status=$?
  3036. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3037. test $ac_status = 0; }; then :
  3038. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  3039. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  3040. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  3041. # so that the user can short-circuit this test for compilers unknown to
  3042. # Autoconf.
  3043. for ac_file in $ac_files ''
  3044. do
  3045. test -f "$ac_file" || continue
  3046. case $ac_file in
  3047. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  3048. ;;
  3049. [ab].out )
  3050. # We found the default executable, but exeext='' is most
  3051. # certainly right.
  3052. break;;
  3053. *.* )
  3054. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  3055. then :; else
  3056. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3057. fi
  3058. # We set ac_cv_exeext here because the later test for it is not
  3059. # safe: cross compilers may not add the suffix if given an `-o'
  3060. # argument, so we may need to know it at that point already.
  3061. # Even if this section looks crufty: it has the advantage of
  3062. # actually working.
  3063. break;;
  3064. * )
  3065. break;;
  3066. esac
  3067. done
  3068. test "$ac_cv_exeext" = no && ac_cv_exeext=
  3069. else
  3070. ac_file=''
  3071. fi
  3072. if test -z "$ac_file"; then :
  3073. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3074. $as_echo "no" >&6; }
  3075. $as_echo "$as_me: failed program was:" >&5
  3076. sed 's/^/| /' conftest.$ac_ext >&5
  3077. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3078. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3079. as_fn_error 77 "C compiler cannot create executables
  3080. See \`config.log' for more details" "$LINENO" 5 ; }
  3081. else
  3082. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3083. $as_echo "yes" >&6; }
  3084. fi
  3085. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
  3086. $as_echo_n "checking for C compiler default output file name... " >&6; }
  3087. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  3088. $as_echo "$ac_file" >&6; }
  3089. ac_exeext=$ac_cv_exeext
  3090. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  3091. ac_clean_files=$ac_clean_files_save
  3092. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  3093. $as_echo_n "checking for suffix of executables... " >&6; }
  3094. if { { ac_try="$ac_link"
  3095. case "(($ac_try" in
  3096. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3097. *) ac_try_echo=$ac_try;;
  3098. esac
  3099. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3100. $as_echo "$ac_try_echo"; } >&5
  3101. (eval "$ac_link") 2>&5
  3102. ac_status=$?
  3103. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3104. test $ac_status = 0; }; then :
  3105. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  3106. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  3107. # work properly (i.e., refer to `conftest.exe'), while it won't with
  3108. # `rm'.
  3109. for ac_file in conftest.exe conftest conftest.*; do
  3110. test -f "$ac_file" || continue
  3111. case $ac_file in
  3112. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3113. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3114. break;;
  3115. * ) break;;
  3116. esac
  3117. done
  3118. else
  3119. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3120. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3121. as_fn_error $? "cannot compute suffix of executables: cannot compile and link
  3122. See \`config.log' for more details" "$LINENO" 5 ; }
  3123. fi
  3124. rm -f conftest conftest$ac_cv_exeext
  3125. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  3126. $as_echo "$ac_cv_exeext" >&6; }
  3127. rm -f conftest.$ac_ext
  3128. EXEEXT=$ac_cv_exeext
  3129. ac_exeext=$EXEEXT
  3130. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3131. /* end confdefs.h. */
  3132. #include <stdio.h>
  3133. int
  3134. main ()
  3135. {
  3136. FILE *f = fopen ("conftest.out", "w");
  3137. return ferror (f) || fclose (f) != 0;
  3138. ;
  3139. return 0;
  3140. }
  3141. _ACEOF
  3142. ac_clean_files="$ac_clean_files conftest.out"
  3143. # Check that the compiler produces executables we can run. If not, either
  3144. # the compiler is broken, or we cross compile.
  3145. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  3146. $as_echo_n "checking whether we are cross compiling... " >&6; }
  3147. if test "$cross_compiling" != yes; then
  3148. { { ac_try="$ac_link"
  3149. case "(($ac_try" in
  3150. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3151. *) ac_try_echo=$ac_try;;
  3152. esac
  3153. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3154. $as_echo "$ac_try_echo"; } >&5
  3155. (eval "$ac_link") 2>&5
  3156. ac_status=$?
  3157. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3158. test $ac_status = 0; }
  3159. if { ac_try='./conftest$ac_cv_exeext'
  3160. { { case "(($ac_try" in
  3161. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3162. *) ac_try_echo=$ac_try;;
  3163. esac
  3164. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3165. $as_echo "$ac_try_echo"; } >&5
  3166. (eval "$ac_try") 2>&5
  3167. ac_status=$?
  3168. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3169. test $ac_status = 0; }; }; then
  3170. cross_compiling=no
  3171. else
  3172. if test "$cross_compiling" = maybe; then
  3173. cross_compiling=yes
  3174. else
  3175. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3176. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3177. as_fn_error $? "cannot run C compiled programs.
  3178. If you meant to cross compile, use \`--host'.
  3179. See \`config.log' for more details" "$LINENO" 5 ; }
  3180. fi
  3181. fi
  3182. fi
  3183. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  3184. $as_echo "$cross_compiling" >&6; }
  3185. rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
  3186. ac_clean_files=$ac_clean_files_save
  3187. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  3188. $as_echo_n "checking for suffix of object files... " >&6; }
  3189. if test "${ac_cv_objext+set}" = set; then :
  3190. $as_echo_n "(cached) " >&6
  3191. else
  3192. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3193. /* end confdefs.h. */
  3194. int
  3195. main ()
  3196. {
  3197. ;
  3198. return 0;
  3199. }
  3200. _ACEOF
  3201. rm -f conftest.o conftest.obj
  3202. if { { ac_try="$ac_compile"
  3203. case "(($ac_try" in
  3204. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3205. *) ac_try_echo=$ac_try;;
  3206. esac
  3207. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3208. $as_echo "$ac_try_echo"; } >&5
  3209. (eval "$ac_compile") 2>&5
  3210. ac_status=$?
  3211. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3212. test $ac_status = 0; }; then :
  3213. for ac_file in conftest.o conftest.obj conftest.*; do
  3214. test -f "$ac_file" || continue;
  3215. case $ac_file in
  3216. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  3217. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  3218. break;;
  3219. esac
  3220. done
  3221. else
  3222. $as_echo "$as_me: failed program was:" >&5
  3223. sed 's/^/| /' conftest.$ac_ext >&5
  3224. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3225. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3226. as_fn_error $? "cannot compute suffix of object files: cannot compile
  3227. See \`config.log' for more details" "$LINENO" 5 ; }
  3228. fi
  3229. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  3230. fi
  3231. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  3232. $as_echo "$ac_cv_objext" >&6; }
  3233. OBJEXT=$ac_cv_objext
  3234. ac_objext=$OBJEXT
  3235. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  3236. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  3237. if test "${ac_cv_c_compiler_gnu+set}" = set; then :
  3238. $as_echo_n "(cached) " >&6
  3239. else
  3240. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3241. /* end confdefs.h. */
  3242. int
  3243. main ()
  3244. {
  3245. #ifndef __GNUC__
  3246. choke me
  3247. #endif
  3248. ;
  3249. return 0;
  3250. }
  3251. _ACEOF
  3252. if ac_fn_c_try_compile "$LINENO"; then :
  3253. ac_compiler_gnu=yes
  3254. else
  3255. ac_compiler_gnu=no
  3256. fi
  3257. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3258. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  3259. fi
  3260. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  3261. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  3262. if test $ac_compiler_gnu = yes; then
  3263. GCC=yes
  3264. else
  3265. GCC=
  3266. fi
  3267. ac_test_CFLAGS=${CFLAGS+set}
  3268. ac_save_CFLAGS=$CFLAGS
  3269. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  3270. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  3271. if test "${ac_cv_prog_cc_g+set}" = set; then :
  3272. $as_echo_n "(cached) " >&6
  3273. else
  3274. ac_save_c_werror_flag=$ac_c_werror_flag
  3275. ac_c_werror_flag=yes
  3276. ac_cv_prog_cc_g=no
  3277. CFLAGS="-g"
  3278. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3279. /* end confdefs.h. */
  3280. int
  3281. main ()
  3282. {
  3283. ;
  3284. return 0;
  3285. }
  3286. _ACEOF
  3287. if ac_fn_c_try_compile "$LINENO"; then :
  3288. ac_cv_prog_cc_g=yes
  3289. else
  3290. CFLAGS=""
  3291. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3292. /* end confdefs.h. */
  3293. int
  3294. main ()
  3295. {
  3296. ;
  3297. return 0;
  3298. }
  3299. _ACEOF
  3300. if ac_fn_c_try_compile "$LINENO"; then :
  3301. else
  3302. ac_c_werror_flag=$ac_save_c_werror_flag
  3303. CFLAGS="-g"
  3304. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3305. /* end confdefs.h. */
  3306. int
  3307. main ()
  3308. {
  3309. ;
  3310. return 0;
  3311. }
  3312. _ACEOF
  3313. if ac_fn_c_try_compile "$LINENO"; then :
  3314. ac_cv_prog_cc_g=yes
  3315. fi
  3316. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3317. fi
  3318. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3319. fi
  3320. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3321. ac_c_werror_flag=$ac_save_c_werror_flag
  3322. fi
  3323. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  3324. $as_echo "$ac_cv_prog_cc_g" >&6; }
  3325. if test "$ac_test_CFLAGS" = set; then
  3326. CFLAGS=$ac_save_CFLAGS
  3327. elif test $ac_cv_prog_cc_g = yes; then
  3328. if test "$GCC" = yes; then
  3329. CFLAGS="-g -O2"
  3330. else
  3331. CFLAGS="-g"
  3332. fi
  3333. else
  3334. if test "$GCC" = yes; then
  3335. CFLAGS="-O2"
  3336. else
  3337. CFLAGS=
  3338. fi
  3339. fi
  3340. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  3341. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  3342. if test "${ac_cv_prog_cc_c89+set}" = set; then :
  3343. $as_echo_n "(cached) " >&6
  3344. else
  3345. ac_cv_prog_cc_c89=no
  3346. ac_save_CC=$CC
  3347. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3348. /* end confdefs.h. */
  3349. #include <stdarg.h>
  3350. #include <stdio.h>
  3351. #include <sys/types.h>
  3352. #include <sys/stat.h>
  3353. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  3354. struct buf { int x; };
  3355. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  3356. static char *e (p, i)
  3357. char **p;
  3358. int i;
  3359. {
  3360. return p[i];
  3361. }
  3362. static char *f (char * (*g) (char **, int), char **p, ...)
  3363. {
  3364. char *s;
  3365. va_list v;
  3366. va_start (v,p);
  3367. s = g (p, va_arg (v,int));
  3368. va_end (v);
  3369. return s;
  3370. }
  3371. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  3372. function prototypes and stuff, but not '\xHH' hex character constants.
  3373. These don't provoke an error unfortunately, instead are silently treated
  3374. as 'x'. The following induces an error, until -std is added to get
  3375. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  3376. array size at least. It's necessary to write '\x00'==0 to get something
  3377. that's true only with -std. */
  3378. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  3379. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  3380. inside strings and character constants. */
  3381. #define FOO(x) 'x'
  3382. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  3383. int test (int i, double x);
  3384. struct s1 {int (*f) (int a);};
  3385. struct s2 {int (*f) (double a);};
  3386. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  3387. int argc;
  3388. char **argv;
  3389. int
  3390. main ()
  3391. {
  3392. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  3393. ;
  3394. return 0;
  3395. }
  3396. _ACEOF
  3397. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  3398. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  3399. do
  3400. CC="$ac_save_CC $ac_arg"
  3401. if ac_fn_c_try_compile "$LINENO"; then :
  3402. ac_cv_prog_cc_c89=$ac_arg
  3403. fi
  3404. rm -f core conftest.err conftest.$ac_objext
  3405. test "x$ac_cv_prog_cc_c89" != "xno" && break
  3406. done
  3407. rm -f conftest.$ac_ext
  3408. CC=$ac_save_CC
  3409. fi
  3410. # AC_CACHE_VAL
  3411. case "x$ac_cv_prog_cc_c89" in
  3412. x)
  3413. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  3414. $as_echo "none needed" >&6; } ;;
  3415. xno)
  3416. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  3417. $as_echo "unsupported" >&6; } ;;
  3418. *)
  3419. CC="$CC $ac_cv_prog_cc_c89"
  3420. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  3421. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  3422. esac
  3423. if test "x$ac_cv_prog_cc_c89" != xno; then :
  3424. fi
  3425. ac_ext=c
  3426. ac_cpp='$CPP $CPPFLAGS'
  3427. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3428. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3429. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3430. depcc="$CC" am_compiler_list=
  3431. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  3432. $as_echo_n "checking dependency style of $depcc... " >&6; }
  3433. if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
  3434. $as_echo_n "(cached) " >&6
  3435. else
  3436. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  3437. # We make a subdir and do the tests there. Otherwise we can end up
  3438. # making bogus files that we don't know about and never remove. For
  3439. # instance it was reported that on HP-UX the gcc test will end up
  3440. # making a dummy file named `D' -- because `-MD' means `put the output
  3441. # in D'.
  3442. mkdir conftest.dir
  3443. # Copy depcomp to subdir because otherwise we won't find it if we're
  3444. # using a relative directory.
  3445. cp "$am_depcomp" conftest.dir
  3446. cd conftest.dir
  3447. # We will build objects and dependencies in a subdirectory because
  3448. # it helps to detect inapplicable dependency modes. For instance
  3449. # both Tru64's cc and ICC support -MD to output dependencies as a
  3450. # side effect of compilation, but ICC will put the dependencies in
  3451. # the current directory while Tru64 will put them in the object
  3452. # directory.
  3453. mkdir sub
  3454. am_cv_CC_dependencies_compiler_type=none
  3455. if test "$am_compiler_list" = ""; then
  3456. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  3457. fi
  3458. am__universal=false
  3459. case " $depcc " in #(
  3460. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  3461. esac
  3462. for depmode in $am_compiler_list; do
  3463. # Setup a source with many dependencies, because some compilers
  3464. # like to wrap large dependency lists on column 80 (with \), and
  3465. # we should not choose a depcomp mode which is confused by this.
  3466. #
  3467. # We need to recreate these files for each test, as the compiler may
  3468. # overwrite some of them when testing with obscure command lines.
  3469. # This happens at least with the AIX C compiler.
  3470. : > sub/conftest.c
  3471. for i in 1 2 3 4 5 6; do
  3472. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  3473. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  3474. # Solaris 8's {/usr,}/bin/sh.
  3475. touch sub/conftst$i.h
  3476. done
  3477. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  3478. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  3479. # mode. It turns out that the SunPro C++ compiler does not properly
  3480. # handle `-M -o', and we need to detect this. Also, some Intel
  3481. # versions had trouble with output in subdirs
  3482. am__obj=sub/conftest.${OBJEXT-o}
  3483. am__minus_obj="-o $am__obj"
  3484. case $depmode in
  3485. gcc)
  3486. # This depmode causes a compiler race in universal mode.
  3487. test "$am__universal" = false || continue
  3488. ;;
  3489. nosideeffect)
  3490. # after this tag, mechanisms are not by side-effect, so they'll
  3491. # only be used when explicitly requested
  3492. if test "x$enable_dependency_tracking" = xyes; then
  3493. continue
  3494. else
  3495. break
  3496. fi
  3497. ;;
  3498. msvisualcpp | msvcmsys)
  3499. # This compiler won't grok `-c -o', but also, the minuso test has
  3500. # not run yet. These depmodes are late enough in the game, and
  3501. # so weak that their functioning should not be impacted.
  3502. am__obj=conftest.${OBJEXT-o}
  3503. am__minus_obj=
  3504. ;;
  3505. none) break ;;
  3506. esac
  3507. if depmode=$depmode \
  3508. source=sub/conftest.c object=$am__obj \
  3509. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  3510. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  3511. >/dev/null 2>conftest.err &&
  3512. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  3513. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  3514. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  3515. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  3516. # icc doesn't choke on unknown options, it will just issue warnings
  3517. # or remarks (even with -Werror). So we grep stderr for any message
  3518. # that says an option was ignored or not supported.
  3519. # When given -MP, icc 7.0 and 7.1 complain thusly:
  3520. # icc: Command line warning: ignoring option '-M'; no argument required
  3521. # The diagnosis changed in icc 8.0:
  3522. # icc: Command line remark: option '-MP' not supported
  3523. if (grep 'ignoring option' conftest.err ||
  3524. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  3525. am_cv_CC_dependencies_compiler_type=$depmode
  3526. break
  3527. fi
  3528. fi
  3529. done
  3530. cd ..
  3531. rm -rf conftest.dir
  3532. else
  3533. am_cv_CC_dependencies_compiler_type=none
  3534. fi
  3535. fi
  3536. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
  3537. $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
  3538. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  3539. if
  3540. test "x$enable_dependency_tracking" != xno \
  3541. && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  3542. am__fastdepCC_TRUE=
  3543. am__fastdepCC_FALSE='#'
  3544. else
  3545. am__fastdepCC_TRUE='#'
  3546. am__fastdepCC_FALSE=
  3547. fi
  3548. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
  3549. $as_echo_n "checking for a sed that does not truncate output... " >&6; }
  3550. if test "${ac_cv_path_SED+set}" = set; then :
  3551. $as_echo_n "(cached) " >&6
  3552. else
  3553. ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  3554. for ac_i in 1 2 3 4 5 6 7; do
  3555. ac_script="$ac_script$as_nl$ac_script"
  3556. done
  3557. echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  3558. { ac_script=; unset ac_script;}
  3559. if test -z "$SED"; then
  3560. ac_path_SED_found=false
  3561. # Loop through the user's path and test for each of PROGNAME-LIST
  3562. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3563. for as_dir in $PATH
  3564. do
  3565. IFS=$as_save_IFS
  3566. test -z "$as_dir" && as_dir=.
  3567. for ac_prog in sed gsed; do
  3568. for ac_exec_ext in '' $ac_executable_extensions; do
  3569. ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
  3570. { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
  3571. # Check for GNU ac_path_SED and select it if it is found.
  3572. # Check for GNU $ac_path_SED
  3573. case `"$ac_path_SED" --version 2>&1` in
  3574. *GNU*)
  3575. ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  3576. *)
  3577. ac_count=0
  3578. $as_echo_n 0123456789 >"conftest.in"
  3579. while :
  3580. do
  3581. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3582. mv "conftest.tmp" "conftest.in"
  3583. cp "conftest.in" "conftest.nl"
  3584. $as_echo '' >> "conftest.nl"
  3585. "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3586. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3587. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3588. if test $ac_count -gt ${ac_path_SED_max-0}; then
  3589. # Best one so far, save it but keep looking for a better one
  3590. ac_cv_path_SED="$ac_path_SED"
  3591. ac_path_SED_max=$ac_count
  3592. fi
  3593. # 10*(2^10) chars as input seems more than enough
  3594. test $ac_count -gt 10 && break
  3595. done
  3596. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3597. esac
  3598. $ac_path_SED_found && break 3
  3599. done
  3600. done
  3601. done
  3602. IFS=$as_save_IFS
  3603. if test -z "$ac_cv_path_SED"; then
  3604. as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
  3605. fi
  3606. else
  3607. ac_cv_path_SED=$SED
  3608. fi
  3609. fi
  3610. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
  3611. $as_echo "$ac_cv_path_SED" >&6; }
  3612. SED="$ac_cv_path_SED"
  3613. rm -f conftest.sed
  3614. test -z "$SED" && SED=sed
  3615. Xsed="$SED -e 1s/^X//"
  3616. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  3617. $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  3618. if test "${ac_cv_path_GREP+set}" = set; then :
  3619. $as_echo_n "(cached) " >&6
  3620. else
  3621. if test -z "$GREP"; then
  3622. ac_path_GREP_found=false
  3623. # Loop through the user's path and test for each of PROGNAME-LIST
  3624. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3625. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3626. do
  3627. IFS=$as_save_IFS
  3628. test -z "$as_dir" && as_dir=.
  3629. for ac_prog in grep ggrep; do
  3630. for ac_exec_ext in '' $ac_executable_extensions; do
  3631. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  3632. { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
  3633. # Check for GNU ac_path_GREP and select it if it is found.
  3634. # Check for GNU $ac_path_GREP
  3635. case `"$ac_path_GREP" --version 2>&1` in
  3636. *GNU*)
  3637. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  3638. *)
  3639. ac_count=0
  3640. $as_echo_n 0123456789 >"conftest.in"
  3641. while :
  3642. do
  3643. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3644. mv "conftest.tmp" "conftest.in"
  3645. cp "conftest.in" "conftest.nl"
  3646. $as_echo 'GREP' >> "conftest.nl"
  3647. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3648. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3649. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3650. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  3651. # Best one so far, save it but keep looking for a better one
  3652. ac_cv_path_GREP="$ac_path_GREP"
  3653. ac_path_GREP_max=$ac_count
  3654. fi
  3655. # 10*(2^10) chars as input seems more than enough
  3656. test $ac_count -gt 10 && break
  3657. done
  3658. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3659. esac
  3660. $ac_path_GREP_found && break 3
  3661. done
  3662. done
  3663. done
  3664. IFS=$as_save_IFS
  3665. if test -z "$ac_cv_path_GREP"; then
  3666. as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3667. fi
  3668. else
  3669. ac_cv_path_GREP=$GREP
  3670. fi
  3671. fi
  3672. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  3673. $as_echo "$ac_cv_path_GREP" >&6; }
  3674. GREP="$ac_cv_path_GREP"
  3675. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  3676. $as_echo_n "checking for egrep... " >&6; }
  3677. if test "${ac_cv_path_EGREP+set}" = set; then :
  3678. $as_echo_n "(cached) " >&6
  3679. else
  3680. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  3681. then ac_cv_path_EGREP="$GREP -E"
  3682. else
  3683. if test -z "$EGREP"; then
  3684. ac_path_EGREP_found=false
  3685. # Loop through the user's path and test for each of PROGNAME-LIST
  3686. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3687. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3688. do
  3689. IFS=$as_save_IFS
  3690. test -z "$as_dir" && as_dir=.
  3691. for ac_prog in egrep; do
  3692. for ac_exec_ext in '' $ac_executable_extensions; do
  3693. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  3694. { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
  3695. # Check for GNU ac_path_EGREP and select it if it is found.
  3696. # Check for GNU $ac_path_EGREP
  3697. case `"$ac_path_EGREP" --version 2>&1` in
  3698. *GNU*)
  3699. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  3700. *)
  3701. ac_count=0
  3702. $as_echo_n 0123456789 >"conftest.in"
  3703. while :
  3704. do
  3705. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3706. mv "conftest.tmp" "conftest.in"
  3707. cp "conftest.in" "conftest.nl"
  3708. $as_echo 'EGREP' >> "conftest.nl"
  3709. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3710. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3711. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3712. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  3713. # Best one so far, save it but keep looking for a better one
  3714. ac_cv_path_EGREP="$ac_path_EGREP"
  3715. ac_path_EGREP_max=$ac_count
  3716. fi
  3717. # 10*(2^10) chars as input seems more than enough
  3718. test $ac_count -gt 10 && break
  3719. done
  3720. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3721. esac
  3722. $ac_path_EGREP_found && break 3
  3723. done
  3724. done
  3725. done
  3726. IFS=$as_save_IFS
  3727. if test -z "$ac_cv_path_EGREP"; then
  3728. as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3729. fi
  3730. else
  3731. ac_cv_path_EGREP=$EGREP
  3732. fi
  3733. fi
  3734. fi
  3735. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  3736. $as_echo "$ac_cv_path_EGREP" >&6; }
  3737. EGREP="$ac_cv_path_EGREP"
  3738. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
  3739. $as_echo_n "checking for fgrep... " >&6; }
  3740. if test "${ac_cv_path_FGREP+set}" = set; then :
  3741. $as_echo_n "(cached) " >&6
  3742. else
  3743. if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
  3744. then ac_cv_path_FGREP="$GREP -F"
  3745. else
  3746. if test -z "$FGREP"; then
  3747. ac_path_FGREP_found=false
  3748. # Loop through the user's path and test for each of PROGNAME-LIST
  3749. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3750. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3751. do
  3752. IFS=$as_save_IFS
  3753. test -z "$as_dir" && as_dir=.
  3754. for ac_prog in fgrep; do
  3755. for ac_exec_ext in '' $ac_executable_extensions; do
  3756. ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
  3757. { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
  3758. # Check for GNU ac_path_FGREP and select it if it is found.
  3759. # Check for GNU $ac_path_FGREP
  3760. case `"$ac_path_FGREP" --version 2>&1` in
  3761. *GNU*)
  3762. ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
  3763. *)
  3764. ac_count=0
  3765. $as_echo_n 0123456789 >"conftest.in"
  3766. while :
  3767. do
  3768. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3769. mv "conftest.tmp" "conftest.in"
  3770. cp "conftest.in" "conftest.nl"
  3771. $as_echo 'FGREP' >> "conftest.nl"
  3772. "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3773. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3774. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3775. if test $ac_count -gt ${ac_path_FGREP_max-0}; then
  3776. # Best one so far, save it but keep looking for a better one
  3777. ac_cv_path_FGREP="$ac_path_FGREP"
  3778. ac_path_FGREP_max=$ac_count
  3779. fi
  3780. # 10*(2^10) chars as input seems more than enough
  3781. test $ac_count -gt 10 && break
  3782. done
  3783. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3784. esac
  3785. $ac_path_FGREP_found && break 3
  3786. done
  3787. done
  3788. done
  3789. IFS=$as_save_IFS
  3790. if test -z "$ac_cv_path_FGREP"; then
  3791. as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3792. fi
  3793. else
  3794. ac_cv_path_FGREP=$FGREP
  3795. fi
  3796. fi
  3797. fi
  3798. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
  3799. $as_echo "$ac_cv_path_FGREP" >&6; }
  3800. FGREP="$ac_cv_path_FGREP"
  3801. test -z "$GREP" && GREP=grep
  3802. # Check whether --with-gnu-ld was given.
  3803. if test "${with_gnu_ld+set}" = set; then :
  3804. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  3805. else
  3806. with_gnu_ld=no
  3807. fi
  3808. ac_prog=ld
  3809. if test "$GCC" = yes; then
  3810. # Check if gcc -print-prog-name=ld gives a path.
  3811. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  3812. $as_echo_n "checking for ld used by $CC... " >&6; }
  3813. case $host in
  3814. *-*-mingw*)
  3815. # gcc leaves a trailing carriage return which upsets mingw
  3816. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  3817. *)
  3818. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  3819. esac
  3820. case $ac_prog in
  3821. # Accept absolute paths.
  3822. [\\/]* | ?:[\\/]*)
  3823. re_direlt='/[^/][^/]*/\.\./'
  3824. # Canonicalize the pathname of ld
  3825. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  3826. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  3827. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  3828. done
  3829. test -z "$LD" && LD="$ac_prog"
  3830. ;;
  3831. "")
  3832. # If it fails, then pretend we aren't using GCC.
  3833. ac_prog=ld
  3834. ;;
  3835. *)
  3836. # If it is relative, then search for the first ld in PATH.
  3837. with_gnu_ld=unknown
  3838. ;;
  3839. esac
  3840. elif test "$with_gnu_ld" = yes; then
  3841. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  3842. $as_echo_n "checking for GNU ld... " >&6; }
  3843. else
  3844. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  3845. $as_echo_n "checking for non-GNU ld... " >&6; }
  3846. fi
  3847. if test "${lt_cv_path_LD+set}" = set; then :
  3848. $as_echo_n "(cached) " >&6
  3849. else
  3850. if test -z "$LD"; then
  3851. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  3852. for ac_dir in $PATH; do
  3853. IFS="$lt_save_ifs"
  3854. test -z "$ac_dir" && ac_dir=.
  3855. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  3856. lt_cv_path_LD="$ac_dir/$ac_prog"
  3857. # Check to see if the program is GNU ld. I'd rather use --version,
  3858. # but apparently some variants of GNU ld only accept -v.
  3859. # Break only if it was the GNU/non-GNU ld that we prefer.
  3860. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  3861. *GNU* | *'with BFD'*)
  3862. test "$with_gnu_ld" != no && break
  3863. ;;
  3864. *)
  3865. test "$with_gnu_ld" != yes && break
  3866. ;;
  3867. esac
  3868. fi
  3869. done
  3870. IFS="$lt_save_ifs"
  3871. else
  3872. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  3873. fi
  3874. fi
  3875. LD="$lt_cv_path_LD"
  3876. if test -n "$LD"; then
  3877. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  3878. $as_echo "$LD" >&6; }
  3879. else
  3880. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3881. $as_echo "no" >&6; }
  3882. fi
  3883. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  3884. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  3885. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  3886. if test "${lt_cv_prog_gnu_ld+set}" = set; then :
  3887. $as_echo_n "(cached) " >&6
  3888. else
  3889. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  3890. case `$LD -v 2>&1 </dev/null` in
  3891. *GNU* | *'with BFD'*)
  3892. lt_cv_prog_gnu_ld=yes
  3893. ;;
  3894. *)
  3895. lt_cv_prog_gnu_ld=no
  3896. ;;
  3897. esac
  3898. fi
  3899. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  3900. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  3901. with_gnu_ld=$lt_cv_prog_gnu_ld
  3902. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
  3903. $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
  3904. if test "${lt_cv_path_NM+set}" = set; then :
  3905. $as_echo_n "(cached) " >&6
  3906. else
  3907. if test -n "$NM"; then
  3908. # Let the user override the test.
  3909. lt_cv_path_NM="$NM"
  3910. else
  3911. lt_nm_to_check="${ac_tool_prefix}nm"
  3912. if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  3913. lt_nm_to_check="$lt_nm_to_check nm"
  3914. fi
  3915. for lt_tmp_nm in $lt_nm_to_check; do
  3916. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  3917. for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  3918. IFS="$lt_save_ifs"
  3919. test -z "$ac_dir" && ac_dir=.
  3920. tmp_nm="$ac_dir/$lt_tmp_nm"
  3921. if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
  3922. # Check to see if the nm accepts a BSD-compat flag.
  3923. # Adding the `sed 1q' prevents false positives on HP-UX, which says:
  3924. # nm: unknown option "B" ignored
  3925. # Tru64's nm complains that /dev/null is an invalid object file
  3926. case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
  3927. */dev/null* | *'Invalid file or object type'*)
  3928. lt_cv_path_NM="$tmp_nm -B"
  3929. break
  3930. ;;
  3931. *)
  3932. case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  3933. */dev/null*)
  3934. lt_cv_path_NM="$tmp_nm -p"
  3935. break
  3936. ;;
  3937. *)
  3938. lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  3939. continue # so that we can try to find one that supports BSD flags
  3940. ;;
  3941. esac
  3942. ;;
  3943. esac
  3944. fi
  3945. done
  3946. IFS="$lt_save_ifs"
  3947. done
  3948. : ${lt_cv_path_NM=no}
  3949. fi
  3950. fi
  3951. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
  3952. $as_echo "$lt_cv_path_NM" >&6; }
  3953. if test "$lt_cv_path_NM" != "no"; then
  3954. NM="$lt_cv_path_NM"
  3955. else
  3956. # Didn't find any BSD compatible name lister, look for dumpbin.
  3957. if test -n "$ac_tool_prefix"; then
  3958. for ac_prog in "dumpbin -symbols" "link -dump -symbols"
  3959. do
  3960. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  3961. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  3962. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3963. $as_echo_n "checking for $ac_word... " >&6; }
  3964. if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
  3965. $as_echo_n "(cached) " >&6
  3966. else
  3967. if test -n "$DUMPBIN"; then
  3968. ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
  3969. else
  3970. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3971. for as_dir in $PATH
  3972. do
  3973. IFS=$as_save_IFS
  3974. test -z "$as_dir" && as_dir=.
  3975. for ac_exec_ext in '' $ac_executable_extensions; do
  3976. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3977. ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
  3978. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3979. break 2
  3980. fi
  3981. done
  3982. done
  3983. IFS=$as_save_IFS
  3984. fi
  3985. fi
  3986. DUMPBIN=$ac_cv_prog_DUMPBIN
  3987. if test -n "$DUMPBIN"; then
  3988. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
  3989. $as_echo "$DUMPBIN" >&6; }
  3990. else
  3991. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3992. $as_echo "no" >&6; }
  3993. fi
  3994. test -n "$DUMPBIN" && break
  3995. done
  3996. fi
  3997. if test -z "$DUMPBIN"; then
  3998. ac_ct_DUMPBIN=$DUMPBIN
  3999. for ac_prog in "dumpbin -symbols" "link -dump -symbols"
  4000. do
  4001. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4002. set dummy $ac_prog; ac_word=$2
  4003. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4004. $as_echo_n "checking for $ac_word... " >&6; }
  4005. if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
  4006. $as_echo_n "(cached) " >&6
  4007. else
  4008. if test -n "$ac_ct_DUMPBIN"; then
  4009. ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
  4010. else
  4011. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4012. for as_dir in $PATH
  4013. do
  4014. IFS=$as_save_IFS
  4015. test -z "$as_dir" && as_dir=.
  4016. for ac_exec_ext in '' $ac_executable_extensions; do
  4017. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4018. ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
  4019. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4020. break 2
  4021. fi
  4022. done
  4023. done
  4024. IFS=$as_save_IFS
  4025. fi
  4026. fi
  4027. ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
  4028. if test -n "$ac_ct_DUMPBIN"; then
  4029. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
  4030. $as_echo "$ac_ct_DUMPBIN" >&6; }
  4031. else
  4032. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4033. $as_echo "no" >&6; }
  4034. fi
  4035. test -n "$ac_ct_DUMPBIN" && break
  4036. done
  4037. if test "x$ac_ct_DUMPBIN" = x; then
  4038. DUMPBIN=":"
  4039. else
  4040. case $cross_compiling:$ac_tool_warned in
  4041. yes:)
  4042. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4043. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4044. ac_tool_warned=yes ;;
  4045. esac
  4046. DUMPBIN=$ac_ct_DUMPBIN
  4047. fi
  4048. fi
  4049. if test "$DUMPBIN" != ":"; then
  4050. NM="$DUMPBIN"
  4051. fi
  4052. fi
  4053. test -z "$NM" && NM=nm
  4054. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
  4055. $as_echo_n "checking the name lister ($NM) interface... " >&6; }
  4056. if test "${lt_cv_nm_interface+set}" = set; then :
  4057. $as_echo_n "(cached) " >&6
  4058. else
  4059. lt_cv_nm_interface="BSD nm"
  4060. echo "int some_variable = 0;" > conftest.$ac_ext
  4061. (eval echo "\"\$as_me:4515: $ac_compile\"" >&5)
  4062. (eval "$ac_compile" 2>conftest.err)
  4063. cat conftest.err >&5
  4064. (eval echo "\"\$as_me:4518: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
  4065. (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  4066. cat conftest.err >&5
  4067. (eval echo "\"\$as_me:4521: output\"" >&5)
  4068. cat conftest.out >&5
  4069. if $GREP 'External.*some_variable' conftest.out > /dev/null; then
  4070. lt_cv_nm_interface="MS dumpbin"
  4071. fi
  4072. rm -f conftest*
  4073. fi
  4074. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
  4075. $as_echo "$lt_cv_nm_interface" >&6; }
  4076. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
  4077. $as_echo_n "checking whether ln -s works... " >&6; }
  4078. LN_S=$as_ln_s
  4079. if test "$LN_S" = "ln -s"; then
  4080. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4081. $as_echo "yes" >&6; }
  4082. else
  4083. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
  4084. $as_echo "no, using $LN_S" >&6; }
  4085. fi
  4086. # find the maximum length of command line arguments
  4087. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
  4088. $as_echo_n "checking the maximum length of command line arguments... " >&6; }
  4089. if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
  4090. $as_echo_n "(cached) " >&6
  4091. else
  4092. i=0
  4093. teststring="ABCD"
  4094. case $build_os in
  4095. msdosdjgpp*)
  4096. # On DJGPP, this test can blow up pretty badly due to problems in libc
  4097. # (any single argument exceeding 2000 bytes causes a buffer overrun
  4098. # during glob expansion). Even if it were fixed, the result of this
  4099. # check would be larger than it should be.
  4100. lt_cv_sys_max_cmd_len=12288; # 12K is about right
  4101. ;;
  4102. gnu*)
  4103. # Under GNU Hurd, this test is not required because there is
  4104. # no limit to the length of command line arguments.
  4105. # Libtool will interpret -1 as no limit whatsoever
  4106. lt_cv_sys_max_cmd_len=-1;
  4107. ;;
  4108. cygwin* | mingw* | cegcc*)
  4109. # On Win9x/ME, this test blows up -- it succeeds, but takes
  4110. # about 5 minutes as the teststring grows exponentially.
  4111. # Worse, since 9x/ME are not pre-emptively multitasking,
  4112. # you end up with a "frozen" computer, even though with patience
  4113. # the test eventually succeeds (with a max line length of 256k).
  4114. # Instead, let's just punt: use the minimum linelength reported by
  4115. # all of the supported platforms: 8192 (on NT/2K/XP).
  4116. lt_cv_sys_max_cmd_len=8192;
  4117. ;;
  4118. amigaos*)
  4119. # On AmigaOS with pdksh, this test takes hours, literally.
  4120. # So we just punt and use a minimum line length of 8192.
  4121. lt_cv_sys_max_cmd_len=8192;
  4122. ;;
  4123. netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
  4124. # This has been around since 386BSD, at least. Likely further.
  4125. if test -x /sbin/sysctl; then
  4126. lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  4127. elif test -x /usr/sbin/sysctl; then
  4128. lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  4129. else
  4130. lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  4131. fi
  4132. # And add a safety zone
  4133. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  4134. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  4135. ;;
  4136. interix*)
  4137. # We know the value 262144 and hardcode it with a safety zone (like BSD)
  4138. lt_cv_sys_max_cmd_len=196608
  4139. ;;
  4140. osf*)
  4141. # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  4142. # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  4143. # nice to cause kernel panics so lets avoid the loop below.
  4144. # First set a reasonable default.
  4145. lt_cv_sys_max_cmd_len=16384
  4146. #
  4147. if test -x /sbin/sysconfig; then
  4148. case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  4149. *1*) lt_cv_sys_max_cmd_len=-1 ;;
  4150. esac
  4151. fi
  4152. ;;
  4153. sco3.2v5*)
  4154. lt_cv_sys_max_cmd_len=102400
  4155. ;;
  4156. sysv5* | sco5v6* | sysv4.2uw2*)
  4157. kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  4158. if test -n "$kargmax"; then
  4159. lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
  4160. else
  4161. lt_cv_sys_max_cmd_len=32768
  4162. fi
  4163. ;;
  4164. *)
  4165. lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  4166. if test -n "$lt_cv_sys_max_cmd_len"; then
  4167. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  4168. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  4169. else
  4170. # Make teststring a little bigger before we do anything with it.
  4171. # a 1K string should be a reasonable start.
  4172. for i in 1 2 3 4 5 6 7 8 ; do
  4173. teststring=$teststring$teststring
  4174. done
  4175. SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  4176. # If test is not a shell built-in, we'll probably end up computing a
  4177. # maximum length that is only half of the actual maximum length, but
  4178. # we can't tell.
  4179. while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
  4180. = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
  4181. test $i != 17 # 1/2 MB should be enough
  4182. do
  4183. i=`expr $i + 1`
  4184. teststring=$teststring$teststring
  4185. done
  4186. # Only check the string length outside the loop.
  4187. lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
  4188. teststring=
  4189. # Add a significant safety factor because C++ compilers can tack on
  4190. # massive amounts of additional arguments before passing them to the
  4191. # linker. It appears as though 1/2 is a usable value.
  4192. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  4193. fi
  4194. ;;
  4195. esac
  4196. fi
  4197. if test -n $lt_cv_sys_max_cmd_len ; then
  4198. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
  4199. $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
  4200. else
  4201. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
  4202. $as_echo "none" >&6; }
  4203. fi
  4204. max_cmd_len=$lt_cv_sys_max_cmd_len
  4205. : ${CP="cp -f"}
  4206. : ${MV="mv -f"}
  4207. : ${RM="rm -f"}
  4208. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
  4209. $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
  4210. # Try some XSI features
  4211. xsi_shell=no
  4212. ( _lt_dummy="a/b/c"
  4213. test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
  4214. = c,a/b,, \
  4215. && eval 'test $(( 1 + 1 )) -eq 2 \
  4216. && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
  4217. && xsi_shell=yes
  4218. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
  4219. $as_echo "$xsi_shell" >&6; }
  4220. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
  4221. $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
  4222. lt_shell_append=no
  4223. ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
  4224. >/dev/null 2>&1 \
  4225. && lt_shell_append=yes
  4226. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
  4227. $as_echo "$lt_shell_append" >&6; }
  4228. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  4229. lt_unset=unset
  4230. else
  4231. lt_unset=false
  4232. fi
  4233. # test EBCDIC or ASCII
  4234. case `echo X|tr X '\101'` in
  4235. A) # ASCII based system
  4236. # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  4237. lt_SP2NL='tr \040 \012'
  4238. lt_NL2SP='tr \015\012 \040\040'
  4239. ;;
  4240. *) # EBCDIC based system
  4241. lt_SP2NL='tr \100 \n'
  4242. lt_NL2SP='tr \r\n \100\100'
  4243. ;;
  4244. esac
  4245. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
  4246. $as_echo_n "checking for $LD option to reload object files... " >&6; }
  4247. if test "${lt_cv_ld_reload_flag+set}" = set; then :
  4248. $as_echo_n "(cached) " >&6
  4249. else
  4250. lt_cv_ld_reload_flag='-r'
  4251. fi
  4252. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
  4253. $as_echo "$lt_cv_ld_reload_flag" >&6; }
  4254. reload_flag=$lt_cv_ld_reload_flag
  4255. case $reload_flag in
  4256. "" | " "*) ;;
  4257. *) reload_flag=" $reload_flag" ;;
  4258. esac
  4259. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  4260. case $host_os in
  4261. darwin*)
  4262. if test "$GCC" = yes; then
  4263. reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
  4264. else
  4265. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  4266. fi
  4267. ;;
  4268. esac
  4269. if test -n "$ac_tool_prefix"; then
  4270. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  4271. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  4272. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4273. $as_echo_n "checking for $ac_word... " >&6; }
  4274. if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
  4275. $as_echo_n "(cached) " >&6
  4276. else
  4277. if test -n "$OBJDUMP"; then
  4278. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  4279. else
  4280. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4281. for as_dir in $PATH
  4282. do
  4283. IFS=$as_save_IFS
  4284. test -z "$as_dir" && as_dir=.
  4285. for ac_exec_ext in '' $ac_executable_extensions; do
  4286. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4287. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  4288. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4289. break 2
  4290. fi
  4291. done
  4292. done
  4293. IFS=$as_save_IFS
  4294. fi
  4295. fi
  4296. OBJDUMP=$ac_cv_prog_OBJDUMP
  4297. if test -n "$OBJDUMP"; then
  4298. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  4299. $as_echo "$OBJDUMP" >&6; }
  4300. else
  4301. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4302. $as_echo "no" >&6; }
  4303. fi
  4304. fi
  4305. if test -z "$ac_cv_prog_OBJDUMP"; then
  4306. ac_ct_OBJDUMP=$OBJDUMP
  4307. # Extract the first word of "objdump", so it can be a program name with args.
  4308. set dummy objdump; ac_word=$2
  4309. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4310. $as_echo_n "checking for $ac_word... " >&6; }
  4311. if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
  4312. $as_echo_n "(cached) " >&6
  4313. else
  4314. if test -n "$ac_ct_OBJDUMP"; then
  4315. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  4316. else
  4317. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4318. for as_dir in $PATH
  4319. do
  4320. IFS=$as_save_IFS
  4321. test -z "$as_dir" && as_dir=.
  4322. for ac_exec_ext in '' $ac_executable_extensions; do
  4323. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4324. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  4325. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4326. break 2
  4327. fi
  4328. done
  4329. done
  4330. IFS=$as_save_IFS
  4331. fi
  4332. fi
  4333. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  4334. if test -n "$ac_ct_OBJDUMP"; then
  4335. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  4336. $as_echo "$ac_ct_OBJDUMP" >&6; }
  4337. else
  4338. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4339. $as_echo "no" >&6; }
  4340. fi
  4341. if test "x$ac_ct_OBJDUMP" = x; then
  4342. OBJDUMP="false"
  4343. else
  4344. case $cross_compiling:$ac_tool_warned in
  4345. yes:)
  4346. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4347. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4348. ac_tool_warned=yes ;;
  4349. esac
  4350. OBJDUMP=$ac_ct_OBJDUMP
  4351. fi
  4352. else
  4353. OBJDUMP="$ac_cv_prog_OBJDUMP"
  4354. fi
  4355. test -z "$OBJDUMP" && OBJDUMP=objdump
  4356. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
  4357. $as_echo_n "checking how to recognize dependent libraries... " >&6; }
  4358. if test "${lt_cv_deplibs_check_method+set}" = set; then :
  4359. $as_echo_n "(cached) " >&6
  4360. else
  4361. lt_cv_file_magic_cmd='$MAGIC_CMD'
  4362. lt_cv_file_magic_test_file=
  4363. lt_cv_deplibs_check_method='unknown'
  4364. # Need to set the preceding variable on all platforms that support
  4365. # interlibrary dependencies.
  4366. # 'none' -- dependencies not supported.
  4367. # `unknown' -- same as none, but documents that we really don't know.
  4368. # 'pass_all' -- all dependencies passed with no checks.
  4369. # 'test_compile' -- check by making test program.
  4370. # 'file_magic [[regex]]' -- check by looking for files in library path
  4371. # which responds to the $file_magic_cmd with a given extended regex.
  4372. # If you have `file' or equivalent on your system and you're not sure
  4373. # whether `pass_all' will *always* work, you probably want this one.
  4374. case $host_os in
  4375. aix[4-9]*)
  4376. lt_cv_deplibs_check_method=pass_all
  4377. ;;
  4378. beos*)
  4379. lt_cv_deplibs_check_method=pass_all
  4380. ;;
  4381. bsdi[45]*)
  4382. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  4383. lt_cv_file_magic_cmd='/usr/bin/file -L'
  4384. lt_cv_file_magic_test_file=/shlib/libc.so
  4385. ;;
  4386. cygwin*)
  4387. # func_win32_libid is a shell function defined in ltmain.sh
  4388. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  4389. lt_cv_file_magic_cmd='func_win32_libid'
  4390. ;;
  4391. mingw* | pw32*)
  4392. # Base MSYS/MinGW do not provide the 'file' command needed by
  4393. # func_win32_libid shell function, so use a weaker test based on 'objdump',
  4394. # unless we find 'file', for example because we are cross-compiling.
  4395. if ( file / ) >/dev/null 2>&1; then
  4396. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  4397. lt_cv_file_magic_cmd='func_win32_libid'
  4398. else
  4399. lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
  4400. lt_cv_file_magic_cmd='$OBJDUMP -f'
  4401. fi
  4402. ;;
  4403. cegcc)
  4404. # use the weaker test based on 'objdump'. See mingw*.
  4405. lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
  4406. lt_cv_file_magic_cmd='$OBJDUMP -f'
  4407. ;;
  4408. darwin* | rhapsody*)
  4409. lt_cv_deplibs_check_method=pass_all
  4410. ;;
  4411. freebsd* | dragonfly*)
  4412. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  4413. case $host_cpu in
  4414. i*86 )
  4415. # Not sure whether the presence of OpenBSD here was a mistake.
  4416. # Let's accept both of them until this is cleared up.
  4417. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
  4418. lt_cv_file_magic_cmd=/usr/bin/file
  4419. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  4420. ;;
  4421. esac
  4422. else
  4423. lt_cv_deplibs_check_method=pass_all
  4424. fi
  4425. ;;
  4426. gnu*)
  4427. lt_cv_deplibs_check_method=pass_all
  4428. ;;
  4429. hpux10.20* | hpux11*)
  4430. lt_cv_file_magic_cmd=/usr/bin/file
  4431. case $host_cpu in
  4432. ia64*)
  4433. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  4434. lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  4435. ;;
  4436. hppa*64*)
  4437. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
  4438. lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  4439. ;;
  4440. *)
  4441. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
  4442. lt_cv_file_magic_test_file=/usr/lib/libc.sl
  4443. ;;
  4444. esac
  4445. ;;
  4446. interix[3-9]*)
  4447. # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  4448. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
  4449. ;;
  4450. irix5* | irix6* | nonstopux*)
  4451. case $LD in
  4452. *-32|*"-32 ") libmagic=32-bit;;
  4453. *-n32|*"-n32 ") libmagic=N32;;
  4454. *-64|*"-64 ") libmagic=64-bit;;
  4455. *) libmagic=never-match;;
  4456. esac
  4457. lt_cv_deplibs_check_method=pass_all
  4458. ;;
  4459. # This must be Linux ELF.
  4460. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  4461. lt_cv_deplibs_check_method=pass_all
  4462. ;;
  4463. netbsd* | netbsdelf*-gnu)
  4464. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  4465. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  4466. else
  4467. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  4468. fi
  4469. ;;
  4470. newos6*)
  4471. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  4472. lt_cv_file_magic_cmd=/usr/bin/file
  4473. lt_cv_file_magic_test_file=/usr/lib/libnls.so
  4474. ;;
  4475. *nto* | *qnx*)
  4476. lt_cv_deplibs_check_method=pass_all
  4477. ;;
  4478. openbsd*)
  4479. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  4480. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  4481. else
  4482. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  4483. fi
  4484. ;;
  4485. osf3* | osf4* | osf5*)
  4486. lt_cv_deplibs_check_method=pass_all
  4487. ;;
  4488. rdos*)
  4489. lt_cv_deplibs_check_method=pass_all
  4490. ;;
  4491. solaris*)
  4492. lt_cv_deplibs_check_method=pass_all
  4493. ;;
  4494. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  4495. lt_cv_deplibs_check_method=pass_all
  4496. ;;
  4497. sysv4 | sysv4.3*)
  4498. case $host_vendor in
  4499. motorola)
  4500. 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]'
  4501. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  4502. ;;
  4503. ncr)
  4504. lt_cv_deplibs_check_method=pass_all
  4505. ;;
  4506. sequent)
  4507. lt_cv_file_magic_cmd='/bin/file'
  4508. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  4509. ;;
  4510. sni)
  4511. lt_cv_file_magic_cmd='/bin/file'
  4512. lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  4513. lt_cv_file_magic_test_file=/lib/libc.so
  4514. ;;
  4515. siemens)
  4516. lt_cv_deplibs_check_method=pass_all
  4517. ;;
  4518. pc)
  4519. lt_cv_deplibs_check_method=pass_all
  4520. ;;
  4521. esac
  4522. ;;
  4523. tpf*)
  4524. lt_cv_deplibs_check_method=pass_all
  4525. ;;
  4526. esac
  4527. fi
  4528. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
  4529. $as_echo "$lt_cv_deplibs_check_method" >&6; }
  4530. file_magic_cmd=$lt_cv_file_magic_cmd
  4531. deplibs_check_method=$lt_cv_deplibs_check_method
  4532. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  4533. if test -n "$ac_tool_prefix"; then
  4534. # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
  4535. set dummy ${ac_tool_prefix}ar; ac_word=$2
  4536. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4537. $as_echo_n "checking for $ac_word... " >&6; }
  4538. if test "${ac_cv_prog_AR+set}" = set; then :
  4539. $as_echo_n "(cached) " >&6
  4540. else
  4541. if test -n "$AR"; then
  4542. ac_cv_prog_AR="$AR" # Let the user override the test.
  4543. else
  4544. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4545. for as_dir in $PATH
  4546. do
  4547. IFS=$as_save_IFS
  4548. test -z "$as_dir" && as_dir=.
  4549. for ac_exec_ext in '' $ac_executable_extensions; do
  4550. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4551. ac_cv_prog_AR="${ac_tool_prefix}ar"
  4552. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4553. break 2
  4554. fi
  4555. done
  4556. done
  4557. IFS=$as_save_IFS
  4558. fi
  4559. fi
  4560. AR=$ac_cv_prog_AR
  4561. if test -n "$AR"; then
  4562. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  4563. $as_echo "$AR" >&6; }
  4564. else
  4565. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4566. $as_echo "no" >&6; }
  4567. fi
  4568. fi
  4569. if test -z "$ac_cv_prog_AR"; then
  4570. ac_ct_AR=$AR
  4571. # Extract the first word of "ar", so it can be a program name with args.
  4572. set dummy ar; ac_word=$2
  4573. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4574. $as_echo_n "checking for $ac_word... " >&6; }
  4575. if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
  4576. $as_echo_n "(cached) " >&6
  4577. else
  4578. if test -n "$ac_ct_AR"; then
  4579. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  4580. else
  4581. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4582. for as_dir in $PATH
  4583. do
  4584. IFS=$as_save_IFS
  4585. test -z "$as_dir" && as_dir=.
  4586. for ac_exec_ext in '' $ac_executable_extensions; do
  4587. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4588. ac_cv_prog_ac_ct_AR="ar"
  4589. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4590. break 2
  4591. fi
  4592. done
  4593. done
  4594. IFS=$as_save_IFS
  4595. fi
  4596. fi
  4597. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  4598. if test -n "$ac_ct_AR"; then
  4599. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
  4600. $as_echo "$ac_ct_AR" >&6; }
  4601. else
  4602. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4603. $as_echo "no" >&6; }
  4604. fi
  4605. if test "x$ac_ct_AR" = x; then
  4606. AR="false"
  4607. else
  4608. case $cross_compiling:$ac_tool_warned in
  4609. yes:)
  4610. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4611. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4612. ac_tool_warned=yes ;;
  4613. esac
  4614. AR=$ac_ct_AR
  4615. fi
  4616. else
  4617. AR="$ac_cv_prog_AR"
  4618. fi
  4619. test -z "$AR" && AR=ar
  4620. test -z "$AR_FLAGS" && AR_FLAGS=cru
  4621. if test -n "$ac_tool_prefix"; then
  4622. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  4623. set dummy ${ac_tool_prefix}strip; ac_word=$2
  4624. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4625. $as_echo_n "checking for $ac_word... " >&6; }
  4626. if test "${ac_cv_prog_STRIP+set}" = set; then :
  4627. $as_echo_n "(cached) " >&6
  4628. else
  4629. if test -n "$STRIP"; then
  4630. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  4631. else
  4632. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4633. for as_dir in $PATH
  4634. do
  4635. IFS=$as_save_IFS
  4636. test -z "$as_dir" && as_dir=.
  4637. for ac_exec_ext in '' $ac_executable_extensions; do
  4638. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4639. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  4640. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4641. break 2
  4642. fi
  4643. done
  4644. done
  4645. IFS=$as_save_IFS
  4646. fi
  4647. fi
  4648. STRIP=$ac_cv_prog_STRIP
  4649. if test -n "$STRIP"; then
  4650. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  4651. $as_echo "$STRIP" >&6; }
  4652. else
  4653. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4654. $as_echo "no" >&6; }
  4655. fi
  4656. fi
  4657. if test -z "$ac_cv_prog_STRIP"; then
  4658. ac_ct_STRIP=$STRIP
  4659. # Extract the first word of "strip", so it can be a program name with args.
  4660. set dummy strip; ac_word=$2
  4661. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4662. $as_echo_n "checking for $ac_word... " >&6; }
  4663. if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
  4664. $as_echo_n "(cached) " >&6
  4665. else
  4666. if test -n "$ac_ct_STRIP"; then
  4667. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  4668. else
  4669. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4670. for as_dir in $PATH
  4671. do
  4672. IFS=$as_save_IFS
  4673. test -z "$as_dir" && as_dir=.
  4674. for ac_exec_ext in '' $ac_executable_extensions; do
  4675. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4676. ac_cv_prog_ac_ct_STRIP="strip"
  4677. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4678. break 2
  4679. fi
  4680. done
  4681. done
  4682. IFS=$as_save_IFS
  4683. fi
  4684. fi
  4685. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  4686. if test -n "$ac_ct_STRIP"; then
  4687. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  4688. $as_echo "$ac_ct_STRIP" >&6; }
  4689. else
  4690. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4691. $as_echo "no" >&6; }
  4692. fi
  4693. if test "x$ac_ct_STRIP" = x; then
  4694. STRIP=":"
  4695. else
  4696. case $cross_compiling:$ac_tool_warned in
  4697. yes:)
  4698. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4699. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4700. ac_tool_warned=yes ;;
  4701. esac
  4702. STRIP=$ac_ct_STRIP
  4703. fi
  4704. else
  4705. STRIP="$ac_cv_prog_STRIP"
  4706. fi
  4707. test -z "$STRIP" && STRIP=:
  4708. if test -n "$ac_tool_prefix"; then
  4709. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  4710. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  4711. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4712. $as_echo_n "checking for $ac_word... " >&6; }
  4713. if test "${ac_cv_prog_RANLIB+set}" = set; then :
  4714. $as_echo_n "(cached) " >&6
  4715. else
  4716. if test -n "$RANLIB"; then
  4717. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  4718. else
  4719. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4720. for as_dir in $PATH
  4721. do
  4722. IFS=$as_save_IFS
  4723. test -z "$as_dir" && as_dir=.
  4724. for ac_exec_ext in '' $ac_executable_extensions; do
  4725. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4726. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  4727. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4728. break 2
  4729. fi
  4730. done
  4731. done
  4732. IFS=$as_save_IFS
  4733. fi
  4734. fi
  4735. RANLIB=$ac_cv_prog_RANLIB
  4736. if test -n "$RANLIB"; then
  4737. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  4738. $as_echo "$RANLIB" >&6; }
  4739. else
  4740. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4741. $as_echo "no" >&6; }
  4742. fi
  4743. fi
  4744. if test -z "$ac_cv_prog_RANLIB"; then
  4745. ac_ct_RANLIB=$RANLIB
  4746. # Extract the first word of "ranlib", so it can be a program name with args.
  4747. set dummy ranlib; ac_word=$2
  4748. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4749. $as_echo_n "checking for $ac_word... " >&6; }
  4750. if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
  4751. $as_echo_n "(cached) " >&6
  4752. else
  4753. if test -n "$ac_ct_RANLIB"; then
  4754. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  4755. else
  4756. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4757. for as_dir in $PATH
  4758. do
  4759. IFS=$as_save_IFS
  4760. test -z "$as_dir" && as_dir=.
  4761. for ac_exec_ext in '' $ac_executable_extensions; do
  4762. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4763. ac_cv_prog_ac_ct_RANLIB="ranlib"
  4764. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4765. break 2
  4766. fi
  4767. done
  4768. done
  4769. IFS=$as_save_IFS
  4770. fi
  4771. fi
  4772. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  4773. if test -n "$ac_ct_RANLIB"; then
  4774. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  4775. $as_echo "$ac_ct_RANLIB" >&6; }
  4776. else
  4777. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4778. $as_echo "no" >&6; }
  4779. fi
  4780. if test "x$ac_ct_RANLIB" = x; then
  4781. RANLIB=":"
  4782. else
  4783. case $cross_compiling:$ac_tool_warned in
  4784. yes:)
  4785. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4786. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4787. ac_tool_warned=yes ;;
  4788. esac
  4789. RANLIB=$ac_ct_RANLIB
  4790. fi
  4791. else
  4792. RANLIB="$ac_cv_prog_RANLIB"
  4793. fi
  4794. test -z "$RANLIB" && RANLIB=:
  4795. # Determine commands to create old-style static archives.
  4796. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  4797. old_postinstall_cmds='chmod 644 $oldlib'
  4798. old_postuninstall_cmds=
  4799. if test -n "$RANLIB"; then
  4800. case $host_os in
  4801. openbsd*)
  4802. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
  4803. ;;
  4804. *)
  4805. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
  4806. ;;
  4807. esac
  4808. old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
  4809. fi
  4810. # If no C compiler was specified, use CC.
  4811. LTCC=${LTCC-"$CC"}
  4812. # If no C compiler flags were specified, use CFLAGS.
  4813. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  4814. # Allow CC to be a program name with arguments.
  4815. compiler=$CC
  4816. # Check for command to grab the raw symbol name followed by C symbol from nm.
  4817. { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
  4818. $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
  4819. if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
  4820. $as_echo_n "(cached) " >&6
  4821. else
  4822. # These are sane defaults that work on at least a few old systems.
  4823. # [They come from Ultrix. What could be older than Ultrix?!! ;)]
  4824. # Character class describing NM global symbol codes.
  4825. symcode='[BCDEGRST]'
  4826. # Regexp to match symbols that can be accessed directly from C.
  4827. sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  4828. # Define system-specific variables.
  4829. case $host_os in
  4830. aix*)
  4831. symcode='[BCDT]'
  4832. ;;
  4833. cygwin* | mingw* | pw32* | cegcc*)
  4834. symcode='[ABCDGISTW]'
  4835. ;;
  4836. hpux*)
  4837. if test "$host_cpu" = ia64; then
  4838. symcode='[ABCDEGRST]'
  4839. fi
  4840. ;;
  4841. irix* | nonstopux*)
  4842. symcode='[BCDEGRST]'
  4843. ;;
  4844. osf*)
  4845. symcode='[BCDEGQRST]'
  4846. ;;
  4847. solaris*)
  4848. symcode='[BDRT]'
  4849. ;;
  4850. sco3.2v5*)
  4851. symcode='[DT]'
  4852. ;;
  4853. sysv4.2uw2*)
  4854. symcode='[DT]'
  4855. ;;
  4856. sysv5* | sco5v6* | unixware* | OpenUNIX*)
  4857. symcode='[ABDT]'
  4858. ;;
  4859. sysv4)
  4860. symcode='[DFNSTU]'
  4861. ;;
  4862. esac
  4863. # If we're using GNU nm, then use its standard symbol codes.
  4864. case `$NM -V 2>&1` in
  4865. *GNU* | *'with BFD'*)
  4866. symcode='[ABCDGIRSTW]' ;;
  4867. esac
  4868. # Transform an extracted symbol line into a proper C declaration.
  4869. # Some systems (esp. on ia64) link data and code symbols differently,
  4870. # so use this general approach.
  4871. lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  4872. # Transform an extracted symbol line into symbol name and symbol address
  4873. lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
  4874. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
  4875. # Handle CRLF in mingw tool chain
  4876. opt_cr=
  4877. case $build_os in
  4878. mingw*)
  4879. opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  4880. ;;
  4881. esac
  4882. # Try without a prefix underscore, then with it.
  4883. for ac_symprfx in "" "_"; do
  4884. # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  4885. symxfrm="\\1 $ac_symprfx\\2 \\2"
  4886. # Write the raw and C identifiers.
  4887. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  4888. # Fake it for dumpbin and say T for any non-static function
  4889. # and D for any global variable.
  4890. # Also find C++ and __fastcall symbols from MSVC++,
  4891. # which start with @ or ?.
  4892. lt_cv_sys_global_symbol_pipe="$AWK '"\
  4893. " {last_section=section; section=\$ 3};"\
  4894. " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
  4895. " \$ 0!~/External *\|/{next};"\
  4896. " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
  4897. " {if(hide[section]) next};"\
  4898. " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
  4899. " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
  4900. " s[1]~/^[@?]/{print s[1], s[1]; next};"\
  4901. " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
  4902. " ' prfx=^$ac_symprfx"
  4903. else
  4904. lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  4905. fi
  4906. # Check to see that the pipe works correctly.
  4907. pipe_works=no
  4908. rm -f conftest*
  4909. cat > conftest.$ac_ext <<_LT_EOF
  4910. #ifdef __cplusplus
  4911. extern "C" {
  4912. #endif
  4913. char nm_test_var;
  4914. void nm_test_func(void);
  4915. void nm_test_func(void){}
  4916. #ifdef __cplusplus
  4917. }
  4918. #endif
  4919. int main(){nm_test_var='a';nm_test_func();return(0);}
  4920. _LT_EOF
  4921. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  4922. (eval $ac_compile) 2>&5
  4923. ac_status=$?
  4924. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4925. test $ac_status = 0; }; then
  4926. # Now try to grab the symbols.
  4927. nlist=conftest.nm
  4928. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
  4929. (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
  4930. ac_status=$?
  4931. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4932. test $ac_status = 0; } && test -s "$nlist"; then
  4933. # Try sorting and uniquifying the output.
  4934. if sort "$nlist" | uniq > "$nlist"T; then
  4935. mv -f "$nlist"T "$nlist"
  4936. else
  4937. rm -f "$nlist"T
  4938. fi
  4939. # Make sure that we snagged all the symbols we need.
  4940. if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
  4941. if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
  4942. cat <<_LT_EOF > conftest.$ac_ext
  4943. #ifdef __cplusplus
  4944. extern "C" {
  4945. #endif
  4946. _LT_EOF
  4947. # Now generate the symbol file.
  4948. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
  4949. cat <<_LT_EOF >> conftest.$ac_ext
  4950. /* The mapping between symbol names and symbols. */
  4951. const struct {
  4952. const char *name;
  4953. void *address;
  4954. }
  4955. lt__PROGRAM__LTX_preloaded_symbols[] =
  4956. {
  4957. { "@PROGRAM@", (void *) 0 },
  4958. _LT_EOF
  4959. $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
  4960. cat <<\_LT_EOF >> conftest.$ac_ext
  4961. {0, (void *) 0}
  4962. };
  4963. /* This works around a problem in FreeBSD linker */
  4964. #ifdef FREEBSD_WORKAROUND
  4965. static const void *lt_preloaded_setup() {
  4966. return lt__PROGRAM__LTX_preloaded_symbols;
  4967. }
  4968. #endif
  4969. #ifdef __cplusplus
  4970. }
  4971. #endif
  4972. _LT_EOF
  4973. # Now try linking the two files.
  4974. mv conftest.$ac_objext conftstm.$ac_objext
  4975. lt_save_LIBS="$LIBS"
  4976. lt_save_CFLAGS="$CFLAGS"
  4977. LIBS="conftstm.$ac_objext"
  4978. CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
  4979. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  4980. (eval $ac_link) 2>&5
  4981. ac_status=$?
  4982. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4983. test $ac_status = 0; } && test -s conftest${ac_exeext}; then
  4984. pipe_works=yes
  4985. fi
  4986. LIBS="$lt_save_LIBS"
  4987. CFLAGS="$lt_save_CFLAGS"
  4988. else
  4989. echo "cannot find nm_test_func in $nlist" >&5
  4990. fi
  4991. else
  4992. echo "cannot find nm_test_var in $nlist" >&5
  4993. fi
  4994. else
  4995. echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
  4996. fi
  4997. else
  4998. echo "$progname: failed program was:" >&5
  4999. cat conftest.$ac_ext >&5
  5000. fi
  5001. rm -rf conftest* conftst*
  5002. # Do not use the global_symbol_pipe unless it works.
  5003. if test "$pipe_works" = yes; then
  5004. break
  5005. else
  5006. lt_cv_sys_global_symbol_pipe=
  5007. fi
  5008. done
  5009. fi
  5010. if test -z "$lt_cv_sys_global_symbol_pipe"; then
  5011. lt_cv_sys_global_symbol_to_cdecl=
  5012. fi
  5013. if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  5014. { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
  5015. $as_echo "failed" >&6; }
  5016. else
  5017. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
  5018. $as_echo "ok" >&6; }
  5019. fi
  5020. # Check whether --enable-libtool-lock was given.
  5021. if test "${enable_libtool_lock+set}" = set; then :
  5022. enableval=$enable_libtool_lock;
  5023. fi
  5024. test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  5025. # Some flags need to be propagated to the compiler or linker for good
  5026. # libtool support.
  5027. case $host in
  5028. ia64-*-hpux*)
  5029. # Find out which ABI we are using.
  5030. echo 'int i;' > conftest.$ac_ext
  5031. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5032. (eval $ac_compile) 2>&5
  5033. ac_status=$?
  5034. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5035. test $ac_status = 0; }; then
  5036. case `/usr/bin/file conftest.$ac_objext` in
  5037. *ELF-32*)
  5038. HPUX_IA64_MODE="32"
  5039. ;;
  5040. *ELF-64*)
  5041. HPUX_IA64_MODE="64"
  5042. ;;
  5043. esac
  5044. fi
  5045. rm -rf conftest*
  5046. ;;
  5047. *-*-irix6*)
  5048. # Find out which ABI we are using.
  5049. echo '#line 5727 "configure"' > conftest.$ac_ext
  5050. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5051. (eval $ac_compile) 2>&5
  5052. ac_status=$?
  5053. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5054. test $ac_status = 0; }; then
  5055. if test "$lt_cv_prog_gnu_ld" = yes; then
  5056. case `/usr/bin/file conftest.$ac_objext` in
  5057. *32-bit*)
  5058. LD="${LD-ld} -melf32bsmip"
  5059. ;;
  5060. *N32*)
  5061. LD="${LD-ld} -melf32bmipn32"
  5062. ;;
  5063. *64-bit*)
  5064. LD="${LD-ld} -melf64bmip"
  5065. ;;
  5066. esac
  5067. else
  5068. case `/usr/bin/file conftest.$ac_objext` in
  5069. *32-bit*)
  5070. LD="${LD-ld} -32"
  5071. ;;
  5072. *N32*)
  5073. LD="${LD-ld} -n32"
  5074. ;;
  5075. *64-bit*)
  5076. LD="${LD-ld} -64"
  5077. ;;
  5078. esac
  5079. fi
  5080. fi
  5081. rm -rf conftest*
  5082. ;;
  5083. x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
  5084. s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
  5085. # Find out which ABI we are using.
  5086. echo 'int i;' > conftest.$ac_ext
  5087. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5088. (eval $ac_compile) 2>&5
  5089. ac_status=$?
  5090. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5091. test $ac_status = 0; }; then
  5092. case `/usr/bin/file conftest.o` in
  5093. *32-bit*)
  5094. case $host in
  5095. x86_64-*kfreebsd*-gnu)
  5096. LD="${LD-ld} -m elf_i386_fbsd"
  5097. ;;
  5098. x86_64-*linux*)
  5099. LD="${LD-ld} -m elf_i386"
  5100. ;;
  5101. ppc64-*linux*|powerpc64-*linux*)
  5102. LD="${LD-ld} -m elf32ppclinux"
  5103. ;;
  5104. s390x-*linux*)
  5105. LD="${LD-ld} -m elf_s390"
  5106. ;;
  5107. sparc64-*linux*)
  5108. LD="${LD-ld} -m elf32_sparc"
  5109. ;;
  5110. esac
  5111. ;;
  5112. *64-bit*)
  5113. case $host in
  5114. x86_64-*kfreebsd*-gnu)
  5115. LD="${LD-ld} -m elf_x86_64_fbsd"
  5116. ;;
  5117. x86_64-*linux*)
  5118. LD="${LD-ld} -m elf_x86_64"
  5119. ;;
  5120. ppc*-*linux*|powerpc*-*linux*)
  5121. LD="${LD-ld} -m elf64ppc"
  5122. ;;
  5123. s390*-*linux*|s390*-*tpf*)
  5124. LD="${LD-ld} -m elf64_s390"
  5125. ;;
  5126. sparc*-*linux*)
  5127. LD="${LD-ld} -m elf64_sparc"
  5128. ;;
  5129. esac
  5130. ;;
  5131. esac
  5132. fi
  5133. rm -rf conftest*
  5134. ;;
  5135. *-*-sco3.2v5*)
  5136. # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  5137. SAVE_CFLAGS="$CFLAGS"
  5138. CFLAGS="$CFLAGS -belf"
  5139. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
  5140. $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
  5141. if test "${lt_cv_cc_needs_belf+set}" = set; then :
  5142. $as_echo_n "(cached) " >&6
  5143. else
  5144. ac_ext=c
  5145. ac_cpp='$CPP $CPPFLAGS'
  5146. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5147. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5148. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5149. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5150. /* end confdefs.h. */
  5151. int
  5152. main ()
  5153. {
  5154. ;
  5155. return 0;
  5156. }
  5157. _ACEOF
  5158. if ac_fn_c_try_link "$LINENO"; then :
  5159. lt_cv_cc_needs_belf=yes
  5160. else
  5161. lt_cv_cc_needs_belf=no
  5162. fi
  5163. rm -f core conftest.err conftest.$ac_objext \
  5164. conftest$ac_exeext conftest.$ac_ext
  5165. ac_ext=c
  5166. ac_cpp='$CPP $CPPFLAGS'
  5167. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5168. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5169. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5170. fi
  5171. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
  5172. $as_echo "$lt_cv_cc_needs_belf" >&6; }
  5173. if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  5174. # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  5175. CFLAGS="$SAVE_CFLAGS"
  5176. fi
  5177. ;;
  5178. sparc*-*solaris*)
  5179. # Find out which ABI we are using.
  5180. echo 'int i;' > conftest.$ac_ext
  5181. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5182. (eval $ac_compile) 2>&5
  5183. ac_status=$?
  5184. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5185. test $ac_status = 0; }; then
  5186. case `/usr/bin/file conftest.o` in
  5187. *64-bit*)
  5188. case $lt_cv_prog_gnu_ld in
  5189. yes*) LD="${LD-ld} -m elf64_sparc" ;;
  5190. *)
  5191. if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  5192. LD="${LD-ld} -64"
  5193. fi
  5194. ;;
  5195. esac
  5196. ;;
  5197. esac
  5198. fi
  5199. rm -rf conftest*
  5200. ;;
  5201. esac
  5202. need_locks="$enable_libtool_lock"
  5203. case $host_os in
  5204. rhapsody* | darwin*)
  5205. if test -n "$ac_tool_prefix"; then
  5206. # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
  5207. set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
  5208. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5209. $as_echo_n "checking for $ac_word... " >&6; }
  5210. if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
  5211. $as_echo_n "(cached) " >&6
  5212. else
  5213. if test -n "$DSYMUTIL"; then
  5214. ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
  5215. else
  5216. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5217. for as_dir in $PATH
  5218. do
  5219. IFS=$as_save_IFS
  5220. test -z "$as_dir" && as_dir=.
  5221. for ac_exec_ext in '' $ac_executable_extensions; do
  5222. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5223. ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
  5224. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5225. break 2
  5226. fi
  5227. done
  5228. done
  5229. IFS=$as_save_IFS
  5230. fi
  5231. fi
  5232. DSYMUTIL=$ac_cv_prog_DSYMUTIL
  5233. if test -n "$DSYMUTIL"; then
  5234. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
  5235. $as_echo "$DSYMUTIL" >&6; }
  5236. else
  5237. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5238. $as_echo "no" >&6; }
  5239. fi
  5240. fi
  5241. if test -z "$ac_cv_prog_DSYMUTIL"; then
  5242. ac_ct_DSYMUTIL=$DSYMUTIL
  5243. # Extract the first word of "dsymutil", so it can be a program name with args.
  5244. set dummy dsymutil; ac_word=$2
  5245. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5246. $as_echo_n "checking for $ac_word... " >&6; }
  5247. if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
  5248. $as_echo_n "(cached) " >&6
  5249. else
  5250. if test -n "$ac_ct_DSYMUTIL"; then
  5251. ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
  5252. else
  5253. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5254. for as_dir in $PATH
  5255. do
  5256. IFS=$as_save_IFS
  5257. test -z "$as_dir" && as_dir=.
  5258. for ac_exec_ext in '' $ac_executable_extensions; do
  5259. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5260. ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
  5261. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5262. break 2
  5263. fi
  5264. done
  5265. done
  5266. IFS=$as_save_IFS
  5267. fi
  5268. fi
  5269. ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
  5270. if test -n "$ac_ct_DSYMUTIL"; then
  5271. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
  5272. $as_echo "$ac_ct_DSYMUTIL" >&6; }
  5273. else
  5274. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5275. $as_echo "no" >&6; }
  5276. fi
  5277. if test "x$ac_ct_DSYMUTIL" = x; then
  5278. DSYMUTIL=":"
  5279. else
  5280. case $cross_compiling:$ac_tool_warned in
  5281. yes:)
  5282. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5283. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5284. ac_tool_warned=yes ;;
  5285. esac
  5286. DSYMUTIL=$ac_ct_DSYMUTIL
  5287. fi
  5288. else
  5289. DSYMUTIL="$ac_cv_prog_DSYMUTIL"
  5290. fi
  5291. if test -n "$ac_tool_prefix"; then
  5292. # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
  5293. set dummy ${ac_tool_prefix}nmedit; ac_word=$2
  5294. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5295. $as_echo_n "checking for $ac_word... " >&6; }
  5296. if test "${ac_cv_prog_NMEDIT+set}" = set; then :
  5297. $as_echo_n "(cached) " >&6
  5298. else
  5299. if test -n "$NMEDIT"; then
  5300. ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
  5301. else
  5302. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5303. for as_dir in $PATH
  5304. do
  5305. IFS=$as_save_IFS
  5306. test -z "$as_dir" && as_dir=.
  5307. for ac_exec_ext in '' $ac_executable_extensions; do
  5308. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5309. ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
  5310. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5311. break 2
  5312. fi
  5313. done
  5314. done
  5315. IFS=$as_save_IFS
  5316. fi
  5317. fi
  5318. NMEDIT=$ac_cv_prog_NMEDIT
  5319. if test -n "$NMEDIT"; then
  5320. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
  5321. $as_echo "$NMEDIT" >&6; }
  5322. else
  5323. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5324. $as_echo "no" >&6; }
  5325. fi
  5326. fi
  5327. if test -z "$ac_cv_prog_NMEDIT"; then
  5328. ac_ct_NMEDIT=$NMEDIT
  5329. # Extract the first word of "nmedit", so it can be a program name with args.
  5330. set dummy nmedit; ac_word=$2
  5331. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5332. $as_echo_n "checking for $ac_word... " >&6; }
  5333. if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
  5334. $as_echo_n "(cached) " >&6
  5335. else
  5336. if test -n "$ac_ct_NMEDIT"; then
  5337. ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
  5338. else
  5339. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5340. for as_dir in $PATH
  5341. do
  5342. IFS=$as_save_IFS
  5343. test -z "$as_dir" && as_dir=.
  5344. for ac_exec_ext in '' $ac_executable_extensions; do
  5345. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5346. ac_cv_prog_ac_ct_NMEDIT="nmedit"
  5347. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5348. break 2
  5349. fi
  5350. done
  5351. done
  5352. IFS=$as_save_IFS
  5353. fi
  5354. fi
  5355. ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
  5356. if test -n "$ac_ct_NMEDIT"; then
  5357. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
  5358. $as_echo "$ac_ct_NMEDIT" >&6; }
  5359. else
  5360. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5361. $as_echo "no" >&6; }
  5362. fi
  5363. if test "x$ac_ct_NMEDIT" = x; then
  5364. NMEDIT=":"
  5365. else
  5366. case $cross_compiling:$ac_tool_warned in
  5367. yes:)
  5368. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5369. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5370. ac_tool_warned=yes ;;
  5371. esac
  5372. NMEDIT=$ac_ct_NMEDIT
  5373. fi
  5374. else
  5375. NMEDIT="$ac_cv_prog_NMEDIT"
  5376. fi
  5377. if test -n "$ac_tool_prefix"; then
  5378. # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
  5379. set dummy ${ac_tool_prefix}lipo; ac_word=$2
  5380. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5381. $as_echo_n "checking for $ac_word... " >&6; }
  5382. if test "${ac_cv_prog_LIPO+set}" = set; then :
  5383. $as_echo_n "(cached) " >&6
  5384. else
  5385. if test -n "$LIPO"; then
  5386. ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
  5387. else
  5388. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5389. for as_dir in $PATH
  5390. do
  5391. IFS=$as_save_IFS
  5392. test -z "$as_dir" && as_dir=.
  5393. for ac_exec_ext in '' $ac_executable_extensions; do
  5394. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5395. ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
  5396. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5397. break 2
  5398. fi
  5399. done
  5400. done
  5401. IFS=$as_save_IFS
  5402. fi
  5403. fi
  5404. LIPO=$ac_cv_prog_LIPO
  5405. if test -n "$LIPO"; then
  5406. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
  5407. $as_echo "$LIPO" >&6; }
  5408. else
  5409. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5410. $as_echo "no" >&6; }
  5411. fi
  5412. fi
  5413. if test -z "$ac_cv_prog_LIPO"; then
  5414. ac_ct_LIPO=$LIPO
  5415. # Extract the first word of "lipo", so it can be a program name with args.
  5416. set dummy lipo; ac_word=$2
  5417. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5418. $as_echo_n "checking for $ac_word... " >&6; }
  5419. if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
  5420. $as_echo_n "(cached) " >&6
  5421. else
  5422. if test -n "$ac_ct_LIPO"; then
  5423. ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
  5424. else
  5425. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5426. for as_dir in $PATH
  5427. do
  5428. IFS=$as_save_IFS
  5429. test -z "$as_dir" && as_dir=.
  5430. for ac_exec_ext in '' $ac_executable_extensions; do
  5431. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5432. ac_cv_prog_ac_ct_LIPO="lipo"
  5433. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5434. break 2
  5435. fi
  5436. done
  5437. done
  5438. IFS=$as_save_IFS
  5439. fi
  5440. fi
  5441. ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
  5442. if test -n "$ac_ct_LIPO"; then
  5443. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
  5444. $as_echo "$ac_ct_LIPO" >&6; }
  5445. else
  5446. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5447. $as_echo "no" >&6; }
  5448. fi
  5449. if test "x$ac_ct_LIPO" = x; then
  5450. LIPO=":"
  5451. else
  5452. case $cross_compiling:$ac_tool_warned in
  5453. yes:)
  5454. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5455. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5456. ac_tool_warned=yes ;;
  5457. esac
  5458. LIPO=$ac_ct_LIPO
  5459. fi
  5460. else
  5461. LIPO="$ac_cv_prog_LIPO"
  5462. fi
  5463. if test -n "$ac_tool_prefix"; then
  5464. # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
  5465. set dummy ${ac_tool_prefix}otool; ac_word=$2
  5466. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5467. $as_echo_n "checking for $ac_word... " >&6; }
  5468. if test "${ac_cv_prog_OTOOL+set}" = set; then :
  5469. $as_echo_n "(cached) " >&6
  5470. else
  5471. if test -n "$OTOOL"; then
  5472. ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
  5473. else
  5474. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5475. for as_dir in $PATH
  5476. do
  5477. IFS=$as_save_IFS
  5478. test -z "$as_dir" && as_dir=.
  5479. for ac_exec_ext in '' $ac_executable_extensions; do
  5480. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5481. ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
  5482. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5483. break 2
  5484. fi
  5485. done
  5486. done
  5487. IFS=$as_save_IFS
  5488. fi
  5489. fi
  5490. OTOOL=$ac_cv_prog_OTOOL
  5491. if test -n "$OTOOL"; then
  5492. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
  5493. $as_echo "$OTOOL" >&6; }
  5494. else
  5495. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5496. $as_echo "no" >&6; }
  5497. fi
  5498. fi
  5499. if test -z "$ac_cv_prog_OTOOL"; then
  5500. ac_ct_OTOOL=$OTOOL
  5501. # Extract the first word of "otool", so it can be a program name with args.
  5502. set dummy otool; ac_word=$2
  5503. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5504. $as_echo_n "checking for $ac_word... " >&6; }
  5505. if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
  5506. $as_echo_n "(cached) " >&6
  5507. else
  5508. if test -n "$ac_ct_OTOOL"; then
  5509. ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
  5510. else
  5511. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5512. for as_dir in $PATH
  5513. do
  5514. IFS=$as_save_IFS
  5515. test -z "$as_dir" && as_dir=.
  5516. for ac_exec_ext in '' $ac_executable_extensions; do
  5517. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5518. ac_cv_prog_ac_ct_OTOOL="otool"
  5519. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5520. break 2
  5521. fi
  5522. done
  5523. done
  5524. IFS=$as_save_IFS
  5525. fi
  5526. fi
  5527. ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
  5528. if test -n "$ac_ct_OTOOL"; then
  5529. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
  5530. $as_echo "$ac_ct_OTOOL" >&6; }
  5531. else
  5532. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5533. $as_echo "no" >&6; }
  5534. fi
  5535. if test "x$ac_ct_OTOOL" = x; then
  5536. OTOOL=":"
  5537. else
  5538. case $cross_compiling:$ac_tool_warned in
  5539. yes:)
  5540. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5541. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5542. ac_tool_warned=yes ;;
  5543. esac
  5544. OTOOL=$ac_ct_OTOOL
  5545. fi
  5546. else
  5547. OTOOL="$ac_cv_prog_OTOOL"
  5548. fi
  5549. if test -n "$ac_tool_prefix"; then
  5550. # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
  5551. set dummy ${ac_tool_prefix}otool64; ac_word=$2
  5552. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5553. $as_echo_n "checking for $ac_word... " >&6; }
  5554. if test "${ac_cv_prog_OTOOL64+set}" = set; then :
  5555. $as_echo_n "(cached) " >&6
  5556. else
  5557. if test -n "$OTOOL64"; then
  5558. ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
  5559. else
  5560. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5561. for as_dir in $PATH
  5562. do
  5563. IFS=$as_save_IFS
  5564. test -z "$as_dir" && as_dir=.
  5565. for ac_exec_ext in '' $ac_executable_extensions; do
  5566. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5567. ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
  5568. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5569. break 2
  5570. fi
  5571. done
  5572. done
  5573. IFS=$as_save_IFS
  5574. fi
  5575. fi
  5576. OTOOL64=$ac_cv_prog_OTOOL64
  5577. if test -n "$OTOOL64"; then
  5578. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
  5579. $as_echo "$OTOOL64" >&6; }
  5580. else
  5581. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5582. $as_echo "no" >&6; }
  5583. fi
  5584. fi
  5585. if test -z "$ac_cv_prog_OTOOL64"; then
  5586. ac_ct_OTOOL64=$OTOOL64
  5587. # Extract the first word of "otool64", so it can be a program name with args.
  5588. set dummy otool64; ac_word=$2
  5589. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5590. $as_echo_n "checking for $ac_word... " >&6; }
  5591. if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
  5592. $as_echo_n "(cached) " >&6
  5593. else
  5594. if test -n "$ac_ct_OTOOL64"; then
  5595. ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
  5596. else
  5597. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5598. for as_dir in $PATH
  5599. do
  5600. IFS=$as_save_IFS
  5601. test -z "$as_dir" && as_dir=.
  5602. for ac_exec_ext in '' $ac_executable_extensions; do
  5603. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5604. ac_cv_prog_ac_ct_OTOOL64="otool64"
  5605. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5606. break 2
  5607. fi
  5608. done
  5609. done
  5610. IFS=$as_save_IFS
  5611. fi
  5612. fi
  5613. ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
  5614. if test -n "$ac_ct_OTOOL64"; then
  5615. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
  5616. $as_echo "$ac_ct_OTOOL64" >&6; }
  5617. else
  5618. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5619. $as_echo "no" >&6; }
  5620. fi
  5621. if test "x$ac_ct_OTOOL64" = x; then
  5622. OTOOL64=":"
  5623. else
  5624. case $cross_compiling:$ac_tool_warned in
  5625. yes:)
  5626. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5627. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5628. ac_tool_warned=yes ;;
  5629. esac
  5630. OTOOL64=$ac_ct_OTOOL64
  5631. fi
  5632. else
  5633. OTOOL64="$ac_cv_prog_OTOOL64"
  5634. fi
  5635. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
  5636. $as_echo_n "checking for -single_module linker flag... " >&6; }
  5637. if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
  5638. $as_echo_n "(cached) " >&6
  5639. else
  5640. lt_cv_apple_cc_single_mod=no
  5641. if test -z "${LT_MULTI_MODULE}"; then
  5642. # By default we will add the -single_module flag. You can override
  5643. # by either setting the environment variable LT_MULTI_MODULE
  5644. # non-empty at configure time, or by adding -multi_module to the
  5645. # link flags.
  5646. rm -rf libconftest.dylib*
  5647. echo "int foo(void){return 1;}" > conftest.c
  5648. echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  5649. -dynamiclib -Wl,-single_module conftest.c" >&5
  5650. $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  5651. -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
  5652. _lt_result=$?
  5653. if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
  5654. lt_cv_apple_cc_single_mod=yes
  5655. else
  5656. cat conftest.err >&5
  5657. fi
  5658. rm -rf libconftest.dylib*
  5659. rm -f conftest.*
  5660. fi
  5661. fi
  5662. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
  5663. $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
  5664. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
  5665. $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
  5666. if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
  5667. $as_echo_n "(cached) " >&6
  5668. else
  5669. lt_cv_ld_exported_symbols_list=no
  5670. save_LDFLAGS=$LDFLAGS
  5671. echo "_main" > conftest.sym
  5672. LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  5673. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5674. /* end confdefs.h. */
  5675. int
  5676. main ()
  5677. {
  5678. ;
  5679. return 0;
  5680. }
  5681. _ACEOF
  5682. if ac_fn_c_try_link "$LINENO"; then :
  5683. lt_cv_ld_exported_symbols_list=yes
  5684. else
  5685. lt_cv_ld_exported_symbols_list=no
  5686. fi
  5687. rm -f core conftest.err conftest.$ac_objext \
  5688. conftest$ac_exeext conftest.$ac_ext
  5689. LDFLAGS="$save_LDFLAGS"
  5690. fi
  5691. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
  5692. $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
  5693. case $host_os in
  5694. rhapsody* | darwin1.[012])
  5695. _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
  5696. darwin1.*)
  5697. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  5698. darwin*) # darwin 5.x on
  5699. # if running on 10.5 or later, the deployment target defaults
  5700. # to the OS version, if on x86, and 10.4, the deployment
  5701. # target defaults to 10.4. Don't you love it?
  5702. case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
  5703. 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
  5704. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  5705. 10.[012]*)
  5706. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  5707. 10.*)
  5708. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  5709. esac
  5710. ;;
  5711. esac
  5712. if test "$lt_cv_apple_cc_single_mod" = "yes"; then
  5713. _lt_dar_single_mod='$single_module'
  5714. fi
  5715. if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
  5716. _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
  5717. else
  5718. _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
  5719. fi
  5720. if test "$DSYMUTIL" != ":"; then
  5721. _lt_dsymutil='~$DSYMUTIL $lib || :'
  5722. else
  5723. _lt_dsymutil=
  5724. fi
  5725. ;;
  5726. esac
  5727. ac_ext=c
  5728. ac_cpp='$CPP $CPPFLAGS'
  5729. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5730. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5731. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5732. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  5733. $as_echo_n "checking how to run the C preprocessor... " >&6; }
  5734. # On Suns, sometimes $CPP names a directory.
  5735. if test -n "$CPP" && test -d "$CPP"; then
  5736. CPP=
  5737. fi
  5738. if test -z "$CPP"; then
  5739. if test "${ac_cv_prog_CPP+set}" = set; then :
  5740. $as_echo_n "(cached) " >&6
  5741. else
  5742. # Double quotes because CPP needs to be expanded
  5743. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  5744. do
  5745. ac_preproc_ok=false
  5746. for ac_c_preproc_warn_flag in '' yes
  5747. do
  5748. # Use a header file that comes with gcc, so configuring glibc
  5749. # with a fresh cross-compiler works.
  5750. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  5751. # <limits.h> exists even on freestanding compilers.
  5752. # On the NeXT, cc -E runs the code through the compiler's parser,
  5753. # not just through cpp. "Syntax error" is here to catch this case.
  5754. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5755. /* end confdefs.h. */
  5756. #ifdef __STDC__
  5757. # include <limits.h>
  5758. #else
  5759. # include <assert.h>
  5760. #endif
  5761. Syntax error
  5762. _ACEOF
  5763. if ac_fn_c_try_cpp "$LINENO"; then :
  5764. else
  5765. # Broken: fails on valid input.
  5766. continue
  5767. fi
  5768. rm -f conftest.err conftest.i conftest.$ac_ext
  5769. # OK, works on sane cases. Now check whether nonexistent headers
  5770. # can be detected and how.
  5771. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5772. /* end confdefs.h. */
  5773. #include <ac_nonexistent.h>
  5774. _ACEOF
  5775. if ac_fn_c_try_cpp "$LINENO"; then :
  5776. # Broken: success on invalid input.
  5777. continue
  5778. else
  5779. # Passes both tests.
  5780. ac_preproc_ok=:
  5781. break
  5782. fi
  5783. rm -f conftest.err conftest.i conftest.$ac_ext
  5784. done
  5785. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  5786. rm -f conftest.i conftest.err conftest.$ac_ext
  5787. if $ac_preproc_ok; then :
  5788. break
  5789. fi
  5790. done
  5791. ac_cv_prog_CPP=$CPP
  5792. fi
  5793. CPP=$ac_cv_prog_CPP
  5794. else
  5795. ac_cv_prog_CPP=$CPP
  5796. fi
  5797. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  5798. $as_echo "$CPP" >&6; }
  5799. ac_preproc_ok=false
  5800. for ac_c_preproc_warn_flag in '' yes
  5801. do
  5802. # Use a header file that comes with gcc, so configuring glibc
  5803. # with a fresh cross-compiler works.
  5804. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  5805. # <limits.h> exists even on freestanding compilers.
  5806. # On the NeXT, cc -E runs the code through the compiler's parser,
  5807. # not just through cpp. "Syntax error" is here to catch this case.
  5808. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5809. /* end confdefs.h. */
  5810. #ifdef __STDC__
  5811. # include <limits.h>
  5812. #else
  5813. # include <assert.h>
  5814. #endif
  5815. Syntax error
  5816. _ACEOF
  5817. if ac_fn_c_try_cpp "$LINENO"; then :
  5818. else
  5819. # Broken: fails on valid input.
  5820. continue
  5821. fi
  5822. rm -f conftest.err conftest.i conftest.$ac_ext
  5823. # OK, works on sane cases. Now check whether nonexistent headers
  5824. # can be detected and how.
  5825. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5826. /* end confdefs.h. */
  5827. #include <ac_nonexistent.h>
  5828. _ACEOF
  5829. if ac_fn_c_try_cpp "$LINENO"; then :
  5830. # Broken: success on invalid input.
  5831. continue
  5832. else
  5833. # Passes both tests.
  5834. ac_preproc_ok=:
  5835. break
  5836. fi
  5837. rm -f conftest.err conftest.i conftest.$ac_ext
  5838. done
  5839. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  5840. rm -f conftest.i conftest.err conftest.$ac_ext
  5841. if $ac_preproc_ok; then :
  5842. else
  5843. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  5844. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  5845. as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
  5846. See \`config.log' for more details" "$LINENO" 5 ; }
  5847. fi
  5848. ac_ext=c
  5849. ac_cpp='$CPP $CPPFLAGS'
  5850. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5851. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5852. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5853. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  5854. $as_echo_n "checking for ANSI C header files... " >&6; }
  5855. if test "${ac_cv_header_stdc+set}" = set; then :
  5856. $as_echo_n "(cached) " >&6
  5857. else
  5858. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5859. /* end confdefs.h. */
  5860. #include <stdlib.h>
  5861. #include <stdarg.h>
  5862. #include <string.h>
  5863. #include <float.h>
  5864. int
  5865. main ()
  5866. {
  5867. ;
  5868. return 0;
  5869. }
  5870. _ACEOF
  5871. if ac_fn_c_try_compile "$LINENO"; then :
  5872. ac_cv_header_stdc=yes
  5873. else
  5874. ac_cv_header_stdc=no
  5875. fi
  5876. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5877. if test $ac_cv_header_stdc = yes; then
  5878. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  5879. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5880. /* end confdefs.h. */
  5881. #include <string.h>
  5882. _ACEOF
  5883. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  5884. $EGREP "memchr" >/dev/null 2>&1; then :
  5885. else
  5886. ac_cv_header_stdc=no
  5887. fi
  5888. rm -f conftest*
  5889. fi
  5890. if test $ac_cv_header_stdc = yes; then
  5891. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  5892. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5893. /* end confdefs.h. */
  5894. #include <stdlib.h>
  5895. _ACEOF
  5896. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  5897. $EGREP "free" >/dev/null 2>&1; then :
  5898. else
  5899. ac_cv_header_stdc=no
  5900. fi
  5901. rm -f conftest*
  5902. fi
  5903. if test $ac_cv_header_stdc = yes; then
  5904. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  5905. if test "$cross_compiling" = yes; then :
  5906. :
  5907. else
  5908. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5909. /* end confdefs.h. */
  5910. #include <ctype.h>
  5911. #include <stdlib.h>
  5912. #if ((' ' & 0x0FF) == 0x020)
  5913. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  5914. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  5915. #else
  5916. # define ISLOWER(c) \
  5917. (('a' <= (c) && (c) <= 'i') \
  5918. || ('j' <= (c) && (c) <= 'r') \
  5919. || ('s' <= (c) && (c) <= 'z'))
  5920. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  5921. #endif
  5922. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  5923. int
  5924. main ()
  5925. {
  5926. int i;
  5927. for (i = 0; i < 256; i++)
  5928. if (XOR (islower (i), ISLOWER (i))
  5929. || toupper (i) != TOUPPER (i))
  5930. return 2;
  5931. return 0;
  5932. }
  5933. _ACEOF
  5934. if ac_fn_c_try_run "$LINENO"; then :
  5935. else
  5936. ac_cv_header_stdc=no
  5937. fi
  5938. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  5939. conftest.$ac_objext conftest.beam conftest.$ac_ext
  5940. fi
  5941. fi
  5942. fi
  5943. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  5944. $as_echo "$ac_cv_header_stdc" >&6; }
  5945. if test $ac_cv_header_stdc = yes; then
  5946. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  5947. fi
  5948. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  5949. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  5950. inttypes.h stdint.h unistd.h
  5951. do :
  5952. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  5953. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  5954. "
  5955. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  5956. cat >>confdefs.h <<_ACEOF
  5957. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  5958. _ACEOF
  5959. fi
  5960. done
  5961. for ac_header in dlfcn.h
  5962. do :
  5963. ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
  5964. "
  5965. if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
  5966. cat >>confdefs.h <<_ACEOF
  5967. #define HAVE_DLFCN_H 1
  5968. _ACEOF
  5969. fi
  5970. done
  5971. # Set options
  5972. enable_dlopen=no
  5973. enable_win32_dll=no
  5974. # Check whether --enable-shared was given.
  5975. if test "${enable_shared+set}" = set; then :
  5976. enableval=$enable_shared; p=${PACKAGE-default}
  5977. case $enableval in
  5978. yes) enable_shared=yes ;;
  5979. no) enable_shared=no ;;
  5980. *)
  5981. enable_shared=no
  5982. # Look at the argument we got. We use all the common list separators.
  5983. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  5984. for pkg in $enableval; do
  5985. IFS="$lt_save_ifs"
  5986. if test "X$pkg" = "X$p"; then
  5987. enable_shared=yes
  5988. fi
  5989. done
  5990. IFS="$lt_save_ifs"
  5991. ;;
  5992. esac
  5993. else
  5994. enable_shared=yes
  5995. fi
  5996. # Check whether --enable-static was given.
  5997. if test "${enable_static+set}" = set; then :
  5998. enableval=$enable_static; p=${PACKAGE-default}
  5999. case $enableval in
  6000. yes) enable_static=yes ;;
  6001. no) enable_static=no ;;
  6002. *)
  6003. enable_static=no
  6004. # Look at the argument we got. We use all the common list separators.
  6005. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  6006. for pkg in $enableval; do
  6007. IFS="$lt_save_ifs"
  6008. if test "X$pkg" = "X$p"; then
  6009. enable_static=yes
  6010. fi
  6011. done
  6012. IFS="$lt_save_ifs"
  6013. ;;
  6014. esac
  6015. else
  6016. enable_static=yes
  6017. fi
  6018. # Check whether --with-pic was given.
  6019. if test "${with_pic+set}" = set; then :
  6020. withval=$with_pic; pic_mode="$withval"
  6021. else
  6022. pic_mode=default
  6023. fi
  6024. test -z "$pic_mode" && pic_mode=default
  6025. # Check whether --enable-fast-install was given.
  6026. if test "${enable_fast_install+set}" = set; then :
  6027. enableval=$enable_fast_install; p=${PACKAGE-default}
  6028. case $enableval in
  6029. yes) enable_fast_install=yes ;;
  6030. no) enable_fast_install=no ;;
  6031. *)
  6032. enable_fast_install=no
  6033. # Look at the argument we got. We use all the common list separators.
  6034. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  6035. for pkg in $enableval; do
  6036. IFS="$lt_save_ifs"
  6037. if test "X$pkg" = "X$p"; then
  6038. enable_fast_install=yes
  6039. fi
  6040. done
  6041. IFS="$lt_save_ifs"
  6042. ;;
  6043. esac
  6044. else
  6045. enable_fast_install=yes
  6046. fi
  6047. # This can be used to rebuild libtool when needed
  6048. LIBTOOL_DEPS="$ltmain"
  6049. # Always use our own libtool.
  6050. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  6051. test -z "$LN_S" && LN_S="ln -s"
  6052. if test -n "${ZSH_VERSION+set}" ; then
  6053. setopt NO_GLOB_SUBST
  6054. fi
  6055. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
  6056. $as_echo_n "checking for objdir... " >&6; }
  6057. if test "${lt_cv_objdir+set}" = set; then :
  6058. $as_echo_n "(cached) " >&6
  6059. else
  6060. rm -f .libs 2>/dev/null
  6061. mkdir .libs 2>/dev/null
  6062. if test -d .libs; then
  6063. lt_cv_objdir=.libs
  6064. else
  6065. # MS-DOS does not allow filenames that begin with a dot.
  6066. lt_cv_objdir=_libs
  6067. fi
  6068. rmdir .libs 2>/dev/null
  6069. fi
  6070. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
  6071. $as_echo "$lt_cv_objdir" >&6; }
  6072. objdir=$lt_cv_objdir
  6073. cat >>confdefs.h <<_ACEOF
  6074. #define LT_OBJDIR "$lt_cv_objdir/"
  6075. _ACEOF
  6076. case $host_os in
  6077. aix3*)
  6078. # AIX sometimes has problems with the GCC collect2 program. For some
  6079. # reason, if we set the COLLECT_NAMES environment variable, the problems
  6080. # vanish in a puff of smoke.
  6081. if test "X${COLLECT_NAMES+set}" != Xset; then
  6082. COLLECT_NAMES=
  6083. export COLLECT_NAMES
  6084. fi
  6085. ;;
  6086. esac
  6087. # Sed substitution that helps us do robust quoting. It backslashifies
  6088. # metacharacters that are still active within double-quoted strings.
  6089. sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
  6090. # Same as above, but do not quote variable references.
  6091. double_quote_subst='s/\(["`\\]\)/\\\1/g'
  6092. # Sed substitution to delay expansion of an escaped shell variable in a
  6093. # double_quote_subst'ed string.
  6094. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  6095. # Sed substitution to delay expansion of an escaped single quote.
  6096. delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
  6097. # Sed substitution to avoid accidental globbing in evaled expressions
  6098. no_glob_subst='s/\*/\\\*/g'
  6099. # Global variables:
  6100. ofile=libtool
  6101. can_build_shared=yes
  6102. # All known linkers require a `.a' archive for static linking (except MSVC,
  6103. # which needs '.lib').
  6104. libext=a
  6105. with_gnu_ld="$lt_cv_prog_gnu_ld"
  6106. old_CC="$CC"
  6107. old_CFLAGS="$CFLAGS"
  6108. # Set sane defaults for various variables
  6109. test -z "$CC" && CC=cc
  6110. test -z "$LTCC" && LTCC=$CC
  6111. test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  6112. test -z "$LD" && LD=ld
  6113. test -z "$ac_objext" && ac_objext=o
  6114. for cc_temp in $compiler""; do
  6115. case $cc_temp in
  6116. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  6117. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  6118. \-*) ;;
  6119. *) break;;
  6120. esac
  6121. done
  6122. cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  6123. # Only perform the check for file, if the check method requires it
  6124. test -z "$MAGIC_CMD" && MAGIC_CMD=file
  6125. case $deplibs_check_method in
  6126. file_magic*)
  6127. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  6128. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
  6129. $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
  6130. if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
  6131. $as_echo_n "(cached) " >&6
  6132. else
  6133. case $MAGIC_CMD in
  6134. [\\/*] | ?:[\\/]*)
  6135. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  6136. ;;
  6137. *)
  6138. lt_save_MAGIC_CMD="$MAGIC_CMD"
  6139. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  6140. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  6141. for ac_dir in $ac_dummy; do
  6142. IFS="$lt_save_ifs"
  6143. test -z "$ac_dir" && ac_dir=.
  6144. if test -f $ac_dir/${ac_tool_prefix}file; then
  6145. lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
  6146. if test -n "$file_magic_test_file"; then
  6147. case $deplibs_check_method in
  6148. "file_magic "*)
  6149. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  6150. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6151. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  6152. $EGREP "$file_magic_regex" > /dev/null; then
  6153. :
  6154. else
  6155. cat <<_LT_EOF 1>&2
  6156. *** Warning: the command libtool uses to detect shared libraries,
  6157. *** $file_magic_cmd, produces output that libtool cannot recognize.
  6158. *** The result is that libtool may fail to recognize shared libraries
  6159. *** as such. This will affect the creation of libtool libraries that
  6160. *** depend on shared libraries, but programs linked with such libtool
  6161. *** libraries will work regardless of this problem. Nevertheless, you
  6162. *** may want to report the problem to your system manager and/or to
  6163. *** [email protected]
  6164. _LT_EOF
  6165. fi ;;
  6166. esac
  6167. fi
  6168. break
  6169. fi
  6170. done
  6171. IFS="$lt_save_ifs"
  6172. MAGIC_CMD="$lt_save_MAGIC_CMD"
  6173. ;;
  6174. esac
  6175. fi
  6176. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6177. if test -n "$MAGIC_CMD"; then
  6178. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  6179. $as_echo "$MAGIC_CMD" >&6; }
  6180. else
  6181. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6182. $as_echo "no" >&6; }
  6183. fi
  6184. if test -z "$lt_cv_path_MAGIC_CMD"; then
  6185. if test -n "$ac_tool_prefix"; then
  6186. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
  6187. $as_echo_n "checking for file... " >&6; }
  6188. if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
  6189. $as_echo_n "(cached) " >&6
  6190. else
  6191. case $MAGIC_CMD in
  6192. [\\/*] | ?:[\\/]*)
  6193. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  6194. ;;
  6195. *)
  6196. lt_save_MAGIC_CMD="$MAGIC_CMD"
  6197. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  6198. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  6199. for ac_dir in $ac_dummy; do
  6200. IFS="$lt_save_ifs"
  6201. test -z "$ac_dir" && ac_dir=.
  6202. if test -f $ac_dir/file; then
  6203. lt_cv_path_MAGIC_CMD="$ac_dir/file"
  6204. if test -n "$file_magic_test_file"; then
  6205. case $deplibs_check_method in
  6206. "file_magic "*)
  6207. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  6208. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6209. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  6210. $EGREP "$file_magic_regex" > /dev/null; then
  6211. :
  6212. else
  6213. cat <<_LT_EOF 1>&2
  6214. *** Warning: the command libtool uses to detect shared libraries,
  6215. *** $file_magic_cmd, produces output that libtool cannot recognize.
  6216. *** The result is that libtool may fail to recognize shared libraries
  6217. *** as such. This will affect the creation of libtool libraries that
  6218. *** depend on shared libraries, but programs linked with such libtool
  6219. *** libraries will work regardless of this problem. Nevertheless, you
  6220. *** may want to report the problem to your system manager and/or to
  6221. *** [email protected]
  6222. _LT_EOF
  6223. fi ;;
  6224. esac
  6225. fi
  6226. break
  6227. fi
  6228. done
  6229. IFS="$lt_save_ifs"
  6230. MAGIC_CMD="$lt_save_MAGIC_CMD"
  6231. ;;
  6232. esac
  6233. fi
  6234. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6235. if test -n "$MAGIC_CMD"; then
  6236. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  6237. $as_echo "$MAGIC_CMD" >&6; }
  6238. else
  6239. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6240. $as_echo "no" >&6; }
  6241. fi
  6242. else
  6243. MAGIC_CMD=:
  6244. fi
  6245. fi
  6246. fi
  6247. ;;
  6248. esac
  6249. # Use C for the default configuration in the libtool script
  6250. lt_save_CC="$CC"
  6251. ac_ext=c
  6252. ac_cpp='$CPP $CPPFLAGS'
  6253. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6254. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6255. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6256. # Source file extension for C test sources.
  6257. ac_ext=c
  6258. # Object file extension for compiled C test sources.
  6259. objext=o
  6260. objext=$objext
  6261. # Code to be used in simple compile tests
  6262. lt_simple_compile_test_code="int some_variable = 0;"
  6263. # Code to be used in simple link tests
  6264. lt_simple_link_test_code='int main(){return(0);}'
  6265. # If no C compiler was specified, use CC.
  6266. LTCC=${LTCC-"$CC"}
  6267. # If no C compiler flags were specified, use CFLAGS.
  6268. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  6269. # Allow CC to be a program name with arguments.
  6270. compiler=$CC
  6271. # Save the default compiler, since it gets overwritten when the other
  6272. # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
  6273. compiler_DEFAULT=$CC
  6274. # save warnings/boilerplate of simple test code
  6275. ac_outfile=conftest.$ac_objext
  6276. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  6277. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  6278. _lt_compiler_boilerplate=`cat conftest.err`
  6279. $RM conftest*
  6280. ac_outfile=conftest.$ac_objext
  6281. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  6282. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  6283. _lt_linker_boilerplate=`cat conftest.err`
  6284. $RM -r conftest*
  6285. if test -n "$compiler"; then
  6286. lt_prog_compiler_no_builtin_flag=
  6287. if test "$GCC" = yes; then
  6288. lt_prog_compiler_no_builtin_flag=' -fno-builtin'
  6289. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  6290. $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
  6291. if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
  6292. $as_echo_n "(cached) " >&6
  6293. else
  6294. lt_cv_prog_compiler_rtti_exceptions=no
  6295. ac_outfile=conftest.$ac_objext
  6296. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  6297. lt_compiler_flag="-fno-rtti -fno-exceptions"
  6298. # Insert the option either (1) after the last *FLAGS variable, or
  6299. # (2) before a word containing "conftest.", or (3) at the end.
  6300. # Note that $ac_compile itself does not contain backslashes and begins
  6301. # with a dollar sign (not a hyphen), so the echo should work correctly.
  6302. # The option is referenced via a variable to avoid confusing sed.
  6303. lt_compile=`echo "$ac_compile" | $SED \
  6304. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  6305. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  6306. -e 's:$: $lt_compiler_flag:'`
  6307. (eval echo "\"\$as_me:7252: $lt_compile\"" >&5)
  6308. (eval "$lt_compile" 2>conftest.err)
  6309. ac_status=$?
  6310. cat conftest.err >&5
  6311. echo "$as_me:7256: \$? = $ac_status" >&5
  6312. if (exit $ac_status) && test -s "$ac_outfile"; then
  6313. # The compiler can only warn and ignore the option if not recognized
  6314. # So say no if there are warnings other than the usual output.
  6315. $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  6316. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  6317. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  6318. lt_cv_prog_compiler_rtti_exceptions=yes
  6319. fi
  6320. fi
  6321. $RM conftest*
  6322. fi
  6323. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  6324. $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  6325. if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
  6326. lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  6327. else
  6328. :
  6329. fi
  6330. fi
  6331. lt_prog_compiler_wl=
  6332. lt_prog_compiler_pic=
  6333. lt_prog_compiler_static=
  6334. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  6335. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  6336. if test "$GCC" = yes; then
  6337. lt_prog_compiler_wl='-Wl,'
  6338. lt_prog_compiler_static='-static'
  6339. case $host_os in
  6340. aix*)
  6341. # All AIX code is PIC.
  6342. if test "$host_cpu" = ia64; then
  6343. # AIX 5 now supports IA64 processor
  6344. lt_prog_compiler_static='-Bstatic'
  6345. fi
  6346. ;;
  6347. amigaos*)
  6348. case $host_cpu in
  6349. powerpc)
  6350. # see comment about AmigaOS4 .so support
  6351. lt_prog_compiler_pic='-fPIC'
  6352. ;;
  6353. m68k)
  6354. # FIXME: we need at least 68020 code to build shared libraries, but
  6355. # adding the `-m68020' flag to GCC prevents building anything better,
  6356. # like `-m68040'.
  6357. lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  6358. ;;
  6359. esac
  6360. ;;
  6361. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  6362. # PIC is the default for these OSes.
  6363. ;;
  6364. mingw* | cygwin* | pw32* | os2* | cegcc*)
  6365. # This hack is so that the source file can tell whether it is being
  6366. # built for inclusion in a dll (and should export symbols for example).
  6367. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  6368. # (--disable-auto-import) libraries
  6369. lt_prog_compiler_pic='-DDLL_EXPORT'
  6370. ;;
  6371. darwin* | rhapsody*)
  6372. # PIC is the default on this platform
  6373. # Common symbols not allowed in MH_DYLIB files
  6374. lt_prog_compiler_pic='-fno-common'
  6375. ;;
  6376. hpux*)
  6377. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  6378. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  6379. # sets the default TLS model and affects inlining.
  6380. case $host_cpu in
  6381. hppa*64*)
  6382. # +Z the default
  6383. ;;
  6384. *)
  6385. lt_prog_compiler_pic='-fPIC'
  6386. ;;
  6387. esac
  6388. ;;
  6389. interix[3-9]*)
  6390. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  6391. # Instead, we relocate shared libraries at runtime.
  6392. ;;
  6393. msdosdjgpp*)
  6394. # Just because we use GCC doesn't mean we suddenly get shared libraries
  6395. # on systems that don't support them.
  6396. lt_prog_compiler_can_build_shared=no
  6397. enable_shared=no
  6398. ;;
  6399. *nto* | *qnx*)
  6400. # QNX uses GNU C++, but need to define -shared option too, otherwise
  6401. # it will coredump.
  6402. lt_prog_compiler_pic='-fPIC -shared'
  6403. ;;
  6404. sysv4*MP*)
  6405. if test -d /usr/nec; then
  6406. lt_prog_compiler_pic=-Kconform_pic
  6407. fi
  6408. ;;
  6409. *)
  6410. lt_prog_compiler_pic='-fPIC'
  6411. ;;
  6412. esac
  6413. else
  6414. # PORTME Check for flag to pass linker flags through the system compiler.
  6415. case $host_os in
  6416. aix*)
  6417. lt_prog_compiler_wl='-Wl,'
  6418. if test "$host_cpu" = ia64; then
  6419. # AIX 5 now supports IA64 processor
  6420. lt_prog_compiler_static='-Bstatic'
  6421. else
  6422. lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  6423. fi
  6424. ;;
  6425. mingw* | cygwin* | pw32* | os2* | cegcc*)
  6426. # This hack is so that the source file can tell whether it is being
  6427. # built for inclusion in a dll (and should export symbols for example).
  6428. lt_prog_compiler_pic='-DDLL_EXPORT'
  6429. ;;
  6430. hpux9* | hpux10* | hpux11*)
  6431. lt_prog_compiler_wl='-Wl,'
  6432. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  6433. # not for PA HP-UX.
  6434. case $host_cpu in
  6435. hppa*64*|ia64*)
  6436. # +Z the default
  6437. ;;
  6438. *)
  6439. lt_prog_compiler_pic='+Z'
  6440. ;;
  6441. esac
  6442. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  6443. lt_prog_compiler_static='${wl}-a ${wl}archive'
  6444. ;;
  6445. irix5* | irix6* | nonstopux*)
  6446. lt_prog_compiler_wl='-Wl,'
  6447. # PIC (with -KPIC) is the default.
  6448. lt_prog_compiler_static='-non_shared'
  6449. ;;
  6450. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  6451. case $cc_basename in
  6452. # old Intel for x86_64 which still supported -KPIC.
  6453. ecc*)
  6454. lt_prog_compiler_wl='-Wl,'
  6455. lt_prog_compiler_pic='-KPIC'
  6456. lt_prog_compiler_static='-static'
  6457. ;;
  6458. # icc used to be incompatible with GCC.
  6459. # ICC 10 doesn't accept -KPIC any more.
  6460. icc* | ifort*)
  6461. lt_prog_compiler_wl='-Wl,'
  6462. lt_prog_compiler_pic='-fPIC'
  6463. lt_prog_compiler_static='-static'
  6464. ;;
  6465. # Lahey Fortran 8.1.
  6466. lf95*)
  6467. lt_prog_compiler_wl='-Wl,'
  6468. lt_prog_compiler_pic='--shared'
  6469. lt_prog_compiler_static='--static'
  6470. ;;
  6471. pgcc* | pgf77* | pgf90* | pgf95*)
  6472. # Portland Group compilers (*not* the Pentium gcc compiler,
  6473. # which looks to be a dead project)
  6474. lt_prog_compiler_wl='-Wl,'
  6475. lt_prog_compiler_pic='-fpic'
  6476. lt_prog_compiler_static='-Bstatic'
  6477. ;;
  6478. ccc*)
  6479. lt_prog_compiler_wl='-Wl,'
  6480. # All Alpha code is PIC.
  6481. lt_prog_compiler_static='-non_shared'
  6482. ;;
  6483. xl*)
  6484. # IBM XL C 8.0/Fortran 10.1 on PPC
  6485. lt_prog_compiler_wl='-Wl,'
  6486. lt_prog_compiler_pic='-qpic'
  6487. lt_prog_compiler_static='-qstaticlink'
  6488. ;;
  6489. *)
  6490. case `$CC -V 2>&1 | sed 5q` in
  6491. *Sun\ C*)
  6492. # Sun C 5.9
  6493. lt_prog_compiler_pic='-KPIC'
  6494. lt_prog_compiler_static='-Bstatic'
  6495. lt_prog_compiler_wl='-Wl,'
  6496. ;;
  6497. *Sun\ F*)
  6498. # Sun Fortran 8.3 passes all unrecognized flags to the linker
  6499. lt_prog_compiler_pic='-KPIC'
  6500. lt_prog_compiler_static='-Bstatic'
  6501. lt_prog_compiler_wl=''
  6502. ;;
  6503. esac
  6504. ;;
  6505. esac
  6506. ;;
  6507. newsos6)
  6508. lt_prog_compiler_pic='-KPIC'
  6509. lt_prog_compiler_static='-Bstatic'
  6510. ;;
  6511. *nto* | *qnx*)
  6512. # QNX uses GNU C++, but need to define -shared option too, otherwise
  6513. # it will coredump.
  6514. lt_prog_compiler_pic='-fPIC -shared'
  6515. ;;
  6516. osf3* | osf4* | osf5*)
  6517. lt_prog_compiler_wl='-Wl,'
  6518. # All OSF/1 code is PIC.
  6519. lt_prog_compiler_static='-non_shared'
  6520. ;;
  6521. rdos*)
  6522. lt_prog_compiler_static='-non_shared'
  6523. ;;
  6524. solaris*)
  6525. lt_prog_compiler_pic='-KPIC'
  6526. lt_prog_compiler_static='-Bstatic'
  6527. case $cc_basename in
  6528. f77* | f90* | f95*)
  6529. lt_prog_compiler_wl='-Qoption ld ';;
  6530. *)
  6531. lt_prog_compiler_wl='-Wl,';;
  6532. esac
  6533. ;;
  6534. sunos4*)
  6535. lt_prog_compiler_wl='-Qoption ld '
  6536. lt_prog_compiler_pic='-PIC'
  6537. lt_prog_compiler_static='-Bstatic'
  6538. ;;
  6539. sysv4 | sysv4.2uw2* | sysv4.3*)
  6540. lt_prog_compiler_wl='-Wl,'
  6541. lt_prog_compiler_pic='-KPIC'
  6542. lt_prog_compiler_static='-Bstatic'
  6543. ;;
  6544. sysv4*MP*)
  6545. if test -d /usr/nec ;then
  6546. lt_prog_compiler_pic='-Kconform_pic'
  6547. lt_prog_compiler_static='-Bstatic'
  6548. fi
  6549. ;;
  6550. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  6551. lt_prog_compiler_wl='-Wl,'
  6552. lt_prog_compiler_pic='-KPIC'
  6553. lt_prog_compiler_static='-Bstatic'
  6554. ;;
  6555. unicos*)
  6556. lt_prog_compiler_wl='-Wl,'
  6557. lt_prog_compiler_can_build_shared=no
  6558. ;;
  6559. uts4*)
  6560. lt_prog_compiler_pic='-pic'
  6561. lt_prog_compiler_static='-Bstatic'
  6562. ;;
  6563. *)
  6564. lt_prog_compiler_can_build_shared=no
  6565. ;;
  6566. esac
  6567. fi
  6568. case $host_os in
  6569. # For platforms which do not support PIC, -DPIC is meaningless:
  6570. *djgpp*)
  6571. lt_prog_compiler_pic=
  6572. ;;
  6573. *)
  6574. lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  6575. ;;
  6576. esac
  6577. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
  6578. $as_echo "$lt_prog_compiler_pic" >&6; }
  6579. #
  6580. # Check to make sure the PIC flag actually works.
  6581. #
  6582. if test -n "$lt_prog_compiler_pic"; then
  6583. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  6584. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
  6585. if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
  6586. $as_echo_n "(cached) " >&6
  6587. else
  6588. lt_cv_prog_compiler_pic_works=no
  6589. ac_outfile=conftest.$ac_objext
  6590. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  6591. lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
  6592. # Insert the option either (1) after the last *FLAGS variable, or
  6593. # (2) before a word containing "conftest.", or (3) at the end.
  6594. # Note that $ac_compile itself does not contain backslashes and begins
  6595. # with a dollar sign (not a hyphen), so the echo should work correctly.
  6596. # The option is referenced via a variable to avoid confusing sed.
  6597. lt_compile=`echo "$ac_compile" | $SED \
  6598. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  6599. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  6600. -e 's:$: $lt_compiler_flag:'`
  6601. (eval echo "\"\$as_me:7591: $lt_compile\"" >&5)
  6602. (eval "$lt_compile" 2>conftest.err)
  6603. ac_status=$?
  6604. cat conftest.err >&5
  6605. echo "$as_me:7595: \$? = $ac_status" >&5
  6606. if (exit $ac_status) && test -s "$ac_outfile"; then
  6607. # The compiler can only warn and ignore the option if not recognized
  6608. # So say no if there are warnings other than the usual output.
  6609. $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  6610. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  6611. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  6612. lt_cv_prog_compiler_pic_works=yes
  6613. fi
  6614. fi
  6615. $RM conftest*
  6616. fi
  6617. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
  6618. $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
  6619. if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
  6620. case $lt_prog_compiler_pic in
  6621. "" | " "*) ;;
  6622. *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  6623. esac
  6624. else
  6625. lt_prog_compiler_pic=
  6626. lt_prog_compiler_can_build_shared=no
  6627. fi
  6628. fi
  6629. #
  6630. # Check to make sure the static flag actually works.
  6631. #
  6632. wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
  6633. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  6634. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  6635. if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
  6636. $as_echo_n "(cached) " >&6
  6637. else
  6638. lt_cv_prog_compiler_static_works=no
  6639. save_LDFLAGS="$LDFLAGS"
  6640. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  6641. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  6642. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  6643. # The linker can only warn and ignore the option if not recognized
  6644. # So say no if there are warnings
  6645. if test -s conftest.err; then
  6646. # Append any errors to the config.log.
  6647. cat conftest.err 1>&5
  6648. $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
  6649. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  6650. if diff conftest.exp conftest.er2 >/dev/null; then
  6651. lt_cv_prog_compiler_static_works=yes
  6652. fi
  6653. else
  6654. lt_cv_prog_compiler_static_works=yes
  6655. fi
  6656. fi
  6657. $RM -r conftest*
  6658. LDFLAGS="$save_LDFLAGS"
  6659. fi
  6660. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
  6661. $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
  6662. if test x"$lt_cv_prog_compiler_static_works" = xyes; then
  6663. :
  6664. else
  6665. lt_prog_compiler_static=
  6666. fi
  6667. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  6668. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  6669. if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
  6670. $as_echo_n "(cached) " >&6
  6671. else
  6672. lt_cv_prog_compiler_c_o=no
  6673. $RM -r conftest 2>/dev/null
  6674. mkdir conftest
  6675. cd conftest
  6676. mkdir out
  6677. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  6678. lt_compiler_flag="-o out/conftest2.$ac_objext"
  6679. # Insert the option either (1) after the last *FLAGS variable, or
  6680. # (2) before a word containing "conftest.", or (3) at the end.
  6681. # Note that $ac_compile itself does not contain backslashes and begins
  6682. # with a dollar sign (not a hyphen), so the echo should work correctly.
  6683. lt_compile=`echo "$ac_compile" | $SED \
  6684. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  6685. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  6686. -e 's:$: $lt_compiler_flag:'`
  6687. (eval echo "\"\$as_me:7696: $lt_compile\"" >&5)
  6688. (eval "$lt_compile" 2>out/conftest.err)
  6689. ac_status=$?
  6690. cat out/conftest.err >&5
  6691. echo "$as_me:7700: \$? = $ac_status" >&5
  6692. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  6693. then
  6694. # The compiler can only warn and ignore the option if not recognized
  6695. # So say no if there are warnings
  6696. $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  6697. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  6698. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  6699. lt_cv_prog_compiler_c_o=yes
  6700. fi
  6701. fi
  6702. chmod u+w . 2>&5
  6703. $RM conftest*
  6704. # SGI C++ compiler will create directory out/ii_files/ for
  6705. # template instantiation
  6706. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  6707. $RM out/* && rmdir out
  6708. cd ..
  6709. $RM -r conftest
  6710. $RM conftest*
  6711. fi
  6712. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  6713. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  6714. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  6715. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  6716. if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
  6717. $as_echo_n "(cached) " >&6
  6718. else
  6719. lt_cv_prog_compiler_c_o=no
  6720. $RM -r conftest 2>/dev/null
  6721. mkdir conftest
  6722. cd conftest
  6723. mkdir out
  6724. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  6725. lt_compiler_flag="-o out/conftest2.$ac_objext"
  6726. # Insert the option either (1) after the last *FLAGS variable, or
  6727. # (2) before a word containing "conftest.", or (3) at the end.
  6728. # Note that $ac_compile itself does not contain backslashes and begins
  6729. # with a dollar sign (not a hyphen), so the echo should work correctly.
  6730. lt_compile=`echo "$ac_compile" | $SED \
  6731. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  6732. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  6733. -e 's:$: $lt_compiler_flag:'`
  6734. (eval echo "\"\$as_me:7751: $lt_compile\"" >&5)
  6735. (eval "$lt_compile" 2>out/conftest.err)
  6736. ac_status=$?
  6737. cat out/conftest.err >&5
  6738. echo "$as_me:7755: \$? = $ac_status" >&5
  6739. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  6740. then
  6741. # The compiler can only warn and ignore the option if not recognized
  6742. # So say no if there are warnings
  6743. $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  6744. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  6745. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  6746. lt_cv_prog_compiler_c_o=yes
  6747. fi
  6748. fi
  6749. chmod u+w . 2>&5
  6750. $RM conftest*
  6751. # SGI C++ compiler will create directory out/ii_files/ for
  6752. # template instantiation
  6753. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  6754. $RM out/* && rmdir out
  6755. cd ..
  6756. $RM -r conftest
  6757. $RM conftest*
  6758. fi
  6759. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  6760. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  6761. hard_links="nottested"
  6762. if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
  6763. # do not overwrite the value of need_locks provided by the user
  6764. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  6765. $as_echo_n "checking if we can lock with hard links... " >&6; }
  6766. hard_links=yes
  6767. $RM conftest*
  6768. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  6769. touch conftest.a
  6770. ln conftest.a conftest.b 2>&5 || hard_links=no
  6771. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  6772. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  6773. $as_echo "$hard_links" >&6; }
  6774. if test "$hard_links" = no; then
  6775. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  6776. $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  6777. need_locks=warn
  6778. fi
  6779. else
  6780. need_locks=no
  6781. fi
  6782. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  6783. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  6784. runpath_var=
  6785. allow_undefined_flag=
  6786. always_export_symbols=no
  6787. archive_cmds=
  6788. archive_expsym_cmds=
  6789. compiler_needs_object=no
  6790. enable_shared_with_static_runtimes=no
  6791. export_dynamic_flag_spec=
  6792. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  6793. hardcode_automatic=no
  6794. hardcode_direct=no
  6795. hardcode_direct_absolute=no
  6796. hardcode_libdir_flag_spec=
  6797. hardcode_libdir_flag_spec_ld=
  6798. hardcode_libdir_separator=
  6799. hardcode_minus_L=no
  6800. hardcode_shlibpath_var=unsupported
  6801. inherit_rpath=no
  6802. link_all_deplibs=unknown
  6803. module_cmds=
  6804. module_expsym_cmds=
  6805. old_archive_from_new_cmds=
  6806. old_archive_from_expsyms_cmds=
  6807. thread_safe_flag_spec=
  6808. whole_archive_flag_spec=
  6809. # include_expsyms should be a list of space-separated symbols to be *always*
  6810. # included in the symbol list
  6811. include_expsyms=
  6812. # exclude_expsyms can be an extended regexp of symbols to exclude
  6813. # it will be wrapped by ` (' and `)$', so one must not match beginning or
  6814. # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  6815. # as well as any symbol that contains `d'.
  6816. exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  6817. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  6818. # platforms (ab)use it in PIC code, but their linkers get confused if
  6819. # the symbol is explicitly referenced. Since portable code cannot
  6820. # rely on this symbol name, it's probably fine to never include it in
  6821. # preloaded symbol tables.
  6822. # Exclude shared library initialization/finalization symbols.
  6823. extract_expsyms_cmds=
  6824. case $host_os in
  6825. cygwin* | mingw* | pw32* | cegcc*)
  6826. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  6827. # When not using gcc, we currently assume that we are using
  6828. # Microsoft Visual C++.
  6829. if test "$GCC" != yes; then
  6830. with_gnu_ld=no
  6831. fi
  6832. ;;
  6833. interix*)
  6834. # we just hope/assume this is gcc and not c89 (= MSVC++)
  6835. with_gnu_ld=yes
  6836. ;;
  6837. openbsd*)
  6838. with_gnu_ld=no
  6839. ;;
  6840. linux* | k*bsd*-gnu)
  6841. link_all_deplibs=no
  6842. ;;
  6843. esac
  6844. ld_shlibs=yes
  6845. if test "$with_gnu_ld" = yes; then
  6846. # If archive_cmds runs LD, not CC, wlarc should be empty
  6847. wlarc='${wl}'
  6848. # Set some defaults for GNU ld with shared library support. These
  6849. # are reset later if shared libraries are not supported. Putting them
  6850. # here allows them to be overridden if necessary.
  6851. runpath_var=LD_RUN_PATH
  6852. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  6853. export_dynamic_flag_spec='${wl}--export-dynamic'
  6854. # ancient GNU ld didn't support --whole-archive et. al.
  6855. if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
  6856. whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  6857. else
  6858. whole_archive_flag_spec=
  6859. fi
  6860. supports_anon_versioning=no
  6861. case `$LD -v 2>&1` in
  6862. *GNU\ gold*) supports_anon_versioning=yes ;;
  6863. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  6864. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  6865. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  6866. *\ 2.11.*) ;; # other 2.11 versions
  6867. *) supports_anon_versioning=yes ;;
  6868. esac
  6869. # See if GNU ld supports shared libraries.
  6870. case $host_os in
  6871. aix[3-9]*)
  6872. # On AIX/PPC, the GNU linker is very broken
  6873. if test "$host_cpu" != ia64; then
  6874. ld_shlibs=no
  6875. cat <<_LT_EOF 1>&2
  6876. *** Warning: the GNU linker, at least up to release 2.9.1, is reported
  6877. *** to be unable to reliably create shared libraries on AIX.
  6878. *** Therefore, libtool is disabling shared libraries support. If you
  6879. *** really care for shared libraries, you may want to modify your PATH
  6880. *** so that a non-GNU linker is found, and then restart.
  6881. _LT_EOF
  6882. fi
  6883. ;;
  6884. amigaos*)
  6885. case $host_cpu in
  6886. powerpc)
  6887. # see comment about AmigaOS4 .so support
  6888. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  6889. archive_expsym_cmds=''
  6890. ;;
  6891. m68k)
  6892. 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)'
  6893. hardcode_libdir_flag_spec='-L$libdir'
  6894. hardcode_minus_L=yes
  6895. ;;
  6896. esac
  6897. ;;
  6898. beos*)
  6899. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  6900. allow_undefined_flag=unsupported
  6901. # Joseph Beckenbach <[email protected]> says some releases of gcc
  6902. # support --undefined. This deserves some investigation. FIXME
  6903. archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  6904. else
  6905. ld_shlibs=no
  6906. fi
  6907. ;;
  6908. cygwin* | mingw* | pw32* | cegcc*)
  6909. # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  6910. # as there is no search path for DLLs.
  6911. hardcode_libdir_flag_spec='-L$libdir'
  6912. allow_undefined_flag=unsupported
  6913. always_export_symbols=no
  6914. enable_shared_with_static_runtimes=yes
  6915. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  6916. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  6917. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  6918. # If the export-symbols file already is a .def file (1st line
  6919. # is EXPORTS), use it as is; otherwise, prepend...
  6920. archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  6921. cp $export_symbols $output_objdir/$soname.def;
  6922. else
  6923. echo EXPORTS > $output_objdir/$soname.def;
  6924. cat $export_symbols >> $output_objdir/$soname.def;
  6925. fi~
  6926. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  6927. else
  6928. ld_shlibs=no
  6929. fi
  6930. ;;
  6931. interix[3-9]*)
  6932. hardcode_direct=no
  6933. hardcode_shlibpath_var=no
  6934. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  6935. export_dynamic_flag_spec='${wl}-E'
  6936. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  6937. # Instead, shared libraries are loaded at an image base (0x10000000 by
  6938. # default) and relocated if they conflict, which is a slow very memory
  6939. # consuming and fragmenting process. To avoid this, we pick a random,
  6940. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  6941. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  6942. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  6943. 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'
  6944. ;;
  6945. gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
  6946. tmp_diet=no
  6947. if test "$host_os" = linux-dietlibc; then
  6948. case $cc_basename in
  6949. diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
  6950. esac
  6951. fi
  6952. if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
  6953. && test "$tmp_diet" = no
  6954. then
  6955. tmp_addflag=
  6956. tmp_sharedflag='-shared'
  6957. case $cc_basename,$host_cpu in
  6958. pgcc*) # Portland Group C compiler
  6959. whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
  6960. tmp_addflag=' $pic_flag'
  6961. ;;
  6962. pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
  6963. whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
  6964. tmp_addflag=' $pic_flag -Mnomain' ;;
  6965. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  6966. tmp_addflag=' -i_dynamic' ;;
  6967. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  6968. tmp_addflag=' -i_dynamic -nofor_main' ;;
  6969. ifc* | ifort*) # Intel Fortran compiler
  6970. tmp_addflag=' -nofor_main' ;;
  6971. lf95*) # Lahey Fortran 8.1
  6972. whole_archive_flag_spec=
  6973. tmp_sharedflag='--shared' ;;
  6974. xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
  6975. tmp_sharedflag='-qmkshrobj'
  6976. tmp_addflag= ;;
  6977. esac
  6978. case `$CC -V 2>&1 | sed 5q` in
  6979. *Sun\ C*) # Sun C 5.9
  6980. whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
  6981. compiler_needs_object=yes
  6982. tmp_sharedflag='-G' ;;
  6983. *Sun\ F*) # Sun Fortran 8.3
  6984. tmp_sharedflag='-G' ;;
  6985. esac
  6986. archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  6987. if test "x$supports_anon_versioning" = xyes; then
  6988. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  6989. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  6990. echo "local: *; };" >> $output_objdir/$libname.ver~
  6991. $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  6992. fi
  6993. case $cc_basename in
  6994. xlf*)
  6995. # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
  6996. whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
  6997. hardcode_libdir_flag_spec=
  6998. hardcode_libdir_flag_spec_ld='-rpath $libdir'
  6999. archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
  7000. if test "x$supports_anon_versioning" = xyes; then
  7001. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  7002. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  7003. echo "local: *; };" >> $output_objdir/$libname.ver~
  7004. $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
  7005. fi
  7006. ;;
  7007. esac
  7008. else
  7009. ld_shlibs=no
  7010. fi
  7011. ;;
  7012. netbsd* | netbsdelf*-gnu)
  7013. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  7014. archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  7015. wlarc=
  7016. else
  7017. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7018. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7019. fi
  7020. ;;
  7021. solaris*)
  7022. if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
  7023. ld_shlibs=no
  7024. cat <<_LT_EOF 1>&2
  7025. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  7026. *** create shared libraries on Solaris systems. Therefore, libtool
  7027. *** is disabling shared libraries support. We urge you to upgrade GNU
  7028. *** binutils to release 2.9.1 or newer. Another option is to modify
  7029. *** your PATH or compiler configuration so that the native linker is
  7030. *** used, and then restart.
  7031. _LT_EOF
  7032. elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7033. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7034. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7035. else
  7036. ld_shlibs=no
  7037. fi
  7038. ;;
  7039. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  7040. case `$LD -v 2>&1` in
  7041. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  7042. ld_shlibs=no
  7043. cat <<_LT_EOF 1>&2
  7044. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  7045. *** reliably create shared libraries on SCO systems. Therefore, libtool
  7046. *** is disabling shared libraries support. We urge you to upgrade GNU
  7047. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  7048. *** your PATH or compiler configuration so that the native linker is
  7049. *** used, and then restart.
  7050. _LT_EOF
  7051. ;;
  7052. *)
  7053. # For security reasons, it is highly recommended that you always
  7054. # use absolute paths for naming shared libraries, and exclude the
  7055. # DT_RUNPATH tag from executables and libraries. But doing so
  7056. # requires that you compile everything twice, which is a pain.
  7057. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7058. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7059. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7060. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7061. else
  7062. ld_shlibs=no
  7063. fi
  7064. ;;
  7065. esac
  7066. ;;
  7067. sunos4*)
  7068. archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  7069. wlarc=
  7070. hardcode_direct=yes
  7071. hardcode_shlibpath_var=no
  7072. ;;
  7073. *)
  7074. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7075. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7076. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7077. else
  7078. ld_shlibs=no
  7079. fi
  7080. ;;
  7081. esac
  7082. if test "$ld_shlibs" = no; then
  7083. runpath_var=
  7084. hardcode_libdir_flag_spec=
  7085. export_dynamic_flag_spec=
  7086. whole_archive_flag_spec=
  7087. fi
  7088. else
  7089. # PORTME fill in a description of your system's linker (not GNU ld)
  7090. case $host_os in
  7091. aix3*)
  7092. allow_undefined_flag=unsupported
  7093. always_export_symbols=yes
  7094. 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'
  7095. # Note: this linker hardcodes the directories in LIBPATH if there
  7096. # are no directories specified by -L.
  7097. hardcode_minus_L=yes
  7098. if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  7099. # Neither direct hardcoding nor static linking is supported with a
  7100. # broken collect2.
  7101. hardcode_direct=unsupported
  7102. fi
  7103. ;;
  7104. aix[4-9]*)
  7105. if test "$host_cpu" = ia64; then
  7106. # On IA64, the linker does run time linking by default, so we don't
  7107. # have to do anything special.
  7108. aix_use_runtimelinking=no
  7109. exp_sym_flag='-Bexport'
  7110. no_entry_flag=""
  7111. else
  7112. # If we're using GNU nm, then we don't want the "-C" option.
  7113. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  7114. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  7115. export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
  7116. else
  7117. export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
  7118. fi
  7119. aix_use_runtimelinking=no
  7120. # Test if we are trying to use run time linking or normal
  7121. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  7122. # need to do runtime linking.
  7123. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  7124. for ld_flag in $LDFLAGS; do
  7125. if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  7126. aix_use_runtimelinking=yes
  7127. break
  7128. fi
  7129. done
  7130. ;;
  7131. esac
  7132. exp_sym_flag='-bexport'
  7133. no_entry_flag='-bnoentry'
  7134. fi
  7135. # When large executables or shared objects are built, AIX ld can
  7136. # have problems creating the table of contents. If linking a library
  7137. # or program results in "error TOC overflow" add -mminimal-toc to
  7138. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  7139. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  7140. archive_cmds=''
  7141. hardcode_direct=yes
  7142. hardcode_direct_absolute=yes
  7143. hardcode_libdir_separator=':'
  7144. link_all_deplibs=yes
  7145. file_list_spec='${wl}-f,'
  7146. if test "$GCC" = yes; then
  7147. case $host_os in aix4.[012]|aix4.[012].*)
  7148. # We only want to do this on AIX 4.2 and lower, the check
  7149. # below for broken collect2 doesn't work under 4.3+
  7150. collect2name=`${CC} -print-prog-name=collect2`
  7151. if test -f "$collect2name" &&
  7152. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  7153. then
  7154. # We have reworked collect2
  7155. :
  7156. else
  7157. # We have old collect2
  7158. hardcode_direct=unsupported
  7159. # It fails to find uninstalled libraries when the uninstalled
  7160. # path is not listed in the libpath. Setting hardcode_minus_L
  7161. # to unsupported forces relinking
  7162. hardcode_minus_L=yes
  7163. hardcode_libdir_flag_spec='-L$libdir'
  7164. hardcode_libdir_separator=
  7165. fi
  7166. ;;
  7167. esac
  7168. shared_flag='-shared'
  7169. if test "$aix_use_runtimelinking" = yes; then
  7170. shared_flag="$shared_flag "'${wl}-G'
  7171. fi
  7172. link_all_deplibs=no
  7173. else
  7174. # not using gcc
  7175. if test "$host_cpu" = ia64; then
  7176. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  7177. # chokes on -Wl,-G. The following line is correct:
  7178. shared_flag='-G'
  7179. else
  7180. if test "$aix_use_runtimelinking" = yes; then
  7181. shared_flag='${wl}-G'
  7182. else
  7183. shared_flag='${wl}-bM:SRE'
  7184. fi
  7185. fi
  7186. fi
  7187. export_dynamic_flag_spec='${wl}-bexpall'
  7188. # It seems that -bexpall does not export symbols beginning with
  7189. # underscore (_), so it is better to generate a list of symbols to export.
  7190. always_export_symbols=yes
  7191. if test "$aix_use_runtimelinking" = yes; then
  7192. # Warning - without using the other runtime loading flags (-brtl),
  7193. # -berok will link without error, but may produce a broken library.
  7194. allow_undefined_flag='-berok'
  7195. # Determine the default libpath from the value encoded in an
  7196. # empty executable.
  7197. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7198. /* end confdefs.h. */
  7199. int
  7200. main ()
  7201. {
  7202. ;
  7203. return 0;
  7204. }
  7205. _ACEOF
  7206. if ac_fn_c_try_link "$LINENO"; then :
  7207. lt_aix_libpath_sed='
  7208. /Import File Strings/,/^$/ {
  7209. /^0/ {
  7210. s/^0 *\(.*\)$/\1/
  7211. p
  7212. }
  7213. }'
  7214. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  7215. # Check for a 64-bit object if we didn't find anything.
  7216. if test -z "$aix_libpath"; then
  7217. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  7218. fi
  7219. fi
  7220. rm -f core conftest.err conftest.$ac_objext \
  7221. conftest$ac_exeext conftest.$ac_ext
  7222. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  7223. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  7224. archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
  7225. else
  7226. if test "$host_cpu" = ia64; then
  7227. hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
  7228. allow_undefined_flag="-z nodefs"
  7229. 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"
  7230. else
  7231. # Determine the default libpath from the value encoded in an
  7232. # empty executable.
  7233. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7234. /* end confdefs.h. */
  7235. int
  7236. main ()
  7237. {
  7238. ;
  7239. return 0;
  7240. }
  7241. _ACEOF
  7242. if ac_fn_c_try_link "$LINENO"; then :
  7243. lt_aix_libpath_sed='
  7244. /Import File Strings/,/^$/ {
  7245. /^0/ {
  7246. s/^0 *\(.*\)$/\1/
  7247. p
  7248. }
  7249. }'
  7250. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  7251. # Check for a 64-bit object if we didn't find anything.
  7252. if test -z "$aix_libpath"; then
  7253. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  7254. fi
  7255. fi
  7256. rm -f core conftest.err conftest.$ac_objext \
  7257. conftest$ac_exeext conftest.$ac_ext
  7258. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  7259. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  7260. # Warning - without using the other run time loading flags,
  7261. # -berok will link without error, but may produce a broken library.
  7262. no_undefined_flag=' ${wl}-bernotok'
  7263. allow_undefined_flag=' ${wl}-berok'
  7264. # Exported symbols can be pulled into shared objects from archives
  7265. whole_archive_flag_spec='$convenience'
  7266. archive_cmds_need_lc=yes
  7267. # This is similar to how AIX traditionally builds its shared libraries.
  7268. archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
  7269. fi
  7270. fi
  7271. ;;
  7272. amigaos*)
  7273. case $host_cpu in
  7274. powerpc)
  7275. # see comment about AmigaOS4 .so support
  7276. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7277. archive_expsym_cmds=''
  7278. ;;
  7279. m68k)
  7280. 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)'
  7281. hardcode_libdir_flag_spec='-L$libdir'
  7282. hardcode_minus_L=yes
  7283. ;;
  7284. esac
  7285. ;;
  7286. bsdi[45]*)
  7287. export_dynamic_flag_spec=-rdynamic
  7288. ;;
  7289. cygwin* | mingw* | pw32* | cegcc*)
  7290. # When not using gcc, we currently assume that we are using
  7291. # Microsoft Visual C++.
  7292. # hardcode_libdir_flag_spec is actually meaningless, as there is
  7293. # no search path for DLLs.
  7294. hardcode_libdir_flag_spec=' '
  7295. allow_undefined_flag=unsupported
  7296. # Tell ltmain to make .lib files, not .a files.
  7297. libext=lib
  7298. # Tell ltmain to make .dll files, not .so files.
  7299. shrext_cmds=".dll"
  7300. # FIXME: Setting linknames here is a bad hack.
  7301. archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
  7302. # The linker will automatically build a .lib file if we build a DLL.
  7303. old_archive_from_new_cmds='true'
  7304. # FIXME: Should let the user specify the lib program.
  7305. old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
  7306. fix_srcfile_path='`cygpath -w "$srcfile"`'
  7307. enable_shared_with_static_runtimes=yes
  7308. ;;
  7309. darwin* | rhapsody*)
  7310. archive_cmds_need_lc=no
  7311. hardcode_direct=no
  7312. hardcode_automatic=yes
  7313. hardcode_shlibpath_var=unsupported
  7314. whole_archive_flag_spec=''
  7315. link_all_deplibs=yes
  7316. allow_undefined_flag="$_lt_dar_allow_undefined"
  7317. case $cc_basename in
  7318. ifort*) _lt_dar_can_shared=yes ;;
  7319. *) _lt_dar_can_shared=$GCC ;;
  7320. esac
  7321. if test "$_lt_dar_can_shared" = "yes"; then
  7322. output_verbose_link_cmd=echo
  7323. archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
  7324. module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  7325. 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}"
  7326. 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}"
  7327. else
  7328. ld_shlibs=no
  7329. fi
  7330. ;;
  7331. dgux*)
  7332. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  7333. hardcode_libdir_flag_spec='-L$libdir'
  7334. hardcode_shlibpath_var=no
  7335. ;;
  7336. freebsd1*)
  7337. ld_shlibs=no
  7338. ;;
  7339. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  7340. # support. Future versions do this automatically, but an explicit c++rt0.o
  7341. # does not break anything, and helps significantly (at the cost of a little
  7342. # extra space).
  7343. freebsd2.2*)
  7344. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  7345. hardcode_libdir_flag_spec='-R$libdir'
  7346. hardcode_direct=yes
  7347. hardcode_shlibpath_var=no
  7348. ;;
  7349. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  7350. freebsd2*)
  7351. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  7352. hardcode_direct=yes
  7353. hardcode_minus_L=yes
  7354. hardcode_shlibpath_var=no
  7355. ;;
  7356. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  7357. freebsd* | dragonfly*)
  7358. archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  7359. hardcode_libdir_flag_spec='-R$libdir'
  7360. hardcode_direct=yes
  7361. hardcode_shlibpath_var=no
  7362. ;;
  7363. hpux9*)
  7364. if test "$GCC" = yes; then
  7365. archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  7366. else
  7367. archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  7368. fi
  7369. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  7370. hardcode_libdir_separator=:
  7371. hardcode_direct=yes
  7372. # hardcode_minus_L: Not really in the search PATH,
  7373. # but as the default location of the library.
  7374. hardcode_minus_L=yes
  7375. export_dynamic_flag_spec='${wl}-E'
  7376. ;;
  7377. hpux10*)
  7378. if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  7379. archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  7380. else
  7381. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  7382. fi
  7383. if test "$with_gnu_ld" = no; then
  7384. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  7385. hardcode_libdir_flag_spec_ld='+b $libdir'
  7386. hardcode_libdir_separator=:
  7387. hardcode_direct=yes
  7388. hardcode_direct_absolute=yes
  7389. export_dynamic_flag_spec='${wl}-E'
  7390. # hardcode_minus_L: Not really in the search PATH,
  7391. # but as the default location of the library.
  7392. hardcode_minus_L=yes
  7393. fi
  7394. ;;
  7395. hpux11*)
  7396. if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  7397. case $host_cpu in
  7398. hppa*64*)
  7399. archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  7400. ;;
  7401. ia64*)
  7402. archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  7403. ;;
  7404. *)
  7405. archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  7406. ;;
  7407. esac
  7408. else
  7409. case $host_cpu in
  7410. hppa*64*)
  7411. archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  7412. ;;
  7413. ia64*)
  7414. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  7415. ;;
  7416. *)
  7417. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  7418. ;;
  7419. esac
  7420. fi
  7421. if test "$with_gnu_ld" = no; then
  7422. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  7423. hardcode_libdir_separator=:
  7424. case $host_cpu in
  7425. hppa*64*|ia64*)
  7426. hardcode_direct=no
  7427. hardcode_shlibpath_var=no
  7428. ;;
  7429. *)
  7430. hardcode_direct=yes
  7431. hardcode_direct_absolute=yes
  7432. export_dynamic_flag_spec='${wl}-E'
  7433. # hardcode_minus_L: Not really in the search PATH,
  7434. # but as the default location of the library.
  7435. hardcode_minus_L=yes
  7436. ;;
  7437. esac
  7438. fi
  7439. ;;
  7440. irix5* | irix6* | nonstopux*)
  7441. if test "$GCC" = yes; then
  7442. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  7443. # Try to use the -exported_symbol ld option, if it does not
  7444. # work, assume that -exports_file does not work either and
  7445. # implicitly export all symbols.
  7446. save_LDFLAGS="$LDFLAGS"
  7447. LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
  7448. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7449. /* end confdefs.h. */
  7450. int foo(void) {}
  7451. _ACEOF
  7452. if ac_fn_c_try_link "$LINENO"; then :
  7453. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
  7454. fi
  7455. rm -f core conftest.err conftest.$ac_objext \
  7456. conftest$ac_exeext conftest.$ac_ext
  7457. LDFLAGS="$save_LDFLAGS"
  7458. else
  7459. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
  7460. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
  7461. fi
  7462. archive_cmds_need_lc='no'
  7463. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7464. hardcode_libdir_separator=:
  7465. inherit_rpath=yes
  7466. link_all_deplibs=yes
  7467. ;;
  7468. netbsd* | netbsdelf*-gnu)
  7469. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  7470. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  7471. else
  7472. archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  7473. fi
  7474. hardcode_libdir_flag_spec='-R$libdir'
  7475. hardcode_direct=yes
  7476. hardcode_shlibpath_var=no
  7477. ;;
  7478. newsos6)
  7479. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  7480. hardcode_direct=yes
  7481. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7482. hardcode_libdir_separator=:
  7483. hardcode_shlibpath_var=no
  7484. ;;
  7485. *nto* | *qnx*)
  7486. ;;
  7487. openbsd*)
  7488. if test -f /usr/libexec/ld.so; then
  7489. hardcode_direct=yes
  7490. hardcode_shlibpath_var=no
  7491. hardcode_direct_absolute=yes
  7492. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  7493. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  7494. archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  7495. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  7496. export_dynamic_flag_spec='${wl}-E'
  7497. else
  7498. case $host_os in
  7499. openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  7500. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  7501. hardcode_libdir_flag_spec='-R$libdir'
  7502. ;;
  7503. *)
  7504. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  7505. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  7506. ;;
  7507. esac
  7508. fi
  7509. else
  7510. ld_shlibs=no
  7511. fi
  7512. ;;
  7513. os2*)
  7514. hardcode_libdir_flag_spec='-L$libdir'
  7515. hardcode_minus_L=yes
  7516. allow_undefined_flag=unsupported
  7517. archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$ECHO DATA >> $output_objdir/$libname.def~$ECHO " SINGLE NONSHARED" >> $output_objdir/$libname.def~$ECHO EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
  7518. old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  7519. ;;
  7520. osf3*)
  7521. if test "$GCC" = yes; then
  7522. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  7523. archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  7524. else
  7525. allow_undefined_flag=' -expect_unresolved \*'
  7526. archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
  7527. fi
  7528. archive_cmds_need_lc='no'
  7529. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7530. hardcode_libdir_separator=:
  7531. ;;
  7532. osf4* | osf5*) # as osf3* with the addition of -msym flag
  7533. if test "$GCC" = yes; then
  7534. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  7535. archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  7536. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7537. else
  7538. allow_undefined_flag=' -expect_unresolved \*'
  7539. archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
  7540. 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~
  7541. $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
  7542. # Both c and cxx compiler support -rpath directly
  7543. hardcode_libdir_flag_spec='-rpath $libdir'
  7544. fi
  7545. archive_cmds_need_lc='no'
  7546. hardcode_libdir_separator=:
  7547. ;;
  7548. solaris*)
  7549. no_undefined_flag=' -z defs'
  7550. if test "$GCC" = yes; then
  7551. wlarc='${wl}'
  7552. archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  7553. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  7554. $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  7555. else
  7556. case `$CC -V 2>&1` in
  7557. *"Compilers 5.0"*)
  7558. wlarc=''
  7559. archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  7560. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  7561. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
  7562. ;;
  7563. *)
  7564. wlarc='${wl}'
  7565. archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
  7566. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  7567. $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  7568. ;;
  7569. esac
  7570. fi
  7571. hardcode_libdir_flag_spec='-R$libdir'
  7572. hardcode_shlibpath_var=no
  7573. case $host_os in
  7574. solaris2.[0-5] | solaris2.[0-5].*) ;;
  7575. *)
  7576. # The compiler driver will combine and reorder linker options,
  7577. # but understands `-z linker_flag'. GCC discards it without `$wl',
  7578. # but is careful enough not to reorder.
  7579. # Supported since Solaris 2.6 (maybe 2.5.1?)
  7580. if test "$GCC" = yes; then
  7581. whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  7582. else
  7583. whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
  7584. fi
  7585. ;;
  7586. esac
  7587. link_all_deplibs=yes
  7588. ;;
  7589. sunos4*)
  7590. if test "x$host_vendor" = xsequent; then
  7591. # Use $CC to link under sequent, because it throws in some extra .o
  7592. # files that make .init and .fini sections work.
  7593. archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  7594. else
  7595. archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  7596. fi
  7597. hardcode_libdir_flag_spec='-L$libdir'
  7598. hardcode_direct=yes
  7599. hardcode_minus_L=yes
  7600. hardcode_shlibpath_var=no
  7601. ;;
  7602. sysv4)
  7603. case $host_vendor in
  7604. sni)
  7605. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  7606. hardcode_direct=yes # is this really true???
  7607. ;;
  7608. siemens)
  7609. ## LD is ld it makes a PLAMLIB
  7610. ## CC just makes a GrossModule.
  7611. archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  7612. reload_cmds='$CC -r -o $output$reload_objs'
  7613. hardcode_direct=no
  7614. ;;
  7615. motorola)
  7616. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  7617. hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  7618. ;;
  7619. esac
  7620. runpath_var='LD_RUN_PATH'
  7621. hardcode_shlibpath_var=no
  7622. ;;
  7623. sysv4.3*)
  7624. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  7625. hardcode_shlibpath_var=no
  7626. export_dynamic_flag_spec='-Bexport'
  7627. ;;
  7628. sysv4*MP*)
  7629. if test -d /usr/nec; then
  7630. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  7631. hardcode_shlibpath_var=no
  7632. runpath_var=LD_RUN_PATH
  7633. hardcode_runpath_var=yes
  7634. ld_shlibs=yes
  7635. fi
  7636. ;;
  7637. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  7638. no_undefined_flag='${wl}-z,text'
  7639. archive_cmds_need_lc=no
  7640. hardcode_shlibpath_var=no
  7641. runpath_var='LD_RUN_PATH'
  7642. if test "$GCC" = yes; then
  7643. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  7644. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  7645. else
  7646. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  7647. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  7648. fi
  7649. ;;
  7650. sysv5* | sco3.2v5* | sco5v6*)
  7651. # Note: We can NOT use -z defs as we might desire, because we do not
  7652. # link with -lc, and that would cause any symbols used from libc to
  7653. # always be unresolved, which means just about no library would
  7654. # ever link correctly. If we're not using GNU ld we use -z text
  7655. # though, which does catch some bad symbols but isn't as heavy-handed
  7656. # as -z defs.
  7657. no_undefined_flag='${wl}-z,text'
  7658. allow_undefined_flag='${wl}-z,nodefs'
  7659. archive_cmds_need_lc=no
  7660. hardcode_shlibpath_var=no
  7661. hardcode_libdir_flag_spec='${wl}-R,$libdir'
  7662. hardcode_libdir_separator=':'
  7663. link_all_deplibs=yes
  7664. export_dynamic_flag_spec='${wl}-Bexport'
  7665. runpath_var='LD_RUN_PATH'
  7666. if test "$GCC" = yes; then
  7667. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  7668. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  7669. else
  7670. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  7671. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  7672. fi
  7673. ;;
  7674. uts4*)
  7675. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  7676. hardcode_libdir_flag_spec='-L$libdir'
  7677. hardcode_shlibpath_var=no
  7678. ;;
  7679. *)
  7680. ld_shlibs=no
  7681. ;;
  7682. esac
  7683. if test x$host_vendor = xsni; then
  7684. case $host in
  7685. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  7686. export_dynamic_flag_spec='${wl}-Blargedynsym'
  7687. ;;
  7688. esac
  7689. fi
  7690. fi
  7691. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
  7692. $as_echo "$ld_shlibs" >&6; }
  7693. test "$ld_shlibs" = no && can_build_shared=no
  7694. with_gnu_ld=$with_gnu_ld
  7695. #
  7696. # Do we need to explicitly link libc?
  7697. #
  7698. case "x$archive_cmds_need_lc" in
  7699. x|xyes)
  7700. # Assume -lc should be added
  7701. archive_cmds_need_lc=yes
  7702. if test "$enable_shared" = yes && test "$GCC" = yes; then
  7703. case $archive_cmds in
  7704. *'~'*)
  7705. # FIXME: we may have to deal with multi-command sequences.
  7706. ;;
  7707. '$CC '*)
  7708. # Test whether the compiler implicitly links with -lc since on some
  7709. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  7710. # to ld, don't add -lc before -lgcc.
  7711. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  7712. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  7713. $RM conftest*
  7714. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7715. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  7716. (eval $ac_compile) 2>&5
  7717. ac_status=$?
  7718. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  7719. test $ac_status = 0; } 2>conftest.err; then
  7720. soname=conftest
  7721. lib=conftest
  7722. libobjs=conftest.$ac_objext
  7723. deplibs=
  7724. wl=$lt_prog_compiler_wl
  7725. pic_flag=$lt_prog_compiler_pic
  7726. compiler_flags=-v
  7727. linker_flags=-v
  7728. verstring=
  7729. output_objdir=.
  7730. libname=conftest
  7731. lt_save_allow_undefined_flag=$allow_undefined_flag
  7732. allow_undefined_flag=
  7733. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  7734. (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  7735. ac_status=$?
  7736. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  7737. test $ac_status = 0; }
  7738. then
  7739. archive_cmds_need_lc=no
  7740. else
  7741. archive_cmds_need_lc=yes
  7742. fi
  7743. allow_undefined_flag=$lt_save_allow_undefined_flag
  7744. else
  7745. cat conftest.err 1>&5
  7746. fi
  7747. $RM conftest*
  7748. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
  7749. $as_echo "$archive_cmds_need_lc" >&6; }
  7750. ;;
  7751. esac
  7752. fi
  7753. ;;
  7754. esac
  7755. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  7756. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  7757. if test "$GCC" = yes; then
  7758. case $host_os in
  7759. darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
  7760. *) lt_awk_arg="/^libraries:/" ;;
  7761. esac
  7762. lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  7763. if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
  7764. # if the path contains ";" then we assume it to be the separator
  7765. # otherwise default to the standard path separator (i.e. ":") - it is
  7766. # assumed that no part of a normal pathname contains ";" but that should
  7767. # okay in the real world where ";" in dirpaths is itself problematic.
  7768. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
  7769. else
  7770. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  7771. fi
  7772. # Ok, now we have the path, separated by spaces, we can step through it
  7773. # and add multilib dir if necessary.
  7774. lt_tmp_lt_search_path_spec=
  7775. lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  7776. for lt_sys_path in $lt_search_path_spec; do
  7777. if test -d "$lt_sys_path/$lt_multi_os_dir"; then
  7778. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
  7779. else
  7780. test -d "$lt_sys_path" && \
  7781. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  7782. fi
  7783. done
  7784. lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
  7785. BEGIN {RS=" "; FS="/|\n";} {
  7786. lt_foo="";
  7787. lt_count=0;
  7788. for (lt_i = NF; lt_i > 0; lt_i--) {
  7789. if ($lt_i != "" && $lt_i != ".") {
  7790. if ($lt_i == "..") {
  7791. lt_count++;
  7792. } else {
  7793. if (lt_count == 0) {
  7794. lt_foo="/" $lt_i lt_foo;
  7795. } else {
  7796. lt_count--;
  7797. }
  7798. }
  7799. }
  7800. }
  7801. if (lt_foo != "") { lt_freq[lt_foo]++; }
  7802. if (lt_freq[lt_foo] == 1) { print lt_foo; }
  7803. }'`
  7804. sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
  7805. else
  7806. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  7807. fi
  7808. library_names_spec=
  7809. libname_spec='lib$name'
  7810. soname_spec=
  7811. shrext_cmds=".so"
  7812. postinstall_cmds=
  7813. postuninstall_cmds=
  7814. finish_cmds=
  7815. finish_eval=
  7816. shlibpath_var=
  7817. shlibpath_overrides_runpath=unknown
  7818. version_type=none
  7819. dynamic_linker="$host_os ld.so"
  7820. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  7821. need_lib_prefix=unknown
  7822. hardcode_into_libs=no
  7823. # when you set need_version to no, make sure it does not cause -set_version
  7824. # flags to be left without arguments
  7825. need_version=unknown
  7826. case $host_os in
  7827. aix3*)
  7828. version_type=linux
  7829. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  7830. shlibpath_var=LIBPATH
  7831. # AIX 3 has no versioning support, so we append a major version to the name.
  7832. soname_spec='${libname}${release}${shared_ext}$major'
  7833. ;;
  7834. aix[4-9]*)
  7835. version_type=linux
  7836. need_lib_prefix=no
  7837. need_version=no
  7838. hardcode_into_libs=yes
  7839. if test "$host_cpu" = ia64; then
  7840. # AIX 5 supports IA64
  7841. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  7842. shlibpath_var=LD_LIBRARY_PATH
  7843. else
  7844. # With GCC up to 2.95.x, collect2 would create an import file
  7845. # for dependence libraries. The import file would start with
  7846. # the line `#! .'. This would cause the generated library to
  7847. # depend on `.', always an invalid library. This was fixed in
  7848. # development snapshots of GCC prior to 3.0.
  7849. case $host_os in
  7850. aix4 | aix4.[01] | aix4.[01].*)
  7851. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  7852. echo ' yes '
  7853. echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  7854. :
  7855. else
  7856. can_build_shared=no
  7857. fi
  7858. ;;
  7859. esac
  7860. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  7861. # soname into executable. Probably we can add versioning support to
  7862. # collect2, so additional links can be useful in future.
  7863. if test "$aix_use_runtimelinking" = yes; then
  7864. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  7865. # instead of lib<name>.a to let people know that these are not
  7866. # typical AIX shared libraries.
  7867. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  7868. else
  7869. # We preserve .a as extension for shared libraries through AIX4.2
  7870. # and later when we are not doing run time linking.
  7871. library_names_spec='${libname}${release}.a $libname.a'
  7872. soname_spec='${libname}${release}${shared_ext}$major'
  7873. fi
  7874. shlibpath_var=LIBPATH
  7875. fi
  7876. ;;
  7877. amigaos*)
  7878. case $host_cpu in
  7879. powerpc)
  7880. # Since July 2007 AmigaOS4 officially supports .so libraries.
  7881. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  7882. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  7883. ;;
  7884. m68k)
  7885. library_names_spec='$libname.ixlibrary $libname.a'
  7886. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  7887. finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
  7888. ;;
  7889. esac
  7890. ;;
  7891. beos*)
  7892. library_names_spec='${libname}${shared_ext}'
  7893. dynamic_linker="$host_os ld.so"
  7894. shlibpath_var=LIBRARY_PATH
  7895. ;;
  7896. bsdi[45]*)
  7897. version_type=linux
  7898. need_version=no
  7899. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  7900. soname_spec='${libname}${release}${shared_ext}$major'
  7901. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  7902. shlibpath_var=LD_LIBRARY_PATH
  7903. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  7904. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  7905. # the default ld.so.conf also contains /usr/contrib/lib and
  7906. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  7907. # libtool to hard-code these into programs
  7908. ;;
  7909. cygwin* | mingw* | pw32* | cegcc*)
  7910. version_type=windows
  7911. shrext_cmds=".dll"
  7912. need_version=no
  7913. need_lib_prefix=no
  7914. case $GCC,$host_os in
  7915. yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
  7916. library_names_spec='$libname.dll.a'
  7917. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  7918. postinstall_cmds='base_file=`basename \${file}`~
  7919. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  7920. dldir=$destdir/`dirname \$dlpath`~
  7921. test -d \$dldir || mkdir -p \$dldir~
  7922. $install_prog $dir/$dlname \$dldir/$dlname~
  7923. chmod a+x \$dldir/$dlname~
  7924. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  7925. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  7926. fi'
  7927. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  7928. dlpath=$dir/\$dldll~
  7929. $RM \$dlpath'
  7930. shlibpath_overrides_runpath=yes
  7931. case $host_os in
  7932. cygwin*)
  7933. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  7934. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  7935. sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
  7936. ;;
  7937. mingw* | cegcc*)
  7938. # MinGW DLLs use traditional 'lib' prefix
  7939. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  7940. sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  7941. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  7942. # It is most probably a Windows format PATH printed by
  7943. # mingw gcc, but we are running on Cygwin. Gcc prints its search
  7944. # path with ; separators, and with drive letters. We can handle the
  7945. # drive letters (cygwin fileutils understands them), so leave them,
  7946. # especially as we might pass files found there to a mingw objdump,
  7947. # which wouldn't understand a cygwinified path. Ahh.
  7948. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  7949. else
  7950. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  7951. fi
  7952. ;;
  7953. pw32*)
  7954. # pw32 DLLs use 'pw' prefix rather than 'lib'
  7955. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  7956. ;;
  7957. esac
  7958. ;;
  7959. *)
  7960. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  7961. ;;
  7962. esac
  7963. dynamic_linker='Win32 ld.exe'
  7964. # FIXME: first we should search . and the directory the executable is in
  7965. shlibpath_var=PATH
  7966. ;;
  7967. darwin* | rhapsody*)
  7968. dynamic_linker="$host_os dyld"
  7969. version_type=darwin
  7970. need_lib_prefix=no
  7971. need_version=no
  7972. library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  7973. soname_spec='${libname}${release}${major}$shared_ext'
  7974. shlibpath_overrides_runpath=yes
  7975. shlibpath_var=DYLD_LIBRARY_PATH
  7976. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  7977. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
  7978. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  7979. ;;
  7980. dgux*)
  7981. version_type=linux
  7982. need_lib_prefix=no
  7983. need_version=no
  7984. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  7985. soname_spec='${libname}${release}${shared_ext}$major'
  7986. shlibpath_var=LD_LIBRARY_PATH
  7987. ;;
  7988. freebsd1*)
  7989. dynamic_linker=no
  7990. ;;
  7991. freebsd* | dragonfly*)
  7992. # DragonFly does not have aout. When/if they implement a new
  7993. # versioning mechanism, adjust this.
  7994. if test -x /usr/bin/objformat; then
  7995. objformat=`/usr/bin/objformat`
  7996. else
  7997. case $host_os in
  7998. freebsd[123]*) objformat=aout ;;
  7999. *) objformat=elf ;;
  8000. esac
  8001. fi
  8002. version_type=freebsd-$objformat
  8003. case $version_type in
  8004. freebsd-elf*)
  8005. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  8006. need_version=no
  8007. need_lib_prefix=no
  8008. ;;
  8009. freebsd-*)
  8010. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  8011. need_version=yes
  8012. ;;
  8013. esac
  8014. shlibpath_var=LD_LIBRARY_PATH
  8015. case $host_os in
  8016. freebsd2*)
  8017. shlibpath_overrides_runpath=yes
  8018. ;;
  8019. freebsd3.[01]* | freebsdelf3.[01]*)
  8020. shlibpath_overrides_runpath=yes
  8021. hardcode_into_libs=yes
  8022. ;;
  8023. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  8024. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  8025. shlibpath_overrides_runpath=no
  8026. hardcode_into_libs=yes
  8027. ;;
  8028. *) # from 4.6 on, and DragonFly
  8029. shlibpath_overrides_runpath=yes
  8030. hardcode_into_libs=yes
  8031. ;;
  8032. esac
  8033. ;;
  8034. gnu*)
  8035. version_type=linux
  8036. need_lib_prefix=no
  8037. need_version=no
  8038. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  8039. soname_spec='${libname}${release}${shared_ext}$major'
  8040. shlibpath_var=LD_LIBRARY_PATH
  8041. hardcode_into_libs=yes
  8042. ;;
  8043. hpux9* | hpux10* | hpux11*)
  8044. # Give a soname corresponding to the major version so that dld.sl refuses to
  8045. # link against other versions.
  8046. version_type=sunos
  8047. need_lib_prefix=no
  8048. need_version=no
  8049. case $host_cpu in
  8050. ia64*)
  8051. shrext_cmds='.so'
  8052. hardcode_into_libs=yes
  8053. dynamic_linker="$host_os dld.so"
  8054. shlibpath_var=LD_LIBRARY_PATH
  8055. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  8056. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8057. soname_spec='${libname}${release}${shared_ext}$major'
  8058. if test "X$HPUX_IA64_MODE" = X32; then
  8059. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  8060. else
  8061. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  8062. fi
  8063. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  8064. ;;
  8065. hppa*64*)
  8066. shrext_cmds='.sl'
  8067. hardcode_into_libs=yes
  8068. dynamic_linker="$host_os dld.sl"
  8069. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  8070. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  8071. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8072. soname_spec='${libname}${release}${shared_ext}$major'
  8073. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  8074. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  8075. ;;
  8076. *)
  8077. shrext_cmds='.sl'
  8078. dynamic_linker="$host_os dld.sl"
  8079. shlibpath_var=SHLIB_PATH
  8080. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  8081. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8082. soname_spec='${libname}${release}${shared_ext}$major'
  8083. ;;
  8084. esac
  8085. # HP-UX runs *really* slowly unless shared libraries are mode 555.
  8086. postinstall_cmds='chmod 555 $lib'
  8087. ;;
  8088. interix[3-9]*)
  8089. version_type=linux
  8090. need_lib_prefix=no
  8091. need_version=no
  8092. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  8093. soname_spec='${libname}${release}${shared_ext}$major'
  8094. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  8095. shlibpath_var=LD_LIBRARY_PATH
  8096. shlibpath_overrides_runpath=no
  8097. hardcode_into_libs=yes
  8098. ;;
  8099. irix5* | irix6* | nonstopux*)
  8100. case $host_os in
  8101. nonstopux*) version_type=nonstopux ;;
  8102. *)
  8103. if test "$lt_cv_prog_gnu_ld" = yes; then
  8104. version_type=linux
  8105. else
  8106. version_type=irix
  8107. fi ;;
  8108. esac
  8109. need_lib_prefix=no
  8110. need_version=no
  8111. soname_spec='${libname}${release}${shared_ext}$major'
  8112. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  8113. case $host_os in
  8114. irix5* | nonstopux*)
  8115. libsuff= shlibsuff=
  8116. ;;
  8117. *)
  8118. case $LD in # libtool.m4 will add one of these switches to LD
  8119. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  8120. libsuff= shlibsuff= libmagic=32-bit;;
  8121. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  8122. libsuff=32 shlibsuff=N32 libmagic=N32;;
  8123. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  8124. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  8125. *) libsuff= shlibsuff= libmagic=never-match;;
  8126. esac
  8127. ;;
  8128. esac
  8129. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  8130. shlibpath_overrides_runpath=no
  8131. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  8132. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  8133. hardcode_into_libs=yes
  8134. ;;
  8135. # No shared lib support for Linux oldld, aout, or coff.
  8136. linux*oldld* | linux*aout* | linux*coff*)
  8137. dynamic_linker=no
  8138. ;;
  8139. # This must be Linux ELF.
  8140. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  8141. version_type=linux
  8142. need_lib_prefix=no
  8143. need_version=no
  8144. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8145. soname_spec='${libname}${release}${shared_ext}$major'
  8146. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  8147. shlibpath_var=LD_LIBRARY_PATH
  8148. shlibpath_overrides_runpath=no
  8149. # Some binutils ld are patched to set DT_RUNPATH
  8150. save_LDFLAGS=$LDFLAGS
  8151. save_libdir=$libdir
  8152. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
  8153. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
  8154. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8155. /* end confdefs.h. */
  8156. int
  8157. main ()
  8158. {
  8159. ;
  8160. return 0;
  8161. }
  8162. _ACEOF
  8163. if ac_fn_c_try_link "$LINENO"; then :
  8164. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  8165. shlibpath_overrides_runpath=yes
  8166. fi
  8167. fi
  8168. rm -f core conftest.err conftest.$ac_objext \
  8169. conftest$ac_exeext conftest.$ac_ext
  8170. LDFLAGS=$save_LDFLAGS
  8171. libdir=$save_libdir
  8172. # This implies no fast_install, which is unacceptable.
  8173. # Some rework will be needed to allow for fast_install
  8174. # before this can be enabled.
  8175. hardcode_into_libs=yes
  8176. # Append ld.so.conf contents to the search path
  8177. if test -f /etc/ld.so.conf; then
  8178. lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
  8179. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  8180. fi
  8181. # We used to test for /lib/ld.so.1 and disable shared libraries on
  8182. # powerpc, because MkLinux only supported shared libraries with the
  8183. # GNU dynamic linker. Since this was broken with cross compilers,
  8184. # most powerpc-linux boxes support dynamic linking these days and
  8185. # people can always --disable-shared, the test was removed, and we
  8186. # assume the GNU/Linux dynamic linker is in use.
  8187. dynamic_linker='GNU/Linux ld.so'
  8188. ;;
  8189. netbsdelf*-gnu)
  8190. version_type=linux
  8191. need_lib_prefix=no
  8192. need_version=no
  8193. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  8194. soname_spec='${libname}${release}${shared_ext}$major'
  8195. shlibpath_var=LD_LIBRARY_PATH
  8196. shlibpath_overrides_runpath=no
  8197. hardcode_into_libs=yes
  8198. dynamic_linker='NetBSD ld.elf_so'
  8199. ;;
  8200. netbsd*)
  8201. version_type=sunos
  8202. need_lib_prefix=no
  8203. need_version=no
  8204. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  8205. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  8206. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  8207. dynamic_linker='NetBSD (a.out) ld.so'
  8208. else
  8209. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  8210. soname_spec='${libname}${release}${shared_ext}$major'
  8211. dynamic_linker='NetBSD ld.elf_so'
  8212. fi
  8213. shlibpath_var=LD_LIBRARY_PATH
  8214. shlibpath_overrides_runpath=yes
  8215. hardcode_into_libs=yes
  8216. ;;
  8217. newsos6)
  8218. version_type=linux
  8219. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8220. shlibpath_var=LD_LIBRARY_PATH
  8221. shlibpath_overrides_runpath=yes
  8222. ;;
  8223. *nto* | *qnx*)
  8224. version_type=qnx
  8225. need_lib_prefix=no
  8226. need_version=no
  8227. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8228. soname_spec='${libname}${release}${shared_ext}$major'
  8229. shlibpath_var=LD_LIBRARY_PATH
  8230. shlibpath_overrides_runpath=no
  8231. hardcode_into_libs=yes
  8232. dynamic_linker='ldqnx.so'
  8233. ;;
  8234. openbsd*)
  8235. version_type=sunos
  8236. sys_lib_dlsearch_path_spec="/usr/lib"
  8237. need_lib_prefix=no
  8238. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  8239. case $host_os in
  8240. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  8241. *) need_version=no ;;
  8242. esac
  8243. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  8244. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  8245. shlibpath_var=LD_LIBRARY_PATH
  8246. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  8247. case $host_os in
  8248. openbsd2.[89] | openbsd2.[89].*)
  8249. shlibpath_overrides_runpath=no
  8250. ;;
  8251. *)
  8252. shlibpath_overrides_runpath=yes
  8253. ;;
  8254. esac
  8255. else
  8256. shlibpath_overrides_runpath=yes
  8257. fi
  8258. ;;
  8259. os2*)
  8260. libname_spec='$name'
  8261. shrext_cmds=".dll"
  8262. need_lib_prefix=no
  8263. library_names_spec='$libname${shared_ext} $libname.a'
  8264. dynamic_linker='OS/2 ld.exe'
  8265. shlibpath_var=LIBPATH
  8266. ;;
  8267. osf3* | osf4* | osf5*)
  8268. version_type=osf
  8269. need_lib_prefix=no
  8270. need_version=no
  8271. soname_spec='${libname}${release}${shared_ext}$major'
  8272. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8273. shlibpath_var=LD_LIBRARY_PATH
  8274. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  8275. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  8276. ;;
  8277. rdos*)
  8278. dynamic_linker=no
  8279. ;;
  8280. solaris*)
  8281. version_type=linux
  8282. need_lib_prefix=no
  8283. need_version=no
  8284. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8285. soname_spec='${libname}${release}${shared_ext}$major'
  8286. shlibpath_var=LD_LIBRARY_PATH
  8287. shlibpath_overrides_runpath=yes
  8288. hardcode_into_libs=yes
  8289. # ldd complains unless libraries are executable
  8290. postinstall_cmds='chmod +x $lib'
  8291. ;;
  8292. sunos4*)
  8293. version_type=sunos
  8294. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  8295. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  8296. shlibpath_var=LD_LIBRARY_PATH
  8297. shlibpath_overrides_runpath=yes
  8298. if test "$with_gnu_ld" = yes; then
  8299. need_lib_prefix=no
  8300. fi
  8301. need_version=yes
  8302. ;;
  8303. sysv4 | sysv4.3*)
  8304. version_type=linux
  8305. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8306. soname_spec='${libname}${release}${shared_ext}$major'
  8307. shlibpath_var=LD_LIBRARY_PATH
  8308. case $host_vendor in
  8309. sni)
  8310. shlibpath_overrides_runpath=no
  8311. need_lib_prefix=no
  8312. runpath_var=LD_RUN_PATH
  8313. ;;
  8314. siemens)
  8315. need_lib_prefix=no
  8316. ;;
  8317. motorola)
  8318. need_lib_prefix=no
  8319. need_version=no
  8320. shlibpath_overrides_runpath=no
  8321. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  8322. ;;
  8323. esac
  8324. ;;
  8325. sysv4*MP*)
  8326. if test -d /usr/nec ;then
  8327. version_type=linux
  8328. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  8329. soname_spec='$libname${shared_ext}.$major'
  8330. shlibpath_var=LD_LIBRARY_PATH
  8331. fi
  8332. ;;
  8333. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  8334. version_type=freebsd-elf
  8335. need_lib_prefix=no
  8336. need_version=no
  8337. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  8338. soname_spec='${libname}${release}${shared_ext}$major'
  8339. shlibpath_var=LD_LIBRARY_PATH
  8340. shlibpath_overrides_runpath=yes
  8341. hardcode_into_libs=yes
  8342. if test "$with_gnu_ld" = yes; then
  8343. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  8344. else
  8345. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  8346. case $host_os in
  8347. sco3.2v5*)
  8348. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  8349. ;;
  8350. esac
  8351. fi
  8352. sys_lib_dlsearch_path_spec='/usr/lib'
  8353. ;;
  8354. tpf*)
  8355. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  8356. version_type=linux
  8357. need_lib_prefix=no
  8358. need_version=no
  8359. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8360. shlibpath_var=LD_LIBRARY_PATH
  8361. shlibpath_overrides_runpath=no
  8362. hardcode_into_libs=yes
  8363. ;;
  8364. uts4*)
  8365. version_type=linux
  8366. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8367. soname_spec='${libname}${release}${shared_ext}$major'
  8368. shlibpath_var=LD_LIBRARY_PATH
  8369. ;;
  8370. *)
  8371. dynamic_linker=no
  8372. ;;
  8373. esac
  8374. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  8375. $as_echo "$dynamic_linker" >&6; }
  8376. test "$dynamic_linker" = no && can_build_shared=no
  8377. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  8378. if test "$GCC" = yes; then
  8379. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  8380. fi
  8381. if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  8382. sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  8383. fi
  8384. if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  8385. sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  8386. fi
  8387. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  8388. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  8389. hardcode_action=
  8390. if test -n "$hardcode_libdir_flag_spec" ||
  8391. test -n "$runpath_var" ||
  8392. test "X$hardcode_automatic" = "Xyes" ; then
  8393. # We can hardcode non-existent directories.
  8394. if test "$hardcode_direct" != no &&
  8395. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  8396. # have to relink, otherwise we might link with an installed library
  8397. # when we should be linking with a yet-to-be-installed one
  8398. ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
  8399. test "$hardcode_minus_L" != no; then
  8400. # Linking always hardcodes the temporary library directory.
  8401. hardcode_action=relink
  8402. else
  8403. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  8404. hardcode_action=immediate
  8405. fi
  8406. else
  8407. # We cannot hardcode anything, or else we can only hardcode existing
  8408. # directories.
  8409. hardcode_action=unsupported
  8410. fi
  8411. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
  8412. $as_echo "$hardcode_action" >&6; }
  8413. if test "$hardcode_action" = relink ||
  8414. test "$inherit_rpath" = yes; then
  8415. # Fast installation is not supported
  8416. enable_fast_install=no
  8417. elif test "$shlibpath_overrides_runpath" = yes ||
  8418. test "$enable_shared" = no; then
  8419. # Fast installation is not necessary
  8420. enable_fast_install=needless
  8421. fi
  8422. if test "x$enable_dlopen" != xyes; then
  8423. enable_dlopen=unknown
  8424. enable_dlopen_self=unknown
  8425. enable_dlopen_self_static=unknown
  8426. else
  8427. lt_cv_dlopen=no
  8428. lt_cv_dlopen_libs=
  8429. case $host_os in
  8430. beos*)
  8431. lt_cv_dlopen="load_add_on"
  8432. lt_cv_dlopen_libs=
  8433. lt_cv_dlopen_self=yes
  8434. ;;
  8435. mingw* | pw32* | cegcc*)
  8436. lt_cv_dlopen="LoadLibrary"
  8437. lt_cv_dlopen_libs=
  8438. ;;
  8439. cygwin*)
  8440. lt_cv_dlopen="dlopen"
  8441. lt_cv_dlopen_libs=
  8442. ;;
  8443. darwin*)
  8444. # if libdl is installed we need to link against it
  8445. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  8446. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  8447. if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
  8448. $as_echo_n "(cached) " >&6
  8449. else
  8450. ac_check_lib_save_LIBS=$LIBS
  8451. LIBS="-ldl $LIBS"
  8452. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8453. /* end confdefs.h. */
  8454. /* Override any GCC internal prototype to avoid an error.
  8455. Use char because int might match the return type of a GCC
  8456. builtin and then its argument prototype would still apply. */
  8457. #ifdef __cplusplus
  8458. extern "C"
  8459. #endif
  8460. char dlopen ();
  8461. int
  8462. main ()
  8463. {
  8464. return dlopen ();
  8465. ;
  8466. return 0;
  8467. }
  8468. _ACEOF
  8469. if ac_fn_c_try_link "$LINENO"; then :
  8470. ac_cv_lib_dl_dlopen=yes
  8471. else
  8472. ac_cv_lib_dl_dlopen=no
  8473. fi
  8474. rm -f core conftest.err conftest.$ac_objext \
  8475. conftest$ac_exeext conftest.$ac_ext
  8476. LIBS=$ac_check_lib_save_LIBS
  8477. fi
  8478. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  8479. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  8480. if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
  8481. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  8482. else
  8483. lt_cv_dlopen="dyld"
  8484. lt_cv_dlopen_libs=
  8485. lt_cv_dlopen_self=yes
  8486. fi
  8487. ;;
  8488. *)
  8489. ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
  8490. if test "x$ac_cv_func_shl_load" = x""yes; then :
  8491. lt_cv_dlopen="shl_load"
  8492. else
  8493. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
  8494. $as_echo_n "checking for shl_load in -ldld... " >&6; }
  8495. if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
  8496. $as_echo_n "(cached) " >&6
  8497. else
  8498. ac_check_lib_save_LIBS=$LIBS
  8499. LIBS="-ldld $LIBS"
  8500. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8501. /* end confdefs.h. */
  8502. /* Override any GCC internal prototype to avoid an error.
  8503. Use char because int might match the return type of a GCC
  8504. builtin and then its argument prototype would still apply. */
  8505. #ifdef __cplusplus
  8506. extern "C"
  8507. #endif
  8508. char shl_load ();
  8509. int
  8510. main ()
  8511. {
  8512. return shl_load ();
  8513. ;
  8514. return 0;
  8515. }
  8516. _ACEOF
  8517. if ac_fn_c_try_link "$LINENO"; then :
  8518. ac_cv_lib_dld_shl_load=yes
  8519. else
  8520. ac_cv_lib_dld_shl_load=no
  8521. fi
  8522. rm -f core conftest.err conftest.$ac_objext \
  8523. conftest$ac_exeext conftest.$ac_ext
  8524. LIBS=$ac_check_lib_save_LIBS
  8525. fi
  8526. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
  8527. $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
  8528. if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
  8529. lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
  8530. else
  8531. ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
  8532. if test "x$ac_cv_func_dlopen" = x""yes; then :
  8533. lt_cv_dlopen="dlopen"
  8534. else
  8535. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  8536. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  8537. if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
  8538. $as_echo_n "(cached) " >&6
  8539. else
  8540. ac_check_lib_save_LIBS=$LIBS
  8541. LIBS="-ldl $LIBS"
  8542. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8543. /* end confdefs.h. */
  8544. /* Override any GCC internal prototype to avoid an error.
  8545. Use char because int might match the return type of a GCC
  8546. builtin and then its argument prototype would still apply. */
  8547. #ifdef __cplusplus
  8548. extern "C"
  8549. #endif
  8550. char dlopen ();
  8551. int
  8552. main ()
  8553. {
  8554. return dlopen ();
  8555. ;
  8556. return 0;
  8557. }
  8558. _ACEOF
  8559. if ac_fn_c_try_link "$LINENO"; then :
  8560. ac_cv_lib_dl_dlopen=yes
  8561. else
  8562. ac_cv_lib_dl_dlopen=no
  8563. fi
  8564. rm -f core conftest.err conftest.$ac_objext \
  8565. conftest$ac_exeext conftest.$ac_ext
  8566. LIBS=$ac_check_lib_save_LIBS
  8567. fi
  8568. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  8569. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  8570. if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
  8571. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  8572. else
  8573. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
  8574. $as_echo_n "checking for dlopen in -lsvld... " >&6; }
  8575. if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
  8576. $as_echo_n "(cached) " >&6
  8577. else
  8578. ac_check_lib_save_LIBS=$LIBS
  8579. LIBS="-lsvld $LIBS"
  8580. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8581. /* end confdefs.h. */
  8582. /* Override any GCC internal prototype to avoid an error.
  8583. Use char because int might match the return type of a GCC
  8584. builtin and then its argument prototype would still apply. */
  8585. #ifdef __cplusplus
  8586. extern "C"
  8587. #endif
  8588. char dlopen ();
  8589. int
  8590. main ()
  8591. {
  8592. return dlopen ();
  8593. ;
  8594. return 0;
  8595. }
  8596. _ACEOF
  8597. if ac_fn_c_try_link "$LINENO"; then :
  8598. ac_cv_lib_svld_dlopen=yes
  8599. else
  8600. ac_cv_lib_svld_dlopen=no
  8601. fi
  8602. rm -f core conftest.err conftest.$ac_objext \
  8603. conftest$ac_exeext conftest.$ac_ext
  8604. LIBS=$ac_check_lib_save_LIBS
  8605. fi
  8606. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
  8607. $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
  8608. if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
  8609. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
  8610. else
  8611. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
  8612. $as_echo_n "checking for dld_link in -ldld... " >&6; }
  8613. if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
  8614. $as_echo_n "(cached) " >&6
  8615. else
  8616. ac_check_lib_save_LIBS=$LIBS
  8617. LIBS="-ldld $LIBS"
  8618. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8619. /* end confdefs.h. */
  8620. /* Override any GCC internal prototype to avoid an error.
  8621. Use char because int might match the return type of a GCC
  8622. builtin and then its argument prototype would still apply. */
  8623. #ifdef __cplusplus
  8624. extern "C"
  8625. #endif
  8626. char dld_link ();
  8627. int
  8628. main ()
  8629. {
  8630. return dld_link ();
  8631. ;
  8632. return 0;
  8633. }
  8634. _ACEOF
  8635. if ac_fn_c_try_link "$LINENO"; then :
  8636. ac_cv_lib_dld_dld_link=yes
  8637. else
  8638. ac_cv_lib_dld_dld_link=no
  8639. fi
  8640. rm -f core conftest.err conftest.$ac_objext \
  8641. conftest$ac_exeext conftest.$ac_ext
  8642. LIBS=$ac_check_lib_save_LIBS
  8643. fi
  8644. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
  8645. $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
  8646. if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
  8647. lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
  8648. fi
  8649. fi
  8650. fi
  8651. fi
  8652. fi
  8653. fi
  8654. ;;
  8655. esac
  8656. if test "x$lt_cv_dlopen" != xno; then
  8657. enable_dlopen=yes
  8658. else
  8659. enable_dlopen=no
  8660. fi
  8661. case $lt_cv_dlopen in
  8662. dlopen)
  8663. save_CPPFLAGS="$CPPFLAGS"
  8664. test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  8665. save_LDFLAGS="$LDFLAGS"
  8666. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  8667. save_LIBS="$LIBS"
  8668. LIBS="$lt_cv_dlopen_libs $LIBS"
  8669. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
  8670. $as_echo_n "checking whether a program can dlopen itself... " >&6; }
  8671. if test "${lt_cv_dlopen_self+set}" = set; then :
  8672. $as_echo_n "(cached) " >&6
  8673. else
  8674. if test "$cross_compiling" = yes; then :
  8675. lt_cv_dlopen_self=cross
  8676. else
  8677. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  8678. lt_status=$lt_dlunknown
  8679. cat > conftest.$ac_ext <<_LT_EOF
  8680. #line 10135 "configure"
  8681. #include "confdefs.h"
  8682. #if HAVE_DLFCN_H
  8683. #include <dlfcn.h>
  8684. #endif
  8685. #include <stdio.h>
  8686. #ifdef RTLD_GLOBAL
  8687. # define LT_DLGLOBAL RTLD_GLOBAL
  8688. #else
  8689. # ifdef DL_GLOBAL
  8690. # define LT_DLGLOBAL DL_GLOBAL
  8691. # else
  8692. # define LT_DLGLOBAL 0
  8693. # endif
  8694. #endif
  8695. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  8696. find out it does not work in some platform. */
  8697. #ifndef LT_DLLAZY_OR_NOW
  8698. # ifdef RTLD_LAZY
  8699. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  8700. # else
  8701. # ifdef DL_LAZY
  8702. # define LT_DLLAZY_OR_NOW DL_LAZY
  8703. # else
  8704. # ifdef RTLD_NOW
  8705. # define LT_DLLAZY_OR_NOW RTLD_NOW
  8706. # else
  8707. # ifdef DL_NOW
  8708. # define LT_DLLAZY_OR_NOW DL_NOW
  8709. # else
  8710. # define LT_DLLAZY_OR_NOW 0
  8711. # endif
  8712. # endif
  8713. # endif
  8714. # endif
  8715. #endif
  8716. void fnord() { int i=42;}
  8717. int main ()
  8718. {
  8719. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  8720. int status = $lt_dlunknown;
  8721. if (self)
  8722. {
  8723. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  8724. else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  8725. /* dlclose (self); */
  8726. }
  8727. else
  8728. puts (dlerror ());
  8729. return status;
  8730. }
  8731. _LT_EOF
  8732. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  8733. (eval $ac_link) 2>&5
  8734. ac_status=$?
  8735. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8736. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  8737. (./conftest; exit; ) >&5 2>/dev/null
  8738. lt_status=$?
  8739. case x$lt_status in
  8740. x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  8741. x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  8742. x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
  8743. esac
  8744. else :
  8745. # compilation failed
  8746. lt_cv_dlopen_self=no
  8747. fi
  8748. fi
  8749. rm -fr conftest*
  8750. fi
  8751. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
  8752. $as_echo "$lt_cv_dlopen_self" >&6; }
  8753. if test "x$lt_cv_dlopen_self" = xyes; then
  8754. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  8755. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
  8756. $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
  8757. if test "${lt_cv_dlopen_self_static+set}" = set; then :
  8758. $as_echo_n "(cached) " >&6
  8759. else
  8760. if test "$cross_compiling" = yes; then :
  8761. lt_cv_dlopen_self_static=cross
  8762. else
  8763. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  8764. lt_status=$lt_dlunknown
  8765. cat > conftest.$ac_ext <<_LT_EOF
  8766. #line 10231 "configure"
  8767. #include "confdefs.h"
  8768. #if HAVE_DLFCN_H
  8769. #include <dlfcn.h>
  8770. #endif
  8771. #include <stdio.h>
  8772. #ifdef RTLD_GLOBAL
  8773. # define LT_DLGLOBAL RTLD_GLOBAL
  8774. #else
  8775. # ifdef DL_GLOBAL
  8776. # define LT_DLGLOBAL DL_GLOBAL
  8777. # else
  8778. # define LT_DLGLOBAL 0
  8779. # endif
  8780. #endif
  8781. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  8782. find out it does not work in some platform. */
  8783. #ifndef LT_DLLAZY_OR_NOW
  8784. # ifdef RTLD_LAZY
  8785. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  8786. # else
  8787. # ifdef DL_LAZY
  8788. # define LT_DLLAZY_OR_NOW DL_LAZY
  8789. # else
  8790. # ifdef RTLD_NOW
  8791. # define LT_DLLAZY_OR_NOW RTLD_NOW
  8792. # else
  8793. # ifdef DL_NOW
  8794. # define LT_DLLAZY_OR_NOW DL_NOW
  8795. # else
  8796. # define LT_DLLAZY_OR_NOW 0
  8797. # endif
  8798. # endif
  8799. # endif
  8800. # endif
  8801. #endif
  8802. void fnord() { int i=42;}
  8803. int main ()
  8804. {
  8805. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  8806. int status = $lt_dlunknown;
  8807. if (self)
  8808. {
  8809. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  8810. else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  8811. /* dlclose (self); */
  8812. }
  8813. else
  8814. puts (dlerror ());
  8815. return status;
  8816. }
  8817. _LT_EOF
  8818. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  8819. (eval $ac_link) 2>&5
  8820. ac_status=$?
  8821. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8822. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  8823. (./conftest; exit; ) >&5 2>/dev/null
  8824. lt_status=$?
  8825. case x$lt_status in
  8826. x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  8827. x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  8828. x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
  8829. esac
  8830. else :
  8831. # compilation failed
  8832. lt_cv_dlopen_self_static=no
  8833. fi
  8834. fi
  8835. rm -fr conftest*
  8836. fi
  8837. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
  8838. $as_echo "$lt_cv_dlopen_self_static" >&6; }
  8839. fi
  8840. CPPFLAGS="$save_CPPFLAGS"
  8841. LDFLAGS="$save_LDFLAGS"
  8842. LIBS="$save_LIBS"
  8843. ;;
  8844. esac
  8845. case $lt_cv_dlopen_self in
  8846. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  8847. *) enable_dlopen_self=unknown ;;
  8848. esac
  8849. case $lt_cv_dlopen_self_static in
  8850. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  8851. *) enable_dlopen_self_static=unknown ;;
  8852. esac
  8853. fi
  8854. striplib=
  8855. old_striplib=
  8856. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
  8857. $as_echo_n "checking whether stripping libraries is possible... " >&6; }
  8858. if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  8859. test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  8860. test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  8861. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  8862. $as_echo "yes" >&6; }
  8863. else
  8864. # FIXME - insert some real tests, host_os isn't really good enough
  8865. case $host_os in
  8866. darwin*)
  8867. if test -n "$STRIP" ; then
  8868. striplib="$STRIP -x"
  8869. old_striplib="$STRIP -S"
  8870. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  8871. $as_echo "yes" >&6; }
  8872. else
  8873. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8874. $as_echo "no" >&6; }
  8875. fi
  8876. ;;
  8877. *)
  8878. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8879. $as_echo "no" >&6; }
  8880. ;;
  8881. esac
  8882. fi
  8883. # Report which library types will actually be built
  8884. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
  8885. $as_echo_n "checking if libtool supports shared libraries... " >&6; }
  8886. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
  8887. $as_echo "$can_build_shared" >&6; }
  8888. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
  8889. $as_echo_n "checking whether to build shared libraries... " >&6; }
  8890. test "$can_build_shared" = "no" && enable_shared=no
  8891. # On AIX, shared libraries and static libraries use the same namespace, and
  8892. # are all built from PIC.
  8893. case $host_os in
  8894. aix3*)
  8895. test "$enable_shared" = yes && enable_static=no
  8896. if test -n "$RANLIB"; then
  8897. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  8898. postinstall_cmds='$RANLIB $lib'
  8899. fi
  8900. ;;
  8901. aix[4-9]*)
  8902. if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  8903. test "$enable_shared" = yes && enable_static=no
  8904. fi
  8905. ;;
  8906. esac
  8907. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
  8908. $as_echo "$enable_shared" >&6; }
  8909. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
  8910. $as_echo_n "checking whether to build static libraries... " >&6; }
  8911. # Make sure either enable_shared or enable_static is yes.
  8912. test "$enable_shared" = yes || enable_static=yes
  8913. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
  8914. $as_echo "$enable_static" >&6; }
  8915. fi
  8916. ac_ext=c
  8917. ac_cpp='$CPP $CPPFLAGS'
  8918. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  8919. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  8920. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  8921. CC="$lt_save_CC"
  8922. ac_config_commands="$ac_config_commands libtool"
  8923. # Only expand once:
  8924. if test -n "$ac_tool_prefix"; then
  8925. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  8926. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  8927. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8928. $as_echo_n "checking for $ac_word... " >&6; }
  8929. if test "${ac_cv_prog_RANLIB+set}" = set; then :
  8930. $as_echo_n "(cached) " >&6
  8931. else
  8932. if test -n "$RANLIB"; then
  8933. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  8934. else
  8935. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8936. for as_dir in $PATH
  8937. do
  8938. IFS=$as_save_IFS
  8939. test -z "$as_dir" && as_dir=.
  8940. for ac_exec_ext in '' $ac_executable_extensions; do
  8941. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  8942. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  8943. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  8944. break 2
  8945. fi
  8946. done
  8947. done
  8948. IFS=$as_save_IFS
  8949. fi
  8950. fi
  8951. RANLIB=$ac_cv_prog_RANLIB
  8952. if test -n "$RANLIB"; then
  8953. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  8954. $as_echo "$RANLIB" >&6; }
  8955. else
  8956. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8957. $as_echo "no" >&6; }
  8958. fi
  8959. fi
  8960. if test -z "$ac_cv_prog_RANLIB"; then
  8961. ac_ct_RANLIB=$RANLIB
  8962. # Extract the first word of "ranlib", so it can be a program name with args.
  8963. set dummy ranlib; ac_word=$2
  8964. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8965. $as_echo_n "checking for $ac_word... " >&6; }
  8966. if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
  8967. $as_echo_n "(cached) " >&6
  8968. else
  8969. if test -n "$ac_ct_RANLIB"; then
  8970. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  8971. else
  8972. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8973. for as_dir in $PATH
  8974. do
  8975. IFS=$as_save_IFS
  8976. test -z "$as_dir" && as_dir=.
  8977. for ac_exec_ext in '' $ac_executable_extensions; do
  8978. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  8979. ac_cv_prog_ac_ct_RANLIB="ranlib"
  8980. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  8981. break 2
  8982. fi
  8983. done
  8984. done
  8985. IFS=$as_save_IFS
  8986. fi
  8987. fi
  8988. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  8989. if test -n "$ac_ct_RANLIB"; then
  8990. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  8991. $as_echo "$ac_ct_RANLIB" >&6; }
  8992. else
  8993. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8994. $as_echo "no" >&6; }
  8995. fi
  8996. if test "x$ac_ct_RANLIB" = x; then
  8997. RANLIB=":"
  8998. else
  8999. case $cross_compiling:$ac_tool_warned in
  9000. yes:)
  9001. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  9002. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  9003. ac_tool_warned=yes ;;
  9004. esac
  9005. RANLIB=$ac_ct_RANLIB
  9006. fi
  9007. else
  9008. RANLIB="$ac_cv_prog_RANLIB"
  9009. fi
  9010. ac_ext=cpp
  9011. ac_cpp='$CXXCPP $CPPFLAGS'
  9012. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  9013. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  9014. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  9015. if test -z "$CXX"; then
  9016. if test -n "$CCC"; then
  9017. CXX=$CCC
  9018. else
  9019. if test -n "$ac_tool_prefix"; then
  9020. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  9021. do
  9022. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  9023. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  9024. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9025. $as_echo_n "checking for $ac_word... " >&6; }
  9026. if test "${ac_cv_prog_CXX+set}" = set; then :
  9027. $as_echo_n "(cached) " >&6
  9028. else
  9029. if test -n "$CXX"; then
  9030. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  9031. else
  9032. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9033. for as_dir in $PATH
  9034. do
  9035. IFS=$as_save_IFS
  9036. test -z "$as_dir" && as_dir=.
  9037. for ac_exec_ext in '' $ac_executable_extensions; do
  9038. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  9039. ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  9040. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9041. break 2
  9042. fi
  9043. done
  9044. done
  9045. IFS=$as_save_IFS
  9046. fi
  9047. fi
  9048. CXX=$ac_cv_prog_CXX
  9049. if test -n "$CXX"; then
  9050. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
  9051. $as_echo "$CXX" >&6; }
  9052. else
  9053. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9054. $as_echo "no" >&6; }
  9055. fi
  9056. test -n "$CXX" && break
  9057. done
  9058. fi
  9059. if test -z "$CXX"; then
  9060. ac_ct_CXX=$CXX
  9061. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  9062. do
  9063. # Extract the first word of "$ac_prog", so it can be a program name with args.
  9064. set dummy $ac_prog; ac_word=$2
  9065. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9066. $as_echo_n "checking for $ac_word... " >&6; }
  9067. if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
  9068. $as_echo_n "(cached) " >&6
  9069. else
  9070. if test -n "$ac_ct_CXX"; then
  9071. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  9072. else
  9073. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9074. for as_dir in $PATH
  9075. do
  9076. IFS=$as_save_IFS
  9077. test -z "$as_dir" && as_dir=.
  9078. for ac_exec_ext in '' $ac_executable_extensions; do
  9079. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  9080. ac_cv_prog_ac_ct_CXX="$ac_prog"
  9081. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9082. break 2
  9083. fi
  9084. done
  9085. done
  9086. IFS=$as_save_IFS
  9087. fi
  9088. fi
  9089. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  9090. if test -n "$ac_ct_CXX"; then
  9091. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
  9092. $as_echo "$ac_ct_CXX" >&6; }
  9093. else
  9094. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9095. $as_echo "no" >&6; }
  9096. fi
  9097. test -n "$ac_ct_CXX" && break
  9098. done
  9099. if test "x$ac_ct_CXX" = x; then
  9100. CXX="g++"
  9101. else
  9102. case $cross_compiling:$ac_tool_warned in
  9103. yes:)
  9104. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  9105. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  9106. ac_tool_warned=yes ;;
  9107. esac
  9108. CXX=$ac_ct_CXX
  9109. fi
  9110. fi
  9111. fi
  9112. fi
  9113. # Provide some information about the compiler.
  9114. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
  9115. set X $ac_compile
  9116. ac_compiler=$2
  9117. for ac_option in --version -v -V -qversion; do
  9118. { { ac_try="$ac_compiler $ac_option >&5"
  9119. case "(($ac_try" in
  9120. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9121. *) ac_try_echo=$ac_try;;
  9122. esac
  9123. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  9124. $as_echo "$ac_try_echo"; } >&5
  9125. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  9126. ac_status=$?
  9127. if test -s conftest.err; then
  9128. sed '10a\
  9129. ... rest of stderr output deleted ...
  9130. 10q' conftest.err >conftest.er1
  9131. cat conftest.er1 >&5
  9132. fi
  9133. rm -f conftest.er1 conftest.err
  9134. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9135. test $ac_status = 0; }
  9136. done
  9137. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
  9138. $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
  9139. if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
  9140. $as_echo_n "(cached) " >&6
  9141. else
  9142. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9143. /* end confdefs.h. */
  9144. int
  9145. main ()
  9146. {
  9147. #ifndef __GNUC__
  9148. choke me
  9149. #endif
  9150. ;
  9151. return 0;
  9152. }
  9153. _ACEOF
  9154. if ac_fn_cxx_try_compile "$LINENO"; then :
  9155. ac_compiler_gnu=yes
  9156. else
  9157. ac_compiler_gnu=no
  9158. fi
  9159. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9160. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  9161. fi
  9162. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
  9163. $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
  9164. if test $ac_compiler_gnu = yes; then
  9165. GXX=yes
  9166. else
  9167. GXX=
  9168. fi
  9169. ac_test_CXXFLAGS=${CXXFLAGS+set}
  9170. ac_save_CXXFLAGS=$CXXFLAGS
  9171. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
  9172. $as_echo_n "checking whether $CXX accepts -g... " >&6; }
  9173. if test "${ac_cv_prog_cxx_g+set}" = set; then :
  9174. $as_echo_n "(cached) " >&6
  9175. else
  9176. ac_save_cxx_werror_flag=$ac_cxx_werror_flag
  9177. ac_cxx_werror_flag=yes
  9178. ac_cv_prog_cxx_g=no
  9179. CXXFLAGS="-g"
  9180. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9181. /* end confdefs.h. */
  9182. int
  9183. main ()
  9184. {
  9185. ;
  9186. return 0;
  9187. }
  9188. _ACEOF
  9189. if ac_fn_cxx_try_compile "$LINENO"; then :
  9190. ac_cv_prog_cxx_g=yes
  9191. else
  9192. CXXFLAGS=""
  9193. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9194. /* end confdefs.h. */
  9195. int
  9196. main ()
  9197. {
  9198. ;
  9199. return 0;
  9200. }
  9201. _ACEOF
  9202. if ac_fn_cxx_try_compile "$LINENO"; then :
  9203. else
  9204. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  9205. CXXFLAGS="-g"
  9206. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9207. /* end confdefs.h. */
  9208. int
  9209. main ()
  9210. {
  9211. ;
  9212. return 0;
  9213. }
  9214. _ACEOF
  9215. if ac_fn_cxx_try_compile "$LINENO"; then :
  9216. ac_cv_prog_cxx_g=yes
  9217. fi
  9218. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9219. fi
  9220. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9221. fi
  9222. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9223. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  9224. fi
  9225. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
  9226. $as_echo "$ac_cv_prog_cxx_g" >&6; }
  9227. if test "$ac_test_CXXFLAGS" = set; then
  9228. CXXFLAGS=$ac_save_CXXFLAGS
  9229. elif test $ac_cv_prog_cxx_g = yes; then
  9230. if test "$GXX" = yes; then
  9231. CXXFLAGS="-g -O2"
  9232. else
  9233. CXXFLAGS="-g"
  9234. fi
  9235. else
  9236. if test "$GXX" = yes; then
  9237. CXXFLAGS="-O2"
  9238. else
  9239. CXXFLAGS=
  9240. fi
  9241. fi
  9242. ac_ext=c
  9243. ac_cpp='$CPP $CPPFLAGS'
  9244. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  9245. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  9246. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  9247. depcc="$CXX" am_compiler_list=
  9248. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  9249. $as_echo_n "checking dependency style of $depcc... " >&6; }
  9250. if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
  9251. $as_echo_n "(cached) " >&6
  9252. else
  9253. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  9254. # We make a subdir and do the tests there. Otherwise we can end up
  9255. # making bogus files that we don't know about and never remove. For
  9256. # instance it was reported that on HP-UX the gcc test will end up
  9257. # making a dummy file named `D' -- because `-MD' means `put the output
  9258. # in D'.
  9259. mkdir conftest.dir
  9260. # Copy depcomp to subdir because otherwise we won't find it if we're
  9261. # using a relative directory.
  9262. cp "$am_depcomp" conftest.dir
  9263. cd conftest.dir
  9264. # We will build objects and dependencies in a subdirectory because
  9265. # it helps to detect inapplicable dependency modes. For instance
  9266. # both Tru64's cc and ICC support -MD to output dependencies as a
  9267. # side effect of compilation, but ICC will put the dependencies in
  9268. # the current directory while Tru64 will put them in the object
  9269. # directory.
  9270. mkdir sub
  9271. am_cv_CXX_dependencies_compiler_type=none
  9272. if test "$am_compiler_list" = ""; then
  9273. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  9274. fi
  9275. am__universal=false
  9276. case " $depcc " in #(
  9277. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  9278. esac
  9279. for depmode in $am_compiler_list; do
  9280. # Setup a source with many dependencies, because some compilers
  9281. # like to wrap large dependency lists on column 80 (with \), and
  9282. # we should not choose a depcomp mode which is confused by this.
  9283. #
  9284. # We need to recreate these files for each test, as the compiler may
  9285. # overwrite some of them when testing with obscure command lines.
  9286. # This happens at least with the AIX C compiler.
  9287. : > sub/conftest.c
  9288. for i in 1 2 3 4 5 6; do
  9289. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  9290. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  9291. # Solaris 8's {/usr,}/bin/sh.
  9292. touch sub/conftst$i.h
  9293. done
  9294. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  9295. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  9296. # mode. It turns out that the SunPro C++ compiler does not properly
  9297. # handle `-M -o', and we need to detect this. Also, some Intel
  9298. # versions had trouble with output in subdirs
  9299. am__obj=sub/conftest.${OBJEXT-o}
  9300. am__minus_obj="-o $am__obj"
  9301. case $depmode in
  9302. gcc)
  9303. # This depmode causes a compiler race in universal mode.
  9304. test "$am__universal" = false || continue
  9305. ;;
  9306. nosideeffect)
  9307. # after this tag, mechanisms are not by side-effect, so they'll
  9308. # only be used when explicitly requested
  9309. if test "x$enable_dependency_tracking" = xyes; then
  9310. continue
  9311. else
  9312. break
  9313. fi
  9314. ;;
  9315. msvisualcpp | msvcmsys)
  9316. # This compiler won't grok `-c -o', but also, the minuso test has
  9317. # not run yet. These depmodes are late enough in the game, and
  9318. # so weak that their functioning should not be impacted.
  9319. am__obj=conftest.${OBJEXT-o}
  9320. am__minus_obj=
  9321. ;;
  9322. none) break ;;
  9323. esac
  9324. if depmode=$depmode \
  9325. source=sub/conftest.c object=$am__obj \
  9326. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  9327. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  9328. >/dev/null 2>conftest.err &&
  9329. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  9330. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  9331. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  9332. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  9333. # icc doesn't choke on unknown options, it will just issue warnings
  9334. # or remarks (even with -Werror). So we grep stderr for any message
  9335. # that says an option was ignored or not supported.
  9336. # When given -MP, icc 7.0 and 7.1 complain thusly:
  9337. # icc: Command line warning: ignoring option '-M'; no argument required
  9338. # The diagnosis changed in icc 8.0:
  9339. # icc: Command line remark: option '-MP' not supported
  9340. if (grep 'ignoring option' conftest.err ||
  9341. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  9342. am_cv_CXX_dependencies_compiler_type=$depmode
  9343. break
  9344. fi
  9345. fi
  9346. done
  9347. cd ..
  9348. rm -rf conftest.dir
  9349. else
  9350. am_cv_CXX_dependencies_compiler_type=none
  9351. fi
  9352. fi
  9353. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
  9354. $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
  9355. CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
  9356. if
  9357. test "x$enable_dependency_tracking" != xno \
  9358. && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
  9359. am__fastdepCXX_TRUE=
  9360. am__fastdepCXX_FALSE='#'
  9361. else
  9362. am__fastdepCXX_TRUE='#'
  9363. am__fastdepCXX_FALSE=
  9364. fi
  9365. ac_ext=cpp
  9366. ac_cpp='$CXXCPP $CPPFLAGS'
  9367. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  9368. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  9369. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  9370. if test -z "$CXX"; then
  9371. if test -n "$CCC"; then
  9372. CXX=$CCC
  9373. else
  9374. if test -n "$ac_tool_prefix"; then
  9375. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  9376. do
  9377. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  9378. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  9379. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9380. $as_echo_n "checking for $ac_word... " >&6; }
  9381. if test "${ac_cv_prog_CXX+set}" = set; then :
  9382. $as_echo_n "(cached) " >&6
  9383. else
  9384. if test -n "$CXX"; then
  9385. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  9386. else
  9387. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9388. for as_dir in $PATH
  9389. do
  9390. IFS=$as_save_IFS
  9391. test -z "$as_dir" && as_dir=.
  9392. for ac_exec_ext in '' $ac_executable_extensions; do
  9393. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  9394. ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  9395. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9396. break 2
  9397. fi
  9398. done
  9399. done
  9400. IFS=$as_save_IFS
  9401. fi
  9402. fi
  9403. CXX=$ac_cv_prog_CXX
  9404. if test -n "$CXX"; then
  9405. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
  9406. $as_echo "$CXX" >&6; }
  9407. else
  9408. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9409. $as_echo "no" >&6; }
  9410. fi
  9411. test -n "$CXX" && break
  9412. done
  9413. fi
  9414. if test -z "$CXX"; then
  9415. ac_ct_CXX=$CXX
  9416. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  9417. do
  9418. # Extract the first word of "$ac_prog", so it can be a program name with args.
  9419. set dummy $ac_prog; ac_word=$2
  9420. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9421. $as_echo_n "checking for $ac_word... " >&6; }
  9422. if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
  9423. $as_echo_n "(cached) " >&6
  9424. else
  9425. if test -n "$ac_ct_CXX"; then
  9426. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  9427. else
  9428. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9429. for as_dir in $PATH
  9430. do
  9431. IFS=$as_save_IFS
  9432. test -z "$as_dir" && as_dir=.
  9433. for ac_exec_ext in '' $ac_executable_extensions; do
  9434. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  9435. ac_cv_prog_ac_ct_CXX="$ac_prog"
  9436. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9437. break 2
  9438. fi
  9439. done
  9440. done
  9441. IFS=$as_save_IFS
  9442. fi
  9443. fi
  9444. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  9445. if test -n "$ac_ct_CXX"; then
  9446. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
  9447. $as_echo "$ac_ct_CXX" >&6; }
  9448. else
  9449. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9450. $as_echo "no" >&6; }
  9451. fi
  9452. test -n "$ac_ct_CXX" && break
  9453. done
  9454. if test "x$ac_ct_CXX" = x; then
  9455. CXX="g++"
  9456. else
  9457. case $cross_compiling:$ac_tool_warned in
  9458. yes:)
  9459. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  9460. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  9461. ac_tool_warned=yes ;;
  9462. esac
  9463. CXX=$ac_ct_CXX
  9464. fi
  9465. fi
  9466. fi
  9467. fi
  9468. # Provide some information about the compiler.
  9469. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
  9470. set X $ac_compile
  9471. ac_compiler=$2
  9472. for ac_option in --version -v -V -qversion; do
  9473. { { ac_try="$ac_compiler $ac_option >&5"
  9474. case "(($ac_try" in
  9475. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9476. *) ac_try_echo=$ac_try;;
  9477. esac
  9478. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  9479. $as_echo "$ac_try_echo"; } >&5
  9480. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  9481. ac_status=$?
  9482. if test -s conftest.err; then
  9483. sed '10a\
  9484. ... rest of stderr output deleted ...
  9485. 10q' conftest.err >conftest.er1
  9486. cat conftest.er1 >&5
  9487. fi
  9488. rm -f conftest.er1 conftest.err
  9489. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9490. test $ac_status = 0; }
  9491. done
  9492. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
  9493. $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
  9494. if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
  9495. $as_echo_n "(cached) " >&6
  9496. else
  9497. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9498. /* end confdefs.h. */
  9499. int
  9500. main ()
  9501. {
  9502. #ifndef __GNUC__
  9503. choke me
  9504. #endif
  9505. ;
  9506. return 0;
  9507. }
  9508. _ACEOF
  9509. if ac_fn_cxx_try_compile "$LINENO"; then :
  9510. ac_compiler_gnu=yes
  9511. else
  9512. ac_compiler_gnu=no
  9513. fi
  9514. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9515. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  9516. fi
  9517. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
  9518. $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
  9519. if test $ac_compiler_gnu = yes; then
  9520. GXX=yes
  9521. else
  9522. GXX=
  9523. fi
  9524. ac_test_CXXFLAGS=${CXXFLAGS+set}
  9525. ac_save_CXXFLAGS=$CXXFLAGS
  9526. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
  9527. $as_echo_n "checking whether $CXX accepts -g... " >&6; }
  9528. if test "${ac_cv_prog_cxx_g+set}" = set; then :
  9529. $as_echo_n "(cached) " >&6
  9530. else
  9531. ac_save_cxx_werror_flag=$ac_cxx_werror_flag
  9532. ac_cxx_werror_flag=yes
  9533. ac_cv_prog_cxx_g=no
  9534. CXXFLAGS="-g"
  9535. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9536. /* end confdefs.h. */
  9537. int
  9538. main ()
  9539. {
  9540. ;
  9541. return 0;
  9542. }
  9543. _ACEOF
  9544. if ac_fn_cxx_try_compile "$LINENO"; then :
  9545. ac_cv_prog_cxx_g=yes
  9546. else
  9547. CXXFLAGS=""
  9548. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9549. /* end confdefs.h. */
  9550. int
  9551. main ()
  9552. {
  9553. ;
  9554. return 0;
  9555. }
  9556. _ACEOF
  9557. if ac_fn_cxx_try_compile "$LINENO"; then :
  9558. else
  9559. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  9560. CXXFLAGS="-g"
  9561. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9562. /* end confdefs.h. */
  9563. int
  9564. main ()
  9565. {
  9566. ;
  9567. return 0;
  9568. }
  9569. _ACEOF
  9570. if ac_fn_cxx_try_compile "$LINENO"; then :
  9571. ac_cv_prog_cxx_g=yes
  9572. fi
  9573. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9574. fi
  9575. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9576. fi
  9577. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9578. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  9579. fi
  9580. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
  9581. $as_echo "$ac_cv_prog_cxx_g" >&6; }
  9582. if test "$ac_test_CXXFLAGS" = set; then
  9583. CXXFLAGS=$ac_save_CXXFLAGS
  9584. elif test $ac_cv_prog_cxx_g = yes; then
  9585. if test "$GXX" = yes; then
  9586. CXXFLAGS="-g -O2"
  9587. else
  9588. CXXFLAGS="-g"
  9589. fi
  9590. else
  9591. if test "$GXX" = yes; then
  9592. CXXFLAGS="-O2"
  9593. else
  9594. CXXFLAGS=
  9595. fi
  9596. fi
  9597. ac_ext=c
  9598. ac_cpp='$CPP $CPPFLAGS'
  9599. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  9600. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  9601. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  9602. depcc="$CXX" am_compiler_list=
  9603. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  9604. $as_echo_n "checking dependency style of $depcc... " >&6; }
  9605. if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
  9606. $as_echo_n "(cached) " >&6
  9607. else
  9608. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  9609. # We make a subdir and do the tests there. Otherwise we can end up
  9610. # making bogus files that we don't know about and never remove. For
  9611. # instance it was reported that on HP-UX the gcc test will end up
  9612. # making a dummy file named `D' -- because `-MD' means `put the output
  9613. # in D'.
  9614. mkdir conftest.dir
  9615. # Copy depcomp to subdir because otherwise we won't find it if we're
  9616. # using a relative directory.
  9617. cp "$am_depcomp" conftest.dir
  9618. cd conftest.dir
  9619. # We will build objects and dependencies in a subdirectory because
  9620. # it helps to detect inapplicable dependency modes. For instance
  9621. # both Tru64's cc and ICC support -MD to output dependencies as a
  9622. # side effect of compilation, but ICC will put the dependencies in
  9623. # the current directory while Tru64 will put them in the object
  9624. # directory.
  9625. mkdir sub
  9626. am_cv_CXX_dependencies_compiler_type=none
  9627. if test "$am_compiler_list" = ""; then
  9628. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  9629. fi
  9630. am__universal=false
  9631. case " $depcc " in #(
  9632. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  9633. esac
  9634. for depmode in $am_compiler_list; do
  9635. # Setup a source with many dependencies, because some compilers
  9636. # like to wrap large dependency lists on column 80 (with \), and
  9637. # we should not choose a depcomp mode which is confused by this.
  9638. #
  9639. # We need to recreate these files for each test, as the compiler may
  9640. # overwrite some of them when testing with obscure command lines.
  9641. # This happens at least with the AIX C compiler.
  9642. : > sub/conftest.c
  9643. for i in 1 2 3 4 5 6; do
  9644. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  9645. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  9646. # Solaris 8's {/usr,}/bin/sh.
  9647. touch sub/conftst$i.h
  9648. done
  9649. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  9650. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  9651. # mode. It turns out that the SunPro C++ compiler does not properly
  9652. # handle `-M -o', and we need to detect this. Also, some Intel
  9653. # versions had trouble with output in subdirs
  9654. am__obj=sub/conftest.${OBJEXT-o}
  9655. am__minus_obj="-o $am__obj"
  9656. case $depmode in
  9657. gcc)
  9658. # This depmode causes a compiler race in universal mode.
  9659. test "$am__universal" = false || continue
  9660. ;;
  9661. nosideeffect)
  9662. # after this tag, mechanisms are not by side-effect, so they'll
  9663. # only be used when explicitly requested
  9664. if test "x$enable_dependency_tracking" = xyes; then
  9665. continue
  9666. else
  9667. break
  9668. fi
  9669. ;;
  9670. msvisualcpp | msvcmsys)
  9671. # This compiler won't grok `-c -o', but also, the minuso test has
  9672. # not run yet. These depmodes are late enough in the game, and
  9673. # so weak that their functioning should not be impacted.
  9674. am__obj=conftest.${OBJEXT-o}
  9675. am__minus_obj=
  9676. ;;
  9677. none) break ;;
  9678. esac
  9679. if depmode=$depmode \
  9680. source=sub/conftest.c object=$am__obj \
  9681. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  9682. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  9683. >/dev/null 2>conftest.err &&
  9684. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  9685. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  9686. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  9687. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  9688. # icc doesn't choke on unknown options, it will just issue warnings
  9689. # or remarks (even with -Werror). So we grep stderr for any message
  9690. # that says an option was ignored or not supported.
  9691. # When given -MP, icc 7.0 and 7.1 complain thusly:
  9692. # icc: Command line warning: ignoring option '-M'; no argument required
  9693. # The diagnosis changed in icc 8.0:
  9694. # icc: Command line remark: option '-MP' not supported
  9695. if (grep 'ignoring option' conftest.err ||
  9696. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  9697. am_cv_CXX_dependencies_compiler_type=$depmode
  9698. break
  9699. fi
  9700. fi
  9701. done
  9702. cd ..
  9703. rm -rf conftest.dir
  9704. else
  9705. am_cv_CXX_dependencies_compiler_type=none
  9706. fi
  9707. fi
  9708. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
  9709. $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
  9710. CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
  9711. if
  9712. test "x$enable_dependency_tracking" != xno \
  9713. && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
  9714. am__fastdepCXX_TRUE=
  9715. am__fastdepCXX_FALSE='#'
  9716. else
  9717. am__fastdepCXX_TRUE='#'
  9718. am__fastdepCXX_FALSE=
  9719. fi
  9720. if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
  9721. ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
  9722. (test "X$CXX" != "Xg++"))) ; then
  9723. ac_ext=cpp
  9724. ac_cpp='$CXXCPP $CPPFLAGS'
  9725. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  9726. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  9727. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  9728. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
  9729. $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
  9730. if test -z "$CXXCPP"; then
  9731. if test "${ac_cv_prog_CXXCPP+set}" = set; then :
  9732. $as_echo_n "(cached) " >&6
  9733. else
  9734. # Double quotes because CXXCPP needs to be expanded
  9735. for CXXCPP in "$CXX -E" "/lib/cpp"
  9736. do
  9737. ac_preproc_ok=false
  9738. for ac_cxx_preproc_warn_flag in '' yes
  9739. do
  9740. # Use a header file that comes with gcc, so configuring glibc
  9741. # with a fresh cross-compiler works.
  9742. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  9743. # <limits.h> exists even on freestanding compilers.
  9744. # On the NeXT, cc -E runs the code through the compiler's parser,
  9745. # not just through cpp. "Syntax error" is here to catch this case.
  9746. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9747. /* end confdefs.h. */
  9748. #ifdef __STDC__
  9749. # include <limits.h>
  9750. #else
  9751. # include <assert.h>
  9752. #endif
  9753. Syntax error
  9754. _ACEOF
  9755. if ac_fn_cxx_try_cpp "$LINENO"; then :
  9756. else
  9757. # Broken: fails on valid input.
  9758. continue
  9759. fi
  9760. rm -f conftest.err conftest.i conftest.$ac_ext
  9761. # OK, works on sane cases. Now check whether nonexistent headers
  9762. # can be detected and how.
  9763. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9764. /* end confdefs.h. */
  9765. #include <ac_nonexistent.h>
  9766. _ACEOF
  9767. if ac_fn_cxx_try_cpp "$LINENO"; then :
  9768. # Broken: success on invalid input.
  9769. continue
  9770. else
  9771. # Passes both tests.
  9772. ac_preproc_ok=:
  9773. break
  9774. fi
  9775. rm -f conftest.err conftest.i conftest.$ac_ext
  9776. done
  9777. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  9778. rm -f conftest.i conftest.err conftest.$ac_ext
  9779. if $ac_preproc_ok; then :
  9780. break
  9781. fi
  9782. done
  9783. ac_cv_prog_CXXCPP=$CXXCPP
  9784. fi
  9785. CXXCPP=$ac_cv_prog_CXXCPP
  9786. else
  9787. ac_cv_prog_CXXCPP=$CXXCPP
  9788. fi
  9789. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
  9790. $as_echo "$CXXCPP" >&6; }
  9791. ac_preproc_ok=false
  9792. for ac_cxx_preproc_warn_flag in '' yes
  9793. do
  9794. # Use a header file that comes with gcc, so configuring glibc
  9795. # with a fresh cross-compiler works.
  9796. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  9797. # <limits.h> exists even on freestanding compilers.
  9798. # On the NeXT, cc -E runs the code through the compiler's parser,
  9799. # not just through cpp. "Syntax error" is here to catch this case.
  9800. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9801. /* end confdefs.h. */
  9802. #ifdef __STDC__
  9803. # include <limits.h>
  9804. #else
  9805. # include <assert.h>
  9806. #endif
  9807. Syntax error
  9808. _ACEOF
  9809. if ac_fn_cxx_try_cpp "$LINENO"; then :
  9810. else
  9811. # Broken: fails on valid input.
  9812. continue
  9813. fi
  9814. rm -f conftest.err conftest.i conftest.$ac_ext
  9815. # OK, works on sane cases. Now check whether nonexistent headers
  9816. # can be detected and how.
  9817. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9818. /* end confdefs.h. */
  9819. #include <ac_nonexistent.h>
  9820. _ACEOF
  9821. if ac_fn_cxx_try_cpp "$LINENO"; then :
  9822. # Broken: success on invalid input.
  9823. continue
  9824. else
  9825. # Passes both tests.
  9826. ac_preproc_ok=:
  9827. break
  9828. fi
  9829. rm -f conftest.err conftest.i conftest.$ac_ext
  9830. done
  9831. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  9832. rm -f conftest.i conftest.err conftest.$ac_ext
  9833. if $ac_preproc_ok; then :
  9834. else
  9835. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  9836. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  9837. _lt_caught_CXX_error=yes; }
  9838. fi
  9839. ac_ext=c
  9840. ac_cpp='$CPP $CPPFLAGS'
  9841. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  9842. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  9843. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  9844. else
  9845. _lt_caught_CXX_error=yes
  9846. fi
  9847. ac_ext=cpp
  9848. ac_cpp='$CXXCPP $CPPFLAGS'
  9849. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  9850. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  9851. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  9852. archive_cmds_need_lc_CXX=no
  9853. allow_undefined_flag_CXX=
  9854. always_export_symbols_CXX=no
  9855. archive_expsym_cmds_CXX=
  9856. compiler_needs_object_CXX=no
  9857. export_dynamic_flag_spec_CXX=
  9858. hardcode_direct_CXX=no
  9859. hardcode_direct_absolute_CXX=no
  9860. hardcode_libdir_flag_spec_CXX=
  9861. hardcode_libdir_flag_spec_ld_CXX=
  9862. hardcode_libdir_separator_CXX=
  9863. hardcode_minus_L_CXX=no
  9864. hardcode_shlibpath_var_CXX=unsupported
  9865. hardcode_automatic_CXX=no
  9866. inherit_rpath_CXX=no
  9867. module_cmds_CXX=
  9868. module_expsym_cmds_CXX=
  9869. link_all_deplibs_CXX=unknown
  9870. old_archive_cmds_CXX=$old_archive_cmds
  9871. no_undefined_flag_CXX=
  9872. whole_archive_flag_spec_CXX=
  9873. enable_shared_with_static_runtimes_CXX=no
  9874. # Source file extension for C++ test sources.
  9875. ac_ext=cpp
  9876. # Object file extension for compiled C++ test sources.
  9877. objext=o
  9878. objext_CXX=$objext
  9879. # No sense in running all these tests if we already determined that
  9880. # the CXX compiler isn't working. Some variables (like enable_shared)
  9881. # are currently assumed to apply to all compilers on this platform,
  9882. # and will be corrupted by setting them based on a non-working compiler.
  9883. if test "$_lt_caught_CXX_error" != yes; then
  9884. # Code to be used in simple compile tests
  9885. lt_simple_compile_test_code="int some_variable = 0;"
  9886. # Code to be used in simple link tests
  9887. lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
  9888. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  9889. # If no C compiler was specified, use CC.
  9890. LTCC=${LTCC-"$CC"}
  9891. # If no C compiler flags were specified, use CFLAGS.
  9892. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  9893. # Allow CC to be a program name with arguments.
  9894. compiler=$CC
  9895. # save warnings/boilerplate of simple test code
  9896. ac_outfile=conftest.$ac_objext
  9897. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  9898. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  9899. _lt_compiler_boilerplate=`cat conftest.err`
  9900. $RM conftest*
  9901. ac_outfile=conftest.$ac_objext
  9902. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  9903. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  9904. _lt_linker_boilerplate=`cat conftest.err`
  9905. $RM -r conftest*
  9906. # Allow CC to be a program name with arguments.
  9907. lt_save_CC=$CC
  9908. lt_save_LD=$LD
  9909. lt_save_GCC=$GCC
  9910. GCC=$GXX
  9911. lt_save_with_gnu_ld=$with_gnu_ld
  9912. lt_save_path_LD=$lt_cv_path_LD
  9913. if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
  9914. lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
  9915. else
  9916. $as_unset lt_cv_prog_gnu_ld
  9917. fi
  9918. if test -n "${lt_cv_path_LDCXX+set}"; then
  9919. lt_cv_path_LD=$lt_cv_path_LDCXX
  9920. else
  9921. $as_unset lt_cv_path_LD
  9922. fi
  9923. test -z "${LDCXX+set}" || LD=$LDCXX
  9924. CC=${CXX-"c++"}
  9925. compiler=$CC
  9926. compiler_CXX=$CC
  9927. for cc_temp in $compiler""; do
  9928. case $cc_temp in
  9929. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  9930. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  9931. \-*) ;;
  9932. *) break;;
  9933. esac
  9934. done
  9935. cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  9936. if test -n "$compiler"; then
  9937. # We don't want -fno-exception when compiling C++ code, so set the
  9938. # no_builtin_flag separately
  9939. if test "$GXX" = yes; then
  9940. lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
  9941. else
  9942. lt_prog_compiler_no_builtin_flag_CXX=
  9943. fi
  9944. if test "$GXX" = yes; then
  9945. # Set up default GNU C++ configuration
  9946. # Check whether --with-gnu-ld was given.
  9947. if test "${with_gnu_ld+set}" = set; then :
  9948. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  9949. else
  9950. with_gnu_ld=no
  9951. fi
  9952. ac_prog=ld
  9953. if test "$GCC" = yes; then
  9954. # Check if gcc -print-prog-name=ld gives a path.
  9955. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  9956. $as_echo_n "checking for ld used by $CC... " >&6; }
  9957. case $host in
  9958. *-*-mingw*)
  9959. # gcc leaves a trailing carriage return which upsets mingw
  9960. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  9961. *)
  9962. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  9963. esac
  9964. case $ac_prog in
  9965. # Accept absolute paths.
  9966. [\\/]* | ?:[\\/]*)
  9967. re_direlt='/[^/][^/]*/\.\./'
  9968. # Canonicalize the pathname of ld
  9969. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  9970. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  9971. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  9972. done
  9973. test -z "$LD" && LD="$ac_prog"
  9974. ;;
  9975. "")
  9976. # If it fails, then pretend we aren't using GCC.
  9977. ac_prog=ld
  9978. ;;
  9979. *)
  9980. # If it is relative, then search for the first ld in PATH.
  9981. with_gnu_ld=unknown
  9982. ;;
  9983. esac
  9984. elif test "$with_gnu_ld" = yes; then
  9985. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  9986. $as_echo_n "checking for GNU ld... " >&6; }
  9987. else
  9988. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  9989. $as_echo_n "checking for non-GNU ld... " >&6; }
  9990. fi
  9991. if test "${lt_cv_path_LD+set}" = set; then :
  9992. $as_echo_n "(cached) " >&6
  9993. else
  9994. if test -z "$LD"; then
  9995. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  9996. for ac_dir in $PATH; do
  9997. IFS="$lt_save_ifs"
  9998. test -z "$ac_dir" && ac_dir=.
  9999. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  10000. lt_cv_path_LD="$ac_dir/$ac_prog"
  10001. # Check to see if the program is GNU ld. I'd rather use --version,
  10002. # but apparently some variants of GNU ld only accept -v.
  10003. # Break only if it was the GNU/non-GNU ld that we prefer.
  10004. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  10005. *GNU* | *'with BFD'*)
  10006. test "$with_gnu_ld" != no && break
  10007. ;;
  10008. *)
  10009. test "$with_gnu_ld" != yes && break
  10010. ;;
  10011. esac
  10012. fi
  10013. done
  10014. IFS="$lt_save_ifs"
  10015. else
  10016. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  10017. fi
  10018. fi
  10019. LD="$lt_cv_path_LD"
  10020. if test -n "$LD"; then
  10021. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  10022. $as_echo "$LD" >&6; }
  10023. else
  10024. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10025. $as_echo "no" >&6; }
  10026. fi
  10027. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  10028. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  10029. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  10030. if test "${lt_cv_prog_gnu_ld+set}" = set; then :
  10031. $as_echo_n "(cached) " >&6
  10032. else
  10033. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  10034. case `$LD -v 2>&1 </dev/null` in
  10035. *GNU* | *'with BFD'*)
  10036. lt_cv_prog_gnu_ld=yes
  10037. ;;
  10038. *)
  10039. lt_cv_prog_gnu_ld=no
  10040. ;;
  10041. esac
  10042. fi
  10043. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  10044. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  10045. with_gnu_ld=$lt_cv_prog_gnu_ld
  10046. # Check if GNU C++ uses GNU ld as the underlying linker, since the
  10047. # archiving commands below assume that GNU ld is being used.
  10048. if test "$with_gnu_ld" = yes; then
  10049. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  10050. archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  10051. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  10052. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  10053. # If archive_cmds runs LD, not CC, wlarc should be empty
  10054. # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
  10055. # investigate it a little bit more. (MM)
  10056. wlarc='${wl}'
  10057. # ancient GNU ld didn't support --whole-archive et. al.
  10058. if eval "`$CC -print-prog-name=ld` --help 2>&1" |
  10059. $GREP 'no-whole-archive' > /dev/null; then
  10060. whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  10061. else
  10062. whole_archive_flag_spec_CXX=
  10063. fi
  10064. else
  10065. with_gnu_ld=no
  10066. wlarc=
  10067. # A generic and very simple default shared library creation
  10068. # command for GNU C++ for the case where it uses the native
  10069. # linker, instead of GNU ld. If possible, this setting should
  10070. # overridden to take advantage of the native linker features on
  10071. # the platform it is being used on.
  10072. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  10073. fi
  10074. # Commands to make compiler produce verbose output that lists
  10075. # what "hidden" libraries, object files and flags are used when
  10076. # linking a shared library.
  10077. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
  10078. else
  10079. GXX=no
  10080. with_gnu_ld=no
  10081. wlarc=
  10082. fi
  10083. # PORTME: fill in a description of your system's C++ link characteristics
  10084. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  10085. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  10086. ld_shlibs_CXX=yes
  10087. case $host_os in
  10088. aix3*)
  10089. # FIXME: insert proper C++ library support
  10090. ld_shlibs_CXX=no
  10091. ;;
  10092. aix[4-9]*)
  10093. if test "$host_cpu" = ia64; then
  10094. # On IA64, the linker does run time linking by default, so we don't
  10095. # have to do anything special.
  10096. aix_use_runtimelinking=no
  10097. exp_sym_flag='-Bexport'
  10098. no_entry_flag=""
  10099. else
  10100. aix_use_runtimelinking=no
  10101. # Test if we are trying to use run time linking or normal
  10102. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  10103. # need to do runtime linking.
  10104. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  10105. for ld_flag in $LDFLAGS; do
  10106. case $ld_flag in
  10107. *-brtl*)
  10108. aix_use_runtimelinking=yes
  10109. break
  10110. ;;
  10111. esac
  10112. done
  10113. ;;
  10114. esac
  10115. exp_sym_flag='-bexport'
  10116. no_entry_flag='-bnoentry'
  10117. fi
  10118. # When large executables or shared objects are built, AIX ld can
  10119. # have problems creating the table of contents. If linking a library
  10120. # or program results in "error TOC overflow" add -mminimal-toc to
  10121. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  10122. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  10123. archive_cmds_CXX=''
  10124. hardcode_direct_CXX=yes
  10125. hardcode_direct_absolute_CXX=yes
  10126. hardcode_libdir_separator_CXX=':'
  10127. link_all_deplibs_CXX=yes
  10128. file_list_spec_CXX='${wl}-f,'
  10129. if test "$GXX" = yes; then
  10130. case $host_os in aix4.[012]|aix4.[012].*)
  10131. # We only want to do this on AIX 4.2 and lower, the check
  10132. # below for broken collect2 doesn't work under 4.3+
  10133. collect2name=`${CC} -print-prog-name=collect2`
  10134. if test -f "$collect2name" &&
  10135. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  10136. then
  10137. # We have reworked collect2
  10138. :
  10139. else
  10140. # We have old collect2
  10141. hardcode_direct_CXX=unsupported
  10142. # It fails to find uninstalled libraries when the uninstalled
  10143. # path is not listed in the libpath. Setting hardcode_minus_L
  10144. # to unsupported forces relinking
  10145. hardcode_minus_L_CXX=yes
  10146. hardcode_libdir_flag_spec_CXX='-L$libdir'
  10147. hardcode_libdir_separator_CXX=
  10148. fi
  10149. esac
  10150. shared_flag='-shared'
  10151. if test "$aix_use_runtimelinking" = yes; then
  10152. shared_flag="$shared_flag "'${wl}-G'
  10153. fi
  10154. else
  10155. # not using gcc
  10156. if test "$host_cpu" = ia64; then
  10157. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  10158. # chokes on -Wl,-G. The following line is correct:
  10159. shared_flag='-G'
  10160. else
  10161. if test "$aix_use_runtimelinking" = yes; then
  10162. shared_flag='${wl}-G'
  10163. else
  10164. shared_flag='${wl}-bM:SRE'
  10165. fi
  10166. fi
  10167. fi
  10168. export_dynamic_flag_spec_CXX='${wl}-bexpall'
  10169. # It seems that -bexpall does not export symbols beginning with
  10170. # underscore (_), so it is better to generate a list of symbols to
  10171. # export.
  10172. always_export_symbols_CXX=yes
  10173. if test "$aix_use_runtimelinking" = yes; then
  10174. # Warning - without using the other runtime loading flags (-brtl),
  10175. # -berok will link without error, but may produce a broken library.
  10176. allow_undefined_flag_CXX='-berok'
  10177. # Determine the default libpath from the value encoded in an empty
  10178. # executable.
  10179. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10180. /* end confdefs.h. */
  10181. int
  10182. main ()
  10183. {
  10184. ;
  10185. return 0;
  10186. }
  10187. _ACEOF
  10188. if ac_fn_cxx_try_link "$LINENO"; then :
  10189. lt_aix_libpath_sed='
  10190. /Import File Strings/,/^$/ {
  10191. /^0/ {
  10192. s/^0 *\(.*\)$/\1/
  10193. p
  10194. }
  10195. }'
  10196. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  10197. # Check for a 64-bit object if we didn't find anything.
  10198. if test -z "$aix_libpath"; then
  10199. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  10200. fi
  10201. fi
  10202. rm -f core conftest.err conftest.$ac_objext \
  10203. conftest$ac_exeext conftest.$ac_ext
  10204. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  10205. hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
  10206. archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
  10207. else
  10208. if test "$host_cpu" = ia64; then
  10209. hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
  10210. allow_undefined_flag_CXX="-z nodefs"
  10211. 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"
  10212. else
  10213. # Determine the default libpath from the value encoded in an
  10214. # empty executable.
  10215. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10216. /* end confdefs.h. */
  10217. int
  10218. main ()
  10219. {
  10220. ;
  10221. return 0;
  10222. }
  10223. _ACEOF
  10224. if ac_fn_cxx_try_link "$LINENO"; then :
  10225. lt_aix_libpath_sed='
  10226. /Import File Strings/,/^$/ {
  10227. /^0/ {
  10228. s/^0 *\(.*\)$/\1/
  10229. p
  10230. }
  10231. }'
  10232. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  10233. # Check for a 64-bit object if we didn't find anything.
  10234. if test -z "$aix_libpath"; then
  10235. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  10236. fi
  10237. fi
  10238. rm -f core conftest.err conftest.$ac_objext \
  10239. conftest$ac_exeext conftest.$ac_ext
  10240. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  10241. hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
  10242. # Warning - without using the other run time loading flags,
  10243. # -berok will link without error, but may produce a broken library.
  10244. no_undefined_flag_CXX=' ${wl}-bernotok'
  10245. allow_undefined_flag_CXX=' ${wl}-berok'
  10246. # Exported symbols can be pulled into shared objects from archives
  10247. whole_archive_flag_spec_CXX='$convenience'
  10248. archive_cmds_need_lc_CXX=yes
  10249. # This is similar to how AIX traditionally builds its shared
  10250. # libraries.
  10251. archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
  10252. fi
  10253. fi
  10254. ;;
  10255. beos*)
  10256. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  10257. allow_undefined_flag_CXX=unsupported
  10258. # Joseph Beckenbach <[email protected]> says some releases of gcc
  10259. # support --undefined. This deserves some investigation. FIXME
  10260. archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  10261. else
  10262. ld_shlibs_CXX=no
  10263. fi
  10264. ;;
  10265. chorus*)
  10266. case $cc_basename in
  10267. *)
  10268. # FIXME: insert proper C++ library support
  10269. ld_shlibs_CXX=no
  10270. ;;
  10271. esac
  10272. ;;
  10273. cygwin* | mingw* | pw32* | cegcc*)
  10274. # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
  10275. # as there is no search path for DLLs.
  10276. hardcode_libdir_flag_spec_CXX='-L$libdir'
  10277. allow_undefined_flag_CXX=unsupported
  10278. always_export_symbols_CXX=no
  10279. enable_shared_with_static_runtimes_CXX=yes
  10280. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  10281. 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'
  10282. # If the export-symbols file already is a .def file (1st line
  10283. # is EXPORTS), use it as is; otherwise, prepend...
  10284. archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  10285. cp $export_symbols $output_objdir/$soname.def;
  10286. else
  10287. echo EXPORTS > $output_objdir/$soname.def;
  10288. cat $export_symbols >> $output_objdir/$soname.def;
  10289. fi~
  10290. $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'
  10291. else
  10292. ld_shlibs_CXX=no
  10293. fi
  10294. ;;
  10295. darwin* | rhapsody*)
  10296. archive_cmds_need_lc_CXX=no
  10297. hardcode_direct_CXX=no
  10298. hardcode_automatic_CXX=yes
  10299. hardcode_shlibpath_var_CXX=unsupported
  10300. whole_archive_flag_spec_CXX=''
  10301. link_all_deplibs_CXX=yes
  10302. allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
  10303. case $cc_basename in
  10304. ifort*) _lt_dar_can_shared=yes ;;
  10305. *) _lt_dar_can_shared=$GCC ;;
  10306. esac
  10307. if test "$_lt_dar_can_shared" = "yes"; then
  10308. output_verbose_link_cmd=echo
  10309. 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}"
  10310. module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  10311. 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}"
  10312. 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}"
  10313. if test "$lt_cv_apple_cc_single_mod" != "yes"; then
  10314. 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}"
  10315. 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}"
  10316. fi
  10317. else
  10318. ld_shlibs_CXX=no
  10319. fi
  10320. ;;
  10321. dgux*)
  10322. case $cc_basename in
  10323. ec++*)
  10324. # FIXME: insert proper C++ library support
  10325. ld_shlibs_CXX=no
  10326. ;;
  10327. ghcx*)
  10328. # Green Hills C++ Compiler
  10329. # FIXME: insert proper C++ library support
  10330. ld_shlibs_CXX=no
  10331. ;;
  10332. *)
  10333. # FIXME: insert proper C++ library support
  10334. ld_shlibs_CXX=no
  10335. ;;
  10336. esac
  10337. ;;
  10338. freebsd[12]*)
  10339. # C++ shared libraries reported to be fairly broken before
  10340. # switch to ELF
  10341. ld_shlibs_CXX=no
  10342. ;;
  10343. freebsd-elf*)
  10344. archive_cmds_need_lc_CXX=no
  10345. ;;
  10346. freebsd* | dragonfly*)
  10347. # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
  10348. # conventions
  10349. ld_shlibs_CXX=yes
  10350. ;;
  10351. gnu*)
  10352. ;;
  10353. hpux9*)
  10354. hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  10355. hardcode_libdir_separator_CXX=:
  10356. export_dynamic_flag_spec_CXX='${wl}-E'
  10357. hardcode_direct_CXX=yes
  10358. hardcode_minus_L_CXX=yes # Not in the search PATH,
  10359. # but as the default
  10360. # location of the library.
  10361. case $cc_basename in
  10362. CC*)
  10363. # FIXME: insert proper C++ library support
  10364. ld_shlibs_CXX=no
  10365. ;;
  10366. aCC*)
  10367. 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 $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  10368. # Commands to make compiler produce verbose output that lists
  10369. # what "hidden" libraries, object files and flags are used when
  10370. # linking a shared library.
  10371. #
  10372. # There doesn't appear to be a way to prevent this compiler from
  10373. # explicitly linking system object files so we need to strip them
  10374. # from the output so that they don't get included in the library
  10375. # dependencies.
  10376. 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; $ECHO "X$list" | $Xsed'
  10377. ;;
  10378. *)
  10379. if test "$GXX" = yes; then
  10380. archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  10381. else
  10382. # FIXME: insert proper C++ library support
  10383. ld_shlibs_CXX=no
  10384. fi
  10385. ;;
  10386. esac
  10387. ;;
  10388. hpux10*|hpux11*)
  10389. if test $with_gnu_ld = no; then
  10390. hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  10391. hardcode_libdir_separator_CXX=:
  10392. case $host_cpu in
  10393. hppa*64*|ia64*)
  10394. ;;
  10395. *)
  10396. export_dynamic_flag_spec_CXX='${wl}-E'
  10397. ;;
  10398. esac
  10399. fi
  10400. case $host_cpu in
  10401. hppa*64*|ia64*)
  10402. hardcode_direct_CXX=no
  10403. hardcode_shlibpath_var_CXX=no
  10404. ;;
  10405. *)
  10406. hardcode_direct_CXX=yes
  10407. hardcode_direct_absolute_CXX=yes
  10408. hardcode_minus_L_CXX=yes # Not in the search PATH,
  10409. # but as the default
  10410. # location of the library.
  10411. ;;
  10412. esac
  10413. case $cc_basename in
  10414. CC*)
  10415. # FIXME: insert proper C++ library support
  10416. ld_shlibs_CXX=no
  10417. ;;
  10418. aCC*)
  10419. case $host_cpu in
  10420. hppa*64*)
  10421. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  10422. ;;
  10423. ia64*)
  10424. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  10425. ;;
  10426. *)
  10427. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  10428. ;;
  10429. esac
  10430. # Commands to make compiler produce verbose output that lists
  10431. # what "hidden" libraries, object files and flags are used when
  10432. # linking a shared library.
  10433. #
  10434. # There doesn't appear to be a way to prevent this compiler from
  10435. # explicitly linking system object files so we need to strip them
  10436. # from the output so that they don't get included in the library
  10437. # dependencies.
  10438. 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; $ECHO "X$list" | $Xsed'
  10439. ;;
  10440. *)
  10441. if test "$GXX" = yes; then
  10442. if test $with_gnu_ld = no; then
  10443. case $host_cpu in
  10444. hppa*64*)
  10445. archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  10446. ;;
  10447. ia64*)
  10448. archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  10449. ;;
  10450. *)
  10451. archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  10452. ;;
  10453. esac
  10454. fi
  10455. else
  10456. # FIXME: insert proper C++ library support
  10457. ld_shlibs_CXX=no
  10458. fi
  10459. ;;
  10460. esac
  10461. ;;
  10462. interix[3-9]*)
  10463. hardcode_direct_CXX=no
  10464. hardcode_shlibpath_var_CXX=no
  10465. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  10466. export_dynamic_flag_spec_CXX='${wl}-E'
  10467. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  10468. # Instead, shared libraries are loaded at an image base (0x10000000 by
  10469. # default) and relocated if they conflict, which is a slow very memory
  10470. # consuming and fragmenting process. To avoid this, we pick a random,
  10471. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  10472. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  10473. 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'
  10474. 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'
  10475. ;;
  10476. irix5* | irix6*)
  10477. case $cc_basename in
  10478. CC*)
  10479. # SGI C++
  10480. archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
  10481. # Archives containing C++ object files must be created using
  10482. # "CC -ar", where "CC" is the IRIX C++ compiler. This is
  10483. # necessary to make sure instantiated templates are included
  10484. # in the archive.
  10485. old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
  10486. ;;
  10487. *)
  10488. if test "$GXX" = yes; then
  10489. if test "$with_gnu_ld" = no; then
  10490. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  10491. else
  10492. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` -o $lib'
  10493. fi
  10494. fi
  10495. link_all_deplibs_CXX=yes
  10496. ;;
  10497. esac
  10498. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  10499. hardcode_libdir_separator_CXX=:
  10500. inherit_rpath_CXX=yes
  10501. ;;
  10502. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  10503. case $cc_basename in
  10504. KCC*)
  10505. # Kuck and Associates, Inc. (KAI) C++ Compiler
  10506. # KCC will only create a shared library if the output file
  10507. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  10508. # to its proper name (with version) after linking.
  10509. 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'
  10510. 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'
  10511. # Commands to make compiler produce verbose output that lists
  10512. # what "hidden" libraries, object files and flags are used when
  10513. # linking a shared library.
  10514. #
  10515. # There doesn't appear to be a way to prevent this compiler from
  10516. # explicitly linking system object files so we need to strip them
  10517. # from the output so that they don't get included in the library
  10518. # dependencies.
  10519. 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; $ECHO "X$list" | $Xsed'
  10520. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  10521. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  10522. # Archives containing C++ object files must be created using
  10523. # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  10524. old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
  10525. ;;
  10526. icpc* | ecpc* )
  10527. # Intel C++
  10528. with_gnu_ld=yes
  10529. # version 8.0 and above of icpc choke on multiply defined symbols
  10530. # if we add $predep_objects and $postdep_objects, however 7.1 and
  10531. # earlier do not add the objects themselves.
  10532. case `$CC -V 2>&1` in
  10533. *"Version 7."*)
  10534. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  10535. 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'
  10536. ;;
  10537. *) # Version 8.0 or newer
  10538. tmp_idyn=
  10539. case $host_cpu in
  10540. ia64*) tmp_idyn=' -i_dynamic';;
  10541. esac
  10542. archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  10543. 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'
  10544. ;;
  10545. esac
  10546. archive_cmds_need_lc_CXX=no
  10547. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  10548. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  10549. whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  10550. ;;
  10551. pgCC* | pgcpp*)
  10552. # Portland Group C++ compiler
  10553. case `$CC -V` in
  10554. *pgCC\ [1-5]* | *pgcpp\ [1-5]*)
  10555. prelink_cmds_CXX='tpldir=Template.dir~
  10556. rm -rf $tpldir~
  10557. $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
  10558. compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
  10559. old_archive_cmds_CXX='tpldir=Template.dir~
  10560. rm -rf $tpldir~
  10561. $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
  10562. $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
  10563. $RANLIB $oldlib'
  10564. archive_cmds_CXX='tpldir=Template.dir~
  10565. rm -rf $tpldir~
  10566. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  10567. $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  10568. archive_expsym_cmds_CXX='tpldir=Template.dir~
  10569. rm -rf $tpldir~
  10570. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  10571. $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
  10572. ;;
  10573. *) # Version 6 will use weak symbols
  10574. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  10575. 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'
  10576. ;;
  10577. esac
  10578. hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
  10579. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  10580. whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
  10581. ;;
  10582. cxx*)
  10583. # Compaq C++
  10584. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  10585. 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'
  10586. runpath_var=LD_RUN_PATH
  10587. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  10588. hardcode_libdir_separator_CXX=:
  10589. # Commands to make compiler produce verbose output that lists
  10590. # what "hidden" libraries, object files and flags are used when
  10591. # linking a shared library.
  10592. #
  10593. # There doesn't appear to be a way to prevent this compiler from
  10594. # explicitly linking system object files so we need to strip them
  10595. # from the output so that they don't get included in the library
  10596. # dependencies.
  10597. output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
  10598. ;;
  10599. xl*)
  10600. # IBM XL 8.0 on PPC, with GNU ld
  10601. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  10602. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  10603. archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  10604. if test "x$supports_anon_versioning" = xyes; then
  10605. archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
  10606. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  10607. echo "local: *; };" >> $output_objdir/$libname.ver~
  10608. $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  10609. fi
  10610. ;;
  10611. *)
  10612. case `$CC -V 2>&1 | sed 5q` in
  10613. *Sun\ C*)
  10614. # Sun C++ 5.9
  10615. no_undefined_flag_CXX=' -zdefs'
  10616. archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  10617. 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'
  10618. hardcode_libdir_flag_spec_CXX='-R$libdir'
  10619. whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
  10620. compiler_needs_object_CXX=yes
  10621. # Not sure whether something based on
  10622. # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
  10623. # would be better.
  10624. output_verbose_link_cmd='echo'
  10625. # Archives containing C++ object files must be created using
  10626. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  10627. # necessary to make sure instantiated templates are included
  10628. # in the archive.
  10629. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  10630. ;;
  10631. esac
  10632. ;;
  10633. esac
  10634. ;;
  10635. lynxos*)
  10636. # FIXME: insert proper C++ library support
  10637. ld_shlibs_CXX=no
  10638. ;;
  10639. m88k*)
  10640. # FIXME: insert proper C++ library support
  10641. ld_shlibs_CXX=no
  10642. ;;
  10643. mvs*)
  10644. case $cc_basename in
  10645. cxx*)
  10646. # FIXME: insert proper C++ library support
  10647. ld_shlibs_CXX=no
  10648. ;;
  10649. *)
  10650. # FIXME: insert proper C++ library support
  10651. ld_shlibs_CXX=no
  10652. ;;
  10653. esac
  10654. ;;
  10655. netbsd*)
  10656. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  10657. archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
  10658. wlarc=
  10659. hardcode_libdir_flag_spec_CXX='-R$libdir'
  10660. hardcode_direct_CXX=yes
  10661. hardcode_shlibpath_var_CXX=no
  10662. fi
  10663. # Workaround some broken pre-1.5 toolchains
  10664. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
  10665. ;;
  10666. *nto* | *qnx*)
  10667. ld_shlibs_CXX=yes
  10668. ;;
  10669. openbsd2*)
  10670. # C++ shared libraries are fairly broken
  10671. ld_shlibs_CXX=no
  10672. ;;
  10673. openbsd*)
  10674. if test -f /usr/libexec/ld.so; then
  10675. hardcode_direct_CXX=yes
  10676. hardcode_shlibpath_var_CXX=no
  10677. hardcode_direct_absolute_CXX=yes
  10678. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  10679. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  10680. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  10681. archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
  10682. export_dynamic_flag_spec_CXX='${wl}-E'
  10683. whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  10684. fi
  10685. output_verbose_link_cmd=echo
  10686. else
  10687. ld_shlibs_CXX=no
  10688. fi
  10689. ;;
  10690. osf3* | osf4* | osf5*)
  10691. case $cc_basename in
  10692. KCC*)
  10693. # Kuck and Associates, Inc. (KAI) C++ Compiler
  10694. # KCC will only create a shared library if the output file
  10695. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  10696. # to its proper name (with version) after linking.
  10697. 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'
  10698. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  10699. hardcode_libdir_separator_CXX=:
  10700. # Archives containing C++ object files must be created using
  10701. # the KAI C++ compiler.
  10702. case $host in
  10703. osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
  10704. *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
  10705. esac
  10706. ;;
  10707. RCC*)
  10708. # Rational C++ 2.4.1
  10709. # FIXME: insert proper C++ library support
  10710. ld_shlibs_CXX=no
  10711. ;;
  10712. cxx*)
  10713. case $host in
  10714. osf3*)
  10715. allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  10716. archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && $ECHO "X${wl}-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
  10717. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  10718. ;;
  10719. *)
  10720. allow_undefined_flag_CXX=' -expect_unresolved \*'
  10721. archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
  10722. archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
  10723. echo "-hidden">> $lib.exp~
  10724. $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 "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~
  10725. $RM $lib.exp'
  10726. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  10727. ;;
  10728. esac
  10729. hardcode_libdir_separator_CXX=:
  10730. # Commands to make compiler produce verbose output that lists
  10731. # what "hidden" libraries, object files and flags are used when
  10732. # linking a shared library.
  10733. #
  10734. # There doesn't appear to be a way to prevent this compiler from
  10735. # explicitly linking system object files so we need to strip them
  10736. # from the output so that they don't get included in the library
  10737. # dependencies.
  10738. output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
  10739. ;;
  10740. *)
  10741. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  10742. allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  10743. case $host in
  10744. osf3*)
  10745. archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  10746. ;;
  10747. *)
  10748. archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  10749. ;;
  10750. esac
  10751. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  10752. hardcode_libdir_separator_CXX=:
  10753. # Commands to make compiler produce verbose output that lists
  10754. # what "hidden" libraries, object files and flags are used when
  10755. # linking a shared library.
  10756. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
  10757. else
  10758. # FIXME: insert proper C++ library support
  10759. ld_shlibs_CXX=no
  10760. fi
  10761. ;;
  10762. esac
  10763. ;;
  10764. psos*)
  10765. # FIXME: insert proper C++ library support
  10766. ld_shlibs_CXX=no
  10767. ;;
  10768. sunos4*)
  10769. case $cc_basename in
  10770. CC*)
  10771. # Sun C++ 4.x
  10772. # FIXME: insert proper C++ library support
  10773. ld_shlibs_CXX=no
  10774. ;;
  10775. lcc*)
  10776. # Lucid
  10777. # FIXME: insert proper C++ library support
  10778. ld_shlibs_CXX=no
  10779. ;;
  10780. *)
  10781. # FIXME: insert proper C++ library support
  10782. ld_shlibs_CXX=no
  10783. ;;
  10784. esac
  10785. ;;
  10786. solaris*)
  10787. case $cc_basename in
  10788. CC*)
  10789. # Sun C++ 4.2, 5.x and Centerline C++
  10790. archive_cmds_need_lc_CXX=yes
  10791. no_undefined_flag_CXX=' -zdefs'
  10792. archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  10793. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  10794. $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'
  10795. hardcode_libdir_flag_spec_CXX='-R$libdir'
  10796. hardcode_shlibpath_var_CXX=no
  10797. case $host_os in
  10798. solaris2.[0-5] | solaris2.[0-5].*) ;;
  10799. *)
  10800. # The compiler driver will combine and reorder linker options,
  10801. # but understands `-z linker_flag'.
  10802. # Supported since Solaris 2.6 (maybe 2.5.1?)
  10803. whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
  10804. ;;
  10805. esac
  10806. link_all_deplibs_CXX=yes
  10807. output_verbose_link_cmd='echo'
  10808. # Archives containing C++ object files must be created using
  10809. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  10810. # necessary to make sure instantiated templates are included
  10811. # in the archive.
  10812. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  10813. ;;
  10814. gcx*)
  10815. # Green Hills C++ Compiler
  10816. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  10817. # The C++ compiler must be used to create the archive.
  10818. old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
  10819. ;;
  10820. *)
  10821. # GNU C++ compiler with Solaris linker
  10822. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  10823. no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
  10824. if $CC --version | $GREP -v '^2\.7' > /dev/null; then
  10825. archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  10826. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  10827. $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  10828. # Commands to make compiler produce verbose output that lists
  10829. # what "hidden" libraries, object files and flags are used when
  10830. # linking a shared library.
  10831. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
  10832. else
  10833. # g++ 2.7 appears to require `-G' NOT `-shared' on this
  10834. # platform.
  10835. archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  10836. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  10837. $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  10838. # Commands to make compiler produce verbose output that lists
  10839. # what "hidden" libraries, object files and flags are used when
  10840. # linking a shared library.
  10841. output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
  10842. fi
  10843. hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
  10844. case $host_os in
  10845. solaris2.[0-5] | solaris2.[0-5].*) ;;
  10846. *)
  10847. whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  10848. ;;
  10849. esac
  10850. fi
  10851. ;;
  10852. esac
  10853. ;;
  10854. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  10855. no_undefined_flag_CXX='${wl}-z,text'
  10856. archive_cmds_need_lc_CXX=no
  10857. hardcode_shlibpath_var_CXX=no
  10858. runpath_var='LD_RUN_PATH'
  10859. case $cc_basename in
  10860. CC*)
  10861. archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10862. archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10863. ;;
  10864. *)
  10865. archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10866. archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10867. ;;
  10868. esac
  10869. ;;
  10870. sysv5* | sco3.2v5* | sco5v6*)
  10871. # Note: We can NOT use -z defs as we might desire, because we do not
  10872. # link with -lc, and that would cause any symbols used from libc to
  10873. # always be unresolved, which means just about no library would
  10874. # ever link correctly. If we're not using GNU ld we use -z text
  10875. # though, which does catch some bad symbols but isn't as heavy-handed
  10876. # as -z defs.
  10877. no_undefined_flag_CXX='${wl}-z,text'
  10878. allow_undefined_flag_CXX='${wl}-z,nodefs'
  10879. archive_cmds_need_lc_CXX=no
  10880. hardcode_shlibpath_var_CXX=no
  10881. hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
  10882. hardcode_libdir_separator_CXX=':'
  10883. link_all_deplibs_CXX=yes
  10884. export_dynamic_flag_spec_CXX='${wl}-Bexport'
  10885. runpath_var='LD_RUN_PATH'
  10886. case $cc_basename in
  10887. CC*)
  10888. archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10889. archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10890. ;;
  10891. *)
  10892. archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10893. archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10894. ;;
  10895. esac
  10896. ;;
  10897. tandem*)
  10898. case $cc_basename in
  10899. NCC*)
  10900. # NonStop-UX NCC 3.20
  10901. # FIXME: insert proper C++ library support
  10902. ld_shlibs_CXX=no
  10903. ;;
  10904. *)
  10905. # FIXME: insert proper C++ library support
  10906. ld_shlibs_CXX=no
  10907. ;;
  10908. esac
  10909. ;;
  10910. vxworks*)
  10911. # FIXME: insert proper C++ library support
  10912. ld_shlibs_CXX=no
  10913. ;;
  10914. *)
  10915. # FIXME: insert proper C++ library support
  10916. ld_shlibs_CXX=no
  10917. ;;
  10918. esac
  10919. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
  10920. $as_echo "$ld_shlibs_CXX" >&6; }
  10921. test "$ld_shlibs_CXX" = no && can_build_shared=no
  10922. GCC_CXX="$GXX"
  10923. LD_CXX="$LD"
  10924. ## CAVEAT EMPTOR:
  10925. ## There is no encapsulation within the following macros, do not change
  10926. ## the running order or otherwise move them around unless you know exactly
  10927. ## what you are doing...
  10928. # Dependencies to place before and after the object being linked:
  10929. predep_objects_CXX=
  10930. postdep_objects_CXX=
  10931. predeps_CXX=
  10932. postdeps_CXX=
  10933. compiler_lib_search_path_CXX=
  10934. cat > conftest.$ac_ext <<_LT_EOF
  10935. class Foo
  10936. {
  10937. public:
  10938. Foo (void) { a = 0; }
  10939. private:
  10940. int a;
  10941. };
  10942. _LT_EOF
  10943. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  10944. (eval $ac_compile) 2>&5
  10945. ac_status=$?
  10946. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10947. test $ac_status = 0; }; then
  10948. # Parse the compiler output and extract the necessary
  10949. # objects, libraries and library flags.
  10950. # Sentinel used to keep track of whether or not we are before
  10951. # the conftest object file.
  10952. pre_test_object_deps_done=no
  10953. for p in `eval "$output_verbose_link_cmd"`; do
  10954. case $p in
  10955. -L* | -R* | -l*)
  10956. # Some compilers place space between "-{L,R}" and the path.
  10957. # Remove the space.
  10958. if test $p = "-L" ||
  10959. test $p = "-R"; then
  10960. prev=$p
  10961. continue
  10962. else
  10963. prev=
  10964. fi
  10965. if test "$pre_test_object_deps_done" = no; then
  10966. case $p in
  10967. -L* | -R*)
  10968. # Internal compiler library paths should come after those
  10969. # provided the user. The postdeps already come after the
  10970. # user supplied libs so there is no need to process them.
  10971. if test -z "$compiler_lib_search_path_CXX"; then
  10972. compiler_lib_search_path_CXX="${prev}${p}"
  10973. else
  10974. compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
  10975. fi
  10976. ;;
  10977. # The "-l" case would never come before the object being
  10978. # linked, so don't bother handling this case.
  10979. esac
  10980. else
  10981. if test -z "$postdeps_CXX"; then
  10982. postdeps_CXX="${prev}${p}"
  10983. else
  10984. postdeps_CXX="${postdeps_CXX} ${prev}${p}"
  10985. fi
  10986. fi
  10987. ;;
  10988. *.$objext)
  10989. # This assumes that the test object file only shows up
  10990. # once in the compiler output.
  10991. if test "$p" = "conftest.$objext"; then
  10992. pre_test_object_deps_done=yes
  10993. continue
  10994. fi
  10995. if test "$pre_test_object_deps_done" = no; then
  10996. if test -z "$predep_objects_CXX"; then
  10997. predep_objects_CXX="$p"
  10998. else
  10999. predep_objects_CXX="$predep_objects_CXX $p"
  11000. fi
  11001. else
  11002. if test -z "$postdep_objects_CXX"; then
  11003. postdep_objects_CXX="$p"
  11004. else
  11005. postdep_objects_CXX="$postdep_objects_CXX $p"
  11006. fi
  11007. fi
  11008. ;;
  11009. *) ;; # Ignore the rest.
  11010. esac
  11011. done
  11012. # Clean up.
  11013. rm -f a.out a.exe
  11014. else
  11015. echo "libtool.m4: error: problem compiling CXX test program"
  11016. fi
  11017. $RM -f confest.$objext
  11018. # PORTME: override above test on systems where it is broken
  11019. case $host_os in
  11020. interix[3-9]*)
  11021. # Interix 3.5 installs completely hosed .la files for C++, so rather than
  11022. # hack all around it, let's just trust "g++" to DTRT.
  11023. predep_objects_CXX=
  11024. postdep_objects_CXX=
  11025. postdeps_CXX=
  11026. ;;
  11027. linux*)
  11028. case `$CC -V 2>&1 | sed 5q` in
  11029. *Sun\ C*)
  11030. # Sun C++ 5.9
  11031. # The more standards-conforming stlport4 library is
  11032. # incompatible with the Cstd library. Avoid specifying
  11033. # it if it's in CXXFLAGS. Ignore libCrun as
  11034. # -library=stlport4 depends on it.
  11035. case " $CXX $CXXFLAGS " in
  11036. *" -library=stlport4 "*)
  11037. solaris_use_stlport4=yes
  11038. ;;
  11039. esac
  11040. if test "$solaris_use_stlport4" != yes; then
  11041. postdeps_CXX='-library=Cstd -library=Crun'
  11042. fi
  11043. ;;
  11044. esac
  11045. ;;
  11046. solaris*)
  11047. case $cc_basename in
  11048. CC*)
  11049. # The more standards-conforming stlport4 library is
  11050. # incompatible with the Cstd library. Avoid specifying
  11051. # it if it's in CXXFLAGS. Ignore libCrun as
  11052. # -library=stlport4 depends on it.
  11053. case " $CXX $CXXFLAGS " in
  11054. *" -library=stlport4 "*)
  11055. solaris_use_stlport4=yes
  11056. ;;
  11057. esac
  11058. # Adding this requires a known-good setup of shared libraries for
  11059. # Sun compiler versions before 5.6, else PIC objects from an old
  11060. # archive will be linked into the output, leading to subtle bugs.
  11061. if test "$solaris_use_stlport4" != yes; then
  11062. postdeps_CXX='-library=Cstd -library=Crun'
  11063. fi
  11064. ;;
  11065. esac
  11066. ;;
  11067. esac
  11068. case " $postdeps_CXX " in
  11069. *" -lc "*) archive_cmds_need_lc_CXX=no ;;
  11070. esac
  11071. compiler_lib_search_dirs_CXX=
  11072. if test -n "${compiler_lib_search_path_CXX}"; then
  11073. compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
  11074. fi
  11075. lt_prog_compiler_wl_CXX=
  11076. lt_prog_compiler_pic_CXX=
  11077. lt_prog_compiler_static_CXX=
  11078. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  11079. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  11080. # C++ specific cases for pic, static, wl, etc.
  11081. if test "$GXX" = yes; then
  11082. lt_prog_compiler_wl_CXX='-Wl,'
  11083. lt_prog_compiler_static_CXX='-static'
  11084. case $host_os in
  11085. aix*)
  11086. # All AIX code is PIC.
  11087. if test "$host_cpu" = ia64; then
  11088. # AIX 5 now supports IA64 processor
  11089. lt_prog_compiler_static_CXX='-Bstatic'
  11090. fi
  11091. ;;
  11092. amigaos*)
  11093. case $host_cpu in
  11094. powerpc)
  11095. # see comment about AmigaOS4 .so support
  11096. lt_prog_compiler_pic_CXX='-fPIC'
  11097. ;;
  11098. m68k)
  11099. # FIXME: we need at least 68020 code to build shared libraries, but
  11100. # adding the `-m68020' flag to GCC prevents building anything better,
  11101. # like `-m68040'.
  11102. lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
  11103. ;;
  11104. esac
  11105. ;;
  11106. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  11107. # PIC is the default for these OSes.
  11108. ;;
  11109. mingw* | cygwin* | os2* | pw32* | cegcc*)
  11110. # This hack is so that the source file can tell whether it is being
  11111. # built for inclusion in a dll (and should export symbols for example).
  11112. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  11113. # (--disable-auto-import) libraries
  11114. lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  11115. ;;
  11116. darwin* | rhapsody*)
  11117. # PIC is the default on this platform
  11118. # Common symbols not allowed in MH_DYLIB files
  11119. lt_prog_compiler_pic_CXX='-fno-common'
  11120. ;;
  11121. *djgpp*)
  11122. # DJGPP does not support shared libraries at all
  11123. lt_prog_compiler_pic_CXX=
  11124. ;;
  11125. interix[3-9]*)
  11126. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  11127. # Instead, we relocate shared libraries at runtime.
  11128. ;;
  11129. sysv4*MP*)
  11130. if test -d /usr/nec; then
  11131. lt_prog_compiler_pic_CXX=-Kconform_pic
  11132. fi
  11133. ;;
  11134. hpux*)
  11135. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  11136. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  11137. # sets the default TLS model and affects inlining.
  11138. case $host_cpu in
  11139. hppa*64*)
  11140. ;;
  11141. *)
  11142. lt_prog_compiler_pic_CXX='-fPIC'
  11143. ;;
  11144. esac
  11145. ;;
  11146. *qnx* | *nto*)
  11147. # QNX uses GNU C++, but need to define -shared option too, otherwise
  11148. # it will coredump.
  11149. lt_prog_compiler_pic_CXX='-fPIC -shared'
  11150. ;;
  11151. *)
  11152. lt_prog_compiler_pic_CXX='-fPIC'
  11153. ;;
  11154. esac
  11155. else
  11156. case $host_os in
  11157. aix[4-9]*)
  11158. # All AIX code is PIC.
  11159. if test "$host_cpu" = ia64; then
  11160. # AIX 5 now supports IA64 processor
  11161. lt_prog_compiler_static_CXX='-Bstatic'
  11162. else
  11163. lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
  11164. fi
  11165. ;;
  11166. chorus*)
  11167. case $cc_basename in
  11168. cxch68*)
  11169. # Green Hills C++ Compiler
  11170. # _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"
  11171. ;;
  11172. esac
  11173. ;;
  11174. dgux*)
  11175. case $cc_basename in
  11176. ec++*)
  11177. lt_prog_compiler_pic_CXX='-KPIC'
  11178. ;;
  11179. ghcx*)
  11180. # Green Hills C++ Compiler
  11181. lt_prog_compiler_pic_CXX='-pic'
  11182. ;;
  11183. *)
  11184. ;;
  11185. esac
  11186. ;;
  11187. freebsd* | dragonfly*)
  11188. # FreeBSD uses GNU C++
  11189. ;;
  11190. hpux9* | hpux10* | hpux11*)
  11191. case $cc_basename in
  11192. CC*)
  11193. lt_prog_compiler_wl_CXX='-Wl,'
  11194. lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
  11195. if test "$host_cpu" != ia64; then
  11196. lt_prog_compiler_pic_CXX='+Z'
  11197. fi
  11198. ;;
  11199. aCC*)
  11200. lt_prog_compiler_wl_CXX='-Wl,'
  11201. lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
  11202. case $host_cpu in
  11203. hppa*64*|ia64*)
  11204. # +Z the default
  11205. ;;
  11206. *)
  11207. lt_prog_compiler_pic_CXX='+Z'
  11208. ;;
  11209. esac
  11210. ;;
  11211. *)
  11212. ;;
  11213. esac
  11214. ;;
  11215. interix*)
  11216. # This is c89, which is MS Visual C++ (no shared libs)
  11217. # Anyone wants to do a port?
  11218. ;;
  11219. irix5* | irix6* | nonstopux*)
  11220. case $cc_basename in
  11221. CC*)
  11222. lt_prog_compiler_wl_CXX='-Wl,'
  11223. lt_prog_compiler_static_CXX='-non_shared'
  11224. # CC pic flag -KPIC is the default.
  11225. ;;
  11226. *)
  11227. ;;
  11228. esac
  11229. ;;
  11230. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  11231. case $cc_basename in
  11232. KCC*)
  11233. # KAI C++ Compiler
  11234. lt_prog_compiler_wl_CXX='--backend -Wl,'
  11235. lt_prog_compiler_pic_CXX='-fPIC'
  11236. ;;
  11237. ecpc* )
  11238. # old Intel C++ for x86_64 which still supported -KPIC.
  11239. lt_prog_compiler_wl_CXX='-Wl,'
  11240. lt_prog_compiler_pic_CXX='-KPIC'
  11241. lt_prog_compiler_static_CXX='-static'
  11242. ;;
  11243. icpc* )
  11244. # Intel C++, used to be incompatible with GCC.
  11245. # ICC 10 doesn't accept -KPIC any more.
  11246. lt_prog_compiler_wl_CXX='-Wl,'
  11247. lt_prog_compiler_pic_CXX='-fPIC'
  11248. lt_prog_compiler_static_CXX='-static'
  11249. ;;
  11250. pgCC* | pgcpp*)
  11251. # Portland Group C++ compiler
  11252. lt_prog_compiler_wl_CXX='-Wl,'
  11253. lt_prog_compiler_pic_CXX='-fpic'
  11254. lt_prog_compiler_static_CXX='-Bstatic'
  11255. ;;
  11256. cxx*)
  11257. # Compaq C++
  11258. # Make sure the PIC flag is empty. It appears that all Alpha
  11259. # Linux and Compaq Tru64 Unix objects are PIC.
  11260. lt_prog_compiler_pic_CXX=
  11261. lt_prog_compiler_static_CXX='-non_shared'
  11262. ;;
  11263. xlc* | xlC*)
  11264. # IBM XL 8.0 on PPC
  11265. lt_prog_compiler_wl_CXX='-Wl,'
  11266. lt_prog_compiler_pic_CXX='-qpic'
  11267. lt_prog_compiler_static_CXX='-qstaticlink'
  11268. ;;
  11269. *)
  11270. case `$CC -V 2>&1 | sed 5q` in
  11271. *Sun\ C*)
  11272. # Sun C++ 5.9
  11273. lt_prog_compiler_pic_CXX='-KPIC'
  11274. lt_prog_compiler_static_CXX='-Bstatic'
  11275. lt_prog_compiler_wl_CXX='-Qoption ld '
  11276. ;;
  11277. esac
  11278. ;;
  11279. esac
  11280. ;;
  11281. lynxos*)
  11282. ;;
  11283. m88k*)
  11284. ;;
  11285. mvs*)
  11286. case $cc_basename in
  11287. cxx*)
  11288. lt_prog_compiler_pic_CXX='-W c,exportall'
  11289. ;;
  11290. *)
  11291. ;;
  11292. esac
  11293. ;;
  11294. netbsd* | netbsdelf*-gnu)
  11295. ;;
  11296. *qnx* | *nto*)
  11297. # QNX uses GNU C++, but need to define -shared option too, otherwise
  11298. # it will coredump.
  11299. lt_prog_compiler_pic_CXX='-fPIC -shared'
  11300. ;;
  11301. osf3* | osf4* | osf5*)
  11302. case $cc_basename in
  11303. KCC*)
  11304. lt_prog_compiler_wl_CXX='--backend -Wl,'
  11305. ;;
  11306. RCC*)
  11307. # Rational C++ 2.4.1
  11308. lt_prog_compiler_pic_CXX='-pic'
  11309. ;;
  11310. cxx*)
  11311. # Digital/Compaq C++
  11312. lt_prog_compiler_wl_CXX='-Wl,'
  11313. # Make sure the PIC flag is empty. It appears that all Alpha
  11314. # Linux and Compaq Tru64 Unix objects are PIC.
  11315. lt_prog_compiler_pic_CXX=
  11316. lt_prog_compiler_static_CXX='-non_shared'
  11317. ;;
  11318. *)
  11319. ;;
  11320. esac
  11321. ;;
  11322. psos*)
  11323. ;;
  11324. solaris*)
  11325. case $cc_basename in
  11326. CC*)
  11327. # Sun C++ 4.2, 5.x and Centerline C++
  11328. lt_prog_compiler_pic_CXX='-KPIC'
  11329. lt_prog_compiler_static_CXX='-Bstatic'
  11330. lt_prog_compiler_wl_CXX='-Qoption ld '
  11331. ;;
  11332. gcx*)
  11333. # Green Hills C++ Compiler
  11334. lt_prog_compiler_pic_CXX='-PIC'
  11335. ;;
  11336. *)
  11337. ;;
  11338. esac
  11339. ;;
  11340. sunos4*)
  11341. case $cc_basename in
  11342. CC*)
  11343. # Sun C++ 4.x
  11344. lt_prog_compiler_pic_CXX='-pic'
  11345. lt_prog_compiler_static_CXX='-Bstatic'
  11346. ;;
  11347. lcc*)
  11348. # Lucid
  11349. lt_prog_compiler_pic_CXX='-pic'
  11350. ;;
  11351. *)
  11352. ;;
  11353. esac
  11354. ;;
  11355. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  11356. case $cc_basename in
  11357. CC*)
  11358. lt_prog_compiler_wl_CXX='-Wl,'
  11359. lt_prog_compiler_pic_CXX='-KPIC'
  11360. lt_prog_compiler_static_CXX='-Bstatic'
  11361. ;;
  11362. esac
  11363. ;;
  11364. tandem*)
  11365. case $cc_basename in
  11366. NCC*)
  11367. # NonStop-UX NCC 3.20
  11368. lt_prog_compiler_pic_CXX='-KPIC'
  11369. ;;
  11370. *)
  11371. ;;
  11372. esac
  11373. ;;
  11374. vxworks*)
  11375. ;;
  11376. *)
  11377. lt_prog_compiler_can_build_shared_CXX=no
  11378. ;;
  11379. esac
  11380. fi
  11381. case $host_os in
  11382. # For platforms which do not support PIC, -DPIC is meaningless:
  11383. *djgpp*)
  11384. lt_prog_compiler_pic_CXX=
  11385. ;;
  11386. *)
  11387. lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
  11388. ;;
  11389. esac
  11390. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
  11391. $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
  11392. #
  11393. # Check to make sure the PIC flag actually works.
  11394. #
  11395. if test -n "$lt_prog_compiler_pic_CXX"; then
  11396. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
  11397. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
  11398. if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
  11399. $as_echo_n "(cached) " >&6
  11400. else
  11401. lt_cv_prog_compiler_pic_works_CXX=no
  11402. ac_outfile=conftest.$ac_objext
  11403. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  11404. lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
  11405. # Insert the option either (1) after the last *FLAGS variable, or
  11406. # (2) before a word containing "conftest.", or (3) at the end.
  11407. # Note that $ac_compile itself does not contain backslashes and begins
  11408. # with a dollar sign (not a hyphen), so the echo should work correctly.
  11409. # The option is referenced via a variable to avoid confusing sed.
  11410. lt_compile=`echo "$ac_compile" | $SED \
  11411. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  11412. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  11413. -e 's:$: $lt_compiler_flag:'`
  11414. (eval echo "\"\$as_me:13211: $lt_compile\"" >&5)
  11415. (eval "$lt_compile" 2>conftest.err)
  11416. ac_status=$?
  11417. cat conftest.err >&5
  11418. echo "$as_me:13215: \$? = $ac_status" >&5
  11419. if (exit $ac_status) && test -s "$ac_outfile"; then
  11420. # The compiler can only warn and ignore the option if not recognized
  11421. # So say no if there are warnings other than the usual output.
  11422. $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  11423. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  11424. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  11425. lt_cv_prog_compiler_pic_works_CXX=yes
  11426. fi
  11427. fi
  11428. $RM conftest*
  11429. fi
  11430. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
  11431. $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
  11432. if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
  11433. case $lt_prog_compiler_pic_CXX in
  11434. "" | " "*) ;;
  11435. *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
  11436. esac
  11437. else
  11438. lt_prog_compiler_pic_CXX=
  11439. lt_prog_compiler_can_build_shared_CXX=no
  11440. fi
  11441. fi
  11442. #
  11443. # Check to make sure the static flag actually works.
  11444. #
  11445. wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
  11446. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  11447. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  11448. if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
  11449. $as_echo_n "(cached) " >&6
  11450. else
  11451. lt_cv_prog_compiler_static_works_CXX=no
  11452. save_LDFLAGS="$LDFLAGS"
  11453. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  11454. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  11455. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  11456. # The linker can only warn and ignore the option if not recognized
  11457. # So say no if there are warnings
  11458. if test -s conftest.err; then
  11459. # Append any errors to the config.log.
  11460. cat conftest.err 1>&5
  11461. $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
  11462. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  11463. if diff conftest.exp conftest.er2 >/dev/null; then
  11464. lt_cv_prog_compiler_static_works_CXX=yes
  11465. fi
  11466. else
  11467. lt_cv_prog_compiler_static_works_CXX=yes
  11468. fi
  11469. fi
  11470. $RM -r conftest*
  11471. LDFLAGS="$save_LDFLAGS"
  11472. fi
  11473. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
  11474. $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
  11475. if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
  11476. :
  11477. else
  11478. lt_prog_compiler_static_CXX=
  11479. fi
  11480. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  11481. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  11482. if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
  11483. $as_echo_n "(cached) " >&6
  11484. else
  11485. lt_cv_prog_compiler_c_o_CXX=no
  11486. $RM -r conftest 2>/dev/null
  11487. mkdir conftest
  11488. cd conftest
  11489. mkdir out
  11490. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  11491. lt_compiler_flag="-o out/conftest2.$ac_objext"
  11492. # Insert the option either (1) after the last *FLAGS variable, or
  11493. # (2) before a word containing "conftest.", or (3) at the end.
  11494. # Note that $ac_compile itself does not contain backslashes and begins
  11495. # with a dollar sign (not a hyphen), so the echo should work correctly.
  11496. lt_compile=`echo "$ac_compile" | $SED \
  11497. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  11498. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  11499. -e 's:$: $lt_compiler_flag:'`
  11500. (eval echo "\"\$as_me:13310: $lt_compile\"" >&5)
  11501. (eval "$lt_compile" 2>out/conftest.err)
  11502. ac_status=$?
  11503. cat out/conftest.err >&5
  11504. echo "$as_me:13314: \$? = $ac_status" >&5
  11505. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  11506. then
  11507. # The compiler can only warn and ignore the option if not recognized
  11508. # So say no if there are warnings
  11509. $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  11510. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  11511. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  11512. lt_cv_prog_compiler_c_o_CXX=yes
  11513. fi
  11514. fi
  11515. chmod u+w . 2>&5
  11516. $RM conftest*
  11517. # SGI C++ compiler will create directory out/ii_files/ for
  11518. # template instantiation
  11519. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  11520. $RM out/* && rmdir out
  11521. cd ..
  11522. $RM -r conftest
  11523. $RM conftest*
  11524. fi
  11525. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  11526. $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  11527. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  11528. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  11529. if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
  11530. $as_echo_n "(cached) " >&6
  11531. else
  11532. lt_cv_prog_compiler_c_o_CXX=no
  11533. $RM -r conftest 2>/dev/null
  11534. mkdir conftest
  11535. cd conftest
  11536. mkdir out
  11537. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  11538. lt_compiler_flag="-o out/conftest2.$ac_objext"
  11539. # Insert the option either (1) after the last *FLAGS variable, or
  11540. # (2) before a word containing "conftest.", or (3) at the end.
  11541. # Note that $ac_compile itself does not contain backslashes and begins
  11542. # with a dollar sign (not a hyphen), so the echo should work correctly.
  11543. lt_compile=`echo "$ac_compile" | $SED \
  11544. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  11545. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  11546. -e 's:$: $lt_compiler_flag:'`
  11547. (eval echo "\"\$as_me:13362: $lt_compile\"" >&5)
  11548. (eval "$lt_compile" 2>out/conftest.err)
  11549. ac_status=$?
  11550. cat out/conftest.err >&5
  11551. echo "$as_me:13366: \$? = $ac_status" >&5
  11552. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  11553. then
  11554. # The compiler can only warn and ignore the option if not recognized
  11555. # So say no if there are warnings
  11556. $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  11557. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  11558. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  11559. lt_cv_prog_compiler_c_o_CXX=yes
  11560. fi
  11561. fi
  11562. chmod u+w . 2>&5
  11563. $RM conftest*
  11564. # SGI C++ compiler will create directory out/ii_files/ for
  11565. # template instantiation
  11566. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  11567. $RM out/* && rmdir out
  11568. cd ..
  11569. $RM -r conftest
  11570. $RM conftest*
  11571. fi
  11572. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  11573. $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  11574. hard_links="nottested"
  11575. if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
  11576. # do not overwrite the value of need_locks provided by the user
  11577. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  11578. $as_echo_n "checking if we can lock with hard links... " >&6; }
  11579. hard_links=yes
  11580. $RM conftest*
  11581. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  11582. touch conftest.a
  11583. ln conftest.a conftest.b 2>&5 || hard_links=no
  11584. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  11585. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  11586. $as_echo "$hard_links" >&6; }
  11587. if test "$hard_links" = no; then
  11588. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  11589. $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  11590. need_locks=warn
  11591. fi
  11592. else
  11593. need_locks=no
  11594. fi
  11595. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  11596. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  11597. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  11598. case $host_os in
  11599. aix[4-9]*)
  11600. # If we're using GNU nm, then we don't want the "-C" option.
  11601. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  11602. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  11603. export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
  11604. else
  11605. export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
  11606. fi
  11607. ;;
  11608. pw32*)
  11609. export_symbols_cmds_CXX="$ltdll_cmds"
  11610. ;;
  11611. cygwin* | mingw* | cegcc*)
  11612. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;/^.*[ ]__nm__/s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
  11613. ;;
  11614. linux* | k*bsd*-gnu)
  11615. link_all_deplibs_CXX=no
  11616. ;;
  11617. *)
  11618. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  11619. ;;
  11620. esac
  11621. exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  11622. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
  11623. $as_echo "$ld_shlibs_CXX" >&6; }
  11624. test "$ld_shlibs_CXX" = no && can_build_shared=no
  11625. with_gnu_ld_CXX=$with_gnu_ld
  11626. #
  11627. # Do we need to explicitly link libc?
  11628. #
  11629. case "x$archive_cmds_need_lc_CXX" in
  11630. x|xyes)
  11631. # Assume -lc should be added
  11632. archive_cmds_need_lc_CXX=yes
  11633. if test "$enable_shared" = yes && test "$GCC" = yes; then
  11634. case $archive_cmds_CXX in
  11635. *'~'*)
  11636. # FIXME: we may have to deal with multi-command sequences.
  11637. ;;
  11638. '$CC '*)
  11639. # Test whether the compiler implicitly links with -lc since on some
  11640. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  11641. # to ld, don't add -lc before -lgcc.
  11642. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  11643. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  11644. $RM conftest*
  11645. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  11646. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  11647. (eval $ac_compile) 2>&5
  11648. ac_status=$?
  11649. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11650. test $ac_status = 0; } 2>conftest.err; then
  11651. soname=conftest
  11652. lib=conftest
  11653. libobjs=conftest.$ac_objext
  11654. deplibs=
  11655. wl=$lt_prog_compiler_wl_CXX
  11656. pic_flag=$lt_prog_compiler_pic_CXX
  11657. compiler_flags=-v
  11658. linker_flags=-v
  11659. verstring=
  11660. output_objdir=.
  11661. libname=conftest
  11662. lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
  11663. allow_undefined_flag_CXX=
  11664. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  11665. (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  11666. ac_status=$?
  11667. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11668. test $ac_status = 0; }
  11669. then
  11670. archive_cmds_need_lc_CXX=no
  11671. else
  11672. archive_cmds_need_lc_CXX=yes
  11673. fi
  11674. allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
  11675. else
  11676. cat conftest.err 1>&5
  11677. fi
  11678. $RM conftest*
  11679. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc_CXX" >&5
  11680. $as_echo "$archive_cmds_need_lc_CXX" >&6; }
  11681. ;;
  11682. esac
  11683. fi
  11684. ;;
  11685. esac
  11686. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  11687. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  11688. library_names_spec=
  11689. libname_spec='lib$name'
  11690. soname_spec=
  11691. shrext_cmds=".so"
  11692. postinstall_cmds=
  11693. postuninstall_cmds=
  11694. finish_cmds=
  11695. finish_eval=
  11696. shlibpath_var=
  11697. shlibpath_overrides_runpath=unknown
  11698. version_type=none
  11699. dynamic_linker="$host_os ld.so"
  11700. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  11701. need_lib_prefix=unknown
  11702. hardcode_into_libs=no
  11703. # when you set need_version to no, make sure it does not cause -set_version
  11704. # flags to be left without arguments
  11705. need_version=unknown
  11706. case $host_os in
  11707. aix3*)
  11708. version_type=linux
  11709. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  11710. shlibpath_var=LIBPATH
  11711. # AIX 3 has no versioning support, so we append a major version to the name.
  11712. soname_spec='${libname}${release}${shared_ext}$major'
  11713. ;;
  11714. aix[4-9]*)
  11715. version_type=linux
  11716. need_lib_prefix=no
  11717. need_version=no
  11718. hardcode_into_libs=yes
  11719. if test "$host_cpu" = ia64; then
  11720. # AIX 5 supports IA64
  11721. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  11722. shlibpath_var=LD_LIBRARY_PATH
  11723. else
  11724. # With GCC up to 2.95.x, collect2 would create an import file
  11725. # for dependence libraries. The import file would start with
  11726. # the line `#! .'. This would cause the generated library to
  11727. # depend on `.', always an invalid library. This was fixed in
  11728. # development snapshots of GCC prior to 3.0.
  11729. case $host_os in
  11730. aix4 | aix4.[01] | aix4.[01].*)
  11731. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  11732. echo ' yes '
  11733. echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  11734. :
  11735. else
  11736. can_build_shared=no
  11737. fi
  11738. ;;
  11739. esac
  11740. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  11741. # soname into executable. Probably we can add versioning support to
  11742. # collect2, so additional links can be useful in future.
  11743. if test "$aix_use_runtimelinking" = yes; then
  11744. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  11745. # instead of lib<name>.a to let people know that these are not
  11746. # typical AIX shared libraries.
  11747. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11748. else
  11749. # We preserve .a as extension for shared libraries through AIX4.2
  11750. # and later when we are not doing run time linking.
  11751. library_names_spec='${libname}${release}.a $libname.a'
  11752. soname_spec='${libname}${release}${shared_ext}$major'
  11753. fi
  11754. shlibpath_var=LIBPATH
  11755. fi
  11756. ;;
  11757. amigaos*)
  11758. case $host_cpu in
  11759. powerpc)
  11760. # Since July 2007 AmigaOS4 officially supports .so libraries.
  11761. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  11762. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11763. ;;
  11764. m68k)
  11765. library_names_spec='$libname.ixlibrary $libname.a'
  11766. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  11767. finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
  11768. ;;
  11769. esac
  11770. ;;
  11771. beos*)
  11772. library_names_spec='${libname}${shared_ext}'
  11773. dynamic_linker="$host_os ld.so"
  11774. shlibpath_var=LIBRARY_PATH
  11775. ;;
  11776. bsdi[45]*)
  11777. version_type=linux
  11778. need_version=no
  11779. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11780. soname_spec='${libname}${release}${shared_ext}$major'
  11781. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  11782. shlibpath_var=LD_LIBRARY_PATH
  11783. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  11784. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  11785. # the default ld.so.conf also contains /usr/contrib/lib and
  11786. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  11787. # libtool to hard-code these into programs
  11788. ;;
  11789. cygwin* | mingw* | pw32* | cegcc*)
  11790. version_type=windows
  11791. shrext_cmds=".dll"
  11792. need_version=no
  11793. need_lib_prefix=no
  11794. case $GCC,$host_os in
  11795. yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
  11796. library_names_spec='$libname.dll.a'
  11797. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  11798. postinstall_cmds='base_file=`basename \${file}`~
  11799. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  11800. dldir=$destdir/`dirname \$dlpath`~
  11801. test -d \$dldir || mkdir -p \$dldir~
  11802. $install_prog $dir/$dlname \$dldir/$dlname~
  11803. chmod a+x \$dldir/$dlname~
  11804. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  11805. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  11806. fi'
  11807. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  11808. dlpath=$dir/\$dldll~
  11809. $RM \$dlpath'
  11810. shlibpath_overrides_runpath=yes
  11811. case $host_os in
  11812. cygwin*)
  11813. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  11814. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  11815. sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
  11816. ;;
  11817. mingw* | cegcc*)
  11818. # MinGW DLLs use traditional 'lib' prefix
  11819. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  11820. sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  11821. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  11822. # It is most probably a Windows format PATH printed by
  11823. # mingw gcc, but we are running on Cygwin. Gcc prints its search
  11824. # path with ; separators, and with drive letters. We can handle the
  11825. # drive letters (cygwin fileutils understands them), so leave them,
  11826. # especially as we might pass files found there to a mingw objdump,
  11827. # which wouldn't understand a cygwinified path. Ahh.
  11828. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  11829. else
  11830. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  11831. fi
  11832. ;;
  11833. pw32*)
  11834. # pw32 DLLs use 'pw' prefix rather than 'lib'
  11835. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  11836. ;;
  11837. esac
  11838. ;;
  11839. *)
  11840. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  11841. ;;
  11842. esac
  11843. dynamic_linker='Win32 ld.exe'
  11844. # FIXME: first we should search . and the directory the executable is in
  11845. shlibpath_var=PATH
  11846. ;;
  11847. darwin* | rhapsody*)
  11848. dynamic_linker="$host_os dyld"
  11849. version_type=darwin
  11850. need_lib_prefix=no
  11851. need_version=no
  11852. library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  11853. soname_spec='${libname}${release}${major}$shared_ext'
  11854. shlibpath_overrides_runpath=yes
  11855. shlibpath_var=DYLD_LIBRARY_PATH
  11856. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  11857. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  11858. ;;
  11859. dgux*)
  11860. version_type=linux
  11861. need_lib_prefix=no
  11862. need_version=no
  11863. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  11864. soname_spec='${libname}${release}${shared_ext}$major'
  11865. shlibpath_var=LD_LIBRARY_PATH
  11866. ;;
  11867. freebsd1*)
  11868. dynamic_linker=no
  11869. ;;
  11870. freebsd* | dragonfly*)
  11871. # DragonFly does not have aout. When/if they implement a new
  11872. # versioning mechanism, adjust this.
  11873. if test -x /usr/bin/objformat; then
  11874. objformat=`/usr/bin/objformat`
  11875. else
  11876. case $host_os in
  11877. freebsd[123]*) objformat=aout ;;
  11878. *) objformat=elf ;;
  11879. esac
  11880. fi
  11881. version_type=freebsd-$objformat
  11882. case $version_type in
  11883. freebsd-elf*)
  11884. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  11885. need_version=no
  11886. need_lib_prefix=no
  11887. ;;
  11888. freebsd-*)
  11889. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  11890. need_version=yes
  11891. ;;
  11892. esac
  11893. shlibpath_var=LD_LIBRARY_PATH
  11894. case $host_os in
  11895. freebsd2*)
  11896. shlibpath_overrides_runpath=yes
  11897. ;;
  11898. freebsd3.[01]* | freebsdelf3.[01]*)
  11899. shlibpath_overrides_runpath=yes
  11900. hardcode_into_libs=yes
  11901. ;;
  11902. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  11903. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  11904. shlibpath_overrides_runpath=no
  11905. hardcode_into_libs=yes
  11906. ;;
  11907. *) # from 4.6 on, and DragonFly
  11908. shlibpath_overrides_runpath=yes
  11909. hardcode_into_libs=yes
  11910. ;;
  11911. esac
  11912. ;;
  11913. gnu*)
  11914. version_type=linux
  11915. need_lib_prefix=no
  11916. need_version=no
  11917. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  11918. soname_spec='${libname}${release}${shared_ext}$major'
  11919. shlibpath_var=LD_LIBRARY_PATH
  11920. hardcode_into_libs=yes
  11921. ;;
  11922. hpux9* | hpux10* | hpux11*)
  11923. # Give a soname corresponding to the major version so that dld.sl refuses to
  11924. # link against other versions.
  11925. version_type=sunos
  11926. need_lib_prefix=no
  11927. need_version=no
  11928. case $host_cpu in
  11929. ia64*)
  11930. shrext_cmds='.so'
  11931. hardcode_into_libs=yes
  11932. dynamic_linker="$host_os dld.so"
  11933. shlibpath_var=LD_LIBRARY_PATH
  11934. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  11935. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11936. soname_spec='${libname}${release}${shared_ext}$major'
  11937. if test "X$HPUX_IA64_MODE" = X32; then
  11938. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  11939. else
  11940. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  11941. fi
  11942. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  11943. ;;
  11944. hppa*64*)
  11945. shrext_cmds='.sl'
  11946. hardcode_into_libs=yes
  11947. dynamic_linker="$host_os dld.sl"
  11948. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  11949. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  11950. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11951. soname_spec='${libname}${release}${shared_ext}$major'
  11952. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  11953. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  11954. ;;
  11955. *)
  11956. shrext_cmds='.sl'
  11957. dynamic_linker="$host_os dld.sl"
  11958. shlibpath_var=SHLIB_PATH
  11959. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  11960. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11961. soname_spec='${libname}${release}${shared_ext}$major'
  11962. ;;
  11963. esac
  11964. # HP-UX runs *really* slowly unless shared libraries are mode 555.
  11965. postinstall_cmds='chmod 555 $lib'
  11966. ;;
  11967. interix[3-9]*)
  11968. version_type=linux
  11969. need_lib_prefix=no
  11970. need_version=no
  11971. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  11972. soname_spec='${libname}${release}${shared_ext}$major'
  11973. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  11974. shlibpath_var=LD_LIBRARY_PATH
  11975. shlibpath_overrides_runpath=no
  11976. hardcode_into_libs=yes
  11977. ;;
  11978. irix5* | irix6* | nonstopux*)
  11979. case $host_os in
  11980. nonstopux*) version_type=nonstopux ;;
  11981. *)
  11982. if test "$lt_cv_prog_gnu_ld" = yes; then
  11983. version_type=linux
  11984. else
  11985. version_type=irix
  11986. fi ;;
  11987. esac
  11988. need_lib_prefix=no
  11989. need_version=no
  11990. soname_spec='${libname}${release}${shared_ext}$major'
  11991. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  11992. case $host_os in
  11993. irix5* | nonstopux*)
  11994. libsuff= shlibsuff=
  11995. ;;
  11996. *)
  11997. case $LD in # libtool.m4 will add one of these switches to LD
  11998. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  11999. libsuff= shlibsuff= libmagic=32-bit;;
  12000. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  12001. libsuff=32 shlibsuff=N32 libmagic=N32;;
  12002. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  12003. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  12004. *) libsuff= shlibsuff= libmagic=never-match;;
  12005. esac
  12006. ;;
  12007. esac
  12008. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  12009. shlibpath_overrides_runpath=no
  12010. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  12011. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  12012. hardcode_into_libs=yes
  12013. ;;
  12014. # No shared lib support for Linux oldld, aout, or coff.
  12015. linux*oldld* | linux*aout* | linux*coff*)
  12016. dynamic_linker=no
  12017. ;;
  12018. # This must be Linux ELF.
  12019. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  12020. version_type=linux
  12021. need_lib_prefix=no
  12022. need_version=no
  12023. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12024. soname_spec='${libname}${release}${shared_ext}$major'
  12025. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  12026. shlibpath_var=LD_LIBRARY_PATH
  12027. shlibpath_overrides_runpath=no
  12028. # Some binutils ld are patched to set DT_RUNPATH
  12029. save_LDFLAGS=$LDFLAGS
  12030. save_libdir=$libdir
  12031. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
  12032. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
  12033. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12034. /* end confdefs.h. */
  12035. int
  12036. main ()
  12037. {
  12038. ;
  12039. return 0;
  12040. }
  12041. _ACEOF
  12042. if ac_fn_cxx_try_link "$LINENO"; then :
  12043. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  12044. shlibpath_overrides_runpath=yes
  12045. fi
  12046. fi
  12047. rm -f core conftest.err conftest.$ac_objext \
  12048. conftest$ac_exeext conftest.$ac_ext
  12049. LDFLAGS=$save_LDFLAGS
  12050. libdir=$save_libdir
  12051. # This implies no fast_install, which is unacceptable.
  12052. # Some rework will be needed to allow for fast_install
  12053. # before this can be enabled.
  12054. hardcode_into_libs=yes
  12055. # Append ld.so.conf contents to the search path
  12056. if test -f /etc/ld.so.conf; then
  12057. lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
  12058. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  12059. fi
  12060. # We used to test for /lib/ld.so.1 and disable shared libraries on
  12061. # powerpc, because MkLinux only supported shared libraries with the
  12062. # GNU dynamic linker. Since this was broken with cross compilers,
  12063. # most powerpc-linux boxes support dynamic linking these days and
  12064. # people can always --disable-shared, the test was removed, and we
  12065. # assume the GNU/Linux dynamic linker is in use.
  12066. dynamic_linker='GNU/Linux ld.so'
  12067. ;;
  12068. netbsdelf*-gnu)
  12069. version_type=linux
  12070. need_lib_prefix=no
  12071. need_version=no
  12072. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  12073. soname_spec='${libname}${release}${shared_ext}$major'
  12074. shlibpath_var=LD_LIBRARY_PATH
  12075. shlibpath_overrides_runpath=no
  12076. hardcode_into_libs=yes
  12077. dynamic_linker='NetBSD ld.elf_so'
  12078. ;;
  12079. netbsd*)
  12080. version_type=sunos
  12081. need_lib_prefix=no
  12082. need_version=no
  12083. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  12084. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  12085. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  12086. dynamic_linker='NetBSD (a.out) ld.so'
  12087. else
  12088. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  12089. soname_spec='${libname}${release}${shared_ext}$major'
  12090. dynamic_linker='NetBSD ld.elf_so'
  12091. fi
  12092. shlibpath_var=LD_LIBRARY_PATH
  12093. shlibpath_overrides_runpath=yes
  12094. hardcode_into_libs=yes
  12095. ;;
  12096. newsos6)
  12097. version_type=linux
  12098. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12099. shlibpath_var=LD_LIBRARY_PATH
  12100. shlibpath_overrides_runpath=yes
  12101. ;;
  12102. *nto* | *qnx*)
  12103. version_type=qnx
  12104. need_lib_prefix=no
  12105. need_version=no
  12106. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12107. soname_spec='${libname}${release}${shared_ext}$major'
  12108. shlibpath_var=LD_LIBRARY_PATH
  12109. shlibpath_overrides_runpath=no
  12110. hardcode_into_libs=yes
  12111. dynamic_linker='ldqnx.so'
  12112. ;;
  12113. openbsd*)
  12114. version_type=sunos
  12115. sys_lib_dlsearch_path_spec="/usr/lib"
  12116. need_lib_prefix=no
  12117. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  12118. case $host_os in
  12119. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  12120. *) need_version=no ;;
  12121. esac
  12122. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  12123. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  12124. shlibpath_var=LD_LIBRARY_PATH
  12125. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  12126. case $host_os in
  12127. openbsd2.[89] | openbsd2.[89].*)
  12128. shlibpath_overrides_runpath=no
  12129. ;;
  12130. *)
  12131. shlibpath_overrides_runpath=yes
  12132. ;;
  12133. esac
  12134. else
  12135. shlibpath_overrides_runpath=yes
  12136. fi
  12137. ;;
  12138. os2*)
  12139. libname_spec='$name'
  12140. shrext_cmds=".dll"
  12141. need_lib_prefix=no
  12142. library_names_spec='$libname${shared_ext} $libname.a'
  12143. dynamic_linker='OS/2 ld.exe'
  12144. shlibpath_var=LIBPATH
  12145. ;;
  12146. osf3* | osf4* | osf5*)
  12147. version_type=osf
  12148. need_lib_prefix=no
  12149. need_version=no
  12150. soname_spec='${libname}${release}${shared_ext}$major'
  12151. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12152. shlibpath_var=LD_LIBRARY_PATH
  12153. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  12154. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  12155. ;;
  12156. rdos*)
  12157. dynamic_linker=no
  12158. ;;
  12159. solaris*)
  12160. version_type=linux
  12161. need_lib_prefix=no
  12162. need_version=no
  12163. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12164. soname_spec='${libname}${release}${shared_ext}$major'
  12165. shlibpath_var=LD_LIBRARY_PATH
  12166. shlibpath_overrides_runpath=yes
  12167. hardcode_into_libs=yes
  12168. # ldd complains unless libraries are executable
  12169. postinstall_cmds='chmod +x $lib'
  12170. ;;
  12171. sunos4*)
  12172. version_type=sunos
  12173. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  12174. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  12175. shlibpath_var=LD_LIBRARY_PATH
  12176. shlibpath_overrides_runpath=yes
  12177. if test "$with_gnu_ld" = yes; then
  12178. need_lib_prefix=no
  12179. fi
  12180. need_version=yes
  12181. ;;
  12182. sysv4 | sysv4.3*)
  12183. version_type=linux
  12184. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12185. soname_spec='${libname}${release}${shared_ext}$major'
  12186. shlibpath_var=LD_LIBRARY_PATH
  12187. case $host_vendor in
  12188. sni)
  12189. shlibpath_overrides_runpath=no
  12190. need_lib_prefix=no
  12191. runpath_var=LD_RUN_PATH
  12192. ;;
  12193. siemens)
  12194. need_lib_prefix=no
  12195. ;;
  12196. motorola)
  12197. need_lib_prefix=no
  12198. need_version=no
  12199. shlibpath_overrides_runpath=no
  12200. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  12201. ;;
  12202. esac
  12203. ;;
  12204. sysv4*MP*)
  12205. if test -d /usr/nec ;then
  12206. version_type=linux
  12207. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  12208. soname_spec='$libname${shared_ext}.$major'
  12209. shlibpath_var=LD_LIBRARY_PATH
  12210. fi
  12211. ;;
  12212. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  12213. version_type=freebsd-elf
  12214. need_lib_prefix=no
  12215. need_version=no
  12216. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  12217. soname_spec='${libname}${release}${shared_ext}$major'
  12218. shlibpath_var=LD_LIBRARY_PATH
  12219. shlibpath_overrides_runpath=yes
  12220. hardcode_into_libs=yes
  12221. if test "$with_gnu_ld" = yes; then
  12222. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  12223. else
  12224. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  12225. case $host_os in
  12226. sco3.2v5*)
  12227. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  12228. ;;
  12229. esac
  12230. fi
  12231. sys_lib_dlsearch_path_spec='/usr/lib'
  12232. ;;
  12233. tpf*)
  12234. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  12235. version_type=linux
  12236. need_lib_prefix=no
  12237. need_version=no
  12238. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12239. shlibpath_var=LD_LIBRARY_PATH
  12240. shlibpath_overrides_runpath=no
  12241. hardcode_into_libs=yes
  12242. ;;
  12243. uts4*)
  12244. version_type=linux
  12245. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12246. soname_spec='${libname}${release}${shared_ext}$major'
  12247. shlibpath_var=LD_LIBRARY_PATH
  12248. ;;
  12249. *)
  12250. dynamic_linker=no
  12251. ;;
  12252. esac
  12253. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  12254. $as_echo "$dynamic_linker" >&6; }
  12255. test "$dynamic_linker" = no && can_build_shared=no
  12256. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  12257. if test "$GCC" = yes; then
  12258. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  12259. fi
  12260. if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  12261. sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  12262. fi
  12263. if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  12264. sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  12265. fi
  12266. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  12267. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  12268. hardcode_action_CXX=
  12269. if test -n "$hardcode_libdir_flag_spec_CXX" ||
  12270. test -n "$runpath_var_CXX" ||
  12271. test "X$hardcode_automatic_CXX" = "Xyes" ; then
  12272. # We can hardcode non-existent directories.
  12273. if test "$hardcode_direct_CXX" != no &&
  12274. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  12275. # have to relink, otherwise we might link with an installed library
  12276. # when we should be linking with a yet-to-be-installed one
  12277. ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
  12278. test "$hardcode_minus_L_CXX" != no; then
  12279. # Linking always hardcodes the temporary library directory.
  12280. hardcode_action_CXX=relink
  12281. else
  12282. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  12283. hardcode_action_CXX=immediate
  12284. fi
  12285. else
  12286. # We cannot hardcode anything, or else we can only hardcode existing
  12287. # directories.
  12288. hardcode_action_CXX=unsupported
  12289. fi
  12290. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
  12291. $as_echo "$hardcode_action_CXX" >&6; }
  12292. if test "$hardcode_action_CXX" = relink ||
  12293. test "$inherit_rpath_CXX" = yes; then
  12294. # Fast installation is not supported
  12295. enable_fast_install=no
  12296. elif test "$shlibpath_overrides_runpath" = yes ||
  12297. test "$enable_shared" = no; then
  12298. # Fast installation is not necessary
  12299. enable_fast_install=needless
  12300. fi
  12301. fi # test -n "$compiler"
  12302. CC=$lt_save_CC
  12303. LDCXX=$LD
  12304. LD=$lt_save_LD
  12305. GCC=$lt_save_GCC
  12306. with_gnu_ld=$lt_save_with_gnu_ld
  12307. lt_cv_path_LDCXX=$lt_cv_path_LD
  12308. lt_cv_path_LD=$lt_save_path_LD
  12309. lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
  12310. lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
  12311. fi # test "$_lt_caught_CXX_error" != yes
  12312. ac_ext=c
  12313. ac_cpp='$CPP $CPPFLAGS'
  12314. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  12315. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12316. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  12317. # Checks for programs.
  12318. # Checks for libraries.
  12319. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_create_read_struct in -lpng15" >&5
  12320. $as_echo_n "checking for png_create_read_struct in -lpng15... " >&6; }
  12321. if test "${ac_cv_lib_png15_png_create_read_struct+set}" = set; then :
  12322. $as_echo_n "(cached) " >&6
  12323. else
  12324. ac_check_lib_save_LIBS=$LIBS
  12325. LIBS="-lpng15 $LIBS"
  12326. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12327. /* end confdefs.h. */
  12328. /* Override any GCC internal prototype to avoid an error.
  12329. Use char because int might match the return type of a GCC
  12330. builtin and then its argument prototype would still apply. */
  12331. #ifdef __cplusplus
  12332. extern "C"
  12333. #endif
  12334. char png_create_read_struct ();
  12335. int
  12336. main ()
  12337. {
  12338. return png_create_read_struct ();
  12339. ;
  12340. return 0;
  12341. }
  12342. _ACEOF
  12343. if ac_fn_c_try_link "$LINENO"; then :
  12344. ac_cv_lib_png15_png_create_read_struct=yes
  12345. else
  12346. ac_cv_lib_png15_png_create_read_struct=no
  12347. fi
  12348. rm -f core conftest.err conftest.$ac_objext \
  12349. conftest$ac_exeext conftest.$ac_ext
  12350. LIBS=$ac_check_lib_save_LIBS
  12351. fi
  12352. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png15_png_create_read_struct" >&5
  12353. $as_echo "$ac_cv_lib_png15_png_create_read_struct" >&6; }
  12354. if test "x$ac_cv_lib_png15_png_create_read_struct" = x""yes; then :
  12355. cat >>confdefs.h <<_ACEOF
  12356. #define HAVE_LIBPNG15 1
  12357. _ACEOF
  12358. LIBS="-lpng15 $LIBS"
  12359. else
  12360. echo "libpng is required!"
  12361. exit -1
  12362. fi
  12363. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FT_Load_Glyph in -lfreetype" >&5
  12364. $as_echo_n "checking for FT_Load_Glyph in -lfreetype... " >&6; }
  12365. if test "${ac_cv_lib_freetype_FT_Load_Glyph+set}" = set; then :
  12366. $as_echo_n "(cached) " >&6
  12367. else
  12368. ac_check_lib_save_LIBS=$LIBS
  12369. LIBS="-lfreetype $LIBS"
  12370. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12371. /* end confdefs.h. */
  12372. /* Override any GCC internal prototype to avoid an error.
  12373. Use char because int might match the return type of a GCC
  12374. builtin and then its argument prototype would still apply. */
  12375. #ifdef __cplusplus
  12376. extern "C"
  12377. #endif
  12378. char FT_Load_Glyph ();
  12379. int
  12380. main ()
  12381. {
  12382. return FT_Load_Glyph ();
  12383. ;
  12384. return 0;
  12385. }
  12386. _ACEOF
  12387. if ac_fn_c_try_link "$LINENO"; then :
  12388. ac_cv_lib_freetype_FT_Load_Glyph=yes
  12389. else
  12390. ac_cv_lib_freetype_FT_Load_Glyph=no
  12391. fi
  12392. rm -f core conftest.err conftest.$ac_objext \
  12393. conftest$ac_exeext conftest.$ac_ext
  12394. LIBS=$ac_check_lib_save_LIBS
  12395. fi
  12396. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_freetype_FT_Load_Glyph" >&5
  12397. $as_echo "$ac_cv_lib_freetype_FT_Load_Glyph" >&6; }
  12398. if test "x$ac_cv_lib_freetype_FT_Load_Glyph" = x""yes; then :
  12399. cat >>confdefs.h <<_ACEOF
  12400. #define HAVE_LIBFREETYPE 1
  12401. _ACEOF
  12402. LIBS="-lfreetype $LIBS"
  12403. else
  12404. echo "freetype is required!"
  12405. exit -1
  12406. fi
  12407. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for vorbis_info_init in -lvorbis" >&5
  12408. $as_echo_n "checking for vorbis_info_init in -lvorbis... " >&6; }
  12409. if test "${ac_cv_lib_vorbis_vorbis_info_init+set}" = set; then :
  12410. $as_echo_n "(cached) " >&6
  12411. else
  12412. ac_check_lib_save_LIBS=$LIBS
  12413. LIBS="-lvorbis $LIBS"
  12414. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12415. /* end confdefs.h. */
  12416. /* Override any GCC internal prototype to avoid an error.
  12417. Use char because int might match the return type of a GCC
  12418. builtin and then its argument prototype would still apply. */
  12419. #ifdef __cplusplus
  12420. extern "C"
  12421. #endif
  12422. char vorbis_info_init ();
  12423. int
  12424. main ()
  12425. {
  12426. return vorbis_info_init ();
  12427. ;
  12428. return 0;
  12429. }
  12430. _ACEOF
  12431. if ac_fn_c_try_link "$LINENO"; then :
  12432. ac_cv_lib_vorbis_vorbis_info_init=yes
  12433. else
  12434. ac_cv_lib_vorbis_vorbis_info_init=no
  12435. fi
  12436. rm -f core conftest.err conftest.$ac_objext \
  12437. conftest$ac_exeext conftest.$ac_ext
  12438. LIBS=$ac_check_lib_save_LIBS
  12439. fi
  12440. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_vorbis_vorbis_info_init" >&5
  12441. $as_echo "$ac_cv_lib_vorbis_vorbis_info_init" >&6; }
  12442. if test "x$ac_cv_lib_vorbis_vorbis_info_init" = x""yes; then :
  12443. cat >>confdefs.h <<_ACEOF
  12444. #define HAVE_LIBVORBIS 1
  12445. _ACEOF
  12446. LIBS="-lvorbis $LIBS"
  12447. else
  12448. echo "libvorbis is required!"
  12449. exit -1
  12450. fi
  12451. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ov_open_callbacks in -lvorbisfile" >&5
  12452. $as_echo_n "checking for ov_open_callbacks in -lvorbisfile... " >&6; }
  12453. if test "${ac_cv_lib_vorbisfile_ov_open_callbacks+set}" = set; then :
  12454. $as_echo_n "(cached) " >&6
  12455. else
  12456. ac_check_lib_save_LIBS=$LIBS
  12457. LIBS="-lvorbisfile $LIBS"
  12458. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12459. /* end confdefs.h. */
  12460. /* Override any GCC internal prototype to avoid an error.
  12461. Use char because int might match the return type of a GCC
  12462. builtin and then its argument prototype would still apply. */
  12463. #ifdef __cplusplus
  12464. extern "C"
  12465. #endif
  12466. char ov_open_callbacks ();
  12467. int
  12468. main ()
  12469. {
  12470. return ov_open_callbacks ();
  12471. ;
  12472. return 0;
  12473. }
  12474. _ACEOF
  12475. if ac_fn_c_try_link "$LINENO"; then :
  12476. ac_cv_lib_vorbisfile_ov_open_callbacks=yes
  12477. else
  12478. ac_cv_lib_vorbisfile_ov_open_callbacks=no
  12479. fi
  12480. rm -f core conftest.err conftest.$ac_objext \
  12481. conftest$ac_exeext conftest.$ac_ext
  12482. LIBS=$ac_check_lib_save_LIBS
  12483. fi
  12484. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_vorbisfile_ov_open_callbacks" >&5
  12485. $as_echo "$ac_cv_lib_vorbisfile_ov_open_callbacks" >&6; }
  12486. if test "x$ac_cv_lib_vorbisfile_ov_open_callbacks" = x""yes; then :
  12487. cat >>confdefs.h <<_ACEOF
  12488. #define HAVE_LIBVORBISFILE 1
  12489. _ACEOF
  12490. LIBS="-lvorbisfile $LIBS"
  12491. else
  12492. echo "libvorbisfile is required!"
  12493. exit -1
  12494. fi
  12495. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PHYSFS_init in -lphysfs" >&5
  12496. $as_echo_n "checking for PHYSFS_init in -lphysfs... " >&6; }
  12497. if test "${ac_cv_lib_physfs_PHYSFS_init+set}" = set; then :
  12498. $as_echo_n "(cached) " >&6
  12499. else
  12500. ac_check_lib_save_LIBS=$LIBS
  12501. LIBS="-lphysfs $LIBS"
  12502. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12503. /* end confdefs.h. */
  12504. /* Override any GCC internal prototype to avoid an error.
  12505. Use char because int might match the return type of a GCC
  12506. builtin and then its argument prototype would still apply. */
  12507. #ifdef __cplusplus
  12508. extern "C"
  12509. #endif
  12510. char PHYSFS_init ();
  12511. int
  12512. main ()
  12513. {
  12514. return PHYSFS_init ();
  12515. ;
  12516. return 0;
  12517. }
  12518. _ACEOF
  12519. if ac_fn_c_try_link "$LINENO"; then :
  12520. ac_cv_lib_physfs_PHYSFS_init=yes
  12521. else
  12522. ac_cv_lib_physfs_PHYSFS_init=no
  12523. fi
  12524. rm -f core conftest.err conftest.$ac_objext \
  12525. conftest$ac_exeext conftest.$ac_ext
  12526. LIBS=$ac_check_lib_save_LIBS
  12527. fi
  12528. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_physfs_PHYSFS_init" >&5
  12529. $as_echo "$ac_cv_lib_physfs_PHYSFS_init" >&6; }
  12530. if test "x$ac_cv_lib_physfs_PHYSFS_init" = x""yes; then :
  12531. cat >>confdefs.h <<_ACEOF
  12532. #define HAVE_LIBPHYSFS 1
  12533. _ACEOF
  12534. LIBS="-lphysfs $LIBS"
  12535. else
  12536. echo "physfs is required!"
  12537. exit -1
  12538. fi
  12539. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alGenSources in -lopenal" >&5
  12540. $as_echo_n "checking for alGenSources in -lopenal... " >&6; }
  12541. if test "${ac_cv_lib_openal_alGenSources+set}" = set; then :
  12542. $as_echo_n "(cached) " >&6
  12543. else
  12544. ac_check_lib_save_LIBS=$LIBS
  12545. LIBS="-lopenal $LIBS"
  12546. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12547. /* end confdefs.h. */
  12548. /* Override any GCC internal prototype to avoid an error.
  12549. Use char because int might match the return type of a GCC
  12550. builtin and then its argument prototype would still apply. */
  12551. #ifdef __cplusplus
  12552. extern "C"
  12553. #endif
  12554. char alGenSources ();
  12555. int
  12556. main ()
  12557. {
  12558. return alGenSources ();
  12559. ;
  12560. return 0;
  12561. }
  12562. _ACEOF
  12563. if ac_fn_c_try_link "$LINENO"; then :
  12564. ac_cv_lib_openal_alGenSources=yes
  12565. else
  12566. ac_cv_lib_openal_alGenSources=no
  12567. fi
  12568. rm -f core conftest.err conftest.$ac_objext \
  12569. conftest$ac_exeext conftest.$ac_ext
  12570. LIBS=$ac_check_lib_save_LIBS
  12571. fi
  12572. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_openal_alGenSources" >&5
  12573. $as_echo "$ac_cv_lib_openal_alGenSources" >&6; }
  12574. if test "x$ac_cv_lib_openal_alGenSources" = x""yes; then :
  12575. cat >>confdefs.h <<_ACEOF
  12576. #define HAVE_LIBOPENAL 1
  12577. _ACEOF
  12578. LIBS="-lopenal $LIBS"
  12579. else
  12580. echo "openal is required!"
  12581. exit -1
  12582. fi
  12583. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SDL_Init in -lSDL" >&5
  12584. $as_echo_n "checking for SDL_Init in -lSDL... " >&6; }
  12585. if test "${ac_cv_lib_SDL_SDL_Init+set}" = set; then :
  12586. $as_echo_n "(cached) " >&6
  12587. else
  12588. ac_check_lib_save_LIBS=$LIBS
  12589. LIBS="-lSDL $LIBS"
  12590. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12591. /* end confdefs.h. */
  12592. /* Override any GCC internal prototype to avoid an error.
  12593. Use char because int might match the return type of a GCC
  12594. builtin and then its argument prototype would still apply. */
  12595. #ifdef __cplusplus
  12596. extern "C"
  12597. #endif
  12598. char SDL_Init ();
  12599. int
  12600. main ()
  12601. {
  12602. return SDL_Init ();
  12603. ;
  12604. return 0;
  12605. }
  12606. _ACEOF
  12607. if ac_fn_c_try_link "$LINENO"; then :
  12608. ac_cv_lib_SDL_SDL_Init=yes
  12609. else
  12610. ac_cv_lib_SDL_SDL_Init=no
  12611. fi
  12612. rm -f core conftest.err conftest.$ac_objext \
  12613. conftest$ac_exeext conftest.$ac_ext
  12614. LIBS=$ac_check_lib_save_LIBS
  12615. fi
  12616. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_SDL_SDL_Init" >&5
  12617. $as_echo "$ac_cv_lib_SDL_SDL_Init" >&6; }
  12618. if test "x$ac_cv_lib_SDL_SDL_Init" = x""yes; then :
  12619. cat >>confdefs.h <<_ACEOF
  12620. #define HAVE_LIBSDL 1
  12621. _ACEOF
  12622. LIBS="-lSDL $LIBS"
  12623. else
  12624. echo "SDL is required!"
  12625. exit -1
  12626. fi
  12627. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for glBegin in -lGL" >&5
  12628. $as_echo_n "checking for glBegin in -lGL... " >&6; }
  12629. if test "${ac_cv_lib_GL_glBegin+set}" = set; then :
  12630. $as_echo_n "(cached) " >&6
  12631. else
  12632. ac_check_lib_save_LIBS=$LIBS
  12633. LIBS="-lGL $LIBS"
  12634. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12635. /* end confdefs.h. */
  12636. /* Override any GCC internal prototype to avoid an error.
  12637. Use char because int might match the return type of a GCC
  12638. builtin and then its argument prototype would still apply. */
  12639. #ifdef __cplusplus
  12640. extern "C"
  12641. #endif
  12642. char glBegin ();
  12643. int
  12644. main ()
  12645. {
  12646. return glBegin ();
  12647. ;
  12648. return 0;
  12649. }
  12650. _ACEOF
  12651. if ac_fn_c_try_link "$LINENO"; then :
  12652. ac_cv_lib_GL_glBegin=yes
  12653. else
  12654. ac_cv_lib_GL_glBegin=no
  12655. fi
  12656. rm -f core conftest.err conftest.$ac_objext \
  12657. conftest$ac_exeext conftest.$ac_ext
  12658. LIBS=$ac_check_lib_save_LIBS
  12659. fi
  12660. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_GL_glBegin" >&5
  12661. $as_echo "$ac_cv_lib_GL_glBegin" >&6; }
  12662. if test "x$ac_cv_lib_GL_glBegin" = x""yes; then :
  12663. cat >>confdefs.h <<_ACEOF
  12664. #define HAVE_LIBGL 1
  12665. _ACEOF
  12666. LIBS="-lGL $LIBS"
  12667. else
  12668. echo "OpenGL is required!"
  12669. exit -1
  12670. fi
  12671. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gluGetString in -lGLU" >&5
  12672. $as_echo_n "checking for gluGetString in -lGLU... " >&6; }
  12673. if test "${ac_cv_lib_GLU_gluGetString+set}" = set; then :
  12674. $as_echo_n "(cached) " >&6
  12675. else
  12676. ac_check_lib_save_LIBS=$LIBS
  12677. LIBS="-lGLU $LIBS"
  12678. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12679. /* end confdefs.h. */
  12680. /* Override any GCC internal prototype to avoid an error.
  12681. Use char because int might match the return type of a GCC
  12682. builtin and then its argument prototype would still apply. */
  12683. #ifdef __cplusplus
  12684. extern "C"
  12685. #endif
  12686. char gluGetString ();
  12687. int
  12688. main ()
  12689. {
  12690. return gluGetString ();
  12691. ;
  12692. return 0;
  12693. }
  12694. _ACEOF
  12695. if ac_fn_c_try_link "$LINENO"; then :
  12696. ac_cv_lib_GLU_gluGetString=yes
  12697. else
  12698. ac_cv_lib_GLU_gluGetString=no
  12699. fi
  12700. rm -f core conftest.err conftest.$ac_objext \
  12701. conftest$ac_exeext conftest.$ac_ext
  12702. LIBS=$ac_check_lib_save_LIBS
  12703. fi
  12704. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_GLU_gluGetString" >&5
  12705. $as_echo "$ac_cv_lib_GLU_gluGetString" >&6; }
  12706. if test "x$ac_cv_lib_GLU_gluGetString" = x""yes; then :
  12707. cat >>confdefs.h <<_ACEOF
  12708. #define HAVE_LIBGLU 1
  12709. _ACEOF
  12710. LIBS="-lGLU $LIBS"
  12711. else
  12712. echo "glu is required!"
  12713. exit -1
  12714. fi
  12715. # Checks for header files.
  12716. # Checks for typedefs, structures, and compiler characteristics.
  12717. # Checks for library functions.
  12718. cat >confcache <<\_ACEOF
  12719. # This file is a shell script that caches the results of configure
  12720. # tests run on this system so they can be shared between configure
  12721. # scripts and configure runs, see configure's option --config-cache.
  12722. # It is not useful on other systems. If it contains results you don't
  12723. # want to keep, you may remove or edit it.
  12724. #
  12725. # config.status only pays attention to the cache file if you give it
  12726. # the --recheck option to rerun configure.
  12727. #
  12728. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  12729. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  12730. # following values.
  12731. _ACEOF
  12732. # The following way of writing the cache mishandles newlines in values,
  12733. # but we know of no workaround that is simple, portable, and efficient.
  12734. # So, we kill variables containing newlines.
  12735. # Ultrix sh set writes to stderr and can't be redirected directly,
  12736. # and sets the high bit in the cache file unless we assign to the vars.
  12737. (
  12738. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  12739. eval ac_val=\$$ac_var
  12740. case $ac_val in #(
  12741. *${as_nl}*)
  12742. case $ac_var in #(
  12743. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  12744. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  12745. esac
  12746. case $ac_var in #(
  12747. _ | IFS | as_nl) ;; #(
  12748. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  12749. *) { eval $ac_var=; unset $ac_var;} ;;
  12750. esac ;;
  12751. esac
  12752. done
  12753. (set) 2>&1 |
  12754. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  12755. *${as_nl}ac_space=\ *)
  12756. # `set' does not quote correctly, so add quotes: double-quote
  12757. # substitution turns \\\\ into \\, and sed turns \\ into \.
  12758. sed -n \
  12759. "s/'/'\\\\''/g;
  12760. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  12761. ;; #(
  12762. *)
  12763. # `set' quotes correctly as required by POSIX, so do not add quotes.
  12764. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  12765. ;;
  12766. esac |
  12767. sort
  12768. ) |
  12769. sed '
  12770. /^ac_cv_env_/b end
  12771. t clear
  12772. :clear
  12773. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  12774. t end
  12775. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  12776. :end' >>confcache
  12777. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  12778. if test -w "$cache_file"; then
  12779. test "x$cache_file" != "x/dev/null" &&
  12780. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  12781. $as_echo "$as_me: updating cache $cache_file" >&6;}
  12782. cat confcache >$cache_file
  12783. else
  12784. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  12785. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  12786. fi
  12787. fi
  12788. rm -f confcache
  12789. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  12790. # Let make expand exec_prefix.
  12791. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  12792. # Transform confdefs.h into DEFS.
  12793. # Protect against shell expansion while executing Makefile rules.
  12794. # Protect against Makefile macro expansion.
  12795. #
  12796. # If the first sed substitution is executed (which looks for macros that
  12797. # take arguments), then branch to the quote section. Otherwise,
  12798. # look for a macro that doesn't take arguments.
  12799. ac_script='
  12800. :mline
  12801. /\\$/{
  12802. N
  12803. s,\\\n,,
  12804. b mline
  12805. }
  12806. t clear
  12807. :clear
  12808. s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
  12809. t quote
  12810. s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
  12811. t quote
  12812. b any
  12813. :quote
  12814. s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
  12815. s/\[/\\&/g
  12816. s/\]/\\&/g
  12817. s/\$/$$/g
  12818. H
  12819. :any
  12820. ${
  12821. g
  12822. s/^\n//
  12823. s/\n/ /g
  12824. p
  12825. }
  12826. '
  12827. DEFS=`sed -n "$ac_script" confdefs.h`
  12828. ac_libobjs=
  12829. ac_ltlibobjs=
  12830. U=
  12831. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  12832. # 1. Remove the extension, and $U if already installed.
  12833. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  12834. ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  12835. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  12836. # will be set to the directory where LIBOBJS objects are built.
  12837. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  12838. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  12839. done
  12840. LIBOBJS=$ac_libobjs
  12841. LTLIBOBJS=$ac_ltlibobjs
  12842. if test -n "$EXEEXT"; then
  12843. am__EXEEXT_TRUE=
  12844. am__EXEEXT_FALSE='#'
  12845. else
  12846. am__EXEEXT_TRUE='#'
  12847. am__EXEEXT_FALSE=
  12848. fi
  12849. if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
  12850. as_fn_error $? "conditional \"AMDEP\" was never defined.
  12851. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  12852. fi
  12853. if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  12854. as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
  12855. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  12856. fi
  12857. if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
  12858. as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
  12859. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  12860. fi
  12861. if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
  12862. as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
  12863. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  12864. fi
  12865. : ${CONFIG_STATUS=./config.status}
  12866. ac_write_fail=0
  12867. ac_clean_files_save=$ac_clean_files
  12868. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  12869. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  12870. $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  12871. as_write_fail=0
  12872. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  12873. #! $SHELL
  12874. # Generated by $as_me.
  12875. # Run this file to recreate the current configuration.
  12876. # Compiler output produced by configure, useful for debugging
  12877. # configure, is in config.log if it exists.
  12878. debug=false
  12879. ac_cs_recheck=false
  12880. ac_cs_silent=false
  12881. SHELL=\${CONFIG_SHELL-$SHELL}
  12882. export SHELL
  12883. _ASEOF
  12884. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  12885. ## -------------------- ##
  12886. ## M4sh Initialization. ##
  12887. ## -------------------- ##
  12888. # Be more Bourne compatible
  12889. DUALCASE=1; export DUALCASE # for MKS sh
  12890. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  12891. emulate sh
  12892. NULLCMD=:
  12893. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  12894. # is contrary to our usage. Disable this feature.
  12895. alias -g '${1+"$@"}'='"$@"'
  12896. setopt NO_GLOB_SUBST
  12897. else
  12898. case `(set -o) 2>/dev/null` in #(
  12899. *posix*) :
  12900. set -o posix ;; #(
  12901. *) :
  12902. ;;
  12903. esac
  12904. fi
  12905. as_nl='
  12906. '
  12907. export as_nl
  12908. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  12909. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  12910. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  12911. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  12912. # Prefer a ksh shell builtin over an external printf program on Solaris,
  12913. # but without wasting forks for bash or zsh.
  12914. if test -z "$BASH_VERSION$ZSH_VERSION" \
  12915. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  12916. as_echo='print -r --'
  12917. as_echo_n='print -rn --'
  12918. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  12919. as_echo='printf %s\n'
  12920. as_echo_n='printf %s'
  12921. else
  12922. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  12923. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  12924. as_echo_n='/usr/ucb/echo -n'
  12925. else
  12926. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  12927. as_echo_n_body='eval
  12928. arg=$1;
  12929. case $arg in #(
  12930. *"$as_nl"*)
  12931. expr "X$arg" : "X\\(.*\\)$as_nl";
  12932. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  12933. esac;
  12934. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  12935. '
  12936. export as_echo_n_body
  12937. as_echo_n='sh -c $as_echo_n_body as_echo'
  12938. fi
  12939. export as_echo_body
  12940. as_echo='sh -c $as_echo_body as_echo'
  12941. fi
  12942. # The user is always right.
  12943. if test "${PATH_SEPARATOR+set}" != set; then
  12944. PATH_SEPARATOR=:
  12945. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  12946. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  12947. PATH_SEPARATOR=';'
  12948. }
  12949. fi
  12950. # IFS
  12951. # We need space, tab and new line, in precisely that order. Quoting is
  12952. # there to prevent editors from complaining about space-tab.
  12953. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  12954. # splitting by setting IFS to empty value.)
  12955. IFS=" "" $as_nl"
  12956. # Find who we are. Look in the path if we contain no directory separator.
  12957. case $0 in #((
  12958. *[\\/]* ) as_myself=$0 ;;
  12959. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  12960. for as_dir in $PATH
  12961. do
  12962. IFS=$as_save_IFS
  12963. test -z "$as_dir" && as_dir=.
  12964. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  12965. done
  12966. IFS=$as_save_IFS
  12967. ;;
  12968. esac
  12969. # We did not find ourselves, most probably we were run as `sh COMMAND'
  12970. # in which case we are not to be found in the path.
  12971. if test "x$as_myself" = x; then
  12972. as_myself=$0
  12973. fi
  12974. if test ! -f "$as_myself"; then
  12975. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  12976. exit 1
  12977. fi
  12978. # Unset variables that we do not need and which cause bugs (e.g. in
  12979. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  12980. # suppresses any "Segmentation fault" message there. '((' could
  12981. # trigger a bug in pdksh 5.2.14.
  12982. for as_var in BASH_ENV ENV MAIL MAILPATH
  12983. do eval test x\${$as_var+set} = xset \
  12984. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  12985. done
  12986. PS1='$ '
  12987. PS2='> '
  12988. PS4='+ '
  12989. # NLS nuisances.
  12990. LC_ALL=C
  12991. export LC_ALL
  12992. LANGUAGE=C
  12993. export LANGUAGE
  12994. # CDPATH.
  12995. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  12996. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  12997. # ----------------------------------------
  12998. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  12999. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  13000. # script with STATUS, using 1 if that was 0.
  13001. as_fn_error ()
  13002. {
  13003. as_status=$1; test $as_status -eq 0 && as_status=1
  13004. if test "$4"; then
  13005. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  13006. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  13007. fi
  13008. $as_echo "$as_me: error: $2" >&2
  13009. as_fn_exit $as_status
  13010. } # as_fn_error
  13011. # as_fn_set_status STATUS
  13012. # -----------------------
  13013. # Set $? to STATUS, without forking.
  13014. as_fn_set_status ()
  13015. {
  13016. return $1
  13017. } # as_fn_set_status
  13018. # as_fn_exit STATUS
  13019. # -----------------
  13020. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  13021. as_fn_exit ()
  13022. {
  13023. set +e
  13024. as_fn_set_status $1
  13025. exit $1
  13026. } # as_fn_exit
  13027. # as_fn_unset VAR
  13028. # ---------------
  13029. # Portably unset VAR.
  13030. as_fn_unset ()
  13031. {
  13032. { eval $1=; unset $1;}
  13033. }
  13034. as_unset=as_fn_unset
  13035. # as_fn_append VAR VALUE
  13036. # ----------------------
  13037. # Append the text in VALUE to the end of the definition contained in VAR. Take
  13038. # advantage of any shell optimizations that allow amortized linear growth over
  13039. # repeated appends, instead of the typical quadratic growth present in naive
  13040. # implementations.
  13041. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  13042. eval 'as_fn_append ()
  13043. {
  13044. eval $1+=\$2
  13045. }'
  13046. else
  13047. as_fn_append ()
  13048. {
  13049. eval $1=\$$1\$2
  13050. }
  13051. fi # as_fn_append
  13052. # as_fn_arith ARG...
  13053. # ------------------
  13054. # Perform arithmetic evaluation on the ARGs, and store the result in the
  13055. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  13056. # must be portable across $(()) and expr.
  13057. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  13058. eval 'as_fn_arith ()
  13059. {
  13060. as_val=$(( $* ))
  13061. }'
  13062. else
  13063. as_fn_arith ()
  13064. {
  13065. as_val=`expr "$@" || test $? -eq 1`
  13066. }
  13067. fi # as_fn_arith
  13068. if expr a : '\(a\)' >/dev/null 2>&1 &&
  13069. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  13070. as_expr=expr
  13071. else
  13072. as_expr=false
  13073. fi
  13074. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  13075. as_basename=basename
  13076. else
  13077. as_basename=false
  13078. fi
  13079. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  13080. as_dirname=dirname
  13081. else
  13082. as_dirname=false
  13083. fi
  13084. as_me=`$as_basename -- "$0" ||
  13085. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  13086. X"$0" : 'X\(//\)$' \| \
  13087. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  13088. $as_echo X/"$0" |
  13089. sed '/^.*\/\([^/][^/]*\)\/*$/{
  13090. s//\1/
  13091. q
  13092. }
  13093. /^X\/\(\/\/\)$/{
  13094. s//\1/
  13095. q
  13096. }
  13097. /^X\/\(\/\).*/{
  13098. s//\1/
  13099. q
  13100. }
  13101. s/.*/./; q'`
  13102. # Avoid depending upon Character Ranges.
  13103. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  13104. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  13105. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  13106. as_cr_digits='0123456789'
  13107. as_cr_alnum=$as_cr_Letters$as_cr_digits
  13108. ECHO_C= ECHO_N= ECHO_T=
  13109. case `echo -n x` in #(((((
  13110. -n*)
  13111. case `echo 'xy\c'` in
  13112. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  13113. xy) ECHO_C='\c';;
  13114. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  13115. ECHO_T=' ';;
  13116. esac;;
  13117. *)
  13118. ECHO_N='-n';;
  13119. esac
  13120. rm -f conf$$ conf$$.exe conf$$.file
  13121. if test -d conf$$.dir; then
  13122. rm -f conf$$.dir/conf$$.file
  13123. else
  13124. rm -f conf$$.dir
  13125. mkdir conf$$.dir 2>/dev/null
  13126. fi
  13127. if (echo >conf$$.file) 2>/dev/null; then
  13128. if ln -s conf$$.file conf$$ 2>/dev/null; then
  13129. as_ln_s='ln -s'
  13130. # ... but there are two gotchas:
  13131. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  13132. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  13133. # In both cases, we have to default to `cp -p'.
  13134. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  13135. as_ln_s='cp -p'
  13136. elif ln conf$$.file conf$$ 2>/dev/null; then
  13137. as_ln_s=ln
  13138. else
  13139. as_ln_s='cp -p'
  13140. fi
  13141. else
  13142. as_ln_s='cp -p'
  13143. fi
  13144. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  13145. rmdir conf$$.dir 2>/dev/null
  13146. # as_fn_mkdir_p
  13147. # -------------
  13148. # Create "$as_dir" as a directory, including parents if necessary.
  13149. as_fn_mkdir_p ()
  13150. {
  13151. case $as_dir in #(
  13152. -*) as_dir=./$as_dir;;
  13153. esac
  13154. test -d "$as_dir" || eval $as_mkdir_p || {
  13155. as_dirs=
  13156. while :; do
  13157. case $as_dir in #(
  13158. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  13159. *) as_qdir=$as_dir;;
  13160. esac
  13161. as_dirs="'$as_qdir' $as_dirs"
  13162. as_dir=`$as_dirname -- "$as_dir" ||
  13163. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  13164. X"$as_dir" : 'X\(//\)[^/]' \| \
  13165. X"$as_dir" : 'X\(//\)$' \| \
  13166. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  13167. $as_echo X"$as_dir" |
  13168. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  13169. s//\1/
  13170. q
  13171. }
  13172. /^X\(\/\/\)[^/].*/{
  13173. s//\1/
  13174. q
  13175. }
  13176. /^X\(\/\/\)$/{
  13177. s//\1/
  13178. q
  13179. }
  13180. /^X\(\/\).*/{
  13181. s//\1/
  13182. q
  13183. }
  13184. s/.*/./; q'`
  13185. test -d "$as_dir" && break
  13186. done
  13187. test -z "$as_dirs" || eval "mkdir $as_dirs"
  13188. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  13189. } # as_fn_mkdir_p
  13190. if mkdir -p . 2>/dev/null; then
  13191. as_mkdir_p='mkdir -p "$as_dir"'
  13192. else
  13193. test -d ./-p && rmdir ./-p
  13194. as_mkdir_p=false
  13195. fi
  13196. if test -x / >/dev/null 2>&1; then
  13197. as_test_x='test -x'
  13198. else
  13199. if ls -dL / >/dev/null 2>&1; then
  13200. as_ls_L_option=L
  13201. else
  13202. as_ls_L_option=
  13203. fi
  13204. as_test_x='
  13205. eval sh -c '\''
  13206. if test -d "$1"; then
  13207. test -d "$1/.";
  13208. else
  13209. case $1 in #(
  13210. -*)set "./$1";;
  13211. esac;
  13212. case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
  13213. ???[sx]*):;;*)false;;esac;fi
  13214. '\'' sh
  13215. '
  13216. fi
  13217. as_executable_p=$as_test_x
  13218. # Sed expression to map a string onto a valid CPP name.
  13219. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  13220. # Sed expression to map a string onto a valid variable name.
  13221. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  13222. exec 6>&1
  13223. ## ----------------------------------- ##
  13224. ## Main body of $CONFIG_STATUS script. ##
  13225. ## ----------------------------------- ##
  13226. _ASEOF
  13227. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  13228. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  13229. # Save the log message, to keep $0 and so on meaningful, and to
  13230. # report actual input values of CONFIG_FILES etc. instead of their
  13231. # values after options handling.
  13232. ac_log="
  13233. This file was extended by libPolyCore $as_me 0.8.2, which was
  13234. generated by GNU Autoconf 2.67. Invocation command line was
  13235. CONFIG_FILES = $CONFIG_FILES
  13236. CONFIG_HEADERS = $CONFIG_HEADERS
  13237. CONFIG_LINKS = $CONFIG_LINKS
  13238. CONFIG_COMMANDS = $CONFIG_COMMANDS
  13239. $ $0 $@
  13240. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  13241. "
  13242. _ACEOF
  13243. case $ac_config_files in *"
  13244. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  13245. esac
  13246. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  13247. # Files that config.status was made for.
  13248. config_files="$ac_config_files"
  13249. config_commands="$ac_config_commands"
  13250. _ACEOF
  13251. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  13252. ac_cs_usage="\
  13253. \`$as_me' instantiates files and other configuration actions
  13254. from templates according to the current configuration. Unless the files
  13255. and actions are specified as TAGs, all are instantiated by default.
  13256. Usage: $0 [OPTION]... [TAG]...
  13257. -h, --help print this help, then exit
  13258. -V, --version print version number and configuration settings, then exit
  13259. --config print configuration, then exit
  13260. -q, --quiet, --silent
  13261. do not print progress messages
  13262. -d, --debug don't remove temporary files
  13263. --recheck update $as_me by reconfiguring in the same conditions
  13264. --file=FILE[:TEMPLATE]
  13265. instantiate the configuration file FILE
  13266. Configuration files:
  13267. $config_files
  13268. Configuration commands:
  13269. $config_commands
  13270. Report bugs to <[email protected]>."
  13271. _ACEOF
  13272. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  13273. ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
  13274. ac_cs_version="\\
  13275. libPolyCore config.status 0.8.2
  13276. configured by $0, generated by GNU Autoconf 2.67,
  13277. with options \\"\$ac_cs_config\\"
  13278. Copyright (C) 2010 Free Software Foundation, Inc.
  13279. This config.status script is free software; the Free Software Foundation
  13280. gives unlimited permission to copy, distribute and modify it."
  13281. ac_pwd='$ac_pwd'
  13282. srcdir='$srcdir'
  13283. INSTALL='$INSTALL'
  13284. MKDIR_P='$MKDIR_P'
  13285. AWK='$AWK'
  13286. test -n "\$AWK" || AWK=awk
  13287. _ACEOF
  13288. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  13289. # The default lists apply if the user does not specify any file.
  13290. ac_need_defaults=:
  13291. while test $# != 0
  13292. do
  13293. case $1 in
  13294. --*=?*)
  13295. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  13296. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  13297. ac_shift=:
  13298. ;;
  13299. --*=)
  13300. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  13301. ac_optarg=
  13302. ac_shift=:
  13303. ;;
  13304. *)
  13305. ac_option=$1
  13306. ac_optarg=$2
  13307. ac_shift=shift
  13308. ;;
  13309. esac
  13310. case $ac_option in
  13311. # Handling of the options.
  13312. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  13313. ac_cs_recheck=: ;;
  13314. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  13315. $as_echo "$ac_cs_version"; exit ;;
  13316. --config | --confi | --conf | --con | --co | --c )
  13317. $as_echo "$ac_cs_config"; exit ;;
  13318. --debug | --debu | --deb | --de | --d | -d )
  13319. debug=: ;;
  13320. --file | --fil | --fi | --f )
  13321. $ac_shift
  13322. case $ac_optarg in
  13323. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  13324. '') as_fn_error $? "missing file argument" ;;
  13325. esac
  13326. as_fn_append CONFIG_FILES " '$ac_optarg'"
  13327. ac_need_defaults=false;;
  13328. --he | --h | --help | --hel | -h )
  13329. $as_echo "$ac_cs_usage"; exit ;;
  13330. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  13331. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  13332. ac_cs_silent=: ;;
  13333. # This is an error.
  13334. -*) as_fn_error $? "unrecognized option: \`$1'
  13335. Try \`$0 --help' for more information." ;;
  13336. *) as_fn_append ac_config_targets " $1"
  13337. ac_need_defaults=false ;;
  13338. esac
  13339. shift
  13340. done
  13341. ac_configure_extra_args=
  13342. if $ac_cs_silent; then
  13343. exec 6>/dev/null
  13344. ac_configure_extra_args="$ac_configure_extra_args --silent"
  13345. fi
  13346. _ACEOF
  13347. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  13348. if \$ac_cs_recheck; then
  13349. set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  13350. shift
  13351. \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  13352. CONFIG_SHELL='$SHELL'
  13353. export CONFIG_SHELL
  13354. exec "\$@"
  13355. fi
  13356. _ACEOF
  13357. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  13358. exec 5>>config.log
  13359. {
  13360. echo
  13361. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  13362. ## Running $as_me. ##
  13363. _ASBOX
  13364. $as_echo "$ac_log"
  13365. } >&5
  13366. _ACEOF
  13367. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  13368. #
  13369. # INIT-COMMANDS
  13370. #
  13371. AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
  13372. # The HP-UX ksh and POSIX shell print the target directory to stdout
  13373. # if CDPATH is set.
  13374. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  13375. sed_quote_subst='$sed_quote_subst'
  13376. double_quote_subst='$double_quote_subst'
  13377. delay_variable_subst='$delay_variable_subst'
  13378. macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
  13379. macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
  13380. enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
  13381. enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
  13382. pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
  13383. enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
  13384. host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
  13385. host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
  13386. host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
  13387. build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
  13388. build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
  13389. build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
  13390. SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
  13391. Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
  13392. GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
  13393. EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
  13394. FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
  13395. LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
  13396. NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
  13397. LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
  13398. max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
  13399. ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
  13400. exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
  13401. lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
  13402. lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
  13403. lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
  13404. reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
  13405. reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  13406. OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
  13407. deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
  13408. file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
  13409. AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
  13410. AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
  13411. STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
  13412. RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
  13413. old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  13414. old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  13415. old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  13416. CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
  13417. CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
  13418. compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
  13419. GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
  13420. lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
  13421. lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
  13422. lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address" | $Xsed -e "$delay_single_quote_subst"`'
  13423. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
  13424. objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
  13425. SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
  13426. ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
  13427. MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
  13428. lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
  13429. lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
  13430. lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
  13431. lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
  13432. lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
  13433. need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
  13434. DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
  13435. NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
  13436. LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
  13437. OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
  13438. OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
  13439. libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
  13440. shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  13441. extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  13442. archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
  13443. enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
  13444. export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
  13445. whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
  13446. compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
  13447. old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  13448. old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  13449. archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  13450. archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  13451. module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  13452. module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  13453. with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
  13454. allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
  13455. no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
  13456. hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
  13457. hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
  13458. hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
  13459. hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
  13460. hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
  13461. hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
  13462. hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
  13463. hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
  13464. inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
  13465. link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
  13466. fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
  13467. always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
  13468. export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  13469. exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
  13470. include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
  13471. prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  13472. file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
  13473. variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
  13474. need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
  13475. need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
  13476. version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
  13477. runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
  13478. shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
  13479. shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
  13480. libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
  13481. library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
  13482. soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
  13483. postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  13484. postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  13485. finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  13486. finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
  13487. hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
  13488. sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
  13489. sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
  13490. hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
  13491. enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
  13492. enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
  13493. enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
  13494. old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
  13495. striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
  13496. compiler_lib_search_dirs='`$ECHO "X$compiler_lib_search_dirs" | $Xsed -e "$delay_single_quote_subst"`'
  13497. predep_objects='`$ECHO "X$predep_objects" | $Xsed -e "$delay_single_quote_subst"`'
  13498. postdep_objects='`$ECHO "X$postdep_objects" | $Xsed -e "$delay_single_quote_subst"`'
  13499. predeps='`$ECHO "X$predeps" | $Xsed -e "$delay_single_quote_subst"`'
  13500. postdeps='`$ECHO "X$postdeps" | $Xsed -e "$delay_single_quote_subst"`'
  13501. compiler_lib_search_path='`$ECHO "X$compiler_lib_search_path" | $Xsed -e "$delay_single_quote_subst"`'
  13502. LD_CXX='`$ECHO "X$LD_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  13503. old_archive_cmds_CXX='`$ECHO "X$old_archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  13504. compiler_CXX='`$ECHO "X$compiler_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  13505. GCC_CXX='`$ECHO "X$GCC_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  13506. lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "X$lt_prog_compiler_no_builtin_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  13507. lt_prog_compiler_wl_CXX='`$ECHO "X$lt_prog_compiler_wl_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  13508. lt_prog_compiler_pic_CXX='`$ECHO "X$lt_prog_compiler_pic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  13509. lt_prog_compiler_static_CXX='`$ECHO "X$lt_prog_compiler_static_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  13510. lt_cv_prog_compiler_c_o_CXX='`$ECHO "X$lt_cv_prog_compiler_c_o_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  13511. archive_cmds_need_lc_CXX='`$ECHO "X$archive_cmds_need_lc_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  13512. enable_shared_with_static_runtimes_CXX='`$ECHO "X$enable_shared_with_static_runtimes_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  13513. export_dynamic_flag_spec_CXX='`$ECHO "X$export_dynamic_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  13514. whole_archive_flag_spec_CXX='`$ECHO "X$whole_archive_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  13515. compiler_needs_object_CXX='`$ECHO "X$compiler_needs_object_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  13516. old_archive_from_new_cmds_CXX='`$ECHO "X$old_archive_from_new_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  13517. old_archive_from_expsyms_cmds_CXX='`$ECHO "X$old_archive_from_expsyms_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  13518. archive_cmds_CXX='`$ECHO "X$archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  13519. archive_expsym_cmds_CXX='`$ECHO "X$archive_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  13520. module_cmds_CXX='`$ECHO "X$module_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  13521. module_expsym_cmds_CXX='`$ECHO "X$module_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  13522. with_gnu_ld_CXX='`$ECHO "X$with_gnu_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  13523. allow_undefined_flag_CXX='`$ECHO "X$allow_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  13524. no_undefined_flag_CXX='`$ECHO "X$no_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  13525. hardcode_libdir_flag_spec_CXX='`$ECHO "X$hardcode_libdir_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  13526. hardcode_libdir_flag_spec_ld_CXX='`$ECHO "X$hardcode_libdir_flag_spec_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  13527. hardcode_libdir_separator_CXX='`$ECHO "X$hardcode_libdir_separator_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  13528. hardcode_direct_CXX='`$ECHO "X$hardcode_direct_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  13529. hardcode_direct_absolute_CXX='`$ECHO "X$hardcode_direct_absolute_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  13530. hardcode_minus_L_CXX='`$ECHO "X$hardcode_minus_L_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  13531. hardcode_shlibpath_var_CXX='`$ECHO "X$hardcode_shlibpath_var_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  13532. hardcode_automatic_CXX='`$ECHO "X$hardcode_automatic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  13533. inherit_rpath_CXX='`$ECHO "X$inherit_rpath_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  13534. link_all_deplibs_CXX='`$ECHO "X$link_all_deplibs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  13535. fix_srcfile_path_CXX='`$ECHO "X$fix_srcfile_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  13536. always_export_symbols_CXX='`$ECHO "X$always_export_symbols_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  13537. export_symbols_cmds_CXX='`$ECHO "X$export_symbols_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  13538. exclude_expsyms_CXX='`$ECHO "X$exclude_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  13539. include_expsyms_CXX='`$ECHO "X$include_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  13540. prelink_cmds_CXX='`$ECHO "X$prelink_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  13541. file_list_spec_CXX='`$ECHO "X$file_list_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  13542. hardcode_action_CXX='`$ECHO "X$hardcode_action_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  13543. compiler_lib_search_dirs_CXX='`$ECHO "X$compiler_lib_search_dirs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  13544. predep_objects_CXX='`$ECHO "X$predep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  13545. postdep_objects_CXX='`$ECHO "X$postdep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  13546. predeps_CXX='`$ECHO "X$predeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  13547. postdeps_CXX='`$ECHO "X$postdeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  13548. compiler_lib_search_path_CXX='`$ECHO "X$compiler_lib_search_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  13549. LTCC='$LTCC'
  13550. LTCFLAGS='$LTCFLAGS'
  13551. compiler='$compiler_DEFAULT'
  13552. # Quote evaled strings.
  13553. for var in SED \
  13554. GREP \
  13555. EGREP \
  13556. FGREP \
  13557. LD \
  13558. NM \
  13559. LN_S \
  13560. lt_SP2NL \
  13561. lt_NL2SP \
  13562. reload_flag \
  13563. OBJDUMP \
  13564. deplibs_check_method \
  13565. file_magic_cmd \
  13566. AR \
  13567. AR_FLAGS \
  13568. STRIP \
  13569. RANLIB \
  13570. CC \
  13571. CFLAGS \
  13572. compiler \
  13573. lt_cv_sys_global_symbol_pipe \
  13574. lt_cv_sys_global_symbol_to_cdecl \
  13575. lt_cv_sys_global_symbol_to_c_name_address \
  13576. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
  13577. SHELL \
  13578. ECHO \
  13579. lt_prog_compiler_no_builtin_flag \
  13580. lt_prog_compiler_wl \
  13581. lt_prog_compiler_pic \
  13582. lt_prog_compiler_static \
  13583. lt_cv_prog_compiler_c_o \
  13584. need_locks \
  13585. DSYMUTIL \
  13586. NMEDIT \
  13587. LIPO \
  13588. OTOOL \
  13589. OTOOL64 \
  13590. shrext_cmds \
  13591. export_dynamic_flag_spec \
  13592. whole_archive_flag_spec \
  13593. compiler_needs_object \
  13594. with_gnu_ld \
  13595. allow_undefined_flag \
  13596. no_undefined_flag \
  13597. hardcode_libdir_flag_spec \
  13598. hardcode_libdir_flag_spec_ld \
  13599. hardcode_libdir_separator \
  13600. fix_srcfile_path \
  13601. exclude_expsyms \
  13602. include_expsyms \
  13603. file_list_spec \
  13604. variables_saved_for_relink \
  13605. libname_spec \
  13606. library_names_spec \
  13607. soname_spec \
  13608. finish_eval \
  13609. old_striplib \
  13610. striplib \
  13611. compiler_lib_search_dirs \
  13612. predep_objects \
  13613. postdep_objects \
  13614. predeps \
  13615. postdeps \
  13616. compiler_lib_search_path \
  13617. LD_CXX \
  13618. compiler_CXX \
  13619. lt_prog_compiler_no_builtin_flag_CXX \
  13620. lt_prog_compiler_wl_CXX \
  13621. lt_prog_compiler_pic_CXX \
  13622. lt_prog_compiler_static_CXX \
  13623. lt_cv_prog_compiler_c_o_CXX \
  13624. export_dynamic_flag_spec_CXX \
  13625. whole_archive_flag_spec_CXX \
  13626. compiler_needs_object_CXX \
  13627. with_gnu_ld_CXX \
  13628. allow_undefined_flag_CXX \
  13629. no_undefined_flag_CXX \
  13630. hardcode_libdir_flag_spec_CXX \
  13631. hardcode_libdir_flag_spec_ld_CXX \
  13632. hardcode_libdir_separator_CXX \
  13633. fix_srcfile_path_CXX \
  13634. exclude_expsyms_CXX \
  13635. include_expsyms_CXX \
  13636. file_list_spec_CXX \
  13637. compiler_lib_search_dirs_CXX \
  13638. predep_objects_CXX \
  13639. postdep_objects_CXX \
  13640. predeps_CXX \
  13641. postdeps_CXX \
  13642. compiler_lib_search_path_CXX; do
  13643. case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
  13644. *[\\\\\\\`\\"\\\$]*)
  13645. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
  13646. ;;
  13647. *)
  13648. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  13649. ;;
  13650. esac
  13651. done
  13652. # Double-quote double-evaled strings.
  13653. for var in reload_cmds \
  13654. old_postinstall_cmds \
  13655. old_postuninstall_cmds \
  13656. old_archive_cmds \
  13657. extract_expsyms_cmds \
  13658. old_archive_from_new_cmds \
  13659. old_archive_from_expsyms_cmds \
  13660. archive_cmds \
  13661. archive_expsym_cmds \
  13662. module_cmds \
  13663. module_expsym_cmds \
  13664. export_symbols_cmds \
  13665. prelink_cmds \
  13666. postinstall_cmds \
  13667. postuninstall_cmds \
  13668. finish_cmds \
  13669. sys_lib_search_path_spec \
  13670. sys_lib_dlsearch_path_spec \
  13671. old_archive_cmds_CXX \
  13672. old_archive_from_new_cmds_CXX \
  13673. old_archive_from_expsyms_cmds_CXX \
  13674. archive_cmds_CXX \
  13675. archive_expsym_cmds_CXX \
  13676. module_cmds_CXX \
  13677. module_expsym_cmds_CXX \
  13678. export_symbols_cmds_CXX \
  13679. prelink_cmds_CXX; do
  13680. case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
  13681. *[\\\\\\\`\\"\\\$]*)
  13682. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
  13683. ;;
  13684. *)
  13685. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  13686. ;;
  13687. esac
  13688. done
  13689. # Fix-up fallback echo if it was mangled by the above quoting rules.
  13690. case \$lt_ECHO in
  13691. *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
  13692. ;;
  13693. esac
  13694. ac_aux_dir='$ac_aux_dir'
  13695. xsi_shell='$xsi_shell'
  13696. lt_shell_append='$lt_shell_append'
  13697. # See if we are running on zsh, and set the options which allow our
  13698. # commands through without removal of \ escapes INIT.
  13699. if test -n "\${ZSH_VERSION+set}" ; then
  13700. setopt NO_GLOB_SUBST
  13701. fi
  13702. PACKAGE='$PACKAGE'
  13703. VERSION='$VERSION'
  13704. TIMESTAMP='$TIMESTAMP'
  13705. RM='$RM'
  13706. ofile='$ofile'
  13707. _ACEOF
  13708. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  13709. # Handling of arguments.
  13710. for ac_config_target in $ac_config_targets
  13711. do
  13712. case $ac_config_target in
  13713. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  13714. "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
  13715. "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
  13716. *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5 ;;
  13717. esac
  13718. done
  13719. # If the user did not use the arguments to specify the items to instantiate,
  13720. # then the envvar interface is used. Set only those that are not.
  13721. # We use the long form for the default assignment because of an extremely
  13722. # bizarre bug on SunOS 4.1.3.
  13723. if $ac_need_defaults; then
  13724. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  13725. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  13726. fi
  13727. # Have a temporary directory for convenience. Make it in the build tree
  13728. # simply because there is no reason against having it here, and in addition,
  13729. # creating and moving files from /tmp can sometimes cause problems.
  13730. # Hook for its removal unless debugging.
  13731. # Note that there is a small window in which the directory will not be cleaned:
  13732. # after its creation but before its name has been assigned to `$tmp'.
  13733. $debug ||
  13734. {
  13735. tmp=
  13736. trap 'exit_status=$?
  13737. { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
  13738. ' 0
  13739. trap 'as_fn_exit 1' 1 2 13 15
  13740. }
  13741. # Create a (secure) tmp directory for tmp files.
  13742. {
  13743. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  13744. test -n "$tmp" && test -d "$tmp"
  13745. } ||
  13746. {
  13747. tmp=./conf$$-$RANDOM
  13748. (umask 077 && mkdir "$tmp")
  13749. } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
  13750. # Set up the scripts for CONFIG_FILES section.
  13751. # No need to generate them if there are no CONFIG_FILES.
  13752. # This happens for instance with `./config.status config.h'.
  13753. if test -n "$CONFIG_FILES"; then
  13754. ac_cr=`echo X | tr X '\015'`
  13755. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  13756. # But we know of no other shell where ac_cr would be empty at this
  13757. # point, so we can use a bashism as a fallback.
  13758. if test "x$ac_cr" = x; then
  13759. eval ac_cr=\$\'\\r\'
  13760. fi
  13761. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  13762. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  13763. ac_cs_awk_cr='\\r'
  13764. else
  13765. ac_cs_awk_cr=$ac_cr
  13766. fi
  13767. echo 'BEGIN {' >"$tmp/subs1.awk" &&
  13768. _ACEOF
  13769. {
  13770. echo "cat >conf$$subs.awk <<_ACEOF" &&
  13771. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  13772. echo "_ACEOF"
  13773. } >conf$$subs.sh ||
  13774. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  13775. ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
  13776. ac_delim='%!_!# '
  13777. for ac_last_try in false false false false false :; do
  13778. . ./conf$$subs.sh ||
  13779. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  13780. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  13781. if test $ac_delim_n = $ac_delim_num; then
  13782. break
  13783. elif $ac_last_try; then
  13784. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  13785. else
  13786. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  13787. fi
  13788. done
  13789. rm -f conf$$subs.sh
  13790. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  13791. cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
  13792. _ACEOF
  13793. sed -n '
  13794. h
  13795. s/^/S["/; s/!.*/"]=/
  13796. p
  13797. g
  13798. s/^[^!]*!//
  13799. :repl
  13800. t repl
  13801. s/'"$ac_delim"'$//
  13802. t delim
  13803. :nl
  13804. h
  13805. s/\(.\{148\}\)..*/\1/
  13806. t more1
  13807. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  13808. p
  13809. n
  13810. b repl
  13811. :more1
  13812. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  13813. p
  13814. g
  13815. s/.\{148\}//
  13816. t nl
  13817. :delim
  13818. h
  13819. s/\(.\{148\}\)..*/\1/
  13820. t more2
  13821. s/["\\]/\\&/g; s/^/"/; s/$/"/
  13822. p
  13823. b
  13824. :more2
  13825. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  13826. p
  13827. g
  13828. s/.\{148\}//
  13829. t delim
  13830. ' <conf$$subs.awk | sed '
  13831. /^[^""]/{
  13832. N
  13833. s/\n//
  13834. }
  13835. ' >>$CONFIG_STATUS || ac_write_fail=1
  13836. rm -f conf$$subs.awk
  13837. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  13838. _ACAWK
  13839. cat >>"\$tmp/subs1.awk" <<_ACAWK &&
  13840. for (key in S) S_is_set[key] = 1
  13841. FS = ""
  13842. }
  13843. {
  13844. line = $ 0
  13845. nfields = split(line, field, "@")
  13846. substed = 0
  13847. len = length(field[1])
  13848. for (i = 2; i < nfields; i++) {
  13849. key = field[i]
  13850. keylen = length(key)
  13851. if (S_is_set[key]) {
  13852. value = S[key]
  13853. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  13854. len += length(value) + length(field[++i])
  13855. substed = 1
  13856. } else
  13857. len += 1 + keylen
  13858. }
  13859. print line
  13860. }
  13861. _ACAWK
  13862. _ACEOF
  13863. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  13864. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  13865. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  13866. else
  13867. cat
  13868. fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
  13869. || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
  13870. _ACEOF
  13871. # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
  13872. # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
  13873. # trailing colons and then remove the whole line if VPATH becomes empty
  13874. # (actually we leave an empty line to preserve line numbers).
  13875. if test "x$srcdir" = x.; then
  13876. ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
  13877. h
  13878. s///
  13879. s/^/:/
  13880. s/[ ]*$/:/
  13881. s/:\$(srcdir):/:/g
  13882. s/:\${srcdir}:/:/g
  13883. s/:@srcdir@:/:/g
  13884. s/^:*//
  13885. s/:*$//
  13886. x
  13887. s/\(=[ ]*\).*/\1/
  13888. G
  13889. s/\n//
  13890. s/^[^=]*=[ ]*$//
  13891. }'
  13892. fi
  13893. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  13894. fi # test -n "$CONFIG_FILES"
  13895. eval set X " :F $CONFIG_FILES :C $CONFIG_COMMANDS"
  13896. shift
  13897. for ac_tag
  13898. do
  13899. case $ac_tag in
  13900. :[FHLC]) ac_mode=$ac_tag; continue;;
  13901. esac
  13902. case $ac_mode$ac_tag in
  13903. :[FHL]*:*);;
  13904. :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5 ;;
  13905. :[FH]-) ac_tag=-:-;;
  13906. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  13907. esac
  13908. ac_save_IFS=$IFS
  13909. IFS=:
  13910. set x $ac_tag
  13911. IFS=$ac_save_IFS
  13912. shift
  13913. ac_file=$1
  13914. shift
  13915. case $ac_mode in
  13916. :L) ac_source=$1;;
  13917. :[FH])
  13918. ac_file_inputs=
  13919. for ac_f
  13920. do
  13921. case $ac_f in
  13922. -) ac_f="$tmp/stdin";;
  13923. *) # Look for the file first in the build tree, then in the source tree
  13924. # (if the path is not absolute). The absolute path cannot be DOS-style,
  13925. # because $ac_f cannot contain `:'.
  13926. test -f "$ac_f" ||
  13927. case $ac_f in
  13928. [\\/$]*) false;;
  13929. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  13930. esac ||
  13931. as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5 ;;
  13932. esac
  13933. case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  13934. as_fn_append ac_file_inputs " '$ac_f'"
  13935. done
  13936. # Let's still pretend it is `configure' which instantiates (i.e., don't
  13937. # use $as_me), people would be surprised to read:
  13938. # /* config.h. Generated by config.status. */
  13939. configure_input='Generated from '`
  13940. $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  13941. `' by configure.'
  13942. if test x"$ac_file" != x-; then
  13943. configure_input="$ac_file. $configure_input"
  13944. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  13945. $as_echo "$as_me: creating $ac_file" >&6;}
  13946. fi
  13947. # Neutralize special characters interpreted by sed in replacement strings.
  13948. case $configure_input in #(
  13949. *\&* | *\|* | *\\* )
  13950. ac_sed_conf_input=`$as_echo "$configure_input" |
  13951. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  13952. *) ac_sed_conf_input=$configure_input;;
  13953. esac
  13954. case $ac_tag in
  13955. *:-:* | *:-) cat >"$tmp/stdin" \
  13956. || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
  13957. esac
  13958. ;;
  13959. esac
  13960. ac_dir=`$as_dirname -- "$ac_file" ||
  13961. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  13962. X"$ac_file" : 'X\(//\)[^/]' \| \
  13963. X"$ac_file" : 'X\(//\)$' \| \
  13964. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  13965. $as_echo X"$ac_file" |
  13966. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  13967. s//\1/
  13968. q
  13969. }
  13970. /^X\(\/\/\)[^/].*/{
  13971. s//\1/
  13972. q
  13973. }
  13974. /^X\(\/\/\)$/{
  13975. s//\1/
  13976. q
  13977. }
  13978. /^X\(\/\).*/{
  13979. s//\1/
  13980. q
  13981. }
  13982. s/.*/./; q'`
  13983. as_dir="$ac_dir"; as_fn_mkdir_p
  13984. ac_builddir=.
  13985. case "$ac_dir" in
  13986. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  13987. *)
  13988. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  13989. # A ".." for each directory in $ac_dir_suffix.
  13990. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  13991. case $ac_top_builddir_sub in
  13992. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  13993. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  13994. esac ;;
  13995. esac
  13996. ac_abs_top_builddir=$ac_pwd
  13997. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  13998. # for backward compatibility:
  13999. ac_top_builddir=$ac_top_build_prefix
  14000. case $srcdir in
  14001. .) # We are building in place.
  14002. ac_srcdir=.
  14003. ac_top_srcdir=$ac_top_builddir_sub
  14004. ac_abs_top_srcdir=$ac_pwd ;;
  14005. [\\/]* | ?:[\\/]* ) # Absolute name.
  14006. ac_srcdir=$srcdir$ac_dir_suffix;
  14007. ac_top_srcdir=$srcdir
  14008. ac_abs_top_srcdir=$srcdir ;;
  14009. *) # Relative name.
  14010. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  14011. ac_top_srcdir=$ac_top_build_prefix$srcdir
  14012. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  14013. esac
  14014. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  14015. case $ac_mode in
  14016. :F)
  14017. #
  14018. # CONFIG_FILE
  14019. #
  14020. case $INSTALL in
  14021. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  14022. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  14023. esac
  14024. ac_MKDIR_P=$MKDIR_P
  14025. case $MKDIR_P in
  14026. [\\/$]* | ?:[\\/]* ) ;;
  14027. */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
  14028. esac
  14029. _ACEOF
  14030. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14031. # If the template does not know about datarootdir, expand it.
  14032. # FIXME: This hack should be removed a few years after 2.60.
  14033. ac_datarootdir_hack=; ac_datarootdir_seen=
  14034. ac_sed_dataroot='
  14035. /datarootdir/ {
  14036. p
  14037. q
  14038. }
  14039. /@datadir@/p
  14040. /@docdir@/p
  14041. /@infodir@/p
  14042. /@localedir@/p
  14043. /@mandir@/p'
  14044. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  14045. *datarootdir*) ac_datarootdir_seen=yes;;
  14046. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  14047. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  14048. $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  14049. _ACEOF
  14050. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  14051. ac_datarootdir_hack='
  14052. s&@datadir@&$datadir&g
  14053. s&@docdir@&$docdir&g
  14054. s&@infodir@&$infodir&g
  14055. s&@localedir@&$localedir&g
  14056. s&@mandir@&$mandir&g
  14057. s&\\\${datarootdir}&$datarootdir&g' ;;
  14058. esac
  14059. _ACEOF
  14060. # Neutralize VPATH when `$srcdir' = `.'.
  14061. # Shell code in configure.ac might set extrasub.
  14062. # FIXME: do we really want to maintain this feature?
  14063. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  14064. ac_sed_extra="$ac_vpsub
  14065. $extrasub
  14066. _ACEOF
  14067. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14068. :t
  14069. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  14070. s|@configure_input@|$ac_sed_conf_input|;t t
  14071. s&@top_builddir@&$ac_top_builddir_sub&;t t
  14072. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  14073. s&@srcdir@&$ac_srcdir&;t t
  14074. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  14075. s&@top_srcdir@&$ac_top_srcdir&;t t
  14076. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  14077. s&@builddir@&$ac_builddir&;t t
  14078. s&@abs_builddir@&$ac_abs_builddir&;t t
  14079. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  14080. s&@INSTALL@&$ac_INSTALL&;t t
  14081. s&@MKDIR_P@&$ac_MKDIR_P&;t t
  14082. $ac_datarootdir_hack
  14083. "
  14084. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
  14085. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  14086. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  14087. { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
  14088. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
  14089. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  14090. which seems to be undefined. Please make sure it is defined" >&5
  14091. $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  14092. which seems to be undefined. Please make sure it is defined" >&2;}
  14093. rm -f "$tmp/stdin"
  14094. case $ac_file in
  14095. -) cat "$tmp/out" && rm -f "$tmp/out";;
  14096. *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
  14097. esac \
  14098. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  14099. ;;
  14100. :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
  14101. $as_echo "$as_me: executing $ac_file commands" >&6;}
  14102. ;;
  14103. esac
  14104. case $ac_file$ac_mode in
  14105. "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
  14106. # Autoconf 2.62 quotes --file arguments for eval, but not when files
  14107. # are listed without --file. Let's play safe and only enable the eval
  14108. # if we detect the quoting.
  14109. case $CONFIG_FILES in
  14110. *\'*) eval set x "$CONFIG_FILES" ;;
  14111. *) set x $CONFIG_FILES ;;
  14112. esac
  14113. shift
  14114. for mf
  14115. do
  14116. # Strip MF so we end up with the name of the file.
  14117. mf=`echo "$mf" | sed -e 's/:.*$//'`
  14118. # Check whether this is an Automake generated Makefile or not.
  14119. # We used to match only the files named `Makefile.in', but
  14120. # some people rename them; so instead we look at the file content.
  14121. # Grep'ing the first line is not enough: some people post-process
  14122. # each Makefile.in and add a new line on top of each file to say so.
  14123. # Grep'ing the whole file is not good either: AIX grep has a line
  14124. # limit of 2048, but all sed's we know have understand at least 4000.
  14125. if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
  14126. dirpart=`$as_dirname -- "$mf" ||
  14127. $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  14128. X"$mf" : 'X\(//\)[^/]' \| \
  14129. X"$mf" : 'X\(//\)$' \| \
  14130. X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
  14131. $as_echo X"$mf" |
  14132. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  14133. s//\1/
  14134. q
  14135. }
  14136. /^X\(\/\/\)[^/].*/{
  14137. s//\1/
  14138. q
  14139. }
  14140. /^X\(\/\/\)$/{
  14141. s//\1/
  14142. q
  14143. }
  14144. /^X\(\/\).*/{
  14145. s//\1/
  14146. q
  14147. }
  14148. s/.*/./; q'`
  14149. else
  14150. continue
  14151. fi
  14152. # Extract the definition of DEPDIR, am__include, and am__quote
  14153. # from the Makefile without running `make'.
  14154. DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  14155. test -z "$DEPDIR" && continue
  14156. am__include=`sed -n 's/^am__include = //p' < "$mf"`
  14157. test -z "am__include" && continue
  14158. am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
  14159. # When using ansi2knr, U may be empty or an underscore; expand it
  14160. U=`sed -n 's/^U = //p' < "$mf"`
  14161. # Find all dependency output files, they are included files with
  14162. # $(DEPDIR) in their names. We invoke sed twice because it is the
  14163. # simplest approach to changing $(DEPDIR) to its actual value in the
  14164. # expansion.
  14165. for file in `sed -n "
  14166. s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
  14167. sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
  14168. # Make sure the directory exists.
  14169. test -f "$dirpart/$file" && continue
  14170. fdir=`$as_dirname -- "$file" ||
  14171. $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  14172. X"$file" : 'X\(//\)[^/]' \| \
  14173. X"$file" : 'X\(//\)$' \| \
  14174. X"$file" : 'X\(/\)' \| . 2>/dev/null ||
  14175. $as_echo X"$file" |
  14176. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  14177. s//\1/
  14178. q
  14179. }
  14180. /^X\(\/\/\)[^/].*/{
  14181. s//\1/
  14182. q
  14183. }
  14184. /^X\(\/\/\)$/{
  14185. s//\1/
  14186. q
  14187. }
  14188. /^X\(\/\).*/{
  14189. s//\1/
  14190. q
  14191. }
  14192. s/.*/./; q'`
  14193. as_dir=$dirpart/$fdir; as_fn_mkdir_p
  14194. # echo "creating $dirpart/$file"
  14195. echo '# dummy' > "$dirpart/$file"
  14196. done
  14197. done
  14198. }
  14199. ;;
  14200. "libtool":C)
  14201. # See if we are running on zsh, and set the options which allow our
  14202. # commands through without removal of \ escapes.
  14203. if test -n "${ZSH_VERSION+set}" ; then
  14204. setopt NO_GLOB_SUBST
  14205. fi
  14206. cfgfile="${ofile}T"
  14207. trap "$RM \"$cfgfile\"; exit 1" 1 2 15
  14208. $RM "$cfgfile"
  14209. cat <<_LT_EOF >> "$cfgfile"
  14210. #! $SHELL
  14211. # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
  14212. # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
  14213. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  14214. # NOTE: Changes made to this file will be lost: look at ltmain.sh.
  14215. #
  14216. # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
  14217. # 2006, 2007, 2008 Free Software Foundation, Inc.
  14218. # Written by Gordon Matzigkeit, 1996
  14219. #
  14220. # This file is part of GNU Libtool.
  14221. #
  14222. # GNU Libtool is free software; you can redistribute it and/or
  14223. # modify it under the terms of the GNU General Public License as
  14224. # published by the Free Software Foundation; either version 2 of
  14225. # the License, or (at your option) any later version.
  14226. #
  14227. # As a special exception to the GNU General Public License,
  14228. # if you distribute this file as part of a program or library that
  14229. # is built using GNU Libtool, you may include this file under the
  14230. # same distribution terms that you use for the rest of that program.
  14231. #
  14232. # GNU Libtool is distributed in the hope that it will be useful,
  14233. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  14234. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  14235. # GNU General Public License for more details.
  14236. #
  14237. # You should have received a copy of the GNU General Public License
  14238. # along with GNU Libtool; see the file COPYING. If not, a copy
  14239. # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
  14240. # obtained by writing to the Free Software Foundation, Inc.,
  14241. # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  14242. # The names of the tagged configurations supported by this script.
  14243. available_tags="CXX "
  14244. # ### BEGIN LIBTOOL CONFIG
  14245. # Which release of libtool.m4 was used?
  14246. macro_version=$macro_version
  14247. macro_revision=$macro_revision
  14248. # Whether or not to build shared libraries.
  14249. build_libtool_libs=$enable_shared
  14250. # Whether or not to build static libraries.
  14251. build_old_libs=$enable_static
  14252. # What type of objects to build.
  14253. pic_mode=$pic_mode
  14254. # Whether or not to optimize for fast installation.
  14255. fast_install=$enable_fast_install
  14256. # The host system.
  14257. host_alias=$host_alias
  14258. host=$host
  14259. host_os=$host_os
  14260. # The build system.
  14261. build_alias=$build_alias
  14262. build=$build
  14263. build_os=$build_os
  14264. # A sed program that does not truncate output.
  14265. SED=$lt_SED
  14266. # Sed that helps us avoid accidentally triggering echo(1) options like -n.
  14267. Xsed="\$SED -e 1s/^X//"
  14268. # A grep program that handles long lines.
  14269. GREP=$lt_GREP
  14270. # An ERE matcher.
  14271. EGREP=$lt_EGREP
  14272. # A literal string matcher.
  14273. FGREP=$lt_FGREP
  14274. # A BSD- or MS-compatible name lister.
  14275. NM=$lt_NM
  14276. # Whether we need soft or hard links.
  14277. LN_S=$lt_LN_S
  14278. # What is the maximum length of a command?
  14279. max_cmd_len=$max_cmd_len
  14280. # Object file suffix (normally "o").
  14281. objext=$ac_objext
  14282. # Executable file suffix (normally "").
  14283. exeext=$exeext
  14284. # whether the shell understands "unset".
  14285. lt_unset=$lt_unset
  14286. # turn spaces into newlines.
  14287. SP2NL=$lt_lt_SP2NL
  14288. # turn newlines into spaces.
  14289. NL2SP=$lt_lt_NL2SP
  14290. # How to create reloadable object files.
  14291. reload_flag=$lt_reload_flag
  14292. reload_cmds=$lt_reload_cmds
  14293. # An object symbol dumper.
  14294. OBJDUMP=$lt_OBJDUMP
  14295. # Method to check whether dependent libraries are shared objects.
  14296. deplibs_check_method=$lt_deplibs_check_method
  14297. # Command to use when deplibs_check_method == "file_magic".
  14298. file_magic_cmd=$lt_file_magic_cmd
  14299. # The archiver.
  14300. AR=$lt_AR
  14301. AR_FLAGS=$lt_AR_FLAGS
  14302. # A symbol stripping program.
  14303. STRIP=$lt_STRIP
  14304. # Commands used to install an old-style archive.
  14305. RANLIB=$lt_RANLIB
  14306. old_postinstall_cmds=$lt_old_postinstall_cmds
  14307. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  14308. # A C compiler.
  14309. LTCC=$lt_CC
  14310. # LTCC compiler flags.
  14311. LTCFLAGS=$lt_CFLAGS
  14312. # Take the output of nm and produce a listing of raw symbols and C names.
  14313. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  14314. # Transform the output of nm in a proper C declaration.
  14315. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  14316. # Transform the output of nm in a C name address pair.
  14317. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  14318. # Transform the output of nm in a C name address pair when lib prefix is needed.
  14319. global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
  14320. # The name of the directory that contains temporary libtool files.
  14321. objdir=$objdir
  14322. # Shell to use when invoking shell scripts.
  14323. SHELL=$lt_SHELL
  14324. # An echo program that does not interpret backslashes.
  14325. ECHO=$lt_ECHO
  14326. # Used to examine libraries when file_magic_cmd begins with "file".
  14327. MAGIC_CMD=$MAGIC_CMD
  14328. # Must we lock files when doing compilation?
  14329. need_locks=$lt_need_locks
  14330. # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
  14331. DSYMUTIL=$lt_DSYMUTIL
  14332. # Tool to change global to local symbols on Mac OS X.
  14333. NMEDIT=$lt_NMEDIT
  14334. # Tool to manipulate fat objects and archives on Mac OS X.
  14335. LIPO=$lt_LIPO
  14336. # ldd/readelf like tool for Mach-O binaries on Mac OS X.
  14337. OTOOL=$lt_OTOOL
  14338. # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
  14339. OTOOL64=$lt_OTOOL64
  14340. # Old archive suffix (normally "a").
  14341. libext=$libext
  14342. # Shared library suffix (normally ".so").
  14343. shrext_cmds=$lt_shrext_cmds
  14344. # The commands to extract the exported symbol list from a shared archive.
  14345. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  14346. # Variables whose values should be saved in libtool wrapper scripts and
  14347. # restored at link time.
  14348. variables_saved_for_relink=$lt_variables_saved_for_relink
  14349. # Do we need the "lib" prefix for modules?
  14350. need_lib_prefix=$need_lib_prefix
  14351. # Do we need a version for libraries?
  14352. need_version=$need_version
  14353. # Library versioning type.
  14354. version_type=$version_type
  14355. # Shared library runtime path variable.
  14356. runpath_var=$runpath_var
  14357. # Shared library path variable.
  14358. shlibpath_var=$shlibpath_var
  14359. # Is shlibpath searched before the hard-coded library search path?
  14360. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  14361. # Format of library name prefix.
  14362. libname_spec=$lt_libname_spec
  14363. # List of archive names. First name is the real one, the rest are links.
  14364. # The last name is the one that the linker finds with -lNAME
  14365. library_names_spec=$lt_library_names_spec
  14366. # The coded name of the library, if different from the real name.
  14367. soname_spec=$lt_soname_spec
  14368. # Command to use after installation of a shared archive.
  14369. postinstall_cmds=$lt_postinstall_cmds
  14370. # Command to use after uninstallation of a shared archive.
  14371. postuninstall_cmds=$lt_postuninstall_cmds
  14372. # Commands used to finish a libtool library installation in a directory.
  14373. finish_cmds=$lt_finish_cmds
  14374. # As "finish_cmds", except a single script fragment to be evaled but
  14375. # not shown.
  14376. finish_eval=$lt_finish_eval
  14377. # Whether we should hardcode library paths into libraries.
  14378. hardcode_into_libs=$hardcode_into_libs
  14379. # Compile-time system search path for libraries.
  14380. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  14381. # Run-time system search path for libraries.
  14382. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  14383. # Whether dlopen is supported.
  14384. dlopen_support=$enable_dlopen
  14385. # Whether dlopen of programs is supported.
  14386. dlopen_self=$enable_dlopen_self
  14387. # Whether dlopen of statically linked programs is supported.
  14388. dlopen_self_static=$enable_dlopen_self_static
  14389. # Commands to strip libraries.
  14390. old_striplib=$lt_old_striplib
  14391. striplib=$lt_striplib
  14392. # The linker used to build libraries.
  14393. LD=$lt_LD
  14394. # Commands used to build an old-style archive.
  14395. old_archive_cmds=$lt_old_archive_cmds
  14396. # A language specific compiler.
  14397. CC=$lt_compiler
  14398. # Is the compiler the GNU compiler?
  14399. with_gcc=$GCC
  14400. # Compiler flag to turn off builtin functions.
  14401. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  14402. # How to pass a linker flag through the compiler.
  14403. wl=$lt_lt_prog_compiler_wl
  14404. # Additional compiler flags for building library objects.
  14405. pic_flag=$lt_lt_prog_compiler_pic
  14406. # Compiler flag to prevent dynamic linking.
  14407. link_static_flag=$lt_lt_prog_compiler_static
  14408. # Does compiler simultaneously support -c and -o options?
  14409. compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  14410. # Whether or not to add -lc for building shared libraries.
  14411. build_libtool_need_lc=$archive_cmds_need_lc
  14412. # Whether or not to disallow shared libs when runtime libs are static.
  14413. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  14414. # Compiler flag to allow reflexive dlopens.
  14415. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  14416. # Compiler flag to generate shared objects directly from archives.
  14417. whole_archive_flag_spec=$lt_whole_archive_flag_spec
  14418. # Whether the compiler copes with passing no objects directly.
  14419. compiler_needs_object=$lt_compiler_needs_object
  14420. # Create an old-style archive from a shared archive.
  14421. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  14422. # Create a temporary old-style archive to link instead of a shared archive.
  14423. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  14424. # Commands used to build a shared archive.
  14425. archive_cmds=$lt_archive_cmds
  14426. archive_expsym_cmds=$lt_archive_expsym_cmds
  14427. # Commands used to build a loadable module if different from building
  14428. # a shared archive.
  14429. module_cmds=$lt_module_cmds
  14430. module_expsym_cmds=$lt_module_expsym_cmds
  14431. # Whether we are building with GNU ld or not.
  14432. with_gnu_ld=$lt_with_gnu_ld
  14433. # Flag that allows shared libraries with undefined symbols to be built.
  14434. allow_undefined_flag=$lt_allow_undefined_flag
  14435. # Flag that enforces no undefined symbols.
  14436. no_undefined_flag=$lt_no_undefined_flag
  14437. # Flag to hardcode \$libdir into a binary during linking.
  14438. # This must work even if \$libdir does not exist
  14439. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  14440. # If ld is used when linking, flag to hardcode \$libdir into a binary
  14441. # during linking. This must work even if \$libdir does not exist.
  14442. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
  14443. # Whether we need a single "-rpath" flag with a separated argument.
  14444. hardcode_libdir_separator=$lt_hardcode_libdir_separator
  14445. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  14446. # DIR into the resulting binary.
  14447. hardcode_direct=$hardcode_direct
  14448. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  14449. # DIR into the resulting binary and the resulting library dependency is
  14450. # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
  14451. # library is relocated.
  14452. hardcode_direct_absolute=$hardcode_direct_absolute
  14453. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  14454. # into the resulting binary.
  14455. hardcode_minus_L=$hardcode_minus_L
  14456. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  14457. # into the resulting binary.
  14458. hardcode_shlibpath_var=$hardcode_shlibpath_var
  14459. # Set to "yes" if building a shared library automatically hardcodes DIR
  14460. # into the library and all subsequent libraries and executables linked
  14461. # against it.
  14462. hardcode_automatic=$hardcode_automatic
  14463. # Set to yes if linker adds runtime paths of dependent libraries
  14464. # to runtime path list.
  14465. inherit_rpath=$inherit_rpath
  14466. # Whether libtool must link a program against all its dependency libraries.
  14467. link_all_deplibs=$link_all_deplibs
  14468. # Fix the shell variable \$srcfile for the compiler.
  14469. fix_srcfile_path=$lt_fix_srcfile_path
  14470. # Set to "yes" if exported symbols are required.
  14471. always_export_symbols=$always_export_symbols
  14472. # The commands to list exported symbols.
  14473. export_symbols_cmds=$lt_export_symbols_cmds
  14474. # Symbols that should not be listed in the preloaded symbols.
  14475. exclude_expsyms=$lt_exclude_expsyms
  14476. # Symbols that must always be exported.
  14477. include_expsyms=$lt_include_expsyms
  14478. # Commands necessary for linking programs (against libraries) with templates.
  14479. prelink_cmds=$lt_prelink_cmds
  14480. # Specify filename containing input files.
  14481. file_list_spec=$lt_file_list_spec
  14482. # How to hardcode a shared library path into an executable.
  14483. hardcode_action=$hardcode_action
  14484. # The directories searched by this compiler when creating a shared library.
  14485. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
  14486. # Dependencies to place before and after the objects being linked to
  14487. # create a shared library.
  14488. predep_objects=$lt_predep_objects
  14489. postdep_objects=$lt_postdep_objects
  14490. predeps=$lt_predeps
  14491. postdeps=$lt_postdeps
  14492. # The library search path used internally by the compiler when linking
  14493. # a shared library.
  14494. compiler_lib_search_path=$lt_compiler_lib_search_path
  14495. # ### END LIBTOOL CONFIG
  14496. _LT_EOF
  14497. case $host_os in
  14498. aix3*)
  14499. cat <<\_LT_EOF >> "$cfgfile"
  14500. # AIX sometimes has problems with the GCC collect2 program. For some
  14501. # reason, if we set the COLLECT_NAMES environment variable, the problems
  14502. # vanish in a puff of smoke.
  14503. if test "X${COLLECT_NAMES+set}" != Xset; then
  14504. COLLECT_NAMES=
  14505. export COLLECT_NAMES
  14506. fi
  14507. _LT_EOF
  14508. ;;
  14509. esac
  14510. ltmain="$ac_aux_dir/ltmain.sh"
  14511. # We use sed instead of cat because bash on DJGPP gets confused if
  14512. # if finds mixed CR/LF and LF-only lines. Since sed operates in
  14513. # text mode, it properly converts lines to CR/LF. This bash problem
  14514. # is reportedly fixed, but why not run on old versions too?
  14515. sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
  14516. || (rm -f "$cfgfile"; exit 1)
  14517. case $xsi_shell in
  14518. yes)
  14519. cat << \_LT_EOF >> "$cfgfile"
  14520. # func_dirname file append nondir_replacement
  14521. # Compute the dirname of FILE. If nonempty, add APPEND to the result,
  14522. # otherwise set result to NONDIR_REPLACEMENT.
  14523. func_dirname ()
  14524. {
  14525. case ${1} in
  14526. */*) func_dirname_result="${1%/*}${2}" ;;
  14527. * ) func_dirname_result="${3}" ;;
  14528. esac
  14529. }
  14530. # func_basename file
  14531. func_basename ()
  14532. {
  14533. func_basename_result="${1##*/}"
  14534. }
  14535. # func_dirname_and_basename file append nondir_replacement
  14536. # perform func_basename and func_dirname in a single function
  14537. # call:
  14538. # dirname: Compute the dirname of FILE. If nonempty,
  14539. # add APPEND to the result, otherwise set result
  14540. # to NONDIR_REPLACEMENT.
  14541. # value returned in "$func_dirname_result"
  14542. # basename: Compute filename of FILE.
  14543. # value retuned in "$func_basename_result"
  14544. # Implementation must be kept synchronized with func_dirname
  14545. # and func_basename. For efficiency, we do not delegate to
  14546. # those functions but instead duplicate the functionality here.
  14547. func_dirname_and_basename ()
  14548. {
  14549. case ${1} in
  14550. */*) func_dirname_result="${1%/*}${2}" ;;
  14551. * ) func_dirname_result="${3}" ;;
  14552. esac
  14553. func_basename_result="${1##*/}"
  14554. }
  14555. # func_stripname prefix suffix name
  14556. # strip PREFIX and SUFFIX off of NAME.
  14557. # PREFIX and SUFFIX must not contain globbing or regex special
  14558. # characters, hashes, percent signs, but SUFFIX may contain a leading
  14559. # dot (in which case that matches only a dot).
  14560. func_stripname ()
  14561. {
  14562. # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
  14563. # positional parameters, so assign one to ordinary parameter first.
  14564. func_stripname_result=${3}
  14565. func_stripname_result=${func_stripname_result#"${1}"}
  14566. func_stripname_result=${func_stripname_result%"${2}"}
  14567. }
  14568. # func_opt_split
  14569. func_opt_split ()
  14570. {
  14571. func_opt_split_opt=${1%%=*}
  14572. func_opt_split_arg=${1#*=}
  14573. }
  14574. # func_lo2o object
  14575. func_lo2o ()
  14576. {
  14577. case ${1} in
  14578. *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
  14579. *) func_lo2o_result=${1} ;;
  14580. esac
  14581. }
  14582. # func_xform libobj-or-source
  14583. func_xform ()
  14584. {
  14585. func_xform_result=${1%.*}.lo
  14586. }
  14587. # func_arith arithmetic-term...
  14588. func_arith ()
  14589. {
  14590. func_arith_result=$(( $* ))
  14591. }
  14592. # func_len string
  14593. # STRING may not start with a hyphen.
  14594. func_len ()
  14595. {
  14596. func_len_result=${#1}
  14597. }
  14598. _LT_EOF
  14599. ;;
  14600. *) # Bourne compatible functions.
  14601. cat << \_LT_EOF >> "$cfgfile"
  14602. # func_dirname file append nondir_replacement
  14603. # Compute the dirname of FILE. If nonempty, add APPEND to the result,
  14604. # otherwise set result to NONDIR_REPLACEMENT.
  14605. func_dirname ()
  14606. {
  14607. # Extract subdirectory from the argument.
  14608. func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
  14609. if test "X$func_dirname_result" = "X${1}"; then
  14610. func_dirname_result="${3}"
  14611. else
  14612. func_dirname_result="$func_dirname_result${2}"
  14613. fi
  14614. }
  14615. # func_basename file
  14616. func_basename ()
  14617. {
  14618. func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
  14619. }
  14620. # func_stripname prefix suffix name
  14621. # strip PREFIX and SUFFIX off of NAME.
  14622. # PREFIX and SUFFIX must not contain globbing or regex special
  14623. # characters, hashes, percent signs, but SUFFIX may contain a leading
  14624. # dot (in which case that matches only a dot).
  14625. # func_strip_suffix prefix name
  14626. func_stripname ()
  14627. {
  14628. case ${2} in
  14629. .*) func_stripname_result=`$ECHO "X${3}" \
  14630. | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
  14631. *) func_stripname_result=`$ECHO "X${3}" \
  14632. | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
  14633. esac
  14634. }
  14635. # sed scripts:
  14636. my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
  14637. my_sed_long_arg='1s/^-[^=]*=//'
  14638. # func_opt_split
  14639. func_opt_split ()
  14640. {
  14641. func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
  14642. func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
  14643. }
  14644. # func_lo2o object
  14645. func_lo2o ()
  14646. {
  14647. func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
  14648. }
  14649. # func_xform libobj-or-source
  14650. func_xform ()
  14651. {
  14652. func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
  14653. }
  14654. # func_arith arithmetic-term...
  14655. func_arith ()
  14656. {
  14657. func_arith_result=`expr "$@"`
  14658. }
  14659. # func_len string
  14660. # STRING may not start with a hyphen.
  14661. func_len ()
  14662. {
  14663. func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
  14664. }
  14665. _LT_EOF
  14666. esac
  14667. case $lt_shell_append in
  14668. yes)
  14669. cat << \_LT_EOF >> "$cfgfile"
  14670. # func_append var value
  14671. # Append VALUE to the end of shell variable VAR.
  14672. func_append ()
  14673. {
  14674. eval "$1+=\$2"
  14675. }
  14676. _LT_EOF
  14677. ;;
  14678. *)
  14679. cat << \_LT_EOF >> "$cfgfile"
  14680. # func_append var value
  14681. # Append VALUE to the end of shell variable VAR.
  14682. func_append ()
  14683. {
  14684. eval "$1=\$$1\$2"
  14685. }
  14686. _LT_EOF
  14687. ;;
  14688. esac
  14689. sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
  14690. || (rm -f "$cfgfile"; exit 1)
  14691. mv -f "$cfgfile" "$ofile" ||
  14692. (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  14693. chmod +x "$ofile"
  14694. cat <<_LT_EOF >> "$ofile"
  14695. # ### BEGIN LIBTOOL TAG CONFIG: CXX
  14696. # The linker used to build libraries.
  14697. LD=$lt_LD_CXX
  14698. # Commands used to build an old-style archive.
  14699. old_archive_cmds=$lt_old_archive_cmds_CXX
  14700. # A language specific compiler.
  14701. CC=$lt_compiler_CXX
  14702. # Is the compiler the GNU compiler?
  14703. with_gcc=$GCC_CXX
  14704. # Compiler flag to turn off builtin functions.
  14705. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
  14706. # How to pass a linker flag through the compiler.
  14707. wl=$lt_lt_prog_compiler_wl_CXX
  14708. # Additional compiler flags for building library objects.
  14709. pic_flag=$lt_lt_prog_compiler_pic_CXX
  14710. # Compiler flag to prevent dynamic linking.
  14711. link_static_flag=$lt_lt_prog_compiler_static_CXX
  14712. # Does compiler simultaneously support -c and -o options?
  14713. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
  14714. # Whether or not to add -lc for building shared libraries.
  14715. build_libtool_need_lc=$archive_cmds_need_lc_CXX
  14716. # Whether or not to disallow shared libs when runtime libs are static.
  14717. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
  14718. # Compiler flag to allow reflexive dlopens.
  14719. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
  14720. # Compiler flag to generate shared objects directly from archives.
  14721. whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
  14722. # Whether the compiler copes with passing no objects directly.
  14723. compiler_needs_object=$lt_compiler_needs_object_CXX
  14724. # Create an old-style archive from a shared archive.
  14725. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
  14726. # Create a temporary old-style archive to link instead of a shared archive.
  14727. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
  14728. # Commands used to build a shared archive.
  14729. archive_cmds=$lt_archive_cmds_CXX
  14730. archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
  14731. # Commands used to build a loadable module if different from building
  14732. # a shared archive.
  14733. module_cmds=$lt_module_cmds_CXX
  14734. module_expsym_cmds=$lt_module_expsym_cmds_CXX
  14735. # Whether we are building with GNU ld or not.
  14736. with_gnu_ld=$lt_with_gnu_ld_CXX
  14737. # Flag that allows shared libraries with undefined symbols to be built.
  14738. allow_undefined_flag=$lt_allow_undefined_flag_CXX
  14739. # Flag that enforces no undefined symbols.
  14740. no_undefined_flag=$lt_no_undefined_flag_CXX
  14741. # Flag to hardcode \$libdir into a binary during linking.
  14742. # This must work even if \$libdir does not exist
  14743. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
  14744. # If ld is used when linking, flag to hardcode \$libdir into a binary
  14745. # during linking. This must work even if \$libdir does not exist.
  14746. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
  14747. # Whether we need a single "-rpath" flag with a separated argument.
  14748. hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
  14749. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  14750. # DIR into the resulting binary.
  14751. hardcode_direct=$hardcode_direct_CXX
  14752. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  14753. # DIR into the resulting binary and the resulting library dependency is
  14754. # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
  14755. # library is relocated.
  14756. hardcode_direct_absolute=$hardcode_direct_absolute_CXX
  14757. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  14758. # into the resulting binary.
  14759. hardcode_minus_L=$hardcode_minus_L_CXX
  14760. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  14761. # into the resulting binary.
  14762. hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
  14763. # Set to "yes" if building a shared library automatically hardcodes DIR
  14764. # into the library and all subsequent libraries and executables linked
  14765. # against it.
  14766. hardcode_automatic=$hardcode_automatic_CXX
  14767. # Set to yes if linker adds runtime paths of dependent libraries
  14768. # to runtime path list.
  14769. inherit_rpath=$inherit_rpath_CXX
  14770. # Whether libtool must link a program against all its dependency libraries.
  14771. link_all_deplibs=$link_all_deplibs_CXX
  14772. # Fix the shell variable \$srcfile for the compiler.
  14773. fix_srcfile_path=$lt_fix_srcfile_path_CXX
  14774. # Set to "yes" if exported symbols are required.
  14775. always_export_symbols=$always_export_symbols_CXX
  14776. # The commands to list exported symbols.
  14777. export_symbols_cmds=$lt_export_symbols_cmds_CXX
  14778. # Symbols that should not be listed in the preloaded symbols.
  14779. exclude_expsyms=$lt_exclude_expsyms_CXX
  14780. # Symbols that must always be exported.
  14781. include_expsyms=$lt_include_expsyms_CXX
  14782. # Commands necessary for linking programs (against libraries) with templates.
  14783. prelink_cmds=$lt_prelink_cmds_CXX
  14784. # Specify filename containing input files.
  14785. file_list_spec=$lt_file_list_spec_CXX
  14786. # How to hardcode a shared library path into an executable.
  14787. hardcode_action=$hardcode_action_CXX
  14788. # The directories searched by this compiler when creating a shared library.
  14789. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
  14790. # Dependencies to place before and after the objects being linked to
  14791. # create a shared library.
  14792. predep_objects=$lt_predep_objects_CXX
  14793. postdep_objects=$lt_postdep_objects_CXX
  14794. predeps=$lt_predeps_CXX
  14795. postdeps=$lt_postdeps_CXX
  14796. # The library search path used internally by the compiler when linking
  14797. # a shared library.
  14798. compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
  14799. # ### END LIBTOOL TAG CONFIG: CXX
  14800. _LT_EOF
  14801. ;;
  14802. esac
  14803. done # for ac_tag
  14804. as_fn_exit 0
  14805. _ACEOF
  14806. ac_clean_files=$ac_clean_files_save
  14807. test $ac_write_fail = 0 ||
  14808. as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
  14809. # configure is writing to config.log, and then calls config.status.
  14810. # config.status does its own redirection, appending to config.log.
  14811. # Unfortunately, on DOS this fails, as config.log is still kept open
  14812. # by configure, so config.status won't be able to write to it; its
  14813. # output is simply discarded. So we exec the FD to /dev/null,
  14814. # effectively closing config.log, so it can be properly (re)opened and
  14815. # appended to by config.status. When coming back to configure, we
  14816. # need to make the FD available again.
  14817. if test "$no_create" != yes; then
  14818. ac_cs_success=:
  14819. ac_config_status_args=
  14820. test "$silent" = yes &&
  14821. ac_config_status_args="$ac_config_status_args --quiet"
  14822. exec 5>/dev/null
  14823. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  14824. exec 5>>config.log
  14825. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  14826. # would make configure fail if this is the last instruction.
  14827. $ac_cs_success || as_fn_exit 1
  14828. fi
  14829. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  14830. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  14831. $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  14832. fi