configure 878 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425134261342713428134291343013431134321343313434134351343613437134381343913440134411344213443134441344513446134471344813449134501345113452134531345413455134561345713458134591346013461134621346313464134651346613467134681346913470134711347213473134741347513476134771347813479134801348113482134831348413485134861348713488134891349013491134921349313494134951349613497134981349913500135011350213503135041350513506135071350813509135101351113512135131351413515135161351713518135191352013521135221352313524135251352613527135281352913530135311353213533135341353513536135371353813539135401354113542135431354413545135461354713548135491355013551135521355313554135551355613557135581355913560135611356213563135641356513566135671356813569135701357113572135731357413575135761357713578135791358013581135821358313584135851358613587135881358913590135911359213593135941359513596135971359813599136001360113602136031360413605136061360713608136091361013611136121361313614136151361613617136181361913620136211362213623136241362513626136271362813629136301363113632136331363413635136361363713638136391364013641136421364313644136451364613647136481364913650136511365213653136541365513656136571365813659136601366113662136631366413665136661366713668136691367013671136721367313674136751367613677136781367913680136811368213683136841368513686136871368813689136901369113692136931369413695136961369713698136991370013701137021370313704137051370613707137081370913710137111371213713137141371513716137171371813719137201372113722137231372413725137261372713728137291373013731137321373313734137351373613737137381373913740137411374213743137441374513746137471374813749137501375113752137531375413755137561375713758137591376013761137621376313764137651376613767137681376913770137711377213773137741377513776137771377813779137801378113782137831378413785137861378713788137891379013791137921379313794137951379613797137981379913800138011380213803138041380513806138071380813809138101381113812138131381413815138161381713818138191382013821138221382313824138251382613827138281382913830138311383213833138341383513836138371383813839138401384113842138431384413845138461384713848138491385013851138521385313854138551385613857138581385913860138611386213863138641386513866138671386813869138701387113872138731387413875138761387713878138791388013881138821388313884138851388613887138881388913890138911389213893138941389513896138971389813899139001390113902139031390413905139061390713908139091391013911139121391313914139151391613917139181391913920139211392213923139241392513926139271392813929139301393113932139331393413935139361393713938139391394013941139421394313944139451394613947139481394913950139511395213953139541395513956139571395813959139601396113962139631396413965139661396713968139691397013971139721397313974139751397613977139781397913980139811398213983139841398513986139871398813989139901399113992139931399413995139961399713998139991400014001140021400314004140051400614007140081400914010140111401214013140141401514016140171401814019140201402114022140231402414025140261402714028140291403014031140321403314034140351403614037140381403914040140411404214043140441404514046140471404814049140501405114052140531405414055140561405714058140591406014061140621406314064140651406614067140681406914070140711407214073140741407514076140771407814079140801408114082140831408414085140861408714088140891409014091140921409314094140951409614097140981409914100141011410214103141041410514106141071410814109141101411114112141131411414115141161411714118141191412014121141221412314124141251412614127141281412914130141311413214133141341413514136141371413814139141401414114142141431414414145141461414714148141491415014151141521415314154141551415614157141581415914160141611416214163141641416514166141671416814169141701417114172141731417414175141761417714178141791418014181141821418314184141851418614187141881418914190141911419214193141941419514196141971419814199142001420114202142031420414205142061420714208142091421014211142121421314214142151421614217142181421914220142211422214223142241422514226142271422814229142301423114232142331423414235142361423714238142391424014241142421424314244142451424614247142481424914250142511425214253142541425514256142571425814259142601426114262142631426414265142661426714268142691427014271142721427314274142751427614277142781427914280142811428214283142841428514286142871428814289142901429114292142931429414295142961429714298142991430014301143021430314304143051430614307143081430914310143111431214313143141431514316143171431814319143201432114322143231432414325143261432714328143291433014331143321433314334143351433614337143381433914340143411434214343143441434514346143471434814349143501435114352143531435414355143561435714358143591436014361143621436314364143651436614367143681436914370143711437214373143741437514376143771437814379143801438114382143831438414385143861438714388143891439014391143921439314394143951439614397143981439914400144011440214403144041440514406144071440814409144101441114412144131441414415144161441714418144191442014421144221442314424144251442614427144281442914430144311443214433144341443514436144371443814439144401444114442144431444414445144461444714448144491445014451144521445314454144551445614457144581445914460144611446214463144641446514466144671446814469144701447114472144731447414475144761447714478144791448014481144821448314484144851448614487144881448914490144911449214493144941449514496144971449814499145001450114502145031450414505145061450714508145091451014511145121451314514145151451614517145181451914520145211452214523145241452514526145271452814529145301453114532145331453414535145361453714538145391454014541145421454314544145451454614547145481454914550145511455214553145541455514556145571455814559145601456114562145631456414565145661456714568145691457014571145721457314574145751457614577145781457914580145811458214583145841458514586145871458814589145901459114592145931459414595145961459714598145991460014601146021460314604146051460614607146081460914610146111461214613146141461514616146171461814619146201462114622146231462414625146261462714628146291463014631146321463314634146351463614637146381463914640146411464214643146441464514646146471464814649146501465114652146531465414655146561465714658146591466014661146621466314664146651466614667146681466914670146711467214673146741467514676146771467814679146801468114682146831468414685146861468714688146891469014691146921469314694146951469614697146981469914700147011470214703147041470514706147071470814709147101471114712147131471414715147161471714718147191472014721147221472314724147251472614727147281472914730147311473214733147341473514736147371473814739147401474114742147431474414745147461474714748147491475014751147521475314754147551475614757147581475914760147611476214763147641476514766147671476814769147701477114772147731477414775147761477714778147791478014781147821478314784147851478614787147881478914790147911479214793147941479514796147971479814799148001480114802148031480414805148061480714808148091481014811148121481314814148151481614817148181481914820148211482214823148241482514826148271482814829148301483114832148331483414835148361483714838148391484014841148421484314844148451484614847148481484914850148511485214853148541485514856148571485814859148601486114862148631486414865148661486714868148691487014871148721487314874148751487614877148781487914880148811488214883148841488514886148871488814889148901489114892148931489414895148961489714898148991490014901149021490314904149051490614907149081490914910149111491214913149141491514916149171491814919149201492114922149231492414925149261492714928149291493014931149321493314934149351493614937149381493914940149411494214943149441494514946149471494814949149501495114952149531495414955149561495714958149591496014961149621496314964149651496614967149681496914970149711497214973149741497514976149771497814979149801498114982149831498414985149861498714988149891499014991149921499314994149951499614997149981499915000150011500215003150041500515006150071500815009150101501115012150131501415015150161501715018150191502015021150221502315024150251502615027150281502915030150311503215033150341503515036150371503815039150401504115042150431504415045150461504715048150491505015051150521505315054150551505615057150581505915060150611506215063150641506515066150671506815069150701507115072150731507415075150761507715078150791508015081150821508315084150851508615087150881508915090150911509215093150941509515096150971509815099151001510115102151031510415105151061510715108151091511015111151121511315114151151511615117151181511915120151211512215123151241512515126151271512815129151301513115132151331513415135151361513715138151391514015141151421514315144151451514615147151481514915150151511515215153151541515515156151571515815159151601516115162151631516415165151661516715168151691517015171151721517315174151751517615177151781517915180151811518215183151841518515186151871518815189151901519115192151931519415195151961519715198151991520015201152021520315204152051520615207152081520915210152111521215213152141521515216152171521815219152201522115222152231522415225152261522715228152291523015231152321523315234152351523615237152381523915240152411524215243152441524515246152471524815249152501525115252152531525415255152561525715258152591526015261152621526315264152651526615267152681526915270152711527215273152741527515276152771527815279152801528115282152831528415285152861528715288152891529015291152921529315294152951529615297152981529915300153011530215303153041530515306153071530815309153101531115312153131531415315153161531715318153191532015321153221532315324153251532615327153281532915330153311533215333153341533515336153371533815339153401534115342153431534415345153461534715348153491535015351153521535315354153551535615357153581535915360153611536215363153641536515366153671536815369153701537115372153731537415375153761537715378153791538015381153821538315384153851538615387153881538915390153911539215393153941539515396153971539815399154001540115402154031540415405154061540715408154091541015411154121541315414154151541615417154181541915420154211542215423154241542515426154271542815429154301543115432154331543415435154361543715438154391544015441154421544315444154451544615447154481544915450154511545215453154541545515456154571545815459154601546115462154631546415465154661546715468154691547015471154721547315474154751547615477154781547915480154811548215483154841548515486154871548815489154901549115492154931549415495154961549715498154991550015501155021550315504155051550615507155081550915510155111551215513155141551515516155171551815519155201552115522155231552415525155261552715528155291553015531155321553315534155351553615537155381553915540155411554215543155441554515546155471554815549155501555115552155531555415555155561555715558155591556015561155621556315564155651556615567155681556915570155711557215573155741557515576155771557815579155801558115582155831558415585155861558715588155891559015591155921559315594155951559615597155981559915600156011560215603156041560515606156071560815609156101561115612156131561415615156161561715618156191562015621156221562315624156251562615627156281562915630156311563215633156341563515636156371563815639156401564115642156431564415645156461564715648156491565015651156521565315654156551565615657156581565915660156611566215663156641566515666156671566815669156701567115672156731567415675156761567715678156791568015681156821568315684156851568615687156881568915690156911569215693156941569515696156971569815699157001570115702157031570415705157061570715708157091571015711157121571315714157151571615717157181571915720157211572215723157241572515726157271572815729157301573115732157331573415735157361573715738157391574015741157421574315744157451574615747157481574915750157511575215753157541575515756157571575815759157601576115762157631576415765157661576715768157691577015771157721577315774157751577615777157781577915780157811578215783157841578515786157871578815789157901579115792157931579415795157961579715798157991580015801158021580315804158051580615807158081580915810158111581215813158141581515816158171581815819158201582115822158231582415825158261582715828158291583015831158321583315834158351583615837158381583915840158411584215843158441584515846158471584815849158501585115852158531585415855158561585715858158591586015861158621586315864158651586615867158681586915870158711587215873158741587515876158771587815879158801588115882158831588415885158861588715888158891589015891158921589315894158951589615897158981589915900159011590215903159041590515906159071590815909159101591115912159131591415915159161591715918159191592015921159221592315924159251592615927159281592915930159311593215933159341593515936159371593815939159401594115942159431594415945159461594715948159491595015951159521595315954159551595615957159581595915960159611596215963159641596515966159671596815969159701597115972159731597415975159761597715978159791598015981159821598315984159851598615987159881598915990159911599215993159941599515996159971599815999160001600116002160031600416005160061600716008160091601016011160121601316014160151601616017160181601916020160211602216023160241602516026160271602816029160301603116032160331603416035160361603716038160391604016041160421604316044160451604616047160481604916050160511605216053160541605516056160571605816059160601606116062160631606416065160661606716068160691607016071160721607316074160751607616077160781607916080160811608216083160841608516086160871608816089160901609116092160931609416095160961609716098160991610016101161021610316104161051610616107161081610916110161111611216113161141611516116161171611816119161201612116122161231612416125161261612716128161291613016131161321613316134161351613616137161381613916140161411614216143161441614516146161471614816149161501615116152161531615416155161561615716158161591616016161161621616316164161651616616167161681616916170161711617216173161741617516176161771617816179161801618116182161831618416185161861618716188161891619016191161921619316194161951619616197161981619916200162011620216203162041620516206162071620816209162101621116212162131621416215162161621716218162191622016221162221622316224162251622616227162281622916230162311623216233162341623516236162371623816239162401624116242162431624416245162461624716248162491625016251162521625316254162551625616257162581625916260162611626216263162641626516266162671626816269162701627116272162731627416275162761627716278162791628016281162821628316284162851628616287162881628916290162911629216293162941629516296162971629816299163001630116302163031630416305163061630716308163091631016311163121631316314163151631616317163181631916320163211632216323163241632516326163271632816329163301633116332163331633416335163361633716338163391634016341163421634316344163451634616347163481634916350163511635216353163541635516356163571635816359163601636116362163631636416365163661636716368163691637016371163721637316374163751637616377163781637916380163811638216383163841638516386163871638816389163901639116392163931639416395163961639716398163991640016401164021640316404164051640616407164081640916410164111641216413164141641516416164171641816419164201642116422164231642416425164261642716428164291643016431164321643316434164351643616437164381643916440164411644216443164441644516446164471644816449164501645116452164531645416455164561645716458164591646016461164621646316464164651646616467164681646916470164711647216473164741647516476164771647816479164801648116482164831648416485164861648716488164891649016491164921649316494164951649616497164981649916500165011650216503165041650516506165071650816509165101651116512165131651416515165161651716518165191652016521165221652316524165251652616527165281652916530165311653216533165341653516536165371653816539165401654116542165431654416545165461654716548165491655016551165521655316554165551655616557165581655916560165611656216563165641656516566165671656816569165701657116572165731657416575165761657716578165791658016581165821658316584165851658616587165881658916590165911659216593165941659516596165971659816599166001660116602166031660416605166061660716608166091661016611166121661316614166151661616617166181661916620166211662216623166241662516626166271662816629166301663116632166331663416635166361663716638166391664016641166421664316644166451664616647166481664916650166511665216653166541665516656166571665816659166601666116662166631666416665166661666716668166691667016671166721667316674166751667616677166781667916680166811668216683166841668516686166871668816689166901669116692166931669416695166961669716698166991670016701167021670316704167051670616707167081670916710167111671216713167141671516716167171671816719167201672116722167231672416725167261672716728167291673016731167321673316734167351673616737167381673916740167411674216743167441674516746167471674816749167501675116752167531675416755167561675716758167591676016761167621676316764167651676616767167681676916770167711677216773167741677516776167771677816779167801678116782167831678416785167861678716788167891679016791167921679316794167951679616797167981679916800168011680216803168041680516806168071680816809168101681116812168131681416815168161681716818168191682016821168221682316824168251682616827168281682916830168311683216833168341683516836168371683816839168401684116842168431684416845168461684716848168491685016851168521685316854168551685616857168581685916860168611686216863168641686516866168671686816869168701687116872168731687416875168761687716878168791688016881168821688316884168851688616887168881688916890168911689216893168941689516896168971689816899169001690116902169031690416905169061690716908169091691016911169121691316914169151691616917169181691916920169211692216923169241692516926169271692816929169301693116932169331693416935169361693716938169391694016941169421694316944169451694616947169481694916950169511695216953169541695516956169571695816959169601696116962169631696416965169661696716968169691697016971169721697316974169751697616977169781697916980169811698216983169841698516986169871698816989169901699116992169931699416995169961699716998169991700017001170021700317004170051700617007170081700917010170111701217013170141701517016170171701817019170201702117022170231702417025170261702717028170291703017031170321703317034170351703617037170381703917040170411704217043170441704517046170471704817049170501705117052170531705417055170561705717058170591706017061170621706317064170651706617067170681706917070170711707217073170741707517076170771707817079170801708117082170831708417085170861708717088170891709017091170921709317094170951709617097170981709917100171011710217103171041710517106171071710817109171101711117112171131711417115171161711717118171191712017121171221712317124171251712617127171281712917130171311713217133171341713517136171371713817139171401714117142171431714417145171461714717148171491715017151171521715317154171551715617157171581715917160171611716217163171641716517166171671716817169171701717117172171731717417175171761717717178171791718017181171821718317184171851718617187171881718917190171911719217193171941719517196171971719817199172001720117202172031720417205172061720717208172091721017211172121721317214172151721617217172181721917220172211722217223172241722517226172271722817229172301723117232172331723417235172361723717238172391724017241172421724317244172451724617247172481724917250172511725217253172541725517256172571725817259172601726117262172631726417265172661726717268172691727017271172721727317274172751727617277172781727917280172811728217283172841728517286172871728817289172901729117292172931729417295172961729717298172991730017301173021730317304173051730617307173081730917310173111731217313173141731517316173171731817319173201732117322173231732417325173261732717328173291733017331173321733317334173351733617337173381733917340173411734217343173441734517346173471734817349173501735117352173531735417355173561735717358173591736017361173621736317364173651736617367173681736917370173711737217373173741737517376173771737817379173801738117382173831738417385173861738717388173891739017391173921739317394173951739617397173981739917400174011740217403174041740517406174071740817409174101741117412174131741417415174161741717418174191742017421174221742317424174251742617427174281742917430174311743217433174341743517436174371743817439174401744117442174431744417445174461744717448174491745017451174521745317454174551745617457174581745917460174611746217463174641746517466174671746817469174701747117472174731747417475174761747717478174791748017481174821748317484174851748617487174881748917490174911749217493174941749517496174971749817499175001750117502175031750417505175061750717508175091751017511175121751317514175151751617517175181751917520175211752217523175241752517526175271752817529175301753117532175331753417535175361753717538175391754017541175421754317544175451754617547175481754917550175511755217553175541755517556175571755817559175601756117562175631756417565175661756717568175691757017571175721757317574175751757617577175781757917580175811758217583175841758517586175871758817589175901759117592175931759417595175961759717598175991760017601176021760317604176051760617607176081760917610176111761217613176141761517616176171761817619176201762117622176231762417625176261762717628176291763017631176321763317634176351763617637176381763917640176411764217643176441764517646176471764817649176501765117652176531765417655176561765717658176591766017661176621766317664176651766617667176681766917670176711767217673176741767517676176771767817679176801768117682176831768417685176861768717688176891769017691176921769317694176951769617697176981769917700177011770217703177041770517706177071770817709177101771117712177131771417715177161771717718177191772017721177221772317724177251772617727177281772917730177311773217733177341773517736177371773817739177401774117742177431774417745177461774717748177491775017751177521775317754177551775617757177581775917760177611776217763177641776517766177671776817769177701777117772177731777417775177761777717778177791778017781177821778317784177851778617787177881778917790177911779217793177941779517796177971779817799178001780117802178031780417805178061780717808178091781017811178121781317814178151781617817178181781917820178211782217823178241782517826178271782817829178301783117832178331783417835178361783717838178391784017841178421784317844178451784617847178481784917850178511785217853178541785517856178571785817859178601786117862178631786417865178661786717868178691787017871178721787317874178751787617877178781787917880178811788217883178841788517886178871788817889178901789117892178931789417895178961789717898178991790017901179021790317904179051790617907179081790917910179111791217913179141791517916179171791817919179201792117922179231792417925179261792717928179291793017931179321793317934179351793617937179381793917940179411794217943179441794517946179471794817949179501795117952179531795417955179561795717958179591796017961179621796317964179651796617967179681796917970179711797217973179741797517976179771797817979179801798117982179831798417985179861798717988179891799017991179921799317994179951799617997179981799918000180011800218003180041800518006180071800818009180101801118012180131801418015180161801718018180191802018021180221802318024180251802618027180281802918030180311803218033180341803518036180371803818039180401804118042180431804418045180461804718048180491805018051180521805318054180551805618057180581805918060180611806218063180641806518066180671806818069180701807118072180731807418075180761807718078180791808018081180821808318084180851808618087180881808918090180911809218093180941809518096180971809818099181001810118102181031810418105181061810718108181091811018111181121811318114181151811618117181181811918120181211812218123181241812518126181271812818129181301813118132181331813418135181361813718138181391814018141181421814318144181451814618147181481814918150181511815218153181541815518156181571815818159181601816118162181631816418165181661816718168181691817018171181721817318174181751817618177181781817918180181811818218183181841818518186181871818818189181901819118192181931819418195181961819718198181991820018201182021820318204182051820618207182081820918210182111821218213182141821518216182171821818219182201822118222182231822418225182261822718228182291823018231182321823318234182351823618237182381823918240182411824218243182441824518246182471824818249182501825118252182531825418255182561825718258182591826018261182621826318264182651826618267182681826918270182711827218273182741827518276182771827818279182801828118282182831828418285182861828718288182891829018291182921829318294182951829618297182981829918300183011830218303183041830518306183071830818309183101831118312183131831418315183161831718318183191832018321183221832318324183251832618327183281832918330183311833218333183341833518336183371833818339183401834118342183431834418345183461834718348183491835018351183521835318354183551835618357183581835918360183611836218363183641836518366183671836818369183701837118372183731837418375183761837718378183791838018381183821838318384183851838618387183881838918390183911839218393183941839518396183971839818399184001840118402184031840418405184061840718408184091841018411184121841318414184151841618417184181841918420184211842218423184241842518426184271842818429184301843118432184331843418435184361843718438184391844018441184421844318444184451844618447184481844918450184511845218453184541845518456184571845818459184601846118462184631846418465184661846718468184691847018471184721847318474184751847618477184781847918480184811848218483184841848518486184871848818489184901849118492184931849418495184961849718498184991850018501185021850318504185051850618507185081850918510185111851218513185141851518516185171851818519185201852118522185231852418525185261852718528185291853018531185321853318534185351853618537185381853918540185411854218543185441854518546185471854818549185501855118552185531855418555185561855718558185591856018561185621856318564185651856618567185681856918570185711857218573185741857518576185771857818579185801858118582185831858418585185861858718588185891859018591185921859318594185951859618597185981859918600186011860218603186041860518606186071860818609186101861118612186131861418615186161861718618186191862018621186221862318624186251862618627186281862918630186311863218633186341863518636186371863818639186401864118642186431864418645186461864718648186491865018651186521865318654186551865618657186581865918660186611866218663186641866518666186671866818669186701867118672186731867418675186761867718678186791868018681186821868318684186851868618687186881868918690186911869218693186941869518696186971869818699187001870118702187031870418705187061870718708187091871018711187121871318714187151871618717187181871918720187211872218723187241872518726187271872818729187301873118732187331873418735187361873718738187391874018741187421874318744187451874618747187481874918750187511875218753187541875518756187571875818759187601876118762187631876418765187661876718768187691877018771187721877318774187751877618777187781877918780187811878218783187841878518786187871878818789187901879118792187931879418795187961879718798187991880018801188021880318804188051880618807188081880918810188111881218813188141881518816188171881818819188201882118822188231882418825188261882718828188291883018831188321883318834188351883618837188381883918840188411884218843188441884518846188471884818849188501885118852188531885418855188561885718858188591886018861188621886318864188651886618867188681886918870188711887218873188741887518876188771887818879188801888118882188831888418885188861888718888188891889018891188921889318894188951889618897188981889918900189011890218903189041890518906189071890818909189101891118912189131891418915189161891718918189191892018921189221892318924189251892618927189281892918930189311893218933189341893518936189371893818939189401894118942189431894418945189461894718948189491895018951189521895318954189551895618957189581895918960189611896218963189641896518966189671896818969189701897118972189731897418975189761897718978189791898018981189821898318984189851898618987189881898918990189911899218993189941899518996189971899818999190001900119002190031900419005190061900719008190091901019011190121901319014190151901619017190181901919020190211902219023190241902519026190271902819029190301903119032190331903419035190361903719038190391904019041190421904319044190451904619047190481904919050190511905219053190541905519056190571905819059190601906119062190631906419065190661906719068190691907019071190721907319074190751907619077190781907919080190811908219083190841908519086190871908819089190901909119092190931909419095190961909719098190991910019101191021910319104191051910619107191081910919110191111911219113191141911519116191171911819119191201912119122191231912419125191261912719128191291913019131191321913319134191351913619137191381913919140191411914219143191441914519146191471914819149191501915119152191531915419155191561915719158191591916019161191621916319164191651916619167191681916919170191711917219173191741917519176191771917819179191801918119182191831918419185191861918719188191891919019191191921919319194191951919619197191981919919200192011920219203192041920519206192071920819209192101921119212192131921419215192161921719218192191922019221192221922319224192251922619227192281922919230192311923219233192341923519236192371923819239192401924119242192431924419245192461924719248192491925019251192521925319254192551925619257192581925919260192611926219263192641926519266192671926819269192701927119272192731927419275192761927719278192791928019281192821928319284192851928619287192881928919290192911929219293192941929519296192971929819299193001930119302193031930419305193061930719308193091931019311193121931319314193151931619317193181931919320193211932219323193241932519326193271932819329193301933119332193331933419335193361933719338193391934019341193421934319344193451934619347193481934919350193511935219353193541935519356193571935819359193601936119362193631936419365193661936719368193691937019371193721937319374193751937619377193781937919380193811938219383193841938519386193871938819389193901939119392193931939419395193961939719398193991940019401194021940319404194051940619407194081940919410194111941219413194141941519416194171941819419194201942119422194231942419425194261942719428194291943019431194321943319434194351943619437194381943919440194411944219443194441944519446194471944819449194501945119452194531945419455194561945719458194591946019461194621946319464194651946619467194681946919470194711947219473194741947519476194771947819479194801948119482194831948419485194861948719488194891949019491194921949319494194951949619497194981949919500195011950219503195041950519506195071950819509195101951119512195131951419515195161951719518195191952019521195221952319524195251952619527195281952919530195311953219533195341953519536195371953819539195401954119542195431954419545195461954719548195491955019551195521955319554195551955619557195581955919560195611956219563195641956519566195671956819569195701957119572195731957419575195761957719578195791958019581195821958319584195851958619587195881958919590195911959219593195941959519596195971959819599196001960119602196031960419605196061960719608196091961019611196121961319614196151961619617196181961919620196211962219623196241962519626196271962819629196301963119632196331963419635196361963719638196391964019641196421964319644196451964619647196481964919650196511965219653196541965519656196571965819659196601966119662196631966419665196661966719668196691967019671196721967319674196751967619677196781967919680196811968219683196841968519686196871968819689196901969119692196931969419695196961969719698196991970019701197021970319704197051970619707197081970919710197111971219713197141971519716197171971819719197201972119722197231972419725197261972719728197291973019731197321973319734197351973619737197381973919740197411974219743197441974519746197471974819749197501975119752197531975419755197561975719758197591976019761197621976319764197651976619767197681976919770197711977219773197741977519776197771977819779197801978119782197831978419785197861978719788197891979019791197921979319794197951979619797197981979919800198011980219803198041980519806198071980819809198101981119812198131981419815198161981719818198191982019821198221982319824198251982619827198281982919830198311983219833198341983519836198371983819839198401984119842198431984419845198461984719848198491985019851198521985319854198551985619857198581985919860198611986219863198641986519866198671986819869198701987119872198731987419875198761987719878198791988019881198821988319884198851988619887198881988919890198911989219893198941989519896198971989819899199001990119902199031990419905199061990719908199091991019911199121991319914199151991619917199181991919920199211992219923199241992519926199271992819929199301993119932199331993419935199361993719938199391994019941199421994319944199451994619947199481994919950199511995219953199541995519956199571995819959199601996119962199631996419965199661996719968199691997019971199721997319974199751997619977199781997919980199811998219983199841998519986199871998819989199901999119992199931999419995199961999719998199992000020001200022000320004200052000620007200082000920010200112001220013200142001520016200172001820019200202002120022200232002420025200262002720028200292003020031200322003320034200352003620037200382003920040200412004220043200442004520046200472004820049200502005120052200532005420055200562005720058200592006020061200622006320064200652006620067200682006920070200712007220073200742007520076200772007820079200802008120082200832008420085200862008720088200892009020091200922009320094200952009620097200982009920100201012010220103201042010520106201072010820109201102011120112201132011420115201162011720118201192012020121201222012320124201252012620127201282012920130201312013220133201342013520136201372013820139201402014120142201432014420145201462014720148201492015020151201522015320154201552015620157201582015920160201612016220163201642016520166201672016820169201702017120172201732017420175201762017720178201792018020181201822018320184201852018620187201882018920190201912019220193201942019520196201972019820199202002020120202202032020420205202062020720208202092021020211202122021320214202152021620217202182021920220202212022220223202242022520226202272022820229202302023120232202332023420235202362023720238202392024020241202422024320244202452024620247202482024920250202512025220253202542025520256202572025820259202602026120262202632026420265202662026720268202692027020271202722027320274202752027620277202782027920280202812028220283202842028520286202872028820289202902029120292202932029420295202962029720298202992030020301203022030320304203052030620307203082030920310203112031220313203142031520316203172031820319203202032120322203232032420325203262032720328203292033020331203322033320334203352033620337203382033920340203412034220343203442034520346203472034820349203502035120352203532035420355203562035720358203592036020361203622036320364203652036620367203682036920370203712037220373203742037520376203772037820379203802038120382203832038420385203862038720388203892039020391203922039320394203952039620397203982039920400204012040220403204042040520406204072040820409204102041120412204132041420415204162041720418204192042020421204222042320424204252042620427204282042920430204312043220433204342043520436204372043820439204402044120442204432044420445204462044720448204492045020451204522045320454204552045620457204582045920460204612046220463204642046520466204672046820469204702047120472204732047420475204762047720478204792048020481204822048320484204852048620487204882048920490204912049220493204942049520496204972049820499205002050120502205032050420505205062050720508205092051020511205122051320514205152051620517205182051920520205212052220523205242052520526205272052820529205302053120532205332053420535205362053720538205392054020541205422054320544205452054620547205482054920550205512055220553205542055520556205572055820559205602056120562205632056420565205662056720568205692057020571205722057320574205752057620577205782057920580205812058220583205842058520586205872058820589205902059120592205932059420595205962059720598205992060020601206022060320604206052060620607206082060920610206112061220613206142061520616206172061820619206202062120622206232062420625206262062720628206292063020631206322063320634206352063620637206382063920640206412064220643206442064520646206472064820649206502065120652206532065420655206562065720658206592066020661206622066320664206652066620667206682066920670206712067220673206742067520676206772067820679206802068120682206832068420685206862068720688206892069020691206922069320694206952069620697206982069920700207012070220703207042070520706207072070820709207102071120712207132071420715207162071720718207192072020721207222072320724207252072620727207282072920730207312073220733207342073520736207372073820739207402074120742207432074420745207462074720748207492075020751207522075320754207552075620757207582075920760207612076220763207642076520766207672076820769207702077120772207732077420775207762077720778207792078020781207822078320784207852078620787207882078920790207912079220793207942079520796207972079820799208002080120802208032080420805208062080720808208092081020811208122081320814208152081620817208182081920820208212082220823208242082520826208272082820829208302083120832208332083420835208362083720838208392084020841208422084320844208452084620847208482084920850208512085220853208542085520856208572085820859208602086120862208632086420865208662086720868208692087020871208722087320874208752087620877208782087920880208812088220883208842088520886208872088820889208902089120892208932089420895208962089720898208992090020901209022090320904209052090620907209082090920910209112091220913209142091520916209172091820919209202092120922209232092420925209262092720928209292093020931209322093320934209352093620937209382093920940209412094220943209442094520946209472094820949209502095120952209532095420955209562095720958209592096020961209622096320964209652096620967209682096920970209712097220973209742097520976209772097820979209802098120982209832098420985209862098720988209892099020991209922099320994209952099620997209982099921000210012100221003210042100521006210072100821009210102101121012210132101421015210162101721018210192102021021210222102321024210252102621027210282102921030210312103221033210342103521036210372103821039210402104121042210432104421045210462104721048210492105021051210522105321054210552105621057210582105921060210612106221063210642106521066210672106821069210702107121072210732107421075210762107721078210792108021081210822108321084210852108621087210882108921090210912109221093210942109521096210972109821099211002110121102211032110421105211062110721108211092111021111211122111321114211152111621117211182111921120211212112221123211242112521126211272112821129211302113121132211332113421135211362113721138211392114021141211422114321144211452114621147211482114921150211512115221153211542115521156211572115821159211602116121162211632116421165211662116721168211692117021171211722117321174211752117621177211782117921180211812118221183211842118521186211872118821189211902119121192211932119421195211962119721198211992120021201212022120321204212052120621207212082120921210212112121221213212142121521216212172121821219212202122121222212232122421225212262122721228212292123021231212322123321234212352123621237212382123921240212412124221243212442124521246212472124821249212502125121252212532125421255212562125721258212592126021261212622126321264212652126621267212682126921270212712127221273212742127521276212772127821279212802128121282212832128421285212862128721288212892129021291212922129321294212952129621297212982129921300213012130221303213042130521306213072130821309213102131121312213132131421315213162131721318213192132021321213222132321324213252132621327213282132921330213312133221333213342133521336213372133821339213402134121342213432134421345213462134721348213492135021351213522135321354213552135621357213582135921360213612136221363213642136521366213672136821369213702137121372213732137421375213762137721378213792138021381213822138321384213852138621387213882138921390213912139221393213942139521396213972139821399214002140121402214032140421405214062140721408214092141021411214122141321414214152141621417214182141921420214212142221423214242142521426214272142821429214302143121432214332143421435214362143721438214392144021441214422144321444214452144621447214482144921450214512145221453214542145521456214572145821459214602146121462214632146421465214662146721468214692147021471214722147321474214752147621477214782147921480214812148221483214842148521486214872148821489214902149121492214932149421495214962149721498214992150021501215022150321504215052150621507215082150921510215112151221513215142151521516215172151821519215202152121522215232152421525215262152721528215292153021531215322153321534215352153621537215382153921540215412154221543215442154521546215472154821549215502155121552215532155421555215562155721558215592156021561215622156321564215652156621567215682156921570215712157221573215742157521576215772157821579215802158121582215832158421585215862158721588215892159021591215922159321594215952159621597215982159921600216012160221603216042160521606216072160821609216102161121612216132161421615216162161721618216192162021621216222162321624216252162621627216282162921630216312163221633216342163521636216372163821639216402164121642216432164421645216462164721648216492165021651216522165321654216552165621657216582165921660216612166221663216642166521666216672166821669216702167121672216732167421675216762167721678216792168021681216822168321684216852168621687216882168921690216912169221693216942169521696216972169821699217002170121702217032170421705217062170721708217092171021711217122171321714217152171621717217182171921720217212172221723217242172521726217272172821729217302173121732217332173421735217362173721738217392174021741217422174321744217452174621747217482174921750217512175221753217542175521756217572175821759217602176121762217632176421765217662176721768217692177021771217722177321774217752177621777217782177921780217812178221783217842178521786217872178821789217902179121792217932179421795217962179721798217992180021801218022180321804218052180621807218082180921810218112181221813218142181521816218172181821819218202182121822218232182421825218262182721828218292183021831218322183321834218352183621837218382183921840218412184221843218442184521846218472184821849218502185121852218532185421855218562185721858218592186021861218622186321864218652186621867218682186921870218712187221873218742187521876218772187821879218802188121882218832188421885218862188721888218892189021891218922189321894218952189621897218982189921900219012190221903219042190521906219072190821909219102191121912219132191421915219162191721918219192192021921219222192321924219252192621927219282192921930219312193221933219342193521936219372193821939219402194121942219432194421945219462194721948219492195021951219522195321954219552195621957219582195921960219612196221963219642196521966219672196821969219702197121972219732197421975219762197721978219792198021981219822198321984219852198621987219882198921990219912199221993219942199521996219972199821999220002200122002220032200422005220062200722008220092201022011220122201322014220152201622017220182201922020220212202222023220242202522026220272202822029220302203122032220332203422035220362203722038220392204022041220422204322044220452204622047220482204922050220512205222053220542205522056220572205822059220602206122062220632206422065220662206722068220692207022071220722207322074220752207622077220782207922080220812208222083220842208522086220872208822089220902209122092220932209422095220962209722098220992210022101221022210322104221052210622107221082210922110221112211222113221142211522116221172211822119221202212122122221232212422125221262212722128221292213022131221322213322134221352213622137221382213922140221412214222143221442214522146221472214822149221502215122152221532215422155221562215722158221592216022161221622216322164221652216622167221682216922170221712217222173221742217522176221772217822179221802218122182221832218422185221862218722188221892219022191221922219322194221952219622197221982219922200222012220222203222042220522206222072220822209222102221122212222132221422215222162221722218222192222022221222222222322224222252222622227222282222922230222312223222233222342223522236222372223822239222402224122242222432224422245222462224722248222492225022251222522225322254222552225622257222582225922260222612226222263222642226522266222672226822269222702227122272222732227422275222762227722278222792228022281222822228322284222852228622287222882228922290222912229222293222942229522296222972229822299223002230122302223032230422305223062230722308223092231022311223122231322314223152231622317223182231922320223212232222323223242232522326223272232822329223302233122332223332233422335223362233722338223392234022341223422234322344223452234622347223482234922350223512235222353223542235522356223572235822359223602236122362223632236422365223662236722368223692237022371223722237322374223752237622377223782237922380223812238222383223842238522386223872238822389223902239122392223932239422395223962239722398223992240022401224022240322404224052240622407224082240922410224112241222413224142241522416224172241822419224202242122422224232242422425224262242722428224292243022431224322243322434224352243622437224382243922440224412244222443224442244522446224472244822449224502245122452224532245422455224562245722458224592246022461224622246322464224652246622467224682246922470224712247222473224742247522476224772247822479224802248122482224832248422485224862248722488224892249022491224922249322494224952249622497224982249922500225012250222503225042250522506225072250822509225102251122512225132251422515225162251722518225192252022521225222252322524225252252622527225282252922530225312253222533225342253522536225372253822539225402254122542225432254422545225462254722548225492255022551225522255322554225552255622557225582255922560225612256222563225642256522566225672256822569225702257122572225732257422575225762257722578225792258022581225822258322584225852258622587225882258922590225912259222593225942259522596225972259822599226002260122602226032260422605226062260722608226092261022611226122261322614226152261622617226182261922620226212262222623226242262522626226272262822629226302263122632226332263422635226362263722638226392264022641226422264322644226452264622647226482264922650226512265222653226542265522656226572265822659226602266122662226632266422665226662266722668226692267022671226722267322674226752267622677226782267922680226812268222683226842268522686226872268822689226902269122692226932269422695226962269722698226992270022701227022270322704227052270622707227082270922710227112271222713227142271522716227172271822719227202272122722227232272422725227262272722728227292273022731227322273322734227352273622737227382273922740227412274222743227442274522746227472274822749227502275122752227532275422755227562275722758227592276022761227622276322764227652276622767227682276922770227712277222773227742277522776227772277822779227802278122782227832278422785227862278722788227892279022791227922279322794227952279622797227982279922800228012280222803228042280522806228072280822809228102281122812228132281422815228162281722818228192282022821228222282322824228252282622827228282282922830228312283222833228342283522836228372283822839228402284122842228432284422845228462284722848228492285022851228522285322854228552285622857228582285922860228612286222863228642286522866228672286822869228702287122872228732287422875228762287722878228792288022881228822288322884228852288622887228882288922890228912289222893228942289522896228972289822899229002290122902229032290422905229062290722908229092291022911229122291322914229152291622917229182291922920229212292222923229242292522926229272292822929229302293122932229332293422935229362293722938229392294022941229422294322944229452294622947229482294922950229512295222953229542295522956229572295822959229602296122962229632296422965229662296722968229692297022971229722297322974229752297622977229782297922980229812298222983229842298522986229872298822989229902299122992229932299422995229962299722998229992300023001230022300323004230052300623007230082300923010230112301223013230142301523016230172301823019230202302123022230232302423025230262302723028230292303023031230322303323034230352303623037230382303923040230412304223043230442304523046230472304823049230502305123052230532305423055230562305723058230592306023061230622306323064230652306623067230682306923070230712307223073230742307523076230772307823079230802308123082230832308423085230862308723088230892309023091230922309323094230952309623097230982309923100231012310223103231042310523106231072310823109231102311123112231132311423115231162311723118231192312023121231222312323124231252312623127231282312923130231312313223133231342313523136231372313823139231402314123142231432314423145231462314723148231492315023151231522315323154231552315623157231582315923160231612316223163231642316523166231672316823169231702317123172231732317423175231762317723178231792318023181231822318323184231852318623187231882318923190231912319223193231942319523196231972319823199232002320123202232032320423205232062320723208232092321023211232122321323214232152321623217232182321923220232212322223223232242322523226232272322823229232302323123232232332323423235232362323723238232392324023241232422324323244232452324623247232482324923250232512325223253232542325523256232572325823259232602326123262232632326423265232662326723268232692327023271232722327323274232752327623277232782327923280232812328223283232842328523286232872328823289232902329123292232932329423295232962329723298232992330023301233022330323304233052330623307233082330923310233112331223313233142331523316233172331823319233202332123322233232332423325233262332723328233292333023331233322333323334233352333623337233382333923340233412334223343233442334523346233472334823349233502335123352233532335423355233562335723358233592336023361233622336323364233652336623367233682336923370233712337223373233742337523376233772337823379233802338123382233832338423385233862338723388233892339023391233922339323394233952339623397233982339923400234012340223403234042340523406234072340823409234102341123412234132341423415234162341723418234192342023421234222342323424234252342623427234282342923430234312343223433234342343523436234372343823439234402344123442234432344423445234462344723448234492345023451234522345323454234552345623457234582345923460234612346223463234642346523466234672346823469234702347123472234732347423475234762347723478234792348023481234822348323484234852348623487234882348923490234912349223493234942349523496234972349823499235002350123502235032350423505235062350723508235092351023511235122351323514235152351623517235182351923520235212352223523235242352523526235272352823529235302353123532235332353423535235362353723538235392354023541235422354323544235452354623547235482354923550235512355223553235542355523556235572355823559235602356123562235632356423565235662356723568235692357023571235722357323574235752357623577235782357923580235812358223583235842358523586235872358823589235902359123592235932359423595235962359723598235992360023601236022360323604236052360623607236082360923610236112361223613236142361523616236172361823619236202362123622236232362423625236262362723628236292363023631236322363323634236352363623637236382363923640236412364223643236442364523646236472364823649236502365123652236532365423655236562365723658236592366023661236622366323664236652366623667236682366923670236712367223673236742367523676236772367823679236802368123682236832368423685236862368723688236892369023691236922369323694236952369623697236982369923700237012370223703237042370523706237072370823709237102371123712237132371423715237162371723718237192372023721237222372323724237252372623727237282372923730237312373223733237342373523736237372373823739237402374123742237432374423745237462374723748237492375023751237522375323754237552375623757237582375923760237612376223763237642376523766237672376823769237702377123772237732377423775237762377723778237792378023781237822378323784237852378623787237882378923790237912379223793237942379523796237972379823799238002380123802238032380423805238062380723808238092381023811238122381323814238152381623817238182381923820238212382223823238242382523826238272382823829238302383123832238332383423835238362383723838238392384023841238422384323844238452384623847238482384923850238512385223853238542385523856238572385823859238602386123862238632386423865238662386723868238692387023871238722387323874238752387623877238782387923880238812388223883238842388523886238872388823889238902389123892238932389423895238962389723898238992390023901239022390323904239052390623907239082390923910239112391223913239142391523916239172391823919239202392123922239232392423925239262392723928239292393023931239322393323934239352393623937239382393923940239412394223943239442394523946239472394823949239502395123952239532395423955239562395723958239592396023961239622396323964239652396623967239682396923970239712397223973239742397523976239772397823979239802398123982239832398423985239862398723988239892399023991239922399323994239952399623997239982399924000240012400224003240042400524006240072400824009240102401124012240132401424015240162401724018240192402024021240222402324024240252402624027240282402924030240312403224033240342403524036240372403824039240402404124042240432404424045240462404724048240492405024051240522405324054240552405624057240582405924060240612406224063240642406524066240672406824069240702407124072240732407424075240762407724078240792408024081240822408324084240852408624087240882408924090240912409224093240942409524096240972409824099241002410124102241032410424105241062410724108241092411024111241122411324114241152411624117241182411924120241212412224123241242412524126241272412824129241302413124132241332413424135241362413724138241392414024141241422414324144241452414624147241482414924150241512415224153241542415524156241572415824159241602416124162241632416424165241662416724168241692417024171241722417324174241752417624177241782417924180241812418224183241842418524186241872418824189241902419124192241932419424195241962419724198241992420024201242022420324204242052420624207242082420924210242112421224213242142421524216242172421824219242202422124222242232422424225242262422724228242292423024231242322423324234242352423624237242382423924240242412424224243242442424524246242472424824249242502425124252242532425424255242562425724258242592426024261242622426324264242652426624267242682426924270242712427224273242742427524276242772427824279242802428124282242832428424285242862428724288242892429024291242922429324294242952429624297242982429924300243012430224303243042430524306243072430824309243102431124312243132431424315243162431724318243192432024321243222432324324243252432624327243282432924330243312433224333243342433524336243372433824339243402434124342243432434424345243462434724348243492435024351243522435324354243552435624357243582435924360243612436224363243642436524366243672436824369243702437124372243732437424375243762437724378243792438024381243822438324384243852438624387243882438924390243912439224393243942439524396243972439824399244002440124402244032440424405244062440724408244092441024411244122441324414244152441624417244182441924420244212442224423244242442524426244272442824429244302443124432244332443424435244362443724438244392444024441244422444324444244452444624447244482444924450244512445224453244542445524456244572445824459244602446124462244632446424465244662446724468244692447024471244722447324474244752447624477244782447924480244812448224483244842448524486244872448824489244902449124492244932449424495244962449724498244992450024501245022450324504245052450624507245082450924510245112451224513245142451524516245172451824519245202452124522245232452424525245262452724528245292453024531245322453324534245352453624537245382453924540245412454224543245442454524546245472454824549245502455124552245532455424555245562455724558245592456024561245622456324564245652456624567245682456924570245712457224573245742457524576245772457824579245802458124582245832458424585245862458724588245892459024591245922459324594245952459624597245982459924600246012460224603246042460524606246072460824609246102461124612246132461424615246162461724618246192462024621246222462324624246252462624627246282462924630246312463224633246342463524636246372463824639246402464124642246432464424645246462464724648246492465024651246522465324654246552465624657246582465924660246612466224663246642466524666246672466824669246702467124672246732467424675246762467724678246792468024681246822468324684246852468624687246882468924690246912469224693246942469524696246972469824699247002470124702247032470424705247062470724708247092471024711247122471324714247152471624717247182471924720247212472224723247242472524726247272472824729247302473124732247332473424735247362473724738247392474024741247422474324744247452474624747247482474924750247512475224753247542475524756247572475824759247602476124762247632476424765247662476724768247692477024771247722477324774247752477624777247782477924780247812478224783247842478524786247872478824789247902479124792247932479424795247962479724798247992480024801248022480324804248052480624807248082480924810248112481224813248142481524816248172481824819248202482124822248232482424825248262482724828248292483024831248322483324834248352483624837248382483924840248412484224843248442484524846248472484824849248502485124852248532485424855248562485724858248592486024861248622486324864248652486624867248682486924870248712487224873248742487524876248772487824879248802488124882248832488424885248862488724888248892489024891248922489324894248952489624897248982489924900249012490224903249042490524906249072490824909249102491124912249132491424915249162491724918249192492024921249222492324924249252492624927249282492924930249312493224933249342493524936249372493824939249402494124942249432494424945249462494724948249492495024951249522495324954249552495624957249582495924960249612496224963249642496524966249672496824969249702497124972249732497424975249762497724978249792498024981249822498324984249852498624987249882498924990249912499224993249942499524996249972499824999250002500125002250032500425005250062500725008250092501025011250122501325014250152501625017250182501925020250212502225023250242502525026250272502825029250302503125032250332503425035250362503725038250392504025041250422504325044250452504625047250482504925050250512505225053250542505525056250572505825059250602506125062250632506425065250662506725068250692507025071250722507325074250752507625077250782507925080250812508225083250842508525086250872508825089250902509125092250932509425095250962509725098250992510025101251022510325104251052510625107251082510925110251112511225113251142511525116251172511825119251202512125122251232512425125251262512725128251292513025131251322513325134251352513625137251382513925140251412514225143251442514525146251472514825149251502515125152251532515425155251562515725158251592516025161251622516325164251652516625167251682516925170251712517225173251742517525176251772517825179251802518125182251832518425185251862518725188251892519025191251922519325194251952519625197251982519925200252012520225203252042520525206252072520825209252102521125212252132521425215252162521725218252192522025221252222522325224252252522625227252282522925230252312523225233252342523525236252372523825239252402524125242252432524425245252462524725248252492525025251252522525325254252552525625257252582525925260252612526225263252642526525266252672526825269252702527125272252732527425275252762527725278252792528025281252822528325284252852528625287252882528925290252912529225293252942529525296252972529825299253002530125302253032530425305253062530725308253092531025311253122531325314253152531625317253182531925320253212532225323253242532525326253272532825329253302533125332253332533425335253362533725338253392534025341253422534325344253452534625347253482534925350253512535225353253542535525356253572535825359253602536125362253632536425365253662536725368253692537025371253722537325374253752537625377253782537925380253812538225383253842538525386253872538825389253902539125392253932539425395253962539725398253992540025401254022540325404254052540625407254082540925410254112541225413254142541525416254172541825419254202542125422254232542425425254262542725428254292543025431254322543325434254352543625437254382543925440254412544225443254442544525446254472544825449254502545125452254532545425455254562545725458254592546025461254622546325464254652546625467254682546925470254712547225473254742547525476254772547825479254802548125482254832548425485254862548725488254892549025491254922549325494254952549625497254982549925500255012550225503255042550525506255072550825509255102551125512255132551425515255162551725518255192552025521255222552325524255252552625527255282552925530255312553225533255342553525536255372553825539255402554125542255432554425545255462554725548255492555025551255522555325554255552555625557255582555925560255612556225563255642556525566255672556825569255702557125572255732557425575255762557725578255792558025581255822558325584255852558625587255882558925590255912559225593255942559525596255972559825599256002560125602256032560425605256062560725608256092561025611256122561325614256152561625617256182561925620256212562225623256242562525626256272562825629256302563125632256332563425635256362563725638256392564025641256422564325644256452564625647256482564925650256512565225653256542565525656256572565825659256602566125662256632566425665256662566725668256692567025671256722567325674256752567625677256782567925680256812568225683256842568525686256872568825689256902569125692256932569425695256962569725698256992570025701257022570325704257052570625707257082570925710257112571225713257142571525716257172571825719257202572125722257232572425725257262572725728257292573025731257322573325734257352573625737257382573925740257412574225743257442574525746257472574825749257502575125752257532575425755257562575725758257592576025761257622576325764257652576625767257682576925770257712577225773257742577525776257772577825779257802578125782257832578425785257862578725788257892579025791257922579325794257952579625797257982579925800258012580225803258042580525806258072580825809258102581125812258132581425815258162581725818258192582025821258222582325824258252582625827258282582925830258312583225833258342583525836258372583825839258402584125842258432584425845258462584725848258492585025851258522585325854258552585625857258582585925860258612586225863258642586525866258672586825869258702587125872258732587425875258762587725878258792588025881258822588325884258852588625887258882588925890258912589225893258942589525896258972589825899259002590125902259032590425905259062590725908259092591025911259122591325914259152591625917259182591925920259212592225923259242592525926259272592825929259302593125932259332593425935259362593725938259392594025941259422594325944259452594625947259482594925950259512595225953259542595525956259572595825959259602596125962259632596425965259662596725968259692597025971259722597325974259752597625977259782597925980259812598225983259842598525986259872598825989259902599125992259932599425995259962599725998259992600026001260022600326004260052600626007260082600926010260112601226013260142601526016260172601826019260202602126022260232602426025260262602726028260292603026031260322603326034260352603626037260382603926040260412604226043260442604526046260472604826049260502605126052260532605426055260562605726058260592606026061260622606326064260652606626067260682606926070260712607226073260742607526076260772607826079260802608126082260832608426085260862608726088260892609026091260922609326094260952609626097260982609926100261012610226103261042610526106261072610826109261102611126112261132611426115261162611726118261192612026121261222612326124261252612626127261282612926130261312613226133261342613526136261372613826139261402614126142261432614426145261462614726148261492615026151261522615326154261552615626157261582615926160261612616226163261642616526166261672616826169261702617126172261732617426175261762617726178261792618026181261822618326184261852618626187261882618926190261912619226193261942619526196261972619826199262002620126202262032620426205262062620726208262092621026211262122621326214262152621626217262182621926220262212622226223262242622526226262272622826229262302623126232262332623426235262362623726238262392624026241262422624326244262452624626247262482624926250262512625226253262542625526256262572625826259262602626126262262632626426265262662626726268262692627026271262722627326274262752627626277262782627926280262812628226283262842628526286262872628826289262902629126292262932629426295262962629726298262992630026301263022630326304263052630626307263082630926310263112631226313263142631526316263172631826319263202632126322263232632426325263262632726328263292633026331263322633326334263352633626337263382633926340263412634226343263442634526346263472634826349263502635126352263532635426355263562635726358263592636026361263622636326364263652636626367263682636926370263712637226373263742637526376263772637826379263802638126382263832638426385263862638726388263892639026391263922639326394263952639626397263982639926400264012640226403264042640526406264072640826409264102641126412264132641426415264162641726418264192642026421264222642326424264252642626427264282642926430264312643226433264342643526436264372643826439264402644126442264432644426445264462644726448264492645026451264522645326454264552645626457264582645926460264612646226463264642646526466264672646826469264702647126472264732647426475264762647726478264792648026481264822648326484264852648626487264882648926490264912649226493264942649526496264972649826499265002650126502265032650426505265062650726508265092651026511265122651326514265152651626517265182651926520265212652226523265242652526526265272652826529265302653126532265332653426535265362653726538265392654026541265422654326544265452654626547265482654926550265512655226553265542655526556265572655826559265602656126562265632656426565265662656726568265692657026571265722657326574265752657626577265782657926580265812658226583265842658526586265872658826589265902659126592265932659426595265962659726598265992660026601266022660326604266052660626607266082660926610266112661226613266142661526616266172661826619266202662126622266232662426625266262662726628266292663026631266322663326634266352663626637266382663926640266412664226643266442664526646266472664826649266502665126652266532665426655266562665726658266592666026661266622666326664266652666626667266682666926670266712667226673266742667526676266772667826679266802668126682266832668426685266862668726688266892669026691266922669326694266952669626697266982669926700267012670226703267042670526706267072670826709267102671126712267132671426715267162671726718267192672026721267222672326724267252672626727267282672926730267312673226733267342673526736267372673826739267402674126742267432674426745267462674726748267492675026751267522675326754267552675626757267582675926760267612676226763267642676526766267672676826769267702677126772267732677426775267762677726778267792678026781267822678326784267852678626787267882678926790267912679226793267942679526796267972679826799268002680126802268032680426805268062680726808268092681026811268122681326814268152681626817268182681926820268212682226823268242682526826268272682826829268302683126832268332683426835268362683726838268392684026841268422684326844268452684626847268482684926850268512685226853268542685526856268572685826859268602686126862268632686426865268662686726868268692687026871268722687326874268752687626877268782687926880268812688226883268842688526886268872688826889268902689126892268932689426895268962689726898268992690026901269022690326904269052690626907269082690926910269112691226913269142691526916269172691826919269202692126922269232692426925269262692726928269292693026931269322693326934269352693626937269382693926940269412694226943269442694526946269472694826949269502695126952269532695426955269562695726958269592696026961269622696326964269652696626967269682696926970269712697226973269742697526976269772697826979269802698126982269832698426985269862698726988269892699026991269922699326994269952699626997269982699927000270012700227003270042700527006270072700827009270102701127012270132701427015270162701727018270192702027021270222702327024270252702627027270282702927030270312703227033270342703527036270372703827039270402704127042270432704427045270462704727048270492705027051270522705327054270552705627057270582705927060270612706227063270642706527066270672706827069270702707127072270732707427075270762707727078270792708027081270822708327084270852708627087270882708927090270912709227093270942709527096270972709827099271002710127102271032710427105271062710727108271092711027111271122711327114271152711627117271182711927120271212712227123271242712527126271272712827129271302713127132271332713427135271362713727138271392714027141271422714327144271452714627147271482714927150271512715227153271542715527156271572715827159271602716127162271632716427165271662716727168271692717027171271722717327174271752717627177271782717927180271812718227183271842718527186271872718827189271902719127192271932719427195271962719727198271992720027201272022720327204272052720627207272082720927210272112721227213272142721527216272172721827219272202722127222272232722427225272262722727228272292723027231272322723327234272352723627237272382723927240272412724227243272442724527246272472724827249272502725127252272532725427255272562725727258272592726027261272622726327264272652726627267272682726927270272712727227273272742727527276272772727827279272802728127282272832728427285272862728727288272892729027291272922729327294272952729627297272982729927300273012730227303273042730527306273072730827309273102731127312273132731427315273162731727318273192732027321273222732327324273252732627327273282732927330273312733227333273342733527336273372733827339273402734127342273432734427345273462734727348273492735027351273522735327354273552735627357273582735927360273612736227363273642736527366273672736827369273702737127372273732737427375273762737727378273792738027381273822738327384273852738627387273882738927390273912739227393273942739527396273972739827399274002740127402274032740427405274062740727408274092741027411274122741327414274152741627417274182741927420274212742227423274242742527426274272742827429274302743127432274332743427435274362743727438274392744027441274422744327444274452744627447274482744927450274512745227453274542745527456274572745827459274602746127462274632746427465274662746727468274692747027471274722747327474274752747627477274782747927480274812748227483274842748527486274872748827489274902749127492274932749427495274962749727498274992750027501275022750327504275052750627507275082750927510275112751227513275142751527516275172751827519275202752127522275232752427525275262752727528275292753027531275322753327534275352753627537275382753927540275412754227543275442754527546275472754827549275502755127552275532755427555275562755727558275592756027561275622756327564275652756627567275682756927570275712757227573275742757527576275772757827579275802758127582275832758427585275862758727588275892759027591275922759327594275952759627597275982759927600276012760227603276042760527606276072760827609276102761127612276132761427615276162761727618276192762027621276222762327624276252762627627276282762927630276312763227633276342763527636276372763827639276402764127642276432764427645276462764727648276492765027651276522765327654276552765627657276582765927660276612766227663276642766527666276672766827669276702767127672276732767427675276762767727678276792768027681276822768327684276852768627687276882768927690276912769227693276942769527696276972769827699277002770127702277032770427705277062770727708277092771027711277122771327714277152771627717277182771927720277212772227723277242772527726277272772827729277302773127732277332773427735277362773727738277392774027741277422774327744277452774627747277482774927750277512775227753277542775527756277572775827759277602776127762277632776427765277662776727768277692777027771277722777327774277752777627777277782777927780277812778227783277842778527786277872778827789277902779127792277932779427795277962779727798277992780027801278022780327804278052780627807278082780927810278112781227813278142781527816278172781827819278202782127822278232782427825278262782727828278292783027831278322783327834278352783627837278382783927840278412784227843278442784527846278472784827849278502785127852278532785427855278562785727858278592786027861278622786327864278652786627867278682786927870278712787227873278742787527876278772787827879278802788127882278832788427885278862788727888278892789027891278922789327894278952789627897278982789927900279012790227903279042790527906279072790827909279102791127912279132791427915279162791727918279192792027921279222792327924279252792627927279282792927930279312793227933279342793527936279372793827939279402794127942279432794427945279462794727948279492795027951279522795327954279552795627957279582795927960279612796227963279642796527966279672796827969279702797127972279732797427975279762797727978279792798027981279822798327984279852798627987279882798927990279912799227993279942799527996279972799827999280002800128002280032800428005280062800728008280092801028011280122801328014280152801628017280182801928020280212802228023280242802528026280272802828029280302803128032280332803428035280362803728038280392804028041280422804328044280452804628047280482804928050280512805228053280542805528056280572805828059280602806128062280632806428065280662806728068280692807028071280722807328074280752807628077280782807928080280812808228083280842808528086280872808828089280902809128092280932809428095280962809728098280992810028101281022810328104281052810628107281082810928110281112811228113281142811528116281172811828119281202812128122281232812428125281262812728128281292813028131281322813328134281352813628137281382813928140281412814228143281442814528146281472814828149281502815128152281532815428155281562815728158281592816028161281622816328164281652816628167281682816928170281712817228173281742817528176281772817828179281802818128182281832818428185281862818728188281892819028191281922819328194281952819628197281982819928200282012820228203282042820528206282072820828209282102821128212282132821428215282162821728218282192822028221282222822328224282252822628227282282822928230282312823228233282342823528236282372823828239282402824128242282432824428245282462824728248282492825028251282522825328254282552825628257282582825928260282612826228263282642826528266282672826828269282702827128272282732827428275282762827728278282792828028281282822828328284282852828628287282882828928290282912829228293282942829528296282972829828299283002830128302283032830428305283062830728308283092831028311283122831328314283152831628317283182831928320283212832228323283242832528326283272832828329283302833128332283332833428335283362833728338283392834028341283422834328344283452834628347283482834928350283512835228353283542835528356283572835828359283602836128362283632836428365283662836728368283692837028371283722837328374283752837628377283782837928380283812838228383283842838528386283872838828389283902839128392283932839428395283962839728398283992840028401284022840328404284052840628407284082840928410284112841228413284142841528416284172841828419284202842128422284232842428425284262842728428284292843028431284322843328434284352843628437284382843928440284412844228443284442844528446284472844828449284502845128452284532845428455284562845728458284592846028461284622846328464284652846628467284682846928470284712847228473284742847528476284772847828479284802848128482284832848428485284862848728488284892849028491284922849328494284952849628497284982849928500285012850228503285042850528506285072850828509285102851128512285132851428515285162851728518285192852028521285222852328524285252852628527285282852928530285312853228533285342853528536285372853828539285402854128542285432854428545285462854728548285492855028551285522855328554285552855628557285582855928560285612856228563285642856528566285672856828569285702857128572285732857428575285762857728578285792858028581285822858328584285852858628587285882858928590285912859228593285942859528596285972859828599286002860128602286032860428605286062860728608286092861028611286122861328614286152861628617286182861928620286212862228623286242862528626286272862828629286302863128632286332863428635286362863728638286392864028641286422864328644286452864628647286482864928650286512865228653286542865528656286572865828659286602866128662286632866428665286662866728668286692867028671286722867328674286752867628677286782867928680286812868228683286842868528686286872868828689286902869128692286932869428695286962869728698286992870028701287022870328704287052870628707287082870928710287112871228713287142871528716287172871828719287202872128722287232872428725287262872728728287292873028731287322873328734287352873628737287382873928740287412874228743287442874528746287472874828749287502875128752287532875428755287562875728758287592876028761287622876328764287652876628767287682876928770287712877228773287742877528776287772877828779287802878128782287832878428785287862878728788287892879028791287922879328794287952879628797287982879928800288012880228803288042880528806288072880828809288102881128812288132881428815288162881728818288192882028821288222882328824288252882628827288282882928830288312883228833288342883528836288372883828839288402884128842288432884428845288462884728848288492885028851288522885328854288552885628857288582885928860288612886228863288642886528866288672886828869288702887128872288732887428875288762887728878288792888028881288822888328884288852888628887288882888928890288912889228893288942889528896288972889828899289002890128902289032890428905289062890728908289092891028911289122891328914289152891628917289182891928920289212892228923289242892528926289272892828929289302893128932289332893428935289362893728938289392894028941289422894328944289452894628947289482894928950289512895228953289542895528956289572895828959289602896128962289632896428965289662896728968289692897028971289722897328974289752897628977289782897928980289812898228983289842898528986289872898828989289902899128992289932899428995289962899728998289992900029001290022900329004290052900629007290082900929010290112901229013290142901529016290172901829019290202902129022290232902429025290262902729028290292903029031290322903329034290352903629037290382903929040290412904229043290442904529046290472904829049290502905129052290532905429055290562905729058290592906029061290622906329064290652906629067290682906929070290712907229073290742907529076290772907829079290802908129082290832908429085290862908729088290892909029091290922909329094290952909629097290982909929100291012910229103291042910529106291072910829109291102911129112291132911429115291162911729118291192912029121291222912329124291252912629127291282912929130291312913229133291342913529136291372913829139291402914129142291432914429145291462914729148291492915029151291522915329154291552915629157291582915929160291612916229163291642916529166291672916829169291702917129172291732917429175291762917729178291792918029181291822918329184291852918629187291882918929190291912919229193291942919529196291972919829199292002920129202292032920429205292062920729208292092921029211292122921329214292152921629217292182921929220292212922229223292242922529226292272922829229292302923129232292332923429235292362923729238292392924029241292422924329244292452924629247292482924929250292512925229253292542925529256292572925829259292602926129262292632926429265292662926729268292692927029271292722927329274292752927629277292782927929280292812928229283
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.64 for GNU Classpath 0.99.1-pre.
  4. #
  5. # Report bugs to <classpath@gnu.org>.
  6. #
  7. # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
  8. # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
  9. # Foundation, Inc.
  10. #
  11. # This configure script is free software; the Free Software Foundation
  12. # gives unlimited permission to copy, distribute and modify it.
  13. ## -------------------- ##
  14. ## M4sh Initialization. ##
  15. ## -------------------- ##
  16. # Be more Bourne compatible
  17. DUALCASE=1; export DUALCASE # for MKS sh
  18. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  19. emulate sh
  20. NULLCMD=:
  21. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  22. # is contrary to our usage. Disable this feature.
  23. alias -g '${1+"$@"}'='"$@"'
  24. setopt NO_GLOB_SUBST
  25. else
  26. case `(set -o) 2>/dev/null` in #(
  27. *posix*) :
  28. set -o posix ;; #(
  29. *) :
  30. ;;
  31. esac
  32. fi
  33. as_nl='
  34. '
  35. export as_nl
  36. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  37. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  38. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  39. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  40. # Prefer a ksh shell builtin over an external printf program on Solaris,
  41. # but without wasting forks for bash or zsh.
  42. if test -z "$BASH_VERSION$ZSH_VERSION" \
  43. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  44. as_echo='print -r --'
  45. as_echo_n='print -rn --'
  46. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  47. as_echo='printf %s\n'
  48. as_echo_n='printf %s'
  49. else
  50. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  51. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  52. as_echo_n='/usr/ucb/echo -n'
  53. else
  54. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  55. as_echo_n_body='eval
  56. arg=$1;
  57. case $arg in #(
  58. *"$as_nl"*)
  59. expr "X$arg" : "X\\(.*\\)$as_nl";
  60. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  61. esac;
  62. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  63. '
  64. export as_echo_n_body
  65. as_echo_n='sh -c $as_echo_n_body as_echo'
  66. fi
  67. export as_echo_body
  68. as_echo='sh -c $as_echo_body as_echo'
  69. fi
  70. # The user is always right.
  71. if test "${PATH_SEPARATOR+set}" != set; then
  72. PATH_SEPARATOR=:
  73. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  74. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  75. PATH_SEPARATOR=';'
  76. }
  77. fi
  78. # IFS
  79. # We need space, tab and new line, in precisely that order. Quoting is
  80. # there to prevent editors from complaining about space-tab.
  81. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  82. # splitting by setting IFS to empty value.)
  83. IFS=" "" $as_nl"
  84. # Find who we are. Look in the path if we contain no directory separator.
  85. case $0 in #((
  86. *[\\/]* ) as_myself=$0 ;;
  87. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  88. for as_dir in $PATH
  89. do
  90. IFS=$as_save_IFS
  91. test -z "$as_dir" && as_dir=.
  92. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  93. done
  94. IFS=$as_save_IFS
  95. ;;
  96. esac
  97. # We did not find ourselves, most probably we were run as `sh COMMAND'
  98. # in which case we are not to be found in the path.
  99. if test "x$as_myself" = x; then
  100. as_myself=$0
  101. fi
  102. if test ! -f "$as_myself"; then
  103. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  104. exit 1
  105. fi
  106. # Unset variables that we do not need and which cause bugs (e.g. in
  107. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  108. # suppresses any "Segmentation fault" message there. '((' could
  109. # trigger a bug in pdksh 5.2.14.
  110. for as_var in BASH_ENV ENV MAIL MAILPATH
  111. do eval test x\${$as_var+set} = xset \
  112. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  113. done
  114. PS1='$ '
  115. PS2='> '
  116. PS4='+ '
  117. # NLS nuisances.
  118. LC_ALL=C
  119. export LC_ALL
  120. LANGUAGE=C
  121. export LANGUAGE
  122. # CDPATH.
  123. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  124. if test "x$CONFIG_SHELL" = x; then
  125. as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
  126. emulate sh
  127. NULLCMD=:
  128. # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
  129. # is contrary to our usage. Disable this feature.
  130. alias -g '\${1+\"\$@\"}'='\"\$@\"'
  131. setopt NO_GLOB_SUBST
  132. else
  133. case \`(set -o) 2>/dev/null\` in #(
  134. *posix*) :
  135. set -o posix ;; #(
  136. *) :
  137. ;;
  138. esac
  139. fi
  140. "
  141. as_required="as_fn_return () { (exit \$1); }
  142. as_fn_success () { as_fn_return 0; }
  143. as_fn_failure () { as_fn_return 1; }
  144. as_fn_ret_success () { return 0; }
  145. as_fn_ret_failure () { return 1; }
  146. exitcode=0
  147. as_fn_success || { exitcode=1; echo as_fn_success failed.; }
  148. as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
  149. as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
  150. as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
  151. if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
  152. else
  153. exitcode=1; echo positional parameters were not saved.
  154. fi
  155. test x\$exitcode = x0 || exit 1"
  156. as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
  157. as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
  158. eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
  159. test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
  160. test \$(( 1 + 1 )) = 2 || exit 1
  161. test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
  162. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  163. ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
  164. ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
  165. PATH=/empty FPATH=/empty; export PATH FPATH
  166. test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
  167. || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
  168. if (eval "$as_required") 2>/dev/null; then :
  169. as_have_required=yes
  170. else
  171. as_have_required=no
  172. fi
  173. if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
  174. else
  175. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  176. as_found=false
  177. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  178. do
  179. IFS=$as_save_IFS
  180. test -z "$as_dir" && as_dir=.
  181. as_found=:
  182. case $as_dir in #(
  183. /*)
  184. for as_base in sh bash ksh sh5; do
  185. # Try only shells that exist, to save several forks.
  186. as_shell=$as_dir/$as_base
  187. if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  188. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
  189. CONFIG_SHELL=$as_shell as_have_required=yes
  190. if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
  191. break 2
  192. fi
  193. fi
  194. done;;
  195. esac
  196. as_found=false
  197. done
  198. $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
  199. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
  200. CONFIG_SHELL=$SHELL as_have_required=yes
  201. fi; }
  202. IFS=$as_save_IFS
  203. if test "x$CONFIG_SHELL" != x; then :
  204. # We cannot yet assume a decent shell, so we have to provide a
  205. # neutralization value for shells without unset; and this also
  206. # works around shells that cannot unset nonexistent variables.
  207. BASH_ENV=/dev/null
  208. ENV=/dev/null
  209. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  210. export CONFIG_SHELL
  211. exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
  212. fi
  213. if test x$as_have_required = xno; then :
  214. $as_echo "$0: This script requires a shell more modern than all"
  215. $as_echo "$0: the shells that I found on your system."
  216. if test x${ZSH_VERSION+set} = xset ; then
  217. $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
  218. $as_echo "$0: be upgraded to zsh 4.3.4 or later."
  219. else
  220. $as_echo "$0: Please tell bug-autoconf@gnu.org and classpath@gnu.org
  221. $0: about your system, including any error possibly output
  222. $0: before this message. Then install a modern shell, or
  223. $0: manually run the script under such a shell if you do
  224. $0: have one."
  225. fi
  226. exit 1
  227. fi
  228. fi
  229. fi
  230. SHELL=${CONFIG_SHELL-/bin/sh}
  231. export SHELL
  232. # Unset more variables known to interfere with behavior of common tools.
  233. CLICOLOR_FORCE= GREP_OPTIONS=
  234. unset CLICOLOR_FORCE GREP_OPTIONS
  235. ## --------------------- ##
  236. ## M4sh Shell Functions. ##
  237. ## --------------------- ##
  238. # as_fn_unset VAR
  239. # ---------------
  240. # Portably unset VAR.
  241. as_fn_unset ()
  242. {
  243. { eval $1=; unset $1;}
  244. }
  245. as_unset=as_fn_unset
  246. # as_fn_set_status STATUS
  247. # -----------------------
  248. # Set $? to STATUS, without forking.
  249. as_fn_set_status ()
  250. {
  251. return $1
  252. } # as_fn_set_status
  253. # as_fn_exit STATUS
  254. # -----------------
  255. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  256. as_fn_exit ()
  257. {
  258. set +e
  259. as_fn_set_status $1
  260. exit $1
  261. } # as_fn_exit
  262. # as_fn_mkdir_p
  263. # -------------
  264. # Create "$as_dir" as a directory, including parents if necessary.
  265. as_fn_mkdir_p ()
  266. {
  267. case $as_dir in #(
  268. -*) as_dir=./$as_dir;;
  269. esac
  270. test -d "$as_dir" || eval $as_mkdir_p || {
  271. as_dirs=
  272. while :; do
  273. case $as_dir in #(
  274. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  275. *) as_qdir=$as_dir;;
  276. esac
  277. as_dirs="'$as_qdir' $as_dirs"
  278. as_dir=`$as_dirname -- "$as_dir" ||
  279. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  280. X"$as_dir" : 'X\(//\)[^/]' \| \
  281. X"$as_dir" : 'X\(//\)$' \| \
  282. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  283. $as_echo X"$as_dir" |
  284. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  285. s//\1/
  286. q
  287. }
  288. /^X\(\/\/\)[^/].*/{
  289. s//\1/
  290. q
  291. }
  292. /^X\(\/\/\)$/{
  293. s//\1/
  294. q
  295. }
  296. /^X\(\/\).*/{
  297. s//\1/
  298. q
  299. }
  300. s/.*/./; q'`
  301. test -d "$as_dir" && break
  302. done
  303. test -z "$as_dirs" || eval "mkdir $as_dirs"
  304. } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
  305. } # as_fn_mkdir_p
  306. # as_fn_append VAR VALUE
  307. # ----------------------
  308. # Append the text in VALUE to the end of the definition contained in VAR. Take
  309. # advantage of any shell optimizations that allow amortized linear growth over
  310. # repeated appends, instead of the typical quadratic growth present in naive
  311. # implementations.
  312. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  313. eval 'as_fn_append ()
  314. {
  315. eval $1+=\$2
  316. }'
  317. else
  318. as_fn_append ()
  319. {
  320. eval $1=\$$1\$2
  321. }
  322. fi # as_fn_append
  323. # as_fn_arith ARG...
  324. # ------------------
  325. # Perform arithmetic evaluation on the ARGs, and store the result in the
  326. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  327. # must be portable across $(()) and expr.
  328. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  329. eval 'as_fn_arith ()
  330. {
  331. as_val=$(( $* ))
  332. }'
  333. else
  334. as_fn_arith ()
  335. {
  336. as_val=`expr "$@" || test $? -eq 1`
  337. }
  338. fi # as_fn_arith
  339. # as_fn_error ERROR [LINENO LOG_FD]
  340. # ---------------------------------
  341. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  342. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  343. # script with status $?, using 1 if that was 0.
  344. as_fn_error ()
  345. {
  346. as_status=$?; test $as_status -eq 0 && as_status=1
  347. if test "$3"; then
  348. as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  349. $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
  350. fi
  351. $as_echo "$as_me: error: $1" >&2
  352. as_fn_exit $as_status
  353. } # as_fn_error
  354. if expr a : '\(a\)' >/dev/null 2>&1 &&
  355. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  356. as_expr=expr
  357. else
  358. as_expr=false
  359. fi
  360. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  361. as_basename=basename
  362. else
  363. as_basename=false
  364. fi
  365. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  366. as_dirname=dirname
  367. else
  368. as_dirname=false
  369. fi
  370. as_me=`$as_basename -- "$0" ||
  371. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  372. X"$0" : 'X\(//\)$' \| \
  373. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  374. $as_echo X/"$0" |
  375. sed '/^.*\/\([^/][^/]*\)\/*$/{
  376. s//\1/
  377. q
  378. }
  379. /^X\/\(\/\/\)$/{
  380. s//\1/
  381. q
  382. }
  383. /^X\/\(\/\).*/{
  384. s//\1/
  385. q
  386. }
  387. s/.*/./; q'`
  388. # Avoid depending upon Character Ranges.
  389. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  390. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  391. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  392. as_cr_digits='0123456789'
  393. as_cr_alnum=$as_cr_Letters$as_cr_digits
  394. as_lineno_1=$LINENO as_lineno_1a=$LINENO
  395. as_lineno_2=$LINENO as_lineno_2a=$LINENO
  396. eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
  397. test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
  398. # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
  399. sed -n '
  400. p
  401. /[$]LINENO/=
  402. ' <$as_myself |
  403. sed '
  404. s/[$]LINENO.*/&-/
  405. t lineno
  406. b
  407. :lineno
  408. N
  409. :loop
  410. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  411. t loop
  412. s/-\n.*//
  413. ' >$as_me.lineno &&
  414. chmod +x "$as_me.lineno" ||
  415. { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
  416. # Don't try to exec as it changes $[0], causing all sort of problems
  417. # (the dirname of $[0] is not the place where we might find the
  418. # original and so on. Autoconf is especially sensitive to this).
  419. . "./$as_me.lineno"
  420. # Exit status is that of the last command.
  421. exit
  422. }
  423. ECHO_C= ECHO_N= ECHO_T=
  424. case `echo -n x` in #(((((
  425. -n*)
  426. case `echo 'xy\c'` in
  427. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  428. xy) ECHO_C='\c';;
  429. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  430. ECHO_T=' ';;
  431. esac;;
  432. *)
  433. ECHO_N='-n';;
  434. esac
  435. rm -f conf$$ conf$$.exe conf$$.file
  436. if test -d conf$$.dir; then
  437. rm -f conf$$.dir/conf$$.file
  438. else
  439. rm -f conf$$.dir
  440. mkdir conf$$.dir 2>/dev/null
  441. fi
  442. if (echo >conf$$.file) 2>/dev/null; then
  443. if ln -s conf$$.file conf$$ 2>/dev/null; then
  444. as_ln_s='ln -s'
  445. # ... but there are two gotchas:
  446. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  447. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  448. # In both cases, we have to default to `cp -p'.
  449. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  450. as_ln_s='cp -p'
  451. elif ln conf$$.file conf$$ 2>/dev/null; then
  452. as_ln_s=ln
  453. else
  454. as_ln_s='cp -p'
  455. fi
  456. else
  457. as_ln_s='cp -p'
  458. fi
  459. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  460. rmdir conf$$.dir 2>/dev/null
  461. if mkdir -p . 2>/dev/null; then
  462. as_mkdir_p='mkdir -p "$as_dir"'
  463. else
  464. test -d ./-p && rmdir ./-p
  465. as_mkdir_p=false
  466. fi
  467. if test -x / >/dev/null 2>&1; then
  468. as_test_x='test -x'
  469. else
  470. if ls -dL / >/dev/null 2>&1; then
  471. as_ls_L_option=L
  472. else
  473. as_ls_L_option=
  474. fi
  475. as_test_x='
  476. eval sh -c '\''
  477. if test -d "$1"; then
  478. test -d "$1/.";
  479. else
  480. case $1 in #(
  481. -*)set "./$1";;
  482. esac;
  483. case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
  484. ???[sx]*):;;*)false;;esac;fi
  485. '\'' sh
  486. '
  487. fi
  488. as_executable_p=$as_test_x
  489. # Sed expression to map a string onto a valid CPP name.
  490. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  491. # Sed expression to map a string onto a valid variable name.
  492. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  493. SHELL=${CONFIG_SHELL-/bin/sh}
  494. exec 7<&0 </dev/null 6>&1
  495. # Name of the host.
  496. # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
  497. # so uname gets run too.
  498. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  499. #
  500. # Initializations.
  501. #
  502. ac_default_prefix=/usr/local
  503. ac_clean_files=
  504. ac_config_libobj_dir=.
  505. LIBOBJS=
  506. cross_compiling=no
  507. subdirs=
  508. MFLAGS=
  509. MAKEFLAGS=
  510. # Identity of this package.
  511. PACKAGE_NAME='GNU Classpath'
  512. PACKAGE_TARNAME='classpath'
  513. PACKAGE_VERSION='0.99.1-pre'
  514. PACKAGE_STRING='GNU Classpath 0.99.1-pre'
  515. PACKAGE_BUGREPORT='classpath@gnu.org'
  516. PACKAGE_URL='http://www.gnu.org/software/classpath/'
  517. ac_unique_file="java/lang/System.java"
  518. ac_default_prefix=/usr/local/classpath
  519. # Factoring default headers for most tests.
  520. ac_includes_default="\
  521. #include <stdio.h>
  522. #ifdef HAVE_SYS_TYPES_H
  523. # include <sys/types.h>
  524. #endif
  525. #ifdef HAVE_SYS_STAT_H
  526. # include <sys/stat.h>
  527. #endif
  528. #ifdef STDC_HEADERS
  529. # include <stdlib.h>
  530. # include <stddef.h>
  531. #else
  532. # ifdef HAVE_STDLIB_H
  533. # include <stdlib.h>
  534. # endif
  535. #endif
  536. #ifdef HAVE_STRING_H
  537. # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
  538. # include <memory.h>
  539. # endif
  540. # include <string.h>
  541. #endif
  542. #ifdef HAVE_STRINGS_H
  543. # include <strings.h>
  544. #endif
  545. #ifdef HAVE_INTTYPES_H
  546. # include <inttypes.h>
  547. #endif
  548. #ifdef HAVE_STDINT_H
  549. # include <stdint.h>
  550. #endif
  551. #ifdef HAVE_UNISTD_H
  552. # include <unistd.h>
  553. #endif"
  554. ac_subst_vars='am__EXEEXT_FALSE
  555. am__EXEEXT_TRUE
  556. LTLIBOBJS
  557. LIBOBJS
  558. CREATE_GMPBI_LIBRARY_FALSE
  559. CREATE_GMPBI_LIBRARY_TRUE
  560. WANT_NATIVE_BIG_INTEGER
  561. DEFAULT_PREFS_PEER
  562. ENABLE_LOCAL_SOCKETS_FALSE
  563. ENABLE_LOCAL_SOCKETS_TRUE
  564. PATH_TO_ESCHER
  565. USE_ESCHER_FALSE
  566. USE_ESCHER_TRUE
  567. JAVAC_MEM_OPT
  568. ac_ct_ANTLR
  569. ANTLR
  570. ANTLR_JAR
  571. GCJ_JAVAC_FALSE
  572. GCJ_JAVAC_TRUE
  573. JAVAC_IS_GCJ
  574. JAVAC
  575. uudecode
  576. JAVA
  577. PATH_TO_GLIBJ_ZIP
  578. USE_PREBUILT_GLIBJ_ZIP_FALSE
  579. USE_PREBUILT_GLIBJ_ZIP_TRUE
  580. REGEN_PARSERS_FALSE
  581. REGEN_PARSERS_TRUE
  582. JAY_SKELETON
  583. JAY
  584. CREATE_API_DOCS_FALSE
  585. CREATE_API_DOCS_TRUE
  586. GJDOC
  587. TOOLSDIR
  588. EXAMPLESDIR
  589. BUILD_CLASS_FILES_FALSE
  590. BUILD_CLASS_FILES_TRUE
  591. INSTALL_CLASS_FILES_FALSE
  592. INSTALL_CLASS_FILES_TRUE
  593. INSTALL_GLIBJ_ZIP_FALSE
  594. INSTALL_GLIBJ_ZIP_TRUE
  595. WITH_JAR_FALSE
  596. WITH_JAR_TRUE
  597. JAR
  598. ZIP
  599. FIND
  600. DATE
  601. CP
  602. MKDIR
  603. REMOVE
  604. JAVA_LANG_SYSTEM_EXPLICIT_INITIALIZATION
  605. ECJ_JAR
  606. INIT_LOAD_LIBRARY
  607. LIBDEBUG
  608. MAINT
  609. MAINTAINER_MODE_FALSE
  610. MAINTAINER_MODE_TRUE
  611. vm_classes
  612. CLASSPATH_INCLUDES
  613. USER_JAVAH
  614. GMP_LIBS
  615. GMP_CFLAGS
  616. PLUGIN_DIR
  617. GLIB_LIBS
  618. GLIB_CFLAGS
  619. MOZILLA_LIBS
  620. MOZILLA_CFLAGS
  621. MOC4
  622. MOC
  623. QT_LIBS
  624. QT_CFLAGS
  625. GSTREAMER_MIXER_PROVIDER
  626. GSTREAMER_FILE_READER
  627. GST_PLUGIN_LDFLAGS
  628. GSTREAMER_PLUGINS_BASE_LIBS
  629. GSTREAMER_PLUGINS_BASE_CFLAGS
  630. GSTREAMER_BASE_LIBS
  631. GSTREAMER_BASE_CFLAGS
  632. GSTREAMER_LIBS
  633. GSTREAMER_CFLAGS
  634. GDK_LIBS
  635. GDK_CFLAGS
  636. GCONF_LIBS
  637. GCONF_CFLAGS
  638. XTEST_LIBS
  639. CAIRO_LIBS
  640. CAIRO_CFLAGS
  641. PANGOFT2_LIBS
  642. PANGOFT2_CFLAGS
  643. FREETYPE2_LIBS
  644. FREETYPE2_CFLAGS
  645. GTK_LIBS
  646. GTK_CFLAGS
  647. X_EXTRA_LIBS
  648. X_LIBS
  649. X_PRE_LIBS
  650. X_CFLAGS
  651. XMKMF
  652. XSLT_LIBS
  653. XSLT_CFLAGS
  654. XML_LIBS
  655. XML_CFLAGS
  656. PKG_CONFIG
  657. ERROR_CFLAGS
  658. STRICT_WARNING_CFLAGS
  659. EXTRA_CFLAGS
  660. WARNING_CFLAGS
  661. LTLIBICONV
  662. LIBICONV
  663. LIBMAGIC
  664. COLLECTIONS_PREFIX
  665. PERL
  666. CXXCPP
  667. am__fastdepCXX_FALSE
  668. am__fastdepCXX_TRUE
  669. CXXDEPMODE
  670. ac_ct_CXX
  671. CXXFLAGS
  672. CXX
  673. OTOOL64
  674. OTOOL
  675. LIPO
  676. NMEDIT
  677. DSYMUTIL
  678. RANLIB
  679. AR
  680. OBJDUMP
  681. NM
  682. ac_ct_DUMPBIN
  683. DUMPBIN
  684. LD
  685. FGREP
  686. SED
  687. LIBTOOL
  688. LN_S
  689. CREATE_WRAPPERS_FALSE
  690. CREATE_WRAPPERS_TRUE
  691. CREATE_GJDOC_PARSER_FALSE
  692. CREATE_GJDOC_PARSER_TRUE
  693. CREATE_JNI_HEADERS_FALSE
  694. CREATE_JNI_HEADERS_TRUE
  695. glibjdir
  696. nativeexeclibdir
  697. toolexeclibdir
  698. toolexecmainlibdir
  699. toolexecdir
  700. target_noncanonical
  701. CREATE_GJDOC_FALSE
  702. CREATE_GJDOC_TRUE
  703. CREATE_PLUGIN_FALSE
  704. CREATE_PLUGIN_TRUE
  705. CREATE_QT_PEER_LIBRARIES_FALSE
  706. CREATE_QT_PEER_LIBRARIES_TRUE
  707. CREATE_GTK_PEER_LIBRARIES_FALSE
  708. CREATE_GTK_PEER_LIBRARIES_TRUE
  709. CREATE_DSSI_LIBRARIES_FALSE
  710. CREATE_DSSI_LIBRARIES_TRUE
  711. CREATE_ALSA_LIBRARIES_FALSE
  712. CREATE_ALSA_LIBRARIES_TRUE
  713. EGREP
  714. GREP
  715. CPP
  716. am__fastdepCC_FALSE
  717. am__fastdepCC_TRUE
  718. CCDEPMODE
  719. AMDEPBACKSLASH
  720. AMDEP_FALSE
  721. AMDEP_TRUE
  722. am__quote
  723. am__include
  724. DEPDIR
  725. OBJEXT
  726. EXEEXT
  727. ac_ct_CC
  728. CPPFLAGS
  729. LDFLAGS
  730. CFLAGS
  731. CC
  732. CREATE_XMLJ_LIBRARY_FALSE
  733. CREATE_XMLJ_LIBRARY_TRUE
  734. default_toolkit
  735. CREATE_GSTREAMER_PEER_LIBRARIES_FALSE
  736. CREATE_GSTREAMER_PEER_LIBRARIES_TRUE
  737. CREATE_GCONF_PEER_LIBRARIES_FALSE
  738. CREATE_GCONF_PEER_LIBRARIES_TRUE
  739. CREATE_CORE_JNI_LIBRARIES_FALSE
  740. CREATE_CORE_JNI_LIBRARIES_TRUE
  741. CREATE_JNI_LIBRARIES_FALSE
  742. CREATE_JNI_LIBRARIES_TRUE
  743. CREATE_COLLECTIONS_FALSE
  744. CREATE_COLLECTIONS_TRUE
  745. am__untar
  746. am__tar
  747. AMTAR
  748. am__leading_dot
  749. SET_MAKE
  750. AWK
  751. mkdir_p
  752. MKDIR_P
  753. INSTALL_STRIP_PROGRAM
  754. STRIP
  755. install_sh
  756. MAKEINFO
  757. AUTOHEADER
  758. AUTOMAKE
  759. AUTOCONF
  760. ACLOCAL
  761. VERSION
  762. PACKAGE
  763. CYGPATH_W
  764. am__isrc
  765. INSTALL_DATA
  766. INSTALL_SCRIPT
  767. INSTALL_PROGRAM
  768. CLASSPATH_CONVENIENCE
  769. CLASSPATH_MODULE
  770. LIBVERSION
  771. INSTALL_BINARIES_FALSE
  772. INSTALL_BINARIES_TRUE
  773. multi_basedir
  774. GENINSRC_FALSE
  775. GENINSRC_TRUE
  776. JAVA_MAINTAINER_MODE_FALSE
  777. JAVA_MAINTAINER_MODE_TRUE
  778. target_os
  779. target_vendor
  780. target_cpu
  781. target
  782. host_os
  783. host_vendor
  784. host_cpu
  785. host
  786. build_os
  787. build_vendor
  788. build_cpu
  789. build
  790. target_alias
  791. host_alias
  792. build_alias
  793. LIBS
  794. ECHO_T
  795. ECHO_N
  796. ECHO_C
  797. DEFS
  798. mandir
  799. localedir
  800. libdir
  801. psdir
  802. pdfdir
  803. dvidir
  804. htmldir
  805. infodir
  806. docdir
  807. oldincludedir
  808. includedir
  809. localstatedir
  810. sharedstatedir
  811. sysconfdir
  812. datadir
  813. datarootdir
  814. libexecdir
  815. sbindir
  816. bindir
  817. program_transform_name
  818. prefix
  819. exec_prefix
  820. PACKAGE_URL
  821. PACKAGE_BUGREPORT
  822. PACKAGE_STRING
  823. PACKAGE_VERSION
  824. PACKAGE_TARNAME
  825. PACKAGE_NAME
  826. PATH_SEPARATOR
  827. SHELL'
  828. ac_subst_files=''
  829. ac_user_opts='
  830. enable_option_checking
  831. enable_java_maintainer_mode
  832. enable_generated_files_in_srcdir
  833. enable_multilib
  834. enable_collections
  835. enable_jni
  836. enable_core_jni
  837. enable_default_preferences_peer
  838. enable_gconf_peer
  839. enable_gconf_peers
  840. enable_gstreamer_peer
  841. enable_gstreamer_peers
  842. enable_Werror
  843. enable_default_toolkit
  844. enable_xmlj
  845. enable_alsa
  846. enable_dependency_tracking
  847. enable_dssi
  848. enable_gtk_peer
  849. enable_gtk_peers
  850. enable_qt_peer
  851. enable_plugin
  852. enable_gmp
  853. enable_gjdoc
  854. enable_version_specific_runtime_libs
  855. with_native_libdir
  856. with_glibj_dir
  857. with_antlr_jar
  858. enable_regen_headers
  859. enable_regen_gjdoc_parser
  860. enable_tool_wrappers
  861. enable_static
  862. enable_shared
  863. with_pic
  864. enable_fast_install
  865. with_gnu_ld
  866. enable_libtool_lock
  867. enable_rpath
  868. with_libiconv_prefix
  869. with_x
  870. with_qt4dir
  871. with_gmp
  872. with_gmp_include
  873. with_gmp_lib
  874. with_javah
  875. with_vm_classes
  876. enable_maintainer_mode
  877. enable_debug
  878. enable_load_library
  879. with_ecj_jar
  880. enable_java_lang_system_explicit_initialization
  881. with_jar
  882. with_glibj
  883. enable_examples
  884. enable_tools
  885. with_gjdoc
  886. with_jay
  887. enable_portable_native_sync
  888. with_glibj_zip
  889. with_escher
  890. enable_local_sockets
  891. '
  892. ac_precious_vars='build_alias
  893. host_alias
  894. target_alias
  895. CC
  896. CFLAGS
  897. LDFLAGS
  898. LIBS
  899. CPPFLAGS
  900. CPP
  901. CXX
  902. CXXFLAGS
  903. CCC
  904. CXXCPP
  905. XMKMF'
  906. # Initialize some variables set by options.
  907. ac_init_help=
  908. ac_init_version=false
  909. ac_unrecognized_opts=
  910. ac_unrecognized_sep=
  911. # The variables have the same names as the options, with
  912. # dashes changed to underlines.
  913. cache_file=/dev/null
  914. exec_prefix=NONE
  915. no_create=
  916. no_recursion=
  917. prefix=NONE
  918. program_prefix=NONE
  919. program_suffix=NONE
  920. program_transform_name=s,x,x,
  921. silent=
  922. site=
  923. srcdir=
  924. verbose=
  925. x_includes=NONE
  926. x_libraries=NONE
  927. # Installation directory options.
  928. # These are left unexpanded so users can "make install exec_prefix=/foo"
  929. # and all the variables that are supposed to be based on exec_prefix
  930. # by default will actually change.
  931. # Use braces instead of parens because sh, perl, etc. also accept them.
  932. # (The list follows the same order as the GNU Coding Standards.)
  933. bindir='${exec_prefix}/bin'
  934. sbindir='${exec_prefix}/sbin'
  935. libexecdir='${exec_prefix}/libexec'
  936. datarootdir='${prefix}/share'
  937. datadir='${datarootdir}'
  938. sysconfdir='${prefix}/etc'
  939. sharedstatedir='${prefix}/com'
  940. localstatedir='${prefix}/var'
  941. includedir='${prefix}/include'
  942. oldincludedir='/usr/include'
  943. docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
  944. infodir='${datarootdir}/info'
  945. htmldir='${docdir}'
  946. dvidir='${docdir}'
  947. pdfdir='${docdir}'
  948. psdir='${docdir}'
  949. libdir='${exec_prefix}/lib'
  950. localedir='${datarootdir}/locale'
  951. mandir='${datarootdir}/man'
  952. ac_prev=
  953. ac_dashdash=
  954. for ac_option
  955. do
  956. # If the previous option needs an argument, assign it.
  957. if test -n "$ac_prev"; then
  958. eval $ac_prev=\$ac_option
  959. ac_prev=
  960. continue
  961. fi
  962. case $ac_option in
  963. *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  964. *) ac_optarg=yes ;;
  965. esac
  966. # Accept the important Cygnus configure options, so we can diagnose typos.
  967. case $ac_dashdash$ac_option in
  968. --)
  969. ac_dashdash=yes ;;
  970. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  971. ac_prev=bindir ;;
  972. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  973. bindir=$ac_optarg ;;
  974. -build | --build | --buil | --bui | --bu)
  975. ac_prev=build_alias ;;
  976. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  977. build_alias=$ac_optarg ;;
  978. -cache-file | --cache-file | --cache-fil | --cache-fi \
  979. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  980. ac_prev=cache_file ;;
  981. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  982. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  983. cache_file=$ac_optarg ;;
  984. --config-cache | -C)
  985. cache_file=config.cache ;;
  986. -datadir | --datadir | --datadi | --datad)
  987. ac_prev=datadir ;;
  988. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  989. datadir=$ac_optarg ;;
  990. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  991. | --dataroo | --dataro | --datar)
  992. ac_prev=datarootdir ;;
  993. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  994. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  995. datarootdir=$ac_optarg ;;
  996. -disable-* | --disable-*)
  997. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  998. # Reject names that are not valid shell variable names.
  999. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1000. as_fn_error "invalid feature name: $ac_useropt"
  1001. ac_useropt_orig=$ac_useropt
  1002. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1003. case $ac_user_opts in
  1004. *"
  1005. "enable_$ac_useropt"
  1006. "*) ;;
  1007. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  1008. ac_unrecognized_sep=', ';;
  1009. esac
  1010. eval enable_$ac_useropt=no ;;
  1011. -docdir | --docdir | --docdi | --doc | --do)
  1012. ac_prev=docdir ;;
  1013. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  1014. docdir=$ac_optarg ;;
  1015. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  1016. ac_prev=dvidir ;;
  1017. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  1018. dvidir=$ac_optarg ;;
  1019. -enable-* | --enable-*)
  1020. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  1021. # Reject names that are not valid shell variable names.
  1022. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1023. as_fn_error "invalid feature name: $ac_useropt"
  1024. ac_useropt_orig=$ac_useropt
  1025. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1026. case $ac_user_opts in
  1027. *"
  1028. "enable_$ac_useropt"
  1029. "*) ;;
  1030. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  1031. ac_unrecognized_sep=', ';;
  1032. esac
  1033. eval enable_$ac_useropt=\$ac_optarg ;;
  1034. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  1035. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  1036. | --exec | --exe | --ex)
  1037. ac_prev=exec_prefix ;;
  1038. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  1039. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  1040. | --exec=* | --exe=* | --ex=*)
  1041. exec_prefix=$ac_optarg ;;
  1042. -gas | --gas | --ga | --g)
  1043. # Obsolete; use --with-gas.
  1044. with_gas=yes ;;
  1045. -help | --help | --hel | --he | -h)
  1046. ac_init_help=long ;;
  1047. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  1048. ac_init_help=recursive ;;
  1049. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  1050. ac_init_help=short ;;
  1051. -host | --host | --hos | --ho)
  1052. ac_prev=host_alias ;;
  1053. -host=* | --host=* | --hos=* | --ho=*)
  1054. host_alias=$ac_optarg ;;
  1055. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  1056. ac_prev=htmldir ;;
  1057. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  1058. | --ht=*)
  1059. htmldir=$ac_optarg ;;
  1060. -includedir | --includedir | --includedi | --included | --include \
  1061. | --includ | --inclu | --incl | --inc)
  1062. ac_prev=includedir ;;
  1063. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  1064. | --includ=* | --inclu=* | --incl=* | --inc=*)
  1065. includedir=$ac_optarg ;;
  1066. -infodir | --infodir | --infodi | --infod | --info | --inf)
  1067. ac_prev=infodir ;;
  1068. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  1069. infodir=$ac_optarg ;;
  1070. -libdir | --libdir | --libdi | --libd)
  1071. ac_prev=libdir ;;
  1072. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  1073. libdir=$ac_optarg ;;
  1074. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  1075. | --libexe | --libex | --libe)
  1076. ac_prev=libexecdir ;;
  1077. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  1078. | --libexe=* | --libex=* | --libe=*)
  1079. libexecdir=$ac_optarg ;;
  1080. -localedir | --localedir | --localedi | --localed | --locale)
  1081. ac_prev=localedir ;;
  1082. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  1083. localedir=$ac_optarg ;;
  1084. -localstatedir | --localstatedir | --localstatedi | --localstated \
  1085. | --localstate | --localstat | --localsta | --localst | --locals)
  1086. ac_prev=localstatedir ;;
  1087. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  1088. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  1089. localstatedir=$ac_optarg ;;
  1090. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  1091. ac_prev=mandir ;;
  1092. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  1093. mandir=$ac_optarg ;;
  1094. -nfp | --nfp | --nf)
  1095. # Obsolete; use --without-fp.
  1096. with_fp=no ;;
  1097. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  1098. | --no-cr | --no-c | -n)
  1099. no_create=yes ;;
  1100. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  1101. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  1102. no_recursion=yes ;;
  1103. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  1104. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  1105. | --oldin | --oldi | --old | --ol | --o)
  1106. ac_prev=oldincludedir ;;
  1107. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  1108. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  1109. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  1110. oldincludedir=$ac_optarg ;;
  1111. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  1112. ac_prev=prefix ;;
  1113. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  1114. prefix=$ac_optarg ;;
  1115. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  1116. | --program-pre | --program-pr | --program-p)
  1117. ac_prev=program_prefix ;;
  1118. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  1119. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  1120. program_prefix=$ac_optarg ;;
  1121. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  1122. | --program-suf | --program-su | --program-s)
  1123. ac_prev=program_suffix ;;
  1124. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  1125. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  1126. program_suffix=$ac_optarg ;;
  1127. -program-transform-name | --program-transform-name \
  1128. | --program-transform-nam | --program-transform-na \
  1129. | --program-transform-n | --program-transform- \
  1130. | --program-transform | --program-transfor \
  1131. | --program-transfo | --program-transf \
  1132. | --program-trans | --program-tran \
  1133. | --progr-tra | --program-tr | --program-t)
  1134. ac_prev=program_transform_name ;;
  1135. -program-transform-name=* | --program-transform-name=* \
  1136. | --program-transform-nam=* | --program-transform-na=* \
  1137. | --program-transform-n=* | --program-transform-=* \
  1138. | --program-transform=* | --program-transfor=* \
  1139. | --program-transfo=* | --program-transf=* \
  1140. | --program-trans=* | --program-tran=* \
  1141. | --progr-tra=* | --program-tr=* | --program-t=*)
  1142. program_transform_name=$ac_optarg ;;
  1143. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  1144. ac_prev=pdfdir ;;
  1145. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  1146. pdfdir=$ac_optarg ;;
  1147. -psdir | --psdir | --psdi | --psd | --ps)
  1148. ac_prev=psdir ;;
  1149. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  1150. psdir=$ac_optarg ;;
  1151. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1152. | -silent | --silent | --silen | --sile | --sil)
  1153. silent=yes ;;
  1154. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  1155. ac_prev=sbindir ;;
  1156. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  1157. | --sbi=* | --sb=*)
  1158. sbindir=$ac_optarg ;;
  1159. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  1160. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  1161. | --sharedst | --shareds | --shared | --share | --shar \
  1162. | --sha | --sh)
  1163. ac_prev=sharedstatedir ;;
  1164. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  1165. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  1166. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  1167. | --sha=* | --sh=*)
  1168. sharedstatedir=$ac_optarg ;;
  1169. -site | --site | --sit)
  1170. ac_prev=site ;;
  1171. -site=* | --site=* | --sit=*)
  1172. site=$ac_optarg ;;
  1173. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1174. ac_prev=srcdir ;;
  1175. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1176. srcdir=$ac_optarg ;;
  1177. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  1178. | --syscon | --sysco | --sysc | --sys | --sy)
  1179. ac_prev=sysconfdir ;;
  1180. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1181. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1182. sysconfdir=$ac_optarg ;;
  1183. -target | --target | --targe | --targ | --tar | --ta | --t)
  1184. ac_prev=target_alias ;;
  1185. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1186. target_alias=$ac_optarg ;;
  1187. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1188. verbose=yes ;;
  1189. -version | --version | --versio | --versi | --vers | -V)
  1190. ac_init_version=: ;;
  1191. -with-* | --with-*)
  1192. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1193. # Reject names that are not valid shell variable names.
  1194. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1195. as_fn_error "invalid package name: $ac_useropt"
  1196. ac_useropt_orig=$ac_useropt
  1197. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1198. case $ac_user_opts in
  1199. *"
  1200. "with_$ac_useropt"
  1201. "*) ;;
  1202. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  1203. ac_unrecognized_sep=', ';;
  1204. esac
  1205. eval with_$ac_useropt=\$ac_optarg ;;
  1206. -without-* | --without-*)
  1207. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1208. # Reject names that are not valid shell variable names.
  1209. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1210. as_fn_error "invalid package name: $ac_useropt"
  1211. ac_useropt_orig=$ac_useropt
  1212. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1213. case $ac_user_opts in
  1214. *"
  1215. "with_$ac_useropt"
  1216. "*) ;;
  1217. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1218. ac_unrecognized_sep=', ';;
  1219. esac
  1220. eval with_$ac_useropt=no ;;
  1221. --x)
  1222. # Obsolete; use --with-x.
  1223. with_x=yes ;;
  1224. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1225. | --x-incl | --x-inc | --x-in | --x-i)
  1226. ac_prev=x_includes ;;
  1227. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1228. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1229. x_includes=$ac_optarg ;;
  1230. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1231. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1232. ac_prev=x_libraries ;;
  1233. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1234. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1235. x_libraries=$ac_optarg ;;
  1236. -*) as_fn_error "unrecognized option: \`$ac_option'
  1237. Try \`$0 --help' for more information."
  1238. ;;
  1239. *=*)
  1240. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1241. # Reject names that are not valid shell variable names.
  1242. case $ac_envvar in #(
  1243. '' | [0-9]* | *[!_$as_cr_alnum]* )
  1244. as_fn_error "invalid variable name: \`$ac_envvar'" ;;
  1245. esac
  1246. eval $ac_envvar=\$ac_optarg
  1247. export $ac_envvar ;;
  1248. *)
  1249. # FIXME: should be removed in autoconf 3.0.
  1250. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1251. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1252. $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1253. : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
  1254. ;;
  1255. esac
  1256. done
  1257. if test -n "$ac_prev"; then
  1258. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1259. as_fn_error "missing argument to $ac_option"
  1260. fi
  1261. if test -n "$ac_unrecognized_opts"; then
  1262. case $enable_option_checking in
  1263. no) ;;
  1264. fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
  1265. *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1266. esac
  1267. fi
  1268. # Check all directory arguments for consistency.
  1269. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1270. datadir sysconfdir sharedstatedir localstatedir includedir \
  1271. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1272. libdir localedir mandir
  1273. do
  1274. eval ac_val=\$$ac_var
  1275. # Remove trailing slashes.
  1276. case $ac_val in
  1277. */ )
  1278. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1279. eval $ac_var=\$ac_val;;
  1280. esac
  1281. # Be sure to have absolute directory names.
  1282. case $ac_val in
  1283. [\\/$]* | ?:[\\/]* ) continue;;
  1284. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1285. esac
  1286. as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
  1287. done
  1288. # There might be people who depend on the old broken behavior: `$host'
  1289. # used to hold the argument of --host etc.
  1290. # FIXME: To remove some day.
  1291. build=$build_alias
  1292. host=$host_alias
  1293. target=$target_alias
  1294. # FIXME: To remove some day.
  1295. if test "x$host_alias" != x; then
  1296. if test "x$build_alias" = x; then
  1297. cross_compiling=maybe
  1298. $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
  1299. If a cross compiler is detected then cross compile mode will be used." >&2
  1300. elif test "x$build_alias" != "x$host_alias"; then
  1301. cross_compiling=yes
  1302. fi
  1303. fi
  1304. ac_tool_prefix=
  1305. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1306. test "$silent" = yes && exec 6>/dev/null
  1307. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1308. ac_ls_di=`ls -di .` &&
  1309. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1310. as_fn_error "working directory cannot be determined"
  1311. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1312. as_fn_error "pwd does not report name of working directory"
  1313. # Find the source files, if location was not specified.
  1314. if test -z "$srcdir"; then
  1315. ac_srcdir_defaulted=yes
  1316. # Try the directory containing this script, then the parent directory.
  1317. ac_confdir=`$as_dirname -- "$as_myself" ||
  1318. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1319. X"$as_myself" : 'X\(//\)[^/]' \| \
  1320. X"$as_myself" : 'X\(//\)$' \| \
  1321. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1322. $as_echo X"$as_myself" |
  1323. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1324. s//\1/
  1325. q
  1326. }
  1327. /^X\(\/\/\)[^/].*/{
  1328. s//\1/
  1329. q
  1330. }
  1331. /^X\(\/\/\)$/{
  1332. s//\1/
  1333. q
  1334. }
  1335. /^X\(\/\).*/{
  1336. s//\1/
  1337. q
  1338. }
  1339. s/.*/./; q'`
  1340. srcdir=$ac_confdir
  1341. if test ! -r "$srcdir/$ac_unique_file"; then
  1342. srcdir=..
  1343. fi
  1344. else
  1345. ac_srcdir_defaulted=no
  1346. fi
  1347. if test ! -r "$srcdir/$ac_unique_file"; then
  1348. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1349. as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
  1350. fi
  1351. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1352. ac_abs_confdir=`(
  1353. cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
  1354. pwd)`
  1355. # When building in place, set srcdir=.
  1356. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1357. srcdir=.
  1358. fi
  1359. # Remove unnecessary trailing slashes from srcdir.
  1360. # Double slashes in file names in object file debugging info
  1361. # mess up M-x gdb in Emacs.
  1362. case $srcdir in
  1363. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1364. esac
  1365. for ac_var in $ac_precious_vars; do
  1366. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1367. eval ac_env_${ac_var}_value=\$${ac_var}
  1368. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1369. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1370. done
  1371. #
  1372. # Report the --help message.
  1373. #
  1374. if test "$ac_init_help" = "long"; then
  1375. # Omit some internal or obsolete options to make the list less imposing.
  1376. # This message is too long to be a string in the A/UX 3.1 sh.
  1377. cat <<_ACEOF
  1378. \`configure' configures GNU Classpath 0.99.1-pre to adapt to many kinds of systems.
  1379. Usage: $0 [OPTION]... [VAR=VALUE]...
  1380. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1381. VAR=VALUE. See below for descriptions of some of the useful variables.
  1382. Defaults for the options are specified in brackets.
  1383. Configuration:
  1384. -h, --help display this help and exit
  1385. --help=short display options specific to this package
  1386. --help=recursive display the short help of all the included packages
  1387. -V, --version display version information and exit
  1388. -q, --quiet, --silent do not print \`checking...' messages
  1389. --cache-file=FILE cache test results in FILE [disabled]
  1390. -C, --config-cache alias for \`--cache-file=config.cache'
  1391. -n, --no-create do not create output files
  1392. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1393. Installation directories:
  1394. --prefix=PREFIX install architecture-independent files in PREFIX
  1395. [$ac_default_prefix]
  1396. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1397. [PREFIX]
  1398. By default, \`make install' will install all the files in
  1399. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1400. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1401. for instance \`--prefix=\$HOME'.
  1402. For better control, use the options below.
  1403. Fine tuning of the installation directories:
  1404. --bindir=DIR user executables [EPREFIX/bin]
  1405. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1406. --libexecdir=DIR program executables [EPREFIX/libexec]
  1407. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1408. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1409. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1410. --libdir=DIR object code libraries [EPREFIX/lib]
  1411. --includedir=DIR C header files [PREFIX/include]
  1412. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1413. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1414. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1415. --infodir=DIR info documentation [DATAROOTDIR/info]
  1416. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1417. --mandir=DIR man documentation [DATAROOTDIR/man]
  1418. --docdir=DIR documentation root [DATAROOTDIR/doc/classpath]
  1419. --htmldir=DIR html documentation [DOCDIR]
  1420. --dvidir=DIR dvi documentation [DOCDIR]
  1421. --pdfdir=DIR pdf documentation [DOCDIR]
  1422. --psdir=DIR ps documentation [DOCDIR]
  1423. _ACEOF
  1424. cat <<\_ACEOF
  1425. Program names:
  1426. --program-prefix=PREFIX prepend PREFIX to installed program names
  1427. --program-suffix=SUFFIX append SUFFIX to installed program names
  1428. --program-transform-name=PROGRAM run sed PROGRAM on installed program names
  1429. X features:
  1430. --x-includes=DIR X include files are in DIR
  1431. --x-libraries=DIR X library files are in DIR
  1432. System types:
  1433. --build=BUILD configure for building on BUILD [guessed]
  1434. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1435. --target=TARGET configure for building compilers for TARGET [HOST]
  1436. _ACEOF
  1437. fi
  1438. if test -n "$ac_init_help"; then
  1439. case $ac_init_help in
  1440. short | recursive ) echo "Configuration of GNU Classpath 0.99.1-pre:";;
  1441. esac
  1442. cat <<\_ACEOF
  1443. Optional Features:
  1444. --disable-option-checking ignore unrecognized --enable/--with options
  1445. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1446. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1447. --enable-java-maintainer-mode
  1448. allow rebuilding of .class and .h files
  1449. --enable-generated-files-in-srcdir
  1450. put copies of generated files in source dir
  1451. intended for creating source tarballs for users
  1452. without texinfo, perl, bison or flex.
  1453. --enable-multilib build many library versions (default)
  1454. --enable-collections create collections.jar default=no
  1455. --enable-jni compile JNI source default=yes
  1456. --enable-core-jni compile JNI sources for core default=yes
  1457. --enable-default-preferences-peer[=peer type or class name]
  1458. specify one of: "gconf" [default] for a GConf based
  1459. backend, "file" for a file based one, "memory" for a
  1460. transient one, or a fully qualified class name
  1461. implementing java.util.prefs.PreferencesFactory
  1462. --disable-gconf-peer compile GConf native peers (disabled by
  1463. --disable-jni) default=yes
  1464. --enable-gstreamer-peer compile GStreamer native peers (disabled by
  1465. --disable-jni) default=no
  1466. --enable-Werror whether to compile C code with -Werror which turns
  1467. any compiler warning into a compilation failure
  1468. default=no
  1469. --enable-default-toolkit
  1470. fully qualified class name of default AWT toolkit
  1471. --enable-xmlj compile native libxml/xslt library default=no
  1472. --disable-alsa compile ALSA providers (enable by --enable-alsa)
  1473. default=yes
  1474. --disable-dependency-tracking speeds up one-time build
  1475. --enable-dependency-tracking do not reject slow dependency extractors
  1476. --disable-dssi compile DSSI providers (enable by --enable-dssi)
  1477. default=yes
  1478. --disable-gtk-peer compile GTK native peers (disabled by --disable-jni)
  1479. default=yes
  1480. --enable-qt-peer compile Qt4 native peers (disabled by --disable-jni)
  1481. default=no
  1482. --disable-plugin compile gcjwebplugin (disabled by --disable-plugin)
  1483. default=yes
  1484. --enable-gmp compile native java.math.BigInteger library
  1485. (disabled by --disable-gmp) default=yes
  1486. --disable-gjdoc compile GJDoc (disabled by --disable-gjdoc)
  1487. default=yes
  1488. --enable-version-specific-runtime-libs
  1489. specify that runtime libraries should be installed
  1490. in a compiler-specific directory
  1491. --enable-regen-headers automatically regenerate JNI headers default=yes if
  1492. headers don't exist
  1493. --enable-regen-gjdoc-parser
  1494. automatically regenerate the GJDoc parser
  1495. default=yes if generated source doesn't exist
  1496. --enable-tool-wrappers create tool wrapper binaries default=no
  1497. --enable-static[=PKGS] build static libraries [default=no]
  1498. --enable-shared[=PKGS] build shared libraries [default=yes]
  1499. --enable-fast-install[=PKGS]
  1500. optimize for fast installation [default=yes]
  1501. --disable-libtool-lock avoid locking (might break parallel builds)
  1502. --disable-rpath do not hardcode runtime library paths
  1503. --enable-maintainer-mode enable make rules and dependencies not useful
  1504. (and sometimes confusing) to the casual installer
  1505. --enable-debug enable runtime debugging code
  1506. --enable-load-library enable to use JNI native methods default=yes
  1507. --enable-java-lang-system-explicit-initialization
  1508. will the VM explicitly invoke java.lang.System's
  1509. static initialization methods default=no
  1510. --enable-examples enable build of the examples default=yes
  1511. --enable-tools enable build of the tools default=yes
  1512. --enable-portable-native-sync
  1513. synchronize VM threads portably
  1514. --enable-local-sockets enables local (AF_LOCAL) socket API default: no
  1515. Optional Packages:
  1516. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1517. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1518. --with-native-libdir sets the installation directory for native libraries
  1519. default='${libdir}/${PACKAGE}'
  1520. --with-glibj-dir sets the installation directory for glibj.zip
  1521. default='${libdir}/${PACKAGE}'
  1522. --with-antlr-jar=file Use ANTLR from the specified jar file
  1523. --with-pic try to use only PIC/non-PIC objects [default=use
  1524. both]
  1525. --with-gnu-ld assume the C compiler uses GNU ld [default=no]
  1526. --with-gnu-ld assume the C compiler uses GNU ld default=no
  1527. --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
  1528. --without-libiconv-prefix don't search for libiconv in includedir and libdir
  1529. --with-x use the X Window System
  1530. --with-qt4dir=DIR Qt4 installation directory used for OS-X. For other
  1531. systems use pkg-config.
  1532. --with-gmp=PATH specify prefix directory for the installed GMP package.
  1533. Equivalent to --with-gmp-include=PATH/include
  1534. plus --with-gmp-lib=PATH/lib
  1535. --with-gmp-include=PATH specify directory for installed GMP include files
  1536. --with-gmp-lib=PATH specify directory for the installed GMP library
  1537. --with-javah specify path or name of a javah-like program
  1538. --with-vm-classes specify path to VM override source files
  1539. --with-ecj-jar=ABS.PATH specify jar file containing the Eclipse Java
  1540. Compiler
  1541. --with-jar=PATH define to use a jar style tool
  1542. --with-glibj define what to install (zip|flat|both|none|build)
  1543. [default=zip]
  1544. --with-gjdoc generate documentation using gjdoc (default is NO)
  1545. --with-jay=DIR|PATH Regenerate the parsers with jay
  1546. --with-glibj-zip=ABS.PATH
  1547. use prebuilt glibj.zip class library
  1548. --with-escher=ABS.PATH specify path to escher dir or JAR for X peers
  1549. Some influential environment variables:
  1550. CC C compiler command
  1551. CFLAGS C compiler flags
  1552. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1553. nonstandard directory <lib dir>
  1554. LIBS libraries to pass to the linker, e.g. -l<library>
  1555. CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
  1556. you have headers in a nonstandard directory <include dir>
  1557. CPP C preprocessor
  1558. CXX C++ compiler command
  1559. CXXFLAGS C++ compiler flags
  1560. CXXCPP C++ preprocessor
  1561. XMKMF Path to xmkmf, Makefile generator for X Window System
  1562. Use these variables to override the choices made by `configure' or to help
  1563. it to find libraries and programs with nonstandard names/locations.
  1564. Report bugs to <classpath@gnu.org>.
  1565. GNU Classpath home page: <http://www.gnu.org/software/classpath/>.
  1566. General help using GNU software: <http://www.gnu.org/gethelp/>.
  1567. _ACEOF
  1568. ac_status=$?
  1569. fi
  1570. if test "$ac_init_help" = "recursive"; then
  1571. # If there are subdirs, report their specific --help.
  1572. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1573. test -d "$ac_dir" ||
  1574. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1575. continue
  1576. ac_builddir=.
  1577. case "$ac_dir" in
  1578. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1579. *)
  1580. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  1581. # A ".." for each directory in $ac_dir_suffix.
  1582. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1583. case $ac_top_builddir_sub in
  1584. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1585. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1586. esac ;;
  1587. esac
  1588. ac_abs_top_builddir=$ac_pwd
  1589. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1590. # for backward compatibility:
  1591. ac_top_builddir=$ac_top_build_prefix
  1592. case $srcdir in
  1593. .) # We are building in place.
  1594. ac_srcdir=.
  1595. ac_top_srcdir=$ac_top_builddir_sub
  1596. ac_abs_top_srcdir=$ac_pwd ;;
  1597. [\\/]* | ?:[\\/]* ) # Absolute name.
  1598. ac_srcdir=$srcdir$ac_dir_suffix;
  1599. ac_top_srcdir=$srcdir
  1600. ac_abs_top_srcdir=$srcdir ;;
  1601. *) # Relative name.
  1602. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1603. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1604. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1605. esac
  1606. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1607. cd "$ac_dir" || { ac_status=$?; continue; }
  1608. # Check for guested configure.
  1609. if test -f "$ac_srcdir/configure.gnu"; then
  1610. echo &&
  1611. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1612. elif test -f "$ac_srcdir/configure"; then
  1613. echo &&
  1614. $SHELL "$ac_srcdir/configure" --help=recursive
  1615. else
  1616. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1617. fi || ac_status=$?
  1618. cd "$ac_pwd" || { ac_status=$?; break; }
  1619. done
  1620. fi
  1621. test -n "$ac_init_help" && exit $ac_status
  1622. if $ac_init_version; then
  1623. cat <<\_ACEOF
  1624. GNU Classpath configure 0.99.1-pre
  1625. generated by GNU Autoconf 2.64
  1626. Copyright (C) 2009 Free Software Foundation, Inc.
  1627. This configure script is free software; the Free Software Foundation
  1628. gives unlimited permission to copy, distribute and modify it.
  1629. _ACEOF
  1630. exit
  1631. fi
  1632. ## ------------------------ ##
  1633. ## Autoconf initialization. ##
  1634. ## ------------------------ ##
  1635. # ac_fn_c_try_compile LINENO
  1636. # --------------------------
  1637. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1638. ac_fn_c_try_compile ()
  1639. {
  1640. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1641. rm -f conftest.$ac_objext
  1642. if { { ac_try="$ac_compile"
  1643. case "(($ac_try" in
  1644. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1645. *) ac_try_echo=$ac_try;;
  1646. esac
  1647. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1648. $as_echo "$ac_try_echo"; } >&5
  1649. (eval "$ac_compile") 2>conftest.err
  1650. ac_status=$?
  1651. if test -s conftest.err; then
  1652. grep -v '^ *+' conftest.err >conftest.er1
  1653. cat conftest.er1 >&5
  1654. mv -f conftest.er1 conftest.err
  1655. fi
  1656. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1657. test $ac_status = 0; } && {
  1658. test -z "$ac_c_werror_flag" ||
  1659. test ! -s conftest.err
  1660. } && test -s conftest.$ac_objext; then :
  1661. ac_retval=0
  1662. else
  1663. $as_echo "$as_me: failed program was:" >&5
  1664. sed 's/^/| /' conftest.$ac_ext >&5
  1665. ac_retval=1
  1666. fi
  1667. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1668. return $ac_retval
  1669. } # ac_fn_c_try_compile
  1670. # ac_fn_c_try_cpp LINENO
  1671. # ----------------------
  1672. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1673. ac_fn_c_try_cpp ()
  1674. {
  1675. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1676. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1677. case "(($ac_try" in
  1678. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1679. *) ac_try_echo=$ac_try;;
  1680. esac
  1681. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1682. $as_echo "$ac_try_echo"; } >&5
  1683. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1684. ac_status=$?
  1685. if test -s conftest.err; then
  1686. grep -v '^ *+' conftest.err >conftest.er1
  1687. cat conftest.er1 >&5
  1688. mv -f conftest.er1 conftest.err
  1689. fi
  1690. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1691. test $ac_status = 0; } >/dev/null && {
  1692. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  1693. test ! -s conftest.err
  1694. }; then :
  1695. ac_retval=0
  1696. else
  1697. $as_echo "$as_me: failed program was:" >&5
  1698. sed 's/^/| /' conftest.$ac_ext >&5
  1699. ac_retval=1
  1700. fi
  1701. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1702. return $ac_retval
  1703. } # ac_fn_c_try_cpp
  1704. # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
  1705. # -------------------------------------------------------
  1706. # Tests whether HEADER exists, giving a warning if it cannot be compiled using
  1707. # the include files in INCLUDES and setting the cache variable VAR
  1708. # accordingly.
  1709. ac_fn_c_check_header_mongrel ()
  1710. {
  1711. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1712. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  1713. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1714. $as_echo_n "checking for $2... " >&6; }
  1715. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  1716. $as_echo_n "(cached) " >&6
  1717. fi
  1718. eval ac_res=\$$3
  1719. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1720. $as_echo "$ac_res" >&6; }
  1721. else
  1722. # Is the header compilable?
  1723. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
  1724. $as_echo_n "checking $2 usability... " >&6; }
  1725. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1726. /* end confdefs.h. */
  1727. $4
  1728. #include <$2>
  1729. _ACEOF
  1730. if ac_fn_c_try_compile "$LINENO"; then :
  1731. ac_header_compiler=yes
  1732. else
  1733. ac_header_compiler=no
  1734. fi
  1735. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1736. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
  1737. $as_echo "$ac_header_compiler" >&6; }
  1738. # Is the header present?
  1739. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
  1740. $as_echo_n "checking $2 presence... " >&6; }
  1741. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1742. /* end confdefs.h. */
  1743. #include <$2>
  1744. _ACEOF
  1745. if ac_fn_c_try_cpp "$LINENO"; then :
  1746. ac_header_preproc=yes
  1747. else
  1748. ac_header_preproc=no
  1749. fi
  1750. rm -f conftest.err conftest.$ac_ext
  1751. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
  1752. $as_echo "$ac_header_preproc" >&6; }
  1753. # So? What about this header?
  1754. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
  1755. yes:no: )
  1756. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
  1757. $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
  1758. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1759. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1760. ;;
  1761. no:yes:* )
  1762. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
  1763. $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
  1764. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
  1765. $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
  1766. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
  1767. $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
  1768. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
  1769. $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
  1770. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1771. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1772. ( cat <<\_ASBOX
  1773. ## -------------------------------- ##
  1774. ## Report this to classpath@gnu.org ##
  1775. ## -------------------------------- ##
  1776. _ASBOX
  1777. ) | sed "s/^/$as_me: WARNING: /" >&2
  1778. ;;
  1779. esac
  1780. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1781. $as_echo_n "checking for $2... " >&6; }
  1782. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  1783. $as_echo_n "(cached) " >&6
  1784. else
  1785. eval "$3=\$ac_header_compiler"
  1786. fi
  1787. eval ac_res=\$$3
  1788. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1789. $as_echo "$ac_res" >&6; }
  1790. fi
  1791. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1792. } # ac_fn_c_check_header_mongrel
  1793. # ac_fn_c_try_run LINENO
  1794. # ----------------------
  1795. # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
  1796. # that executables *can* be run.
  1797. ac_fn_c_try_run ()
  1798. {
  1799. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1800. if { { ac_try="$ac_link"
  1801. case "(($ac_try" in
  1802. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1803. *) ac_try_echo=$ac_try;;
  1804. esac
  1805. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1806. $as_echo "$ac_try_echo"; } >&5
  1807. (eval "$ac_link") 2>&5
  1808. ac_status=$?
  1809. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1810. test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  1811. { { case "(($ac_try" in
  1812. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1813. *) ac_try_echo=$ac_try;;
  1814. esac
  1815. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1816. $as_echo "$ac_try_echo"; } >&5
  1817. (eval "$ac_try") 2>&5
  1818. ac_status=$?
  1819. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1820. test $ac_status = 0; }; }; then :
  1821. ac_retval=0
  1822. else
  1823. $as_echo "$as_me: program exited with status $ac_status" >&5
  1824. $as_echo "$as_me: failed program was:" >&5
  1825. sed 's/^/| /' conftest.$ac_ext >&5
  1826. ac_retval=$ac_status
  1827. fi
  1828. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1829. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1830. return $ac_retval
  1831. } # ac_fn_c_try_run
  1832. # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
  1833. # -------------------------------------------------------
  1834. # Tests whether HEADER exists and can be compiled using the include files in
  1835. # INCLUDES, setting the cache variable VAR accordingly.
  1836. ac_fn_c_check_header_compile ()
  1837. {
  1838. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1839. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1840. $as_echo_n "checking for $2... " >&6; }
  1841. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  1842. $as_echo_n "(cached) " >&6
  1843. else
  1844. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1845. /* end confdefs.h. */
  1846. $4
  1847. #include <$2>
  1848. _ACEOF
  1849. if ac_fn_c_try_compile "$LINENO"; then :
  1850. eval "$3=yes"
  1851. else
  1852. eval "$3=no"
  1853. fi
  1854. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1855. fi
  1856. eval ac_res=\$$3
  1857. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1858. $as_echo "$ac_res" >&6; }
  1859. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1860. } # ac_fn_c_check_header_compile
  1861. # ac_fn_c_try_link LINENO
  1862. # -----------------------
  1863. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1864. ac_fn_c_try_link ()
  1865. {
  1866. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1867. rm -f conftest.$ac_objext conftest$ac_exeext
  1868. if { { ac_try="$ac_link"
  1869. case "(($ac_try" in
  1870. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1871. *) ac_try_echo=$ac_try;;
  1872. esac
  1873. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1874. $as_echo "$ac_try_echo"; } >&5
  1875. (eval "$ac_link") 2>conftest.err
  1876. ac_status=$?
  1877. if test -s conftest.err; then
  1878. grep -v '^ *+' conftest.err >conftest.er1
  1879. cat conftest.er1 >&5
  1880. mv -f conftest.er1 conftest.err
  1881. fi
  1882. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1883. test $ac_status = 0; } && {
  1884. test -z "$ac_c_werror_flag" ||
  1885. test ! -s conftest.err
  1886. } && test -s conftest$ac_exeext && {
  1887. test "$cross_compiling" = yes ||
  1888. $as_test_x conftest$ac_exeext
  1889. }; then :
  1890. ac_retval=0
  1891. else
  1892. $as_echo "$as_me: failed program was:" >&5
  1893. sed 's/^/| /' conftest.$ac_ext >&5
  1894. ac_retval=1
  1895. fi
  1896. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1897. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1898. # interfere with the next link command; also delete a directory that is
  1899. # left behind by Apple's compiler. We do this before executing the actions.
  1900. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1901. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1902. return $ac_retval
  1903. } # ac_fn_c_try_link
  1904. # ac_fn_c_check_func LINENO FUNC VAR
  1905. # ----------------------------------
  1906. # Tests whether FUNC exists, setting the cache variable VAR accordingly
  1907. ac_fn_c_check_func ()
  1908. {
  1909. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1910. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1911. $as_echo_n "checking for $2... " >&6; }
  1912. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  1913. $as_echo_n "(cached) " >&6
  1914. else
  1915. if test x$gcc_no_link = xyes; then
  1916. as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  1917. fi
  1918. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1919. /* end confdefs.h. */
  1920. /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  1921. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  1922. #define $2 innocuous_$2
  1923. /* System header to define __stub macros and hopefully few prototypes,
  1924. which can conflict with char $2 (); below.
  1925. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  1926. <limits.h> exists even on freestanding compilers. */
  1927. #ifdef __STDC__
  1928. # include <limits.h>
  1929. #else
  1930. # include <assert.h>
  1931. #endif
  1932. #undef $2
  1933. /* Override any GCC internal prototype to avoid an error.
  1934. Use char because int might match the return type of a GCC
  1935. builtin and then its argument prototype would still apply. */
  1936. #ifdef __cplusplus
  1937. extern "C"
  1938. #endif
  1939. char $2 ();
  1940. /* The GNU C library defines this for functions which it implements
  1941. to always fail with ENOSYS. Some functions are actually named
  1942. something starting with __ and the normal name is an alias. */
  1943. #if defined __stub_$2 || defined __stub___$2
  1944. choke me
  1945. #endif
  1946. int
  1947. main ()
  1948. {
  1949. return $2 ();
  1950. ;
  1951. return 0;
  1952. }
  1953. _ACEOF
  1954. if ac_fn_c_try_link "$LINENO"; then :
  1955. eval "$3=yes"
  1956. else
  1957. eval "$3=no"
  1958. fi
  1959. rm -f core conftest.err conftest.$ac_objext \
  1960. conftest$ac_exeext conftest.$ac_ext
  1961. fi
  1962. eval ac_res=\$$3
  1963. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1964. $as_echo "$ac_res" >&6; }
  1965. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1966. } # ac_fn_c_check_func
  1967. # ac_fn_cxx_try_compile LINENO
  1968. # ----------------------------
  1969. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1970. ac_fn_cxx_try_compile ()
  1971. {
  1972. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1973. rm -f conftest.$ac_objext
  1974. if { { ac_try="$ac_compile"
  1975. case "(($ac_try" in
  1976. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1977. *) ac_try_echo=$ac_try;;
  1978. esac
  1979. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1980. $as_echo "$ac_try_echo"; } >&5
  1981. (eval "$ac_compile") 2>conftest.err
  1982. ac_status=$?
  1983. if test -s conftest.err; then
  1984. grep -v '^ *+' conftest.err >conftest.er1
  1985. cat conftest.er1 >&5
  1986. mv -f conftest.er1 conftest.err
  1987. fi
  1988. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1989. test $ac_status = 0; } && {
  1990. test -z "$ac_cxx_werror_flag" ||
  1991. test ! -s conftest.err
  1992. } && test -s conftest.$ac_objext; then :
  1993. ac_retval=0
  1994. else
  1995. $as_echo "$as_me: failed program was:" >&5
  1996. sed 's/^/| /' conftest.$ac_ext >&5
  1997. ac_retval=1
  1998. fi
  1999. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  2000. return $ac_retval
  2001. } # ac_fn_cxx_try_compile
  2002. # ac_fn_cxx_try_cpp LINENO
  2003. # ------------------------
  2004. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  2005. ac_fn_cxx_try_cpp ()
  2006. {
  2007. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2008. if { { ac_try="$ac_cpp conftest.$ac_ext"
  2009. case "(($ac_try" in
  2010. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2011. *) ac_try_echo=$ac_try;;
  2012. esac
  2013. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2014. $as_echo "$ac_try_echo"; } >&5
  2015. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  2016. ac_status=$?
  2017. if test -s conftest.err; then
  2018. grep -v '^ *+' conftest.err >conftest.er1
  2019. cat conftest.er1 >&5
  2020. mv -f conftest.er1 conftest.err
  2021. fi
  2022. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2023. test $ac_status = 0; } >/dev/null && {
  2024. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  2025. test ! -s conftest.err
  2026. }; then :
  2027. ac_retval=0
  2028. else
  2029. $as_echo "$as_me: failed program was:" >&5
  2030. sed 's/^/| /' conftest.$ac_ext >&5
  2031. ac_retval=1
  2032. fi
  2033. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  2034. return $ac_retval
  2035. } # ac_fn_cxx_try_cpp
  2036. # ac_fn_cxx_try_link LINENO
  2037. # -------------------------
  2038. # Try to link conftest.$ac_ext, and return whether this succeeded.
  2039. ac_fn_cxx_try_link ()
  2040. {
  2041. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2042. rm -f conftest.$ac_objext conftest$ac_exeext
  2043. if { { ac_try="$ac_link"
  2044. case "(($ac_try" in
  2045. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2046. *) ac_try_echo=$ac_try;;
  2047. esac
  2048. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2049. $as_echo "$ac_try_echo"; } >&5
  2050. (eval "$ac_link") 2>conftest.err
  2051. ac_status=$?
  2052. if test -s conftest.err; then
  2053. grep -v '^ *+' conftest.err >conftest.er1
  2054. cat conftest.er1 >&5
  2055. mv -f conftest.er1 conftest.err
  2056. fi
  2057. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2058. test $ac_status = 0; } && {
  2059. test -z "$ac_cxx_werror_flag" ||
  2060. test ! -s conftest.err
  2061. } && test -s conftest$ac_exeext && {
  2062. test "$cross_compiling" = yes ||
  2063. $as_test_x conftest$ac_exeext
  2064. }; then :
  2065. ac_retval=0
  2066. else
  2067. $as_echo "$as_me: failed program was:" >&5
  2068. sed 's/^/| /' conftest.$ac_ext >&5
  2069. ac_retval=1
  2070. fi
  2071. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  2072. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  2073. # interfere with the next link command; also delete a directory that is
  2074. # left behind by Apple's compiler. We do this before executing the actions.
  2075. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  2076. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  2077. return $ac_retval
  2078. } # ac_fn_cxx_try_link
  2079. # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
  2080. # ----------------------------------------------------
  2081. # Tries to find if the field MEMBER exists in type AGGR, after including
  2082. # INCLUDES, setting cache variable VAR accordingly.
  2083. ac_fn_c_check_member ()
  2084. {
  2085. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2086. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
  2087. $as_echo_n "checking for $2.$3... " >&6; }
  2088. if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
  2089. $as_echo_n "(cached) " >&6
  2090. else
  2091. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2092. /* end confdefs.h. */
  2093. $5
  2094. int
  2095. main ()
  2096. {
  2097. static $2 ac_aggr;
  2098. if (ac_aggr.$3)
  2099. return 0;
  2100. ;
  2101. return 0;
  2102. }
  2103. _ACEOF
  2104. if ac_fn_c_try_compile "$LINENO"; then :
  2105. eval "$4=yes"
  2106. else
  2107. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2108. /* end confdefs.h. */
  2109. $5
  2110. int
  2111. main ()
  2112. {
  2113. static $2 ac_aggr;
  2114. if (sizeof ac_aggr.$3)
  2115. return 0;
  2116. ;
  2117. return 0;
  2118. }
  2119. _ACEOF
  2120. if ac_fn_c_try_compile "$LINENO"; then :
  2121. eval "$4=yes"
  2122. else
  2123. eval "$4=no"
  2124. fi
  2125. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2126. fi
  2127. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2128. fi
  2129. eval ac_res=\$$4
  2130. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2131. $as_echo "$ac_res" >&6; }
  2132. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  2133. } # ac_fn_c_check_member
  2134. # ac_fn_c_check_decl LINENO SYMBOL VAR
  2135. # ------------------------------------
  2136. # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
  2137. ac_fn_c_check_decl ()
  2138. {
  2139. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2140. as_decl_name=`echo $2|sed 's/ *(.*//'`
  2141. as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
  2142. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
  2143. $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
  2144. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  2145. $as_echo_n "(cached) " >&6
  2146. else
  2147. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2148. /* end confdefs.h. */
  2149. $4
  2150. int
  2151. main ()
  2152. {
  2153. #ifndef $as_decl_name
  2154. #ifdef __cplusplus
  2155. (void) $as_decl_use;
  2156. #else
  2157. (void) $as_decl_name;
  2158. #endif
  2159. #endif
  2160. ;
  2161. return 0;
  2162. }
  2163. _ACEOF
  2164. if ac_fn_c_try_compile "$LINENO"; then :
  2165. eval "$3=yes"
  2166. else
  2167. eval "$3=no"
  2168. fi
  2169. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2170. fi
  2171. eval ac_res=\$$3
  2172. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2173. $as_echo "$ac_res" >&6; }
  2174. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  2175. } # ac_fn_c_check_decl
  2176. # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
  2177. # -------------------------------------------
  2178. # Tests whether TYPE exists after having included INCLUDES, setting cache
  2179. # variable VAR accordingly.
  2180. ac_fn_c_check_type ()
  2181. {
  2182. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2183. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  2184. $as_echo_n "checking for $2... " >&6; }
  2185. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  2186. $as_echo_n "(cached) " >&6
  2187. else
  2188. eval "$3=no"
  2189. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2190. /* end confdefs.h. */
  2191. $4
  2192. int
  2193. main ()
  2194. {
  2195. if (sizeof ($2))
  2196. return 0;
  2197. ;
  2198. return 0;
  2199. }
  2200. _ACEOF
  2201. if ac_fn_c_try_compile "$LINENO"; then :
  2202. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2203. /* end confdefs.h. */
  2204. $4
  2205. int
  2206. main ()
  2207. {
  2208. if (sizeof (($2)))
  2209. return 0;
  2210. ;
  2211. return 0;
  2212. }
  2213. _ACEOF
  2214. if ac_fn_c_try_compile "$LINENO"; then :
  2215. else
  2216. eval "$3=yes"
  2217. fi
  2218. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2219. fi
  2220. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2221. fi
  2222. eval ac_res=\$$3
  2223. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2224. $as_echo "$ac_res" >&6; }
  2225. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  2226. } # ac_fn_c_check_type
  2227. # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
  2228. # --------------------------------------------
  2229. # Tries to find the compile-time value of EXPR in a program that includes
  2230. # INCLUDES, setting VAR accordingly. Returns whether the value could be
  2231. # computed
  2232. ac_fn_c_compute_int ()
  2233. {
  2234. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2235. if test "$cross_compiling" = yes; then
  2236. # Depending upon the size, compute the lo and hi bounds.
  2237. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2238. /* end confdefs.h. */
  2239. $4
  2240. int
  2241. main ()
  2242. {
  2243. static int test_array [1 - 2 * !(($2) >= 0)];
  2244. test_array [0] = 0
  2245. ;
  2246. return 0;
  2247. }
  2248. _ACEOF
  2249. if ac_fn_c_try_compile "$LINENO"; then :
  2250. ac_lo=0 ac_mid=0
  2251. while :; do
  2252. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2253. /* end confdefs.h. */
  2254. $4
  2255. int
  2256. main ()
  2257. {
  2258. static int test_array [1 - 2 * !(($2) <= $ac_mid)];
  2259. test_array [0] = 0
  2260. ;
  2261. return 0;
  2262. }
  2263. _ACEOF
  2264. if ac_fn_c_try_compile "$LINENO"; then :
  2265. ac_hi=$ac_mid; break
  2266. else
  2267. as_fn_arith $ac_mid + 1 && ac_lo=$as_val
  2268. if test $ac_lo -le $ac_mid; then
  2269. ac_lo= ac_hi=
  2270. break
  2271. fi
  2272. as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
  2273. fi
  2274. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2275. done
  2276. else
  2277. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2278. /* end confdefs.h. */
  2279. $4
  2280. int
  2281. main ()
  2282. {
  2283. static int test_array [1 - 2 * !(($2) < 0)];
  2284. test_array [0] = 0
  2285. ;
  2286. return 0;
  2287. }
  2288. _ACEOF
  2289. if ac_fn_c_try_compile "$LINENO"; then :
  2290. ac_hi=-1 ac_mid=-1
  2291. while :; do
  2292. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2293. /* end confdefs.h. */
  2294. $4
  2295. int
  2296. main ()
  2297. {
  2298. static int test_array [1 - 2 * !(($2) >= $ac_mid)];
  2299. test_array [0] = 0
  2300. ;
  2301. return 0;
  2302. }
  2303. _ACEOF
  2304. if ac_fn_c_try_compile "$LINENO"; then :
  2305. ac_lo=$ac_mid; break
  2306. else
  2307. as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
  2308. if test $ac_mid -le $ac_hi; then
  2309. ac_lo= ac_hi=
  2310. break
  2311. fi
  2312. as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
  2313. fi
  2314. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2315. done
  2316. else
  2317. ac_lo= ac_hi=
  2318. fi
  2319. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2320. fi
  2321. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2322. # Binary search between lo and hi bounds.
  2323. while test "x$ac_lo" != "x$ac_hi"; do
  2324. as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
  2325. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2326. /* end confdefs.h. */
  2327. $4
  2328. int
  2329. main ()
  2330. {
  2331. static int test_array [1 - 2 * !(($2) <= $ac_mid)];
  2332. test_array [0] = 0
  2333. ;
  2334. return 0;
  2335. }
  2336. _ACEOF
  2337. if ac_fn_c_try_compile "$LINENO"; then :
  2338. ac_hi=$ac_mid
  2339. else
  2340. as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
  2341. fi
  2342. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2343. done
  2344. case $ac_lo in #((
  2345. ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
  2346. '') ac_retval=1 ;;
  2347. esac
  2348. else
  2349. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2350. /* end confdefs.h. */
  2351. $4
  2352. static long int longval () { return $2; }
  2353. static unsigned long int ulongval () { return $2; }
  2354. #include <stdio.h>
  2355. #include <stdlib.h>
  2356. int
  2357. main ()
  2358. {
  2359. FILE *f = fopen ("conftest.val", "w");
  2360. if (! f)
  2361. return 1;
  2362. if (($2) < 0)
  2363. {
  2364. long int i = longval ();
  2365. if (i != ($2))
  2366. return 1;
  2367. fprintf (f, "%ld", i);
  2368. }
  2369. else
  2370. {
  2371. unsigned long int i = ulongval ();
  2372. if (i != ($2))
  2373. return 1;
  2374. fprintf (f, "%lu", i);
  2375. }
  2376. /* Do not output a trailing newline, as this causes \r\n confusion
  2377. on some platforms. */
  2378. return ferror (f) || fclose (f) != 0;
  2379. ;
  2380. return 0;
  2381. }
  2382. _ACEOF
  2383. if ac_fn_c_try_run "$LINENO"; then :
  2384. echo >>conftest.val; read $3 <conftest.val; ac_retval=0
  2385. else
  2386. ac_retval=1
  2387. fi
  2388. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  2389. conftest.$ac_objext conftest.beam conftest.$ac_ext
  2390. rm -f conftest.val
  2391. fi
  2392. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  2393. return $ac_retval
  2394. } # ac_fn_c_compute_int
  2395. cat >config.log <<_ACEOF
  2396. This file contains any messages produced by compilers while
  2397. running configure, to aid debugging if configure makes a mistake.
  2398. It was created by GNU Classpath $as_me 0.99.1-pre, which was
  2399. generated by GNU Autoconf 2.64. Invocation command line was
  2400. $ $0 $@
  2401. _ACEOF
  2402. exec 5>>config.log
  2403. {
  2404. cat <<_ASUNAME
  2405. ## --------- ##
  2406. ## Platform. ##
  2407. ## --------- ##
  2408. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  2409. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  2410. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  2411. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  2412. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  2413. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  2414. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  2415. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  2416. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  2417. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  2418. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  2419. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  2420. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  2421. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  2422. _ASUNAME
  2423. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2424. for as_dir in $PATH
  2425. do
  2426. IFS=$as_save_IFS
  2427. test -z "$as_dir" && as_dir=.
  2428. $as_echo "PATH: $as_dir"
  2429. done
  2430. IFS=$as_save_IFS
  2431. } >&5
  2432. cat >&5 <<_ACEOF
  2433. ## ----------- ##
  2434. ## Core tests. ##
  2435. ## ----------- ##
  2436. _ACEOF
  2437. # Keep a trace of the command line.
  2438. # Strip out --no-create and --no-recursion so they do not pile up.
  2439. # Strip out --silent because we don't want to record it for future runs.
  2440. # Also quote any args containing shell meta-characters.
  2441. # Make two passes to allow for proper duplicate-argument suppression.
  2442. ac_configure_args=
  2443. ac_configure_args0=
  2444. ac_configure_args1=
  2445. ac_must_keep_next=false
  2446. for ac_pass in 1 2
  2447. do
  2448. for ac_arg
  2449. do
  2450. case $ac_arg in
  2451. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  2452. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  2453. | -silent | --silent | --silen | --sile | --sil)
  2454. continue ;;
  2455. *\'*)
  2456. ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  2457. esac
  2458. case $ac_pass in
  2459. 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  2460. 2)
  2461. as_fn_append ac_configure_args1 " '$ac_arg'"
  2462. if test $ac_must_keep_next = true; then
  2463. ac_must_keep_next=false # Got value, back to normal.
  2464. else
  2465. case $ac_arg in
  2466. *=* | --config-cache | -C | -disable-* | --disable-* \
  2467. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  2468. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  2469. | -with-* | --with-* | -without-* | --without-* | --x)
  2470. case "$ac_configure_args0 " in
  2471. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  2472. esac
  2473. ;;
  2474. -* ) ac_must_keep_next=true ;;
  2475. esac
  2476. fi
  2477. as_fn_append ac_configure_args " '$ac_arg'"
  2478. ;;
  2479. esac
  2480. done
  2481. done
  2482. { ac_configure_args0=; unset ac_configure_args0;}
  2483. { ac_configure_args1=; unset ac_configure_args1;}
  2484. # When interrupted or exit'd, cleanup temporary files, and complete
  2485. # config.log. We remove comments because anyway the quotes in there
  2486. # would cause problems or look ugly.
  2487. # WARNING: Use '\'' to represent an apostrophe within the trap.
  2488. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  2489. trap 'exit_status=$?
  2490. # Save into config.log some information that might help in debugging.
  2491. {
  2492. echo
  2493. cat <<\_ASBOX
  2494. ## ---------------- ##
  2495. ## Cache variables. ##
  2496. ## ---------------- ##
  2497. _ASBOX
  2498. echo
  2499. # The following way of writing the cache mishandles newlines in values,
  2500. (
  2501. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  2502. eval ac_val=\$$ac_var
  2503. case $ac_val in #(
  2504. *${as_nl}*)
  2505. case $ac_var in #(
  2506. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  2507. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  2508. esac
  2509. case $ac_var in #(
  2510. _ | IFS | as_nl) ;; #(
  2511. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  2512. *) { eval $ac_var=; unset $ac_var;} ;;
  2513. esac ;;
  2514. esac
  2515. done
  2516. (set) 2>&1 |
  2517. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  2518. *${as_nl}ac_space=\ *)
  2519. sed -n \
  2520. "s/'\''/'\''\\\\'\'''\''/g;
  2521. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  2522. ;; #(
  2523. *)
  2524. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  2525. ;;
  2526. esac |
  2527. sort
  2528. )
  2529. echo
  2530. cat <<\_ASBOX
  2531. ## ----------------- ##
  2532. ## Output variables. ##
  2533. ## ----------------- ##
  2534. _ASBOX
  2535. echo
  2536. for ac_var in $ac_subst_vars
  2537. do
  2538. eval ac_val=\$$ac_var
  2539. case $ac_val in
  2540. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2541. esac
  2542. $as_echo "$ac_var='\''$ac_val'\''"
  2543. done | sort
  2544. echo
  2545. if test -n "$ac_subst_files"; then
  2546. cat <<\_ASBOX
  2547. ## ------------------- ##
  2548. ## File substitutions. ##
  2549. ## ------------------- ##
  2550. _ASBOX
  2551. echo
  2552. for ac_var in $ac_subst_files
  2553. do
  2554. eval ac_val=\$$ac_var
  2555. case $ac_val in
  2556. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2557. esac
  2558. $as_echo "$ac_var='\''$ac_val'\''"
  2559. done | sort
  2560. echo
  2561. fi
  2562. if test -s confdefs.h; then
  2563. cat <<\_ASBOX
  2564. ## ----------- ##
  2565. ## confdefs.h. ##
  2566. ## ----------- ##
  2567. _ASBOX
  2568. echo
  2569. cat confdefs.h
  2570. echo
  2571. fi
  2572. test "$ac_signal" != 0 &&
  2573. $as_echo "$as_me: caught signal $ac_signal"
  2574. $as_echo "$as_me: exit $exit_status"
  2575. } >&5
  2576. rm -f core *.core core.conftest.* &&
  2577. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  2578. exit $exit_status
  2579. ' 0
  2580. for ac_signal in 1 2 13 15; do
  2581. trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  2582. done
  2583. ac_signal=0
  2584. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  2585. rm -f -r conftest* confdefs.h
  2586. $as_echo "/* confdefs.h */" > confdefs.h
  2587. # Predefined preprocessor variables.
  2588. cat >>confdefs.h <<_ACEOF
  2589. #define PACKAGE_NAME "$PACKAGE_NAME"
  2590. _ACEOF
  2591. cat >>confdefs.h <<_ACEOF
  2592. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  2593. _ACEOF
  2594. cat >>confdefs.h <<_ACEOF
  2595. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  2596. _ACEOF
  2597. cat >>confdefs.h <<_ACEOF
  2598. #define PACKAGE_STRING "$PACKAGE_STRING"
  2599. _ACEOF
  2600. cat >>confdefs.h <<_ACEOF
  2601. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  2602. _ACEOF
  2603. cat >>confdefs.h <<_ACEOF
  2604. #define PACKAGE_URL "$PACKAGE_URL"
  2605. _ACEOF
  2606. # Let the site file select an alternate cache file if it wants to.
  2607. # Prefer an explicitly selected file to automatically selected ones.
  2608. ac_site_file1=NONE
  2609. ac_site_file2=NONE
  2610. if test -n "$CONFIG_SITE"; then
  2611. ac_site_file1=$CONFIG_SITE
  2612. elif test "x$prefix" != xNONE; then
  2613. ac_site_file1=$prefix/share/config.site
  2614. ac_site_file2=$prefix/etc/config.site
  2615. else
  2616. ac_site_file1=$ac_default_prefix/share/config.site
  2617. ac_site_file2=$ac_default_prefix/etc/config.site
  2618. fi
  2619. for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  2620. do
  2621. test "x$ac_site_file" = xNONE && continue
  2622. if test -r "$ac_site_file"; then
  2623. { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  2624. $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  2625. sed 's/^/| /' "$ac_site_file" >&5
  2626. . "$ac_site_file"
  2627. fi
  2628. done
  2629. if test -r "$cache_file"; then
  2630. # Some versions of bash will fail to source /dev/null (special
  2631. # files actually), so we avoid doing that.
  2632. if test -f "$cache_file"; then
  2633. { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  2634. $as_echo "$as_me: loading cache $cache_file" >&6;}
  2635. case $cache_file in
  2636. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  2637. *) . "./$cache_file";;
  2638. esac
  2639. fi
  2640. else
  2641. { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  2642. $as_echo "$as_me: creating cache $cache_file" >&6;}
  2643. >$cache_file
  2644. fi
  2645. # Check that the precious variables saved in the cache have kept the same
  2646. # value.
  2647. ac_cache_corrupted=false
  2648. for ac_var in $ac_precious_vars; do
  2649. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  2650. eval ac_new_set=\$ac_env_${ac_var}_set
  2651. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  2652. eval ac_new_val=\$ac_env_${ac_var}_value
  2653. case $ac_old_set,$ac_new_set in
  2654. set,)
  2655. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  2656. $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  2657. ac_cache_corrupted=: ;;
  2658. ,set)
  2659. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  2660. $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  2661. ac_cache_corrupted=: ;;
  2662. ,);;
  2663. *)
  2664. if test "x$ac_old_val" != "x$ac_new_val"; then
  2665. # differences in whitespace do not lead to failure.
  2666. ac_old_val_w=`echo x $ac_old_val`
  2667. ac_new_val_w=`echo x $ac_new_val`
  2668. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  2669. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  2670. $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  2671. ac_cache_corrupted=:
  2672. else
  2673. { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  2674. $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  2675. eval $ac_var=\$ac_old_val
  2676. fi
  2677. { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  2678. $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  2679. { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  2680. $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  2681. fi;;
  2682. esac
  2683. # Pass precious variables to config.status.
  2684. if test "$ac_new_set" = set; then
  2685. case $ac_new_val in
  2686. *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  2687. *) ac_arg=$ac_var=$ac_new_val ;;
  2688. esac
  2689. case " $ac_configure_args " in
  2690. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  2691. *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  2692. esac
  2693. fi
  2694. done
  2695. if $ac_cache_corrupted; then
  2696. { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2697. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2698. { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  2699. $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  2700. as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
  2701. fi
  2702. ## -------------------- ##
  2703. ## Main body of script. ##
  2704. ## -------------------- ##
  2705. ac_ext=c
  2706. ac_cpp='$CPP $CPPFLAGS'
  2707. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2708. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2709. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2710. ac_aux_dir=
  2711. for ac_dir in ../.. "$srcdir"/../..; do
  2712. for ac_t in install-sh install.sh shtool; do
  2713. if test -f "$ac_dir/$ac_t"; then
  2714. ac_aux_dir=$ac_dir
  2715. ac_install_sh="$ac_aux_dir/$ac_t -c"
  2716. break 2
  2717. fi
  2718. done
  2719. done
  2720. if test -z "$ac_aux_dir"; then
  2721. as_fn_error "cannot find install-sh, install.sh, or shtool in ../.. \"$srcdir\"/../.." "$LINENO" 5
  2722. fi
  2723. # These three variables are undocumented and unsupported,
  2724. # and are intended to be withdrawn in a future Autoconf release.
  2725. # They can cause serious problems if a builder's source tree is in a directory
  2726. # whose full name contains unusual characters.
  2727. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  2728. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  2729. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  2730. # Make sure we can run config.sub.
  2731. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  2732. as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
  2733. { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  2734. $as_echo_n "checking build system type... " >&6; }
  2735. if test "${ac_cv_build+set}" = set; then :
  2736. $as_echo_n "(cached) " >&6
  2737. else
  2738. ac_build_alias=$build_alias
  2739. test "x$ac_build_alias" = x &&
  2740. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  2741. test "x$ac_build_alias" = x &&
  2742. as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
  2743. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  2744. as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
  2745. fi
  2746. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  2747. $as_echo "$ac_cv_build" >&6; }
  2748. case $ac_cv_build in
  2749. *-*-*) ;;
  2750. *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
  2751. esac
  2752. build=$ac_cv_build
  2753. ac_save_IFS=$IFS; IFS='-'
  2754. set x $ac_cv_build
  2755. shift
  2756. build_cpu=$1
  2757. build_vendor=$2
  2758. shift; shift
  2759. # Remember, the first character of IFS is used to create $*,
  2760. # except with old shells:
  2761. build_os=$*
  2762. IFS=$ac_save_IFS
  2763. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  2764. { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  2765. $as_echo_n "checking host system type... " >&6; }
  2766. if test "${ac_cv_host+set}" = set; then :
  2767. $as_echo_n "(cached) " >&6
  2768. else
  2769. if test "x$host_alias" = x; then
  2770. ac_cv_host=$ac_cv_build
  2771. else
  2772. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  2773. as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
  2774. fi
  2775. fi
  2776. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  2777. $as_echo "$ac_cv_host" >&6; }
  2778. case $ac_cv_host in
  2779. *-*-*) ;;
  2780. *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
  2781. esac
  2782. host=$ac_cv_host
  2783. ac_save_IFS=$IFS; IFS='-'
  2784. set x $ac_cv_host
  2785. shift
  2786. host_cpu=$1
  2787. host_vendor=$2
  2788. shift; shift
  2789. # Remember, the first character of IFS is used to create $*,
  2790. # except with old shells:
  2791. host_os=$*
  2792. IFS=$ac_save_IFS
  2793. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  2794. { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
  2795. $as_echo_n "checking target system type... " >&6; }
  2796. if test "${ac_cv_target+set}" = set; then :
  2797. $as_echo_n "(cached) " >&6
  2798. else
  2799. if test "x$target_alias" = x; then
  2800. ac_cv_target=$ac_cv_host
  2801. else
  2802. ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
  2803. as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
  2804. fi
  2805. fi
  2806. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
  2807. $as_echo "$ac_cv_target" >&6; }
  2808. case $ac_cv_target in
  2809. *-*-*) ;;
  2810. *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
  2811. esac
  2812. target=$ac_cv_target
  2813. ac_save_IFS=$IFS; IFS='-'
  2814. set x $ac_cv_target
  2815. shift
  2816. target_cpu=$1
  2817. target_vendor=$2
  2818. shift; shift
  2819. # Remember, the first character of IFS is used to create $*,
  2820. # except with old shells:
  2821. target_os=$*
  2822. IFS=$ac_save_IFS
  2823. case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
  2824. # The aliases save the names the user supplied, while $host etc.
  2825. # will get canonicalized.
  2826. test -n "$target_alias" &&
  2827. test "$program_prefix$program_suffix$program_transform_name" = \
  2828. NONENONEs,x,x, &&
  2829. program_prefix=${target_alias}-
  2830. # Check whether --enable-java-maintainer-mode was given.
  2831. if test "${enable_java_maintainer_mode+set}" = set; then :
  2832. enableval=$enable_java_maintainer_mode;
  2833. fi
  2834. if test "$enable_java_maintainer_mode" = yes; then
  2835. JAVA_MAINTAINER_MODE_TRUE=
  2836. JAVA_MAINTAINER_MODE_FALSE='#'
  2837. else
  2838. JAVA_MAINTAINER_MODE_TRUE='#'
  2839. JAVA_MAINTAINER_MODE_FALSE=
  2840. fi
  2841. # We would like to our source tree to be readonly. However when releases or
  2842. # pre-releases are generated, the man pages need to be included as they are
  2843. # converted from the texi files via perl which we don't require end users to
  2844. # have installed.
  2845. # Therefore we have --enable-generated-files-in-srcdir to do just that.
  2846. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to place generated files in the source directory" >&5
  2847. $as_echo_n "checking whether to place generated files in the source directory... " >&6; }
  2848. # Check whether --enable-generated-files-in-srcdir was given.
  2849. if test "${enable_generated_files_in_srcdir+set}" = set; then :
  2850. enableval=$enable_generated_files_in_srcdir; generated_files_in_srcdir=$enableval
  2851. else
  2852. generated_files_in_srcdir=no
  2853. fi
  2854. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $generated_files_in_srcdir" >&5
  2855. $as_echo "$generated_files_in_srcdir" >&6; }
  2856. if test x$generated_files_in_srcdir = xyes; then
  2857. GENINSRC_TRUE=
  2858. GENINSRC_FALSE='#'
  2859. else
  2860. GENINSRC_TRUE='#'
  2861. GENINSRC_FALSE=
  2862. fi
  2863. # Find the rest of the source tree framework.
  2864. # Default to --enable-multilib
  2865. # Check whether --enable-multilib was given.
  2866. if test "${enable_multilib+set}" = set; then :
  2867. enableval=$enable_multilib; case "$enableval" in
  2868. yes) multilib=yes ;;
  2869. no) multilib=no ;;
  2870. *) as_fn_error "bad value $enableval for multilib option" "$LINENO" 5 ;;
  2871. esac
  2872. else
  2873. multilib=yes
  2874. fi
  2875. # We may get other options which we leave undocumented:
  2876. # --with-target-subdir, --with-multisrctop, --with-multisubdir
  2877. # See config-ml.in if you want the gory details.
  2878. if test "$srcdir" = "."; then
  2879. if test "$with_target_subdir" != "."; then
  2880. multi_basedir="$srcdir/$with_multisrctop../../.."
  2881. else
  2882. multi_basedir="$srcdir/$with_multisrctop../.."
  2883. fi
  2884. else
  2885. multi_basedir="$srcdir/../.."
  2886. fi
  2887. # Even if the default multilib is not a cross compilation,
  2888. # it may be that some of the other multilibs are.
  2889. if test $cross_compiling = no && test $multilib = yes \
  2890. && test "x${with_multisubdir}" != x ; then
  2891. cross_compiling=maybe
  2892. fi
  2893. ac_config_commands="$ac_config_commands default-1"
  2894. if test -z "${with_multisubdir}"; then
  2895. INSTALL_BINARIES_TRUE=
  2896. INSTALL_BINARIES_FALSE='#'
  2897. else
  2898. INSTALL_BINARIES_TRUE='#'
  2899. INSTALL_BINARIES_FALSE=
  2900. fi
  2901. if expr ${target_cpu} : '.*86' > /dev/null; then target_cpu=x86; fi
  2902. LIBVERSION="0:0:0"
  2903. case "$host_os" in
  2904. darwin*)
  2905. cp_module=""
  2906. ;;
  2907. *)
  2908. cp_module="-module"
  2909. ;;
  2910. esac
  2911. CLASSPATH_MODULE="${cp_module} -version-info ${LIBVERSION} -no-undefined"
  2912. CLASSPATH_CONVENIENCE="-no-undefined"
  2913. am__api_version='1.11'
  2914. # Find a good install program. We prefer a C program (faster),
  2915. # so one script is as good as another. But avoid the broken or
  2916. # incompatible versions:
  2917. # SysV /etc/install, /usr/sbin/install
  2918. # SunOS /usr/etc/install
  2919. # IRIX /sbin/install
  2920. # AIX /bin/install
  2921. # AmigaOS /C/install, which installs bootblocks on floppy discs
  2922. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  2923. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  2924. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  2925. # OS/2's system install, which has a completely different semantic
  2926. # ./install, which can be erroneously created by make from ./install.sh.
  2927. # Reject install programs that cannot install multiple files.
  2928. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  2929. $as_echo_n "checking for a BSD-compatible install... " >&6; }
  2930. if test -z "$INSTALL"; then
  2931. if test "${ac_cv_path_install+set}" = set; then :
  2932. $as_echo_n "(cached) " >&6
  2933. else
  2934. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2935. for as_dir in $PATH
  2936. do
  2937. IFS=$as_save_IFS
  2938. test -z "$as_dir" && as_dir=.
  2939. # Account for people who put trailing slashes in PATH elements.
  2940. case $as_dir/ in #((
  2941. ./ | .// | /[cC]/* | \
  2942. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  2943. ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  2944. /usr/ucb/* ) ;;
  2945. *)
  2946. # OSF1 and SCO ODT 3.0 have their own names for install.
  2947. # Don't use installbsd from OSF since it installs stuff as root
  2948. # by default.
  2949. for ac_prog in ginstall scoinst install; do
  2950. for ac_exec_ext in '' $ac_executable_extensions; do
  2951. if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
  2952. if test $ac_prog = install &&
  2953. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2954. # AIX install. It has an incompatible calling convention.
  2955. :
  2956. elif test $ac_prog = install &&
  2957. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2958. # program-specific install script used by HP pwplus--don't use.
  2959. :
  2960. else
  2961. rm -rf conftest.one conftest.two conftest.dir
  2962. echo one > conftest.one
  2963. echo two > conftest.two
  2964. mkdir conftest.dir
  2965. if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
  2966. test -s conftest.one && test -s conftest.two &&
  2967. test -s conftest.dir/conftest.one &&
  2968. test -s conftest.dir/conftest.two
  2969. then
  2970. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  2971. break 3
  2972. fi
  2973. fi
  2974. fi
  2975. done
  2976. done
  2977. ;;
  2978. esac
  2979. done
  2980. IFS=$as_save_IFS
  2981. rm -rf conftest.one conftest.two conftest.dir
  2982. fi
  2983. if test "${ac_cv_path_install+set}" = set; then
  2984. INSTALL=$ac_cv_path_install
  2985. else
  2986. # As a last resort, use the slow shell script. Don't cache a
  2987. # value for INSTALL within a source directory, because that will
  2988. # break other packages using the cache if that directory is
  2989. # removed, or if the value is a relative name.
  2990. INSTALL=$ac_install_sh
  2991. fi
  2992. fi
  2993. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  2994. $as_echo "$INSTALL" >&6; }
  2995. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  2996. # It thinks the first close brace ends the variable substitution.
  2997. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  2998. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  2999. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  3000. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
  3001. $as_echo_n "checking whether build environment is sane... " >&6; }
  3002. # Just in case
  3003. sleep 1
  3004. echo timestamp > conftest.file
  3005. # Reject unsafe characters in $srcdir or the absolute working directory
  3006. # name. Accept space and tab only in the latter.
  3007. am_lf='
  3008. '
  3009. case `pwd` in
  3010. *[\\\"\#\$\&\'\`$am_lf]*)
  3011. as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
  3012. esac
  3013. case $srcdir in
  3014. *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
  3015. as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
  3016. esac
  3017. # Do `set' in a subshell so we don't clobber the current shell's
  3018. # arguments. Must try -L first in case configure is actually a
  3019. # symlink; some systems play weird games with the mod time of symlinks
  3020. # (eg FreeBSD returns the mod time of the symlink's containing
  3021. # directory).
  3022. if (
  3023. set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
  3024. if test "$*" = "X"; then
  3025. # -L didn't work.
  3026. set X `ls -t "$srcdir/configure" conftest.file`
  3027. fi
  3028. rm -f conftest.file
  3029. if test "$*" != "X $srcdir/configure conftest.file" \
  3030. && test "$*" != "X conftest.file $srcdir/configure"; then
  3031. # If neither matched, then we have a broken ls. This can happen
  3032. # if, for instance, CONFIG_SHELL is bash and it inherits a
  3033. # broken ls alias from the environment. This has actually
  3034. # happened. Such a system could not be considered "sane".
  3035. as_fn_error "ls -t appears to fail. Make sure there is not a broken
  3036. alias in your environment" "$LINENO" 5
  3037. fi
  3038. test "$2" = conftest.file
  3039. )
  3040. then
  3041. # Ok.
  3042. :
  3043. else
  3044. as_fn_error "newly created file is older than distributed files!
  3045. Check your system clock" "$LINENO" 5
  3046. fi
  3047. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3048. $as_echo "yes" >&6; }
  3049. test "$program_prefix" != NONE &&
  3050. program_transform_name="s&^&$program_prefix&;$program_transform_name"
  3051. # Use a double $ so make ignores it.
  3052. test "$program_suffix" != NONE &&
  3053. program_transform_name="s&\$&$program_suffix&;$program_transform_name"
  3054. # Double any \ or $.
  3055. # By default was `s,x,x', remove it if useless.
  3056. ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
  3057. program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
  3058. # expand $ac_aux_dir to an absolute path
  3059. am_aux_dir=`cd $ac_aux_dir && pwd`
  3060. if test x"${MISSING+set}" != xset; then
  3061. case $am_aux_dir in
  3062. *\ * | *\ *)
  3063. MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
  3064. *)
  3065. MISSING="\${SHELL} $am_aux_dir/missing" ;;
  3066. esac
  3067. fi
  3068. # Use eval to expand $SHELL
  3069. if eval "$MISSING --run true"; then
  3070. am_missing_run="$MISSING --run "
  3071. else
  3072. am_missing_run=
  3073. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
  3074. $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
  3075. fi
  3076. if test x"${install_sh}" != xset; then
  3077. case $am_aux_dir in
  3078. *\ * | *\ *)
  3079. install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
  3080. *)
  3081. install_sh="\${SHELL} $am_aux_dir/install-sh"
  3082. esac
  3083. fi
  3084. # Installed binaries are usually stripped using `strip' when the user
  3085. # run `make install-strip'. However `strip' might not be the right
  3086. # tool to use in cross-compilation environments, therefore Automake
  3087. # will honor the `STRIP' environment variable to overrule this program.
  3088. if test "$cross_compiling" != no; then
  3089. if test -n "$ac_tool_prefix"; then
  3090. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  3091. set dummy ${ac_tool_prefix}strip; ac_word=$2
  3092. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3093. $as_echo_n "checking for $ac_word... " >&6; }
  3094. if test "${ac_cv_prog_STRIP+set}" = set; then :
  3095. $as_echo_n "(cached) " >&6
  3096. else
  3097. if test -n "$STRIP"; then
  3098. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  3099. else
  3100. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3101. for as_dir in $PATH
  3102. do
  3103. IFS=$as_save_IFS
  3104. test -z "$as_dir" && as_dir=.
  3105. for ac_exec_ext in '' $ac_executable_extensions; do
  3106. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3107. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  3108. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3109. break 2
  3110. fi
  3111. done
  3112. done
  3113. IFS=$as_save_IFS
  3114. fi
  3115. fi
  3116. STRIP=$ac_cv_prog_STRIP
  3117. if test -n "$STRIP"; then
  3118. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  3119. $as_echo "$STRIP" >&6; }
  3120. else
  3121. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3122. $as_echo "no" >&6; }
  3123. fi
  3124. fi
  3125. if test -z "$ac_cv_prog_STRIP"; then
  3126. ac_ct_STRIP=$STRIP
  3127. # Extract the first word of "strip", so it can be a program name with args.
  3128. set dummy strip; ac_word=$2
  3129. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3130. $as_echo_n "checking for $ac_word... " >&6; }
  3131. if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
  3132. $as_echo_n "(cached) " >&6
  3133. else
  3134. if test -n "$ac_ct_STRIP"; then
  3135. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  3136. else
  3137. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3138. for as_dir in $PATH
  3139. do
  3140. IFS=$as_save_IFS
  3141. test -z "$as_dir" && as_dir=.
  3142. for ac_exec_ext in '' $ac_executable_extensions; do
  3143. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3144. ac_cv_prog_ac_ct_STRIP="strip"
  3145. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3146. break 2
  3147. fi
  3148. done
  3149. done
  3150. IFS=$as_save_IFS
  3151. fi
  3152. fi
  3153. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  3154. if test -n "$ac_ct_STRIP"; then
  3155. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  3156. $as_echo "$ac_ct_STRIP" >&6; }
  3157. else
  3158. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3159. $as_echo "no" >&6; }
  3160. fi
  3161. if test "x$ac_ct_STRIP" = x; then
  3162. STRIP=":"
  3163. else
  3164. case $cross_compiling:$ac_tool_warned in
  3165. yes:)
  3166. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3167. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3168. ac_tool_warned=yes ;;
  3169. esac
  3170. STRIP=$ac_ct_STRIP
  3171. fi
  3172. else
  3173. STRIP="$ac_cv_prog_STRIP"
  3174. fi
  3175. fi
  3176. INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
  3177. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
  3178. $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
  3179. if test -z "$MKDIR_P"; then
  3180. if test "${ac_cv_path_mkdir+set}" = set; then :
  3181. $as_echo_n "(cached) " >&6
  3182. else
  3183. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3184. for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
  3185. do
  3186. IFS=$as_save_IFS
  3187. test -z "$as_dir" && as_dir=.
  3188. for ac_prog in mkdir gmkdir; do
  3189. for ac_exec_ext in '' $ac_executable_extensions; do
  3190. { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
  3191. case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
  3192. 'mkdir (GNU coreutils) '* | \
  3193. 'mkdir (coreutils) '* | \
  3194. 'mkdir (fileutils) '4.1*)
  3195. ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
  3196. break 3;;
  3197. esac
  3198. done
  3199. done
  3200. done
  3201. IFS=$as_save_IFS
  3202. fi
  3203. if test "${ac_cv_path_mkdir+set}" = set; then
  3204. MKDIR_P="$ac_cv_path_mkdir -p"
  3205. else
  3206. # As a last resort, use the slow shell script. Don't cache a
  3207. # value for MKDIR_P within a source directory, because that will
  3208. # break other packages using the cache if that directory is
  3209. # removed, or if the value is a relative name.
  3210. test -d ./--version && rmdir ./--version
  3211. MKDIR_P="$ac_install_sh -d"
  3212. fi
  3213. fi
  3214. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
  3215. $as_echo "$MKDIR_P" >&6; }
  3216. mkdir_p="$MKDIR_P"
  3217. case $mkdir_p in
  3218. [\\/$]* | ?:[\\/]*) ;;
  3219. */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
  3220. esac
  3221. for ac_prog in gawk mawk nawk awk
  3222. do
  3223. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3224. set dummy $ac_prog; ac_word=$2
  3225. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3226. $as_echo_n "checking for $ac_word... " >&6; }
  3227. if test "${ac_cv_prog_AWK+set}" = set; then :
  3228. $as_echo_n "(cached) " >&6
  3229. else
  3230. if test -n "$AWK"; then
  3231. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  3232. else
  3233. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3234. for as_dir in $PATH
  3235. do
  3236. IFS=$as_save_IFS
  3237. test -z "$as_dir" && as_dir=.
  3238. for ac_exec_ext in '' $ac_executable_extensions; do
  3239. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3240. ac_cv_prog_AWK="$ac_prog"
  3241. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3242. break 2
  3243. fi
  3244. done
  3245. done
  3246. IFS=$as_save_IFS
  3247. fi
  3248. fi
  3249. AWK=$ac_cv_prog_AWK
  3250. if test -n "$AWK"; then
  3251. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  3252. $as_echo "$AWK" >&6; }
  3253. else
  3254. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3255. $as_echo "no" >&6; }
  3256. fi
  3257. test -n "$AWK" && break
  3258. done
  3259. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  3260. $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  3261. set x ${MAKE-make}
  3262. ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  3263. if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
  3264. $as_echo_n "(cached) " >&6
  3265. else
  3266. cat >conftest.make <<\_ACEOF
  3267. SHELL = /bin/sh
  3268. all:
  3269. @echo '@@@%%%=$(MAKE)=@@@%%%'
  3270. _ACEOF
  3271. # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  3272. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  3273. *@@@%%%=?*=@@@%%%*)
  3274. eval ac_cv_prog_make_${ac_make}_set=yes;;
  3275. *)
  3276. eval ac_cv_prog_make_${ac_make}_set=no;;
  3277. esac
  3278. rm -f conftest.make
  3279. fi
  3280. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  3281. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3282. $as_echo "yes" >&6; }
  3283. SET_MAKE=
  3284. else
  3285. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3286. $as_echo "no" >&6; }
  3287. SET_MAKE="MAKE=${MAKE-make}"
  3288. fi
  3289. rm -rf .tst 2>/dev/null
  3290. mkdir .tst 2>/dev/null
  3291. if test -d .tst; then
  3292. am__leading_dot=.
  3293. else
  3294. am__leading_dot=_
  3295. fi
  3296. rmdir .tst 2>/dev/null
  3297. if test "`cd $srcdir && pwd`" != "`pwd`"; then
  3298. # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
  3299. # is not polluted with repeated "-I."
  3300. am__isrc=' -I$(srcdir)'
  3301. # test to see if srcdir already configured
  3302. if test -f $srcdir/config.status; then
  3303. as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
  3304. fi
  3305. fi
  3306. # test whether we have cygpath
  3307. if test -z "$CYGPATH_W"; then
  3308. if (cygpath --version) >/dev/null 2>/dev/null; then
  3309. CYGPATH_W='cygpath -w'
  3310. else
  3311. CYGPATH_W=echo
  3312. fi
  3313. fi
  3314. # Define the identity of the package.
  3315. PACKAGE='classpath'
  3316. VERSION='0.99.1-pre'
  3317. cat >>confdefs.h <<_ACEOF
  3318. #define PACKAGE "$PACKAGE"
  3319. _ACEOF
  3320. cat >>confdefs.h <<_ACEOF
  3321. #define VERSION "$VERSION"
  3322. _ACEOF
  3323. # Some tools Automake needs.
  3324. ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
  3325. AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
  3326. AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
  3327. AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
  3328. MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
  3329. # We need awk for the "check" target. The system "awk" is bad on
  3330. # some platforms.
  3331. # Always define AMTAR for backward compatibility.
  3332. AMTAR=${AMTAR-"${am_missing_run}tar"}
  3333. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to create a ustar tar archive" >&5
  3334. $as_echo_n "checking how to create a ustar tar archive... " >&6; }
  3335. # Loop over all known methods to create a tar archive until one works.
  3336. _am_tools='gnutar plaintar pax cpio none'
  3337. _am_tools=${am_cv_prog_tar_ustar-$_am_tools}
  3338. # Do not fold the above two line into one, because Tru64 sh and
  3339. # Solaris sh will not grok spaces in the rhs of `-'.
  3340. for _am_tool in $_am_tools
  3341. do
  3342. case $_am_tool in
  3343. gnutar)
  3344. for _am_tar in tar gnutar gtar;
  3345. do
  3346. { echo "$as_me:$LINENO: $_am_tar --version" >&5
  3347. ($_am_tar --version) >&5 2>&5
  3348. ac_status=$?
  3349. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3350. (exit $ac_status); } && break
  3351. done
  3352. am__tar="$_am_tar --format=ustar -chf - "'"$$tardir"'
  3353. am__tar_="$_am_tar --format=ustar -chf - "'"$tardir"'
  3354. am__untar="$_am_tar -xf -"
  3355. ;;
  3356. plaintar)
  3357. # Must skip GNU tar: if it does not support --format= it doesn't create
  3358. # ustar tarball either.
  3359. (tar --version) >/dev/null 2>&1 && continue
  3360. am__tar='tar chf - "$$tardir"'
  3361. am__tar_='tar chf - "$tardir"'
  3362. am__untar='tar xf -'
  3363. ;;
  3364. pax)
  3365. am__tar='pax -L -x ustar -w "$$tardir"'
  3366. am__tar_='pax -L -x ustar -w "$tardir"'
  3367. am__untar='pax -r'
  3368. ;;
  3369. cpio)
  3370. am__tar='find "$$tardir" -print | cpio -o -H ustar -L'
  3371. am__tar_='find "$tardir" -print | cpio -o -H ustar -L'
  3372. am__untar='cpio -i -H ustar -d'
  3373. ;;
  3374. none)
  3375. am__tar=false
  3376. am__tar_=false
  3377. am__untar=false
  3378. ;;
  3379. esac
  3380. # If the value was cached, stop now. We just wanted to have am__tar
  3381. # and am__untar set.
  3382. test -n "${am_cv_prog_tar_ustar}" && break
  3383. # tar/untar a dummy directory, and stop if the command works
  3384. rm -rf conftest.dir
  3385. mkdir conftest.dir
  3386. echo GrepMe > conftest.dir/file
  3387. { echo "$as_me:$LINENO: tardir=conftest.dir && eval $am__tar_ >conftest.tar" >&5
  3388. (tardir=conftest.dir && eval $am__tar_ >conftest.tar) >&5 2>&5
  3389. ac_status=$?
  3390. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3391. (exit $ac_status); }
  3392. rm -rf conftest.dir
  3393. if test -s conftest.tar; then
  3394. { echo "$as_me:$LINENO: $am__untar <conftest.tar" >&5
  3395. ($am__untar <conftest.tar) >&5 2>&5
  3396. ac_status=$?
  3397. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3398. (exit $ac_status); }
  3399. grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
  3400. fi
  3401. done
  3402. rm -rf conftest.dir
  3403. if test "${am_cv_prog_tar_ustar+set}" = set; then :
  3404. $as_echo_n "(cached) " >&6
  3405. else
  3406. am_cv_prog_tar_ustar=$_am_tool
  3407. fi
  3408. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_tar_ustar" >&5
  3409. $as_echo "$am_cv_prog_tar_ustar" >&6; }
  3410. ac_config_headers="$ac_config_headers include/config.h"
  3411. # Check whether --enable-collections was given.
  3412. if test "${enable_collections+set}" = set; then :
  3413. enableval=$enable_collections; case x"${enableval}" in
  3414. xyes) COMPILE_COLLECTIONS=yes; COLLECTIONS_PREFIX="\"gnu/java/util/collections\"" ;;
  3415. xno) COMPILE_COLLECTIONS=no ;;
  3416. x) COMPILE_COLLECTIONS=yes; COLLECTIONS_PREFIX="\"gnu/java/util/collections\"" ;;
  3417. *) COMPILE_COLLECTIONS=yes; COLLECTIONS_PREFIX="\"${enableval}\"" ;;
  3418. esac
  3419. else
  3420. COMPILE_COLLECTIONS=no
  3421. fi
  3422. if test "x${COMPILE_COLLECTIONS}" = xyes; then
  3423. CREATE_COLLECTIONS_TRUE=
  3424. CREATE_COLLECTIONS_FALSE='#'
  3425. else
  3426. CREATE_COLLECTIONS_TRUE='#'
  3427. CREATE_COLLECTIONS_FALSE=
  3428. fi
  3429. # Check whether --enable-jni was given.
  3430. if test "${enable_jni+set}" = set; then :
  3431. enableval=$enable_jni; case "${enableval}" in
  3432. yes) COMPILE_JNI=yes; COMPILE_JAVA=yes ;;
  3433. no) COMPILE_JNI=no ;;
  3434. *) COMPILE_JNI=yes; COMPILE_JAVA=yes ;;
  3435. esac
  3436. else
  3437. COMPILE_JNI=yes
  3438. fi
  3439. if test "x${COMPILE_JNI}" = xyes; then
  3440. CREATE_JNI_LIBRARIES_TRUE=
  3441. CREATE_JNI_LIBRARIES_FALSE='#'
  3442. else
  3443. CREATE_JNI_LIBRARIES_TRUE='#'
  3444. CREATE_JNI_LIBRARIES_FALSE=
  3445. fi
  3446. # Check whether --enable-core-jni was given.
  3447. if test "${enable_core_jni+set}" = set; then :
  3448. enableval=$enable_core_jni; case "${enableval}" in
  3449. yes) COMPILE_CORE_JNI=yes; COMPILE_JAVA=yes ;;
  3450. no) COMPILE_CORE_JNI=no ;;
  3451. *) COMPILE_CORE_JNI=yes; COMPILE_JAVA=yes ;;
  3452. esac
  3453. else
  3454. COMPILE_CORE_JNI=yes
  3455. fi
  3456. if test "x${COMPILE_CORE_JNI}" = xyes; then
  3457. CREATE_CORE_JNI_LIBRARIES_TRUE=
  3458. CREATE_CORE_JNI_LIBRARIES_FALSE='#'
  3459. else
  3460. CREATE_CORE_JNI_LIBRARIES_TRUE='#'
  3461. CREATE_CORE_JNI_LIBRARIES_FALSE=
  3462. fi
  3463. # Check whether --enable-default-preferences-peer was given.
  3464. if test "${enable_default_preferences_peer+set}" = set; then :
  3465. enableval=$enable_default_preferences_peer; case "${enableval}" in
  3466. file) DEFAULT_PREFS_PEER=gnu.java.util.prefs.FileBasedFactory ;;
  3467. gconf|yes|true) DEFAULT_PREFS_PEER=gnu.java.util.prefs.GConfBasedFactory ;;
  3468. memory) DEFAULT_PREFS_PEER=gnu.java.util.prefs.MemoryBasedFactory ;;
  3469. no|false) as_fn_error "bad value '${enableval}' for --enable-default-preferences-peer" "$LINENO" 5 ;;
  3470. *) DEFAULT_PREFS_PEER=${enableval} ;;
  3471. esac
  3472. else
  3473. DEFAULT_PREFS_PEER=gnu.java.util.prefs.GConfBasedFactory
  3474. fi
  3475. # Check whether --enable-gconf-peer was given.
  3476. if test "${enable_gconf_peer+set}" = set; then :
  3477. enableval=$enable_gconf_peer; case "${enableval}" in
  3478. yes) COMPILE_GCONF_PEER=yes ;;
  3479. no) COMPILE_GCONF_PEER=no ;;
  3480. *) COMPILE_GCONF_PEER=yes ;;
  3481. esac
  3482. else
  3483. COMPILE_GCONF_PEER=yes
  3484. fi
  3485. if test "x${COMPILE_GCONF_PEER}" = xyes; then
  3486. CREATE_GCONF_PEER_LIBRARIES_TRUE=
  3487. CREATE_GCONF_PEER_LIBRARIES_FALSE='#'
  3488. else
  3489. CREATE_GCONF_PEER_LIBRARIES_TRUE='#'
  3490. CREATE_GCONF_PEER_LIBRARIES_FALSE=
  3491. fi
  3492. # Check whether --enable-gconf-peers was given.
  3493. if test "${enable_gconf_peers+set}" = set; then :
  3494. enableval=$enable_gconf_peers; as_fn_error "No --enable-gconf-peers (or --disable-gconf-peers) option; you want --enable-gconf-peer" "$LINENO" 5
  3495. fi
  3496. # Check whether --enable-gstreamer-peer was given.
  3497. if test "${enable_gstreamer_peer+set}" = set; then :
  3498. enableval=$enable_gstreamer_peer; case "${enableval}" in
  3499. yes) COMPILE_GSTREAMER_PEER=yes ;;
  3500. no) COMPILE_GSTREAMER_PEER=no ;;
  3501. *) COMPILE_GSTREAMER_PEER=default ;;
  3502. esac
  3503. else
  3504. COMPILE_GSTREAMER_PEER=default
  3505. fi
  3506. if test "x${COMPILE_GSTREAMER_PEER}" = xyes; then
  3507. CREATE_GSTREAMER_PEER_LIBRARIES_TRUE=
  3508. CREATE_GSTREAMER_PEER_LIBRARIES_FALSE='#'
  3509. else
  3510. CREATE_GSTREAMER_PEER_LIBRARIES_TRUE='#'
  3511. CREATE_GSTREAMER_PEER_LIBRARIES_FALSE=
  3512. fi
  3513. # Check whether --enable-gstreamer-peers was given.
  3514. if test "${enable_gstreamer_peers+set}" = set; then :
  3515. enableval=$enable_gstreamer_peers; as_fn_error "No --enable-gstreamer-peers (or --disable-gstreamer-peers) option; you want --enable-gstreamer-peer" "$LINENO" 5
  3516. fi
  3517. # Check whether --enable-Werror was given.
  3518. if test "${enable_Werror+set}" = set; then :
  3519. enableval=$enable_Werror; case "${enableval}" in
  3520. yes) ENABLE_WERROR=yes ;;
  3521. no) ENABLE_WERROR=no ;;
  3522. *) ENABLE_WERROR=no ;;
  3523. esac
  3524. else
  3525. ENABLE_WERROR=no
  3526. fi
  3527. # Check whether --enable-default-toolkit was given.
  3528. if test "${enable_default_toolkit+set}" = set; then :
  3529. enableval=$enable_default_toolkit;
  3530. fi
  3531. default_toolkit=$enable_default_toolkit
  3532. if test "$default_toolkit" = ""; then
  3533. default_toolkit=gnu.java.awt.peer.gtk.GtkToolkit
  3534. fi
  3535. # Check whether --enable-xmlj was given.
  3536. if test "${enable_xmlj+set}" = set; then :
  3537. enableval=$enable_xmlj; case "${enableval}" in
  3538. yes) COMPILE_XMLJ=yes ;;
  3539. no) COMPILE_XMLJ=no ;;
  3540. *) COMPILE_XMLJ=no ;;
  3541. esac
  3542. else
  3543. COMPILE_XMLJ=no
  3544. fi
  3545. if test "x${COMPILE_XMLJ}" = xyes; then
  3546. CREATE_XMLJ_LIBRARY_TRUE=
  3547. CREATE_XMLJ_LIBRARY_FALSE='#'
  3548. else
  3549. CREATE_XMLJ_LIBRARY_TRUE='#'
  3550. CREATE_XMLJ_LIBRARY_FALSE=
  3551. fi
  3552. DEPDIR="${am__leading_dot}deps"
  3553. ac_config_commands="$ac_config_commands depfiles"
  3554. am_make=${MAKE-make}
  3555. cat > confinc << 'END'
  3556. am__doit:
  3557. @echo this is the am__doit target
  3558. .PHONY: am__doit
  3559. END
  3560. # If we don't find an include directive, just comment out the code.
  3561. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
  3562. $as_echo_n "checking for style of include used by $am_make... " >&6; }
  3563. am__include="#"
  3564. am__quote=
  3565. _am_result=none
  3566. # First try GNU make style include.
  3567. echo "include confinc" > confmf
  3568. # Ignore all kinds of additional output from `make'.
  3569. case `$am_make -s -f confmf 2> /dev/null` in #(
  3570. *the\ am__doit\ target*)
  3571. am__include=include
  3572. am__quote=
  3573. _am_result=GNU
  3574. ;;
  3575. esac
  3576. # Now try BSD make style include.
  3577. if test "$am__include" = "#"; then
  3578. echo '.include "confinc"' > confmf
  3579. case `$am_make -s -f confmf 2> /dev/null` in #(
  3580. *the\ am__doit\ target*)
  3581. am__include=.include
  3582. am__quote="\""
  3583. _am_result=BSD
  3584. ;;
  3585. esac
  3586. fi
  3587. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
  3588. $as_echo "$_am_result" >&6; }
  3589. rm -f confinc confmf
  3590. # Check whether --enable-dependency-tracking was given.
  3591. if test "${enable_dependency_tracking+set}" = set; then :
  3592. enableval=$enable_dependency_tracking;
  3593. fi
  3594. if test "x$enable_dependency_tracking" != xno; then
  3595. am_depcomp="$ac_aux_dir/depcomp"
  3596. AMDEPBACKSLASH='\'
  3597. fi
  3598. if test "x$enable_dependency_tracking" != xno; then
  3599. AMDEP_TRUE=
  3600. AMDEP_FALSE='#'
  3601. else
  3602. AMDEP_TRUE='#'
  3603. AMDEP_FALSE=
  3604. fi
  3605. ac_ext=c
  3606. ac_cpp='$CPP $CPPFLAGS'
  3607. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3608. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3609. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3610. if test -n "$ac_tool_prefix"; then
  3611. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  3612. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  3613. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3614. $as_echo_n "checking for $ac_word... " >&6; }
  3615. if test "${ac_cv_prog_CC+set}" = set; then :
  3616. $as_echo_n "(cached) " >&6
  3617. else
  3618. if test -n "$CC"; then
  3619. ac_cv_prog_CC="$CC" # Let the user override the test.
  3620. else
  3621. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3622. for as_dir in $PATH
  3623. do
  3624. IFS=$as_save_IFS
  3625. test -z "$as_dir" && as_dir=.
  3626. for ac_exec_ext in '' $ac_executable_extensions; do
  3627. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3628. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  3629. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3630. break 2
  3631. fi
  3632. done
  3633. done
  3634. IFS=$as_save_IFS
  3635. fi
  3636. fi
  3637. CC=$ac_cv_prog_CC
  3638. if test -n "$CC"; then
  3639. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3640. $as_echo "$CC" >&6; }
  3641. else
  3642. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3643. $as_echo "no" >&6; }
  3644. fi
  3645. fi
  3646. if test -z "$ac_cv_prog_CC"; then
  3647. ac_ct_CC=$CC
  3648. # Extract the first word of "gcc", so it can be a program name with args.
  3649. set dummy gcc; ac_word=$2
  3650. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3651. $as_echo_n "checking for $ac_word... " >&6; }
  3652. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
  3653. $as_echo_n "(cached) " >&6
  3654. else
  3655. if test -n "$ac_ct_CC"; then
  3656. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3657. else
  3658. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3659. for as_dir in $PATH
  3660. do
  3661. IFS=$as_save_IFS
  3662. test -z "$as_dir" && as_dir=.
  3663. for ac_exec_ext in '' $ac_executable_extensions; do
  3664. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3665. ac_cv_prog_ac_ct_CC="gcc"
  3666. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3667. break 2
  3668. fi
  3669. done
  3670. done
  3671. IFS=$as_save_IFS
  3672. fi
  3673. fi
  3674. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3675. if test -n "$ac_ct_CC"; then
  3676. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3677. $as_echo "$ac_ct_CC" >&6; }
  3678. else
  3679. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3680. $as_echo "no" >&6; }
  3681. fi
  3682. if test "x$ac_ct_CC" = x; then
  3683. CC=""
  3684. else
  3685. case $cross_compiling:$ac_tool_warned in
  3686. yes:)
  3687. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3688. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3689. ac_tool_warned=yes ;;
  3690. esac
  3691. CC=$ac_ct_CC
  3692. fi
  3693. else
  3694. CC="$ac_cv_prog_CC"
  3695. fi
  3696. if test -z "$CC"; then
  3697. if test -n "$ac_tool_prefix"; then
  3698. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  3699. set dummy ${ac_tool_prefix}cc; ac_word=$2
  3700. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3701. $as_echo_n "checking for $ac_word... " >&6; }
  3702. if test "${ac_cv_prog_CC+set}" = set; then :
  3703. $as_echo_n "(cached) " >&6
  3704. else
  3705. if test -n "$CC"; then
  3706. ac_cv_prog_CC="$CC" # Let the user override the test.
  3707. else
  3708. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3709. for as_dir in $PATH
  3710. do
  3711. IFS=$as_save_IFS
  3712. test -z "$as_dir" && as_dir=.
  3713. for ac_exec_ext in '' $ac_executable_extensions; do
  3714. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3715. ac_cv_prog_CC="${ac_tool_prefix}cc"
  3716. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3717. break 2
  3718. fi
  3719. done
  3720. done
  3721. IFS=$as_save_IFS
  3722. fi
  3723. fi
  3724. CC=$ac_cv_prog_CC
  3725. if test -n "$CC"; then
  3726. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3727. $as_echo "$CC" >&6; }
  3728. else
  3729. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3730. $as_echo "no" >&6; }
  3731. fi
  3732. fi
  3733. fi
  3734. if test -z "$CC"; then
  3735. # Extract the first word of "cc", so it can be a program name with args.
  3736. set dummy cc; ac_word=$2
  3737. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3738. $as_echo_n "checking for $ac_word... " >&6; }
  3739. if test "${ac_cv_prog_CC+set}" = set; then :
  3740. $as_echo_n "(cached) " >&6
  3741. else
  3742. if test -n "$CC"; then
  3743. ac_cv_prog_CC="$CC" # Let the user override the test.
  3744. else
  3745. ac_prog_rejected=no
  3746. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3747. for as_dir in $PATH
  3748. do
  3749. IFS=$as_save_IFS
  3750. test -z "$as_dir" && as_dir=.
  3751. for ac_exec_ext in '' $ac_executable_extensions; do
  3752. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3753. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  3754. ac_prog_rejected=yes
  3755. continue
  3756. fi
  3757. ac_cv_prog_CC="cc"
  3758. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3759. break 2
  3760. fi
  3761. done
  3762. done
  3763. IFS=$as_save_IFS
  3764. if test $ac_prog_rejected = yes; then
  3765. # We found a bogon in the path, so make sure we never use it.
  3766. set dummy $ac_cv_prog_CC
  3767. shift
  3768. if test $# != 0; then
  3769. # We chose a different compiler from the bogus one.
  3770. # However, it has the same basename, so the bogon will be chosen
  3771. # first if we set CC to just the basename; use the full file name.
  3772. shift
  3773. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  3774. fi
  3775. fi
  3776. fi
  3777. fi
  3778. CC=$ac_cv_prog_CC
  3779. if test -n "$CC"; then
  3780. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3781. $as_echo "$CC" >&6; }
  3782. else
  3783. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3784. $as_echo "no" >&6; }
  3785. fi
  3786. fi
  3787. if test -z "$CC"; then
  3788. if test -n "$ac_tool_prefix"; then
  3789. for ac_prog in cl.exe
  3790. do
  3791. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  3792. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  3793. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3794. $as_echo_n "checking for $ac_word... " >&6; }
  3795. if test "${ac_cv_prog_CC+set}" = set; then :
  3796. $as_echo_n "(cached) " >&6
  3797. else
  3798. if test -n "$CC"; then
  3799. ac_cv_prog_CC="$CC" # Let the user override the test.
  3800. else
  3801. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3802. for as_dir in $PATH
  3803. do
  3804. IFS=$as_save_IFS
  3805. test -z "$as_dir" && as_dir=.
  3806. for ac_exec_ext in '' $ac_executable_extensions; do
  3807. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3808. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  3809. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3810. break 2
  3811. fi
  3812. done
  3813. done
  3814. IFS=$as_save_IFS
  3815. fi
  3816. fi
  3817. CC=$ac_cv_prog_CC
  3818. if test -n "$CC"; then
  3819. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3820. $as_echo "$CC" >&6; }
  3821. else
  3822. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3823. $as_echo "no" >&6; }
  3824. fi
  3825. test -n "$CC" && break
  3826. done
  3827. fi
  3828. if test -z "$CC"; then
  3829. ac_ct_CC=$CC
  3830. for ac_prog in cl.exe
  3831. do
  3832. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3833. set dummy $ac_prog; ac_word=$2
  3834. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3835. $as_echo_n "checking for $ac_word... " >&6; }
  3836. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
  3837. $as_echo_n "(cached) " >&6
  3838. else
  3839. if test -n "$ac_ct_CC"; then
  3840. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3841. else
  3842. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3843. for as_dir in $PATH
  3844. do
  3845. IFS=$as_save_IFS
  3846. test -z "$as_dir" && as_dir=.
  3847. for ac_exec_ext in '' $ac_executable_extensions; do
  3848. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3849. ac_cv_prog_ac_ct_CC="$ac_prog"
  3850. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3851. break 2
  3852. fi
  3853. done
  3854. done
  3855. IFS=$as_save_IFS
  3856. fi
  3857. fi
  3858. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3859. if test -n "$ac_ct_CC"; then
  3860. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3861. $as_echo "$ac_ct_CC" >&6; }
  3862. else
  3863. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3864. $as_echo "no" >&6; }
  3865. fi
  3866. test -n "$ac_ct_CC" && break
  3867. done
  3868. if test "x$ac_ct_CC" = x; then
  3869. CC=""
  3870. else
  3871. case $cross_compiling:$ac_tool_warned in
  3872. yes:)
  3873. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3874. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3875. ac_tool_warned=yes ;;
  3876. esac
  3877. CC=$ac_ct_CC
  3878. fi
  3879. fi
  3880. fi
  3881. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3882. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3883. as_fn_error "no acceptable C compiler found in \$PATH
  3884. See \`config.log' for more details." "$LINENO" 5; }
  3885. # Provide some information about the compiler.
  3886. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  3887. set X $ac_compile
  3888. ac_compiler=$2
  3889. for ac_option in --version -v -V -qversion; do
  3890. { { ac_try="$ac_compiler $ac_option >&5"
  3891. case "(($ac_try" in
  3892. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3893. *) ac_try_echo=$ac_try;;
  3894. esac
  3895. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3896. $as_echo "$ac_try_echo"; } >&5
  3897. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  3898. ac_status=$?
  3899. if test -s conftest.err; then
  3900. sed '10a\
  3901. ... rest of stderr output deleted ...
  3902. 10q' conftest.err >conftest.er1
  3903. cat conftest.er1 >&5
  3904. rm -f conftest.er1 conftest.err
  3905. fi
  3906. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3907. test $ac_status = 0; }
  3908. done
  3909. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3910. /* end confdefs.h. */
  3911. int
  3912. main ()
  3913. {
  3914. ;
  3915. return 0;
  3916. }
  3917. _ACEOF
  3918. # FIXME: Cleanup?
  3919. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  3920. (eval $ac_link) 2>&5
  3921. ac_status=$?
  3922. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3923. test $ac_status = 0; }; then :
  3924. gcc_no_link=no
  3925. else
  3926. gcc_no_link=yes
  3927. fi
  3928. if test x$gcc_no_link = xyes; then
  3929. # Setting cross_compile will disable run tests; it will
  3930. # also disable AC_CHECK_FILE but that's generally
  3931. # correct if we can't link.
  3932. cross_compiling=yes
  3933. EXEEXT=
  3934. else
  3935. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3936. /* end confdefs.h. */
  3937. int
  3938. main ()
  3939. {
  3940. ;
  3941. return 0;
  3942. }
  3943. _ACEOF
  3944. ac_clean_files_save=$ac_clean_files
  3945. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
  3946. # Try to create an executable without -o first, disregard a.out.
  3947. # It will help us diagnose broken compilers, and finding out an intuition
  3948. # of exeext.
  3949. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
  3950. $as_echo_n "checking for C compiler default output file name... " >&6; }
  3951. ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  3952. # The possible output files:
  3953. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  3954. ac_rmfiles=
  3955. for ac_file in $ac_files
  3956. do
  3957. case $ac_file in
  3958. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3959. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  3960. esac
  3961. done
  3962. rm -f $ac_rmfiles
  3963. if { { ac_try="$ac_link_default"
  3964. case "(($ac_try" in
  3965. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3966. *) ac_try_echo=$ac_try;;
  3967. esac
  3968. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3969. $as_echo "$ac_try_echo"; } >&5
  3970. (eval "$ac_link_default") 2>&5
  3971. ac_status=$?
  3972. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3973. test $ac_status = 0; }; then :
  3974. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  3975. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  3976. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  3977. # so that the user can short-circuit this test for compilers unknown to
  3978. # Autoconf.
  3979. for ac_file in $ac_files ''
  3980. do
  3981. test -f "$ac_file" || continue
  3982. case $ac_file in
  3983. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  3984. ;;
  3985. [ab].out )
  3986. # We found the default executable, but exeext='' is most
  3987. # certainly right.
  3988. break;;
  3989. *.* )
  3990. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  3991. then :; else
  3992. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3993. fi
  3994. # We set ac_cv_exeext here because the later test for it is not
  3995. # safe: cross compilers may not add the suffix if given an `-o'
  3996. # argument, so we may need to know it at that point already.
  3997. # Even if this section looks crufty: it has the advantage of
  3998. # actually working.
  3999. break;;
  4000. * )
  4001. break;;
  4002. esac
  4003. done
  4004. test "$ac_cv_exeext" = no && ac_cv_exeext=
  4005. else
  4006. ac_file=''
  4007. fi
  4008. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  4009. $as_echo "$ac_file" >&6; }
  4010. if test -z "$ac_file"; then :
  4011. $as_echo "$as_me: failed program was:" >&5
  4012. sed 's/^/| /' conftest.$ac_ext >&5
  4013. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  4014. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  4015. { as_fn_set_status 77
  4016. as_fn_error "C compiler cannot create executables
  4017. See \`config.log' for more details." "$LINENO" 5; }; }
  4018. fi
  4019. ac_exeext=$ac_cv_exeext
  4020. # Check that the compiler produces executables we can run. If not, either
  4021. # the compiler is broken, or we cross compile.
  4022. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
  4023. $as_echo_n "checking whether the C compiler works... " >&6; }
  4024. # If not cross compiling, check that we can run a simple program.
  4025. if test "$cross_compiling" != yes; then
  4026. if { ac_try='./$ac_file'
  4027. { { case "(($ac_try" in
  4028. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4029. *) ac_try_echo=$ac_try;;
  4030. esac
  4031. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  4032. $as_echo "$ac_try_echo"; } >&5
  4033. (eval "$ac_try") 2>&5
  4034. ac_status=$?
  4035. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4036. test $ac_status = 0; }; }; then
  4037. cross_compiling=no
  4038. else
  4039. if test "$cross_compiling" = maybe; then
  4040. cross_compiling=yes
  4041. else
  4042. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  4043. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  4044. as_fn_error "cannot run C compiled programs.
  4045. If you meant to cross compile, use \`--host'.
  4046. See \`config.log' for more details." "$LINENO" 5; }
  4047. fi
  4048. fi
  4049. fi
  4050. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4051. $as_echo "yes" >&6; }
  4052. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
  4053. ac_clean_files=$ac_clean_files_save
  4054. # Check that the compiler produces executables we can run. If not, either
  4055. # the compiler is broken, or we cross compile.
  4056. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  4057. $as_echo_n "checking whether we are cross compiling... " >&6; }
  4058. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  4059. $as_echo "$cross_compiling" >&6; }
  4060. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  4061. $as_echo_n "checking for suffix of executables... " >&6; }
  4062. if { { ac_try="$ac_link"
  4063. case "(($ac_try" in
  4064. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4065. *) ac_try_echo=$ac_try;;
  4066. esac
  4067. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  4068. $as_echo "$ac_try_echo"; } >&5
  4069. (eval "$ac_link") 2>&5
  4070. ac_status=$?
  4071. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4072. test $ac_status = 0; }; then :
  4073. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  4074. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  4075. # work properly (i.e., refer to `conftest.exe'), while it won't with
  4076. # `rm'.
  4077. for ac_file in conftest.exe conftest conftest.*; do
  4078. test -f "$ac_file" || continue
  4079. case $ac_file in
  4080. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  4081. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  4082. break;;
  4083. * ) break;;
  4084. esac
  4085. done
  4086. else
  4087. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  4088. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  4089. as_fn_error "cannot compute suffix of executables: cannot compile and link
  4090. See \`config.log' for more details." "$LINENO" 5; }
  4091. fi
  4092. rm -f conftest$ac_cv_exeext
  4093. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  4094. $as_echo "$ac_cv_exeext" >&6; }
  4095. rm -f conftest.$ac_ext
  4096. EXEEXT=$ac_cv_exeext
  4097. ac_exeext=$EXEEXT
  4098. fi
  4099. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  4100. $as_echo_n "checking for suffix of object files... " >&6; }
  4101. if test "${ac_cv_objext+set}" = set; then :
  4102. $as_echo_n "(cached) " >&6
  4103. else
  4104. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4105. /* end confdefs.h. */
  4106. int
  4107. main ()
  4108. {
  4109. ;
  4110. return 0;
  4111. }
  4112. _ACEOF
  4113. rm -f conftest.o conftest.obj
  4114. if { { ac_try="$ac_compile"
  4115. case "(($ac_try" in
  4116. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4117. *) ac_try_echo=$ac_try;;
  4118. esac
  4119. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  4120. $as_echo "$ac_try_echo"; } >&5
  4121. (eval "$ac_compile") 2>&5
  4122. ac_status=$?
  4123. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4124. test $ac_status = 0; }; then :
  4125. for ac_file in conftest.o conftest.obj conftest.*; do
  4126. test -f "$ac_file" || continue;
  4127. case $ac_file in
  4128. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  4129. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  4130. break;;
  4131. esac
  4132. done
  4133. else
  4134. $as_echo "$as_me: failed program was:" >&5
  4135. sed 's/^/| /' conftest.$ac_ext >&5
  4136. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  4137. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  4138. as_fn_error "cannot compute suffix of object files: cannot compile
  4139. See \`config.log' for more details." "$LINENO" 5; }
  4140. fi
  4141. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  4142. fi
  4143. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  4144. $as_echo "$ac_cv_objext" >&6; }
  4145. OBJEXT=$ac_cv_objext
  4146. ac_objext=$OBJEXT
  4147. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  4148. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  4149. if test "${ac_cv_c_compiler_gnu+set}" = set; then :
  4150. $as_echo_n "(cached) " >&6
  4151. else
  4152. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4153. /* end confdefs.h. */
  4154. int
  4155. main ()
  4156. {
  4157. #ifndef __GNUC__
  4158. choke me
  4159. #endif
  4160. ;
  4161. return 0;
  4162. }
  4163. _ACEOF
  4164. if ac_fn_c_try_compile "$LINENO"; then :
  4165. ac_compiler_gnu=yes
  4166. else
  4167. ac_compiler_gnu=no
  4168. fi
  4169. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4170. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  4171. fi
  4172. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  4173. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  4174. if test $ac_compiler_gnu = yes; then
  4175. GCC=yes
  4176. else
  4177. GCC=
  4178. fi
  4179. ac_test_CFLAGS=${CFLAGS+set}
  4180. ac_save_CFLAGS=$CFLAGS
  4181. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  4182. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  4183. if test "${ac_cv_prog_cc_g+set}" = set; then :
  4184. $as_echo_n "(cached) " >&6
  4185. else
  4186. ac_save_c_werror_flag=$ac_c_werror_flag
  4187. ac_c_werror_flag=yes
  4188. ac_cv_prog_cc_g=no
  4189. CFLAGS="-g"
  4190. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4191. /* end confdefs.h. */
  4192. int
  4193. main ()
  4194. {
  4195. ;
  4196. return 0;
  4197. }
  4198. _ACEOF
  4199. if ac_fn_c_try_compile "$LINENO"; then :
  4200. ac_cv_prog_cc_g=yes
  4201. else
  4202. CFLAGS=""
  4203. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4204. /* end confdefs.h. */
  4205. int
  4206. main ()
  4207. {
  4208. ;
  4209. return 0;
  4210. }
  4211. _ACEOF
  4212. if ac_fn_c_try_compile "$LINENO"; then :
  4213. else
  4214. ac_c_werror_flag=$ac_save_c_werror_flag
  4215. CFLAGS="-g"
  4216. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4217. /* end confdefs.h. */
  4218. int
  4219. main ()
  4220. {
  4221. ;
  4222. return 0;
  4223. }
  4224. _ACEOF
  4225. if ac_fn_c_try_compile "$LINENO"; then :
  4226. ac_cv_prog_cc_g=yes
  4227. fi
  4228. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4229. fi
  4230. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4231. fi
  4232. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4233. ac_c_werror_flag=$ac_save_c_werror_flag
  4234. fi
  4235. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  4236. $as_echo "$ac_cv_prog_cc_g" >&6; }
  4237. if test "$ac_test_CFLAGS" = set; then
  4238. CFLAGS=$ac_save_CFLAGS
  4239. elif test $ac_cv_prog_cc_g = yes; then
  4240. if test "$GCC" = yes; then
  4241. CFLAGS="-g -O2"
  4242. else
  4243. CFLAGS="-g"
  4244. fi
  4245. else
  4246. if test "$GCC" = yes; then
  4247. CFLAGS="-O2"
  4248. else
  4249. CFLAGS=
  4250. fi
  4251. fi
  4252. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  4253. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  4254. if test "${ac_cv_prog_cc_c89+set}" = set; then :
  4255. $as_echo_n "(cached) " >&6
  4256. else
  4257. ac_cv_prog_cc_c89=no
  4258. ac_save_CC=$CC
  4259. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4260. /* end confdefs.h. */
  4261. #include <stdarg.h>
  4262. #include <stdio.h>
  4263. #include <sys/types.h>
  4264. #include <sys/stat.h>
  4265. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  4266. struct buf { int x; };
  4267. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  4268. static char *e (p, i)
  4269. char **p;
  4270. int i;
  4271. {
  4272. return p[i];
  4273. }
  4274. static char *f (char * (*g) (char **, int), char **p, ...)
  4275. {
  4276. char *s;
  4277. va_list v;
  4278. va_start (v,p);
  4279. s = g (p, va_arg (v,int));
  4280. va_end (v);
  4281. return s;
  4282. }
  4283. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  4284. function prototypes and stuff, but not '\xHH' hex character constants.
  4285. These don't provoke an error unfortunately, instead are silently treated
  4286. as 'x'. The following induces an error, until -std is added to get
  4287. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  4288. array size at least. It's necessary to write '\x00'==0 to get something
  4289. that's true only with -std. */
  4290. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  4291. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  4292. inside strings and character constants. */
  4293. #define FOO(x) 'x'
  4294. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  4295. int test (int i, double x);
  4296. struct s1 {int (*f) (int a);};
  4297. struct s2 {int (*f) (double a);};
  4298. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  4299. int argc;
  4300. char **argv;
  4301. int
  4302. main ()
  4303. {
  4304. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  4305. ;
  4306. return 0;
  4307. }
  4308. _ACEOF
  4309. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  4310. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  4311. do
  4312. CC="$ac_save_CC $ac_arg"
  4313. if ac_fn_c_try_compile "$LINENO"; then :
  4314. ac_cv_prog_cc_c89=$ac_arg
  4315. fi
  4316. rm -f core conftest.err conftest.$ac_objext
  4317. test "x$ac_cv_prog_cc_c89" != "xno" && break
  4318. done
  4319. rm -f conftest.$ac_ext
  4320. CC=$ac_save_CC
  4321. fi
  4322. # AC_CACHE_VAL
  4323. case "x$ac_cv_prog_cc_c89" in
  4324. x)
  4325. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  4326. $as_echo "none needed" >&6; } ;;
  4327. xno)
  4328. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  4329. $as_echo "unsupported" >&6; } ;;
  4330. *)
  4331. CC="$CC $ac_cv_prog_cc_c89"
  4332. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  4333. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  4334. esac
  4335. if test "x$ac_cv_prog_cc_c89" != xno; then :
  4336. fi
  4337. ac_ext=c
  4338. ac_cpp='$CPP $CPPFLAGS'
  4339. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4340. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4341. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4342. depcc="$CC" am_compiler_list=
  4343. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  4344. $as_echo_n "checking dependency style of $depcc... " >&6; }
  4345. if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
  4346. $as_echo_n "(cached) " >&6
  4347. else
  4348. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  4349. # We make a subdir and do the tests there. Otherwise we can end up
  4350. # making bogus files that we don't know about and never remove. For
  4351. # instance it was reported that on HP-UX the gcc test will end up
  4352. # making a dummy file named `D' -- because `-MD' means `put the output
  4353. # in D'.
  4354. mkdir conftest.dir
  4355. # Copy depcomp to subdir because otherwise we won't find it if we're
  4356. # using a relative directory.
  4357. cp "$am_depcomp" conftest.dir
  4358. cd conftest.dir
  4359. # We will build objects and dependencies in a subdirectory because
  4360. # it helps to detect inapplicable dependency modes. For instance
  4361. # both Tru64's cc and ICC support -MD to output dependencies as a
  4362. # side effect of compilation, but ICC will put the dependencies in
  4363. # the current directory while Tru64 will put them in the object
  4364. # directory.
  4365. mkdir sub
  4366. am_cv_CC_dependencies_compiler_type=none
  4367. if test "$am_compiler_list" = ""; then
  4368. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  4369. fi
  4370. am__universal=false
  4371. case " $depcc " in #(
  4372. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  4373. esac
  4374. for depmode in $am_compiler_list; do
  4375. # Setup a source with many dependencies, because some compilers
  4376. # like to wrap large dependency lists on column 80 (with \), and
  4377. # we should not choose a depcomp mode which is confused by this.
  4378. #
  4379. # We need to recreate these files for each test, as the compiler may
  4380. # overwrite some of them when testing with obscure command lines.
  4381. # This happens at least with the AIX C compiler.
  4382. : > sub/conftest.c
  4383. for i in 1 2 3 4 5 6; do
  4384. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  4385. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  4386. # Solaris 8's {/usr,}/bin/sh.
  4387. touch sub/conftst$i.h
  4388. done
  4389. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  4390. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  4391. # mode. It turns out that the SunPro C++ compiler does not properly
  4392. # handle `-M -o', and we need to detect this. Also, some Intel
  4393. # versions had trouble with output in subdirs
  4394. am__obj=sub/conftest.${OBJEXT-o}
  4395. am__minus_obj="-o $am__obj"
  4396. case $depmode in
  4397. gcc)
  4398. # This depmode causes a compiler race in universal mode.
  4399. test "$am__universal" = false || continue
  4400. ;;
  4401. nosideeffect)
  4402. # after this tag, mechanisms are not by side-effect, so they'll
  4403. # only be used when explicitly requested
  4404. if test "x$enable_dependency_tracking" = xyes; then
  4405. continue
  4406. else
  4407. break
  4408. fi
  4409. ;;
  4410. msvisualcpp | msvcmsys)
  4411. # This compiler won't grok `-c -o', but also, the minuso test has
  4412. # not run yet. These depmodes are late enough in the game, and
  4413. # so weak that their functioning should not be impacted.
  4414. am__obj=conftest.${OBJEXT-o}
  4415. am__minus_obj=
  4416. ;;
  4417. none) break ;;
  4418. esac
  4419. if depmode=$depmode \
  4420. source=sub/conftest.c object=$am__obj \
  4421. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  4422. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  4423. >/dev/null 2>conftest.err &&
  4424. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  4425. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  4426. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  4427. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  4428. # icc doesn't choke on unknown options, it will just issue warnings
  4429. # or remarks (even with -Werror). So we grep stderr for any message
  4430. # that says an option was ignored or not supported.
  4431. # When given -MP, icc 7.0 and 7.1 complain thusly:
  4432. # icc: Command line warning: ignoring option '-M'; no argument required
  4433. # The diagnosis changed in icc 8.0:
  4434. # icc: Command line remark: option '-MP' not supported
  4435. if (grep 'ignoring option' conftest.err ||
  4436. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  4437. am_cv_CC_dependencies_compiler_type=$depmode
  4438. break
  4439. fi
  4440. fi
  4441. done
  4442. cd ..
  4443. rm -rf conftest.dir
  4444. else
  4445. am_cv_CC_dependencies_compiler_type=none
  4446. fi
  4447. fi
  4448. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
  4449. $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
  4450. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  4451. if
  4452. test "x$enable_dependency_tracking" != xno \
  4453. && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  4454. am__fastdepCC_TRUE=
  4455. am__fastdepCC_FALSE='#'
  4456. else
  4457. am__fastdepCC_TRUE='#'
  4458. am__fastdepCC_FALSE=
  4459. fi
  4460. ac_ext=c
  4461. ac_cpp='$CPP $CPPFLAGS'
  4462. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4463. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4464. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4465. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  4466. $as_echo_n "checking how to run the C preprocessor... " >&6; }
  4467. # On Suns, sometimes $CPP names a directory.
  4468. if test -n "$CPP" && test -d "$CPP"; then
  4469. CPP=
  4470. fi
  4471. if test -z "$CPP"; then
  4472. if test "${ac_cv_prog_CPP+set}" = set; then :
  4473. $as_echo_n "(cached) " >&6
  4474. else
  4475. # Double quotes because CPP needs to be expanded
  4476. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  4477. do
  4478. ac_preproc_ok=false
  4479. for ac_c_preproc_warn_flag in '' yes
  4480. do
  4481. # Use a header file that comes with gcc, so configuring glibc
  4482. # with a fresh cross-compiler works.
  4483. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  4484. # <limits.h> exists even on freestanding compilers.
  4485. # On the NeXT, cc -E runs the code through the compiler's parser,
  4486. # not just through cpp. "Syntax error" is here to catch this case.
  4487. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4488. /* end confdefs.h. */
  4489. #ifdef __STDC__
  4490. # include <limits.h>
  4491. #else
  4492. # include <assert.h>
  4493. #endif
  4494. Syntax error
  4495. _ACEOF
  4496. if ac_fn_c_try_cpp "$LINENO"; then :
  4497. else
  4498. # Broken: fails on valid input.
  4499. continue
  4500. fi
  4501. rm -f conftest.err conftest.$ac_ext
  4502. # OK, works on sane cases. Now check whether nonexistent headers
  4503. # can be detected and how.
  4504. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4505. /* end confdefs.h. */
  4506. #include <ac_nonexistent.h>
  4507. _ACEOF
  4508. if ac_fn_c_try_cpp "$LINENO"; then :
  4509. # Broken: success on invalid input.
  4510. continue
  4511. else
  4512. # Passes both tests.
  4513. ac_preproc_ok=:
  4514. break
  4515. fi
  4516. rm -f conftest.err conftest.$ac_ext
  4517. done
  4518. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  4519. rm -f conftest.err conftest.$ac_ext
  4520. if $ac_preproc_ok; then :
  4521. break
  4522. fi
  4523. done
  4524. ac_cv_prog_CPP=$CPP
  4525. fi
  4526. CPP=$ac_cv_prog_CPP
  4527. else
  4528. ac_cv_prog_CPP=$CPP
  4529. fi
  4530. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  4531. $as_echo "$CPP" >&6; }
  4532. ac_preproc_ok=false
  4533. for ac_c_preproc_warn_flag in '' yes
  4534. do
  4535. # Use a header file that comes with gcc, so configuring glibc
  4536. # with a fresh cross-compiler works.
  4537. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  4538. # <limits.h> exists even on freestanding compilers.
  4539. # On the NeXT, cc -E runs the code through the compiler's parser,
  4540. # not just through cpp. "Syntax error" is here to catch this case.
  4541. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4542. /* end confdefs.h. */
  4543. #ifdef __STDC__
  4544. # include <limits.h>
  4545. #else
  4546. # include <assert.h>
  4547. #endif
  4548. Syntax error
  4549. _ACEOF
  4550. if ac_fn_c_try_cpp "$LINENO"; then :
  4551. else
  4552. # Broken: fails on valid input.
  4553. continue
  4554. fi
  4555. rm -f conftest.err conftest.$ac_ext
  4556. # OK, works on sane cases. Now check whether nonexistent headers
  4557. # can be detected and how.
  4558. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4559. /* end confdefs.h. */
  4560. #include <ac_nonexistent.h>
  4561. _ACEOF
  4562. if ac_fn_c_try_cpp "$LINENO"; then :
  4563. # Broken: success on invalid input.
  4564. continue
  4565. else
  4566. # Passes both tests.
  4567. ac_preproc_ok=:
  4568. break
  4569. fi
  4570. rm -f conftest.err conftest.$ac_ext
  4571. done
  4572. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  4573. rm -f conftest.err conftest.$ac_ext
  4574. if $ac_preproc_ok; then :
  4575. else
  4576. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  4577. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  4578. as_fn_error "C preprocessor \"$CPP\" fails sanity check
  4579. See \`config.log' for more details." "$LINENO" 5; }
  4580. fi
  4581. ac_ext=c
  4582. ac_cpp='$CPP $CPPFLAGS'
  4583. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4584. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4585. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4586. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  4587. $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  4588. if test "${ac_cv_path_GREP+set}" = set; then :
  4589. $as_echo_n "(cached) " >&6
  4590. else
  4591. if test -z "$GREP"; then
  4592. ac_path_GREP_found=false
  4593. # Loop through the user's path and test for each of PROGNAME-LIST
  4594. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4595. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4596. do
  4597. IFS=$as_save_IFS
  4598. test -z "$as_dir" && as_dir=.
  4599. for ac_prog in grep ggrep; do
  4600. for ac_exec_ext in '' $ac_executable_extensions; do
  4601. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  4602. { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
  4603. # Check for GNU ac_path_GREP and select it if it is found.
  4604. # Check for GNU $ac_path_GREP
  4605. case `"$ac_path_GREP" --version 2>&1` in
  4606. *GNU*)
  4607. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  4608. *)
  4609. ac_count=0
  4610. $as_echo_n 0123456789 >"conftest.in"
  4611. while :
  4612. do
  4613. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4614. mv "conftest.tmp" "conftest.in"
  4615. cp "conftest.in" "conftest.nl"
  4616. $as_echo 'GREP' >> "conftest.nl"
  4617. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4618. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4619. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4620. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  4621. # Best one so far, save it but keep looking for a better one
  4622. ac_cv_path_GREP="$ac_path_GREP"
  4623. ac_path_GREP_max=$ac_count
  4624. fi
  4625. # 10*(2^10) chars as input seems more than enough
  4626. test $ac_count -gt 10 && break
  4627. done
  4628. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4629. esac
  4630. $ac_path_GREP_found && break 3
  4631. done
  4632. done
  4633. done
  4634. IFS=$as_save_IFS
  4635. if test -z "$ac_cv_path_GREP"; then
  4636. as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4637. fi
  4638. else
  4639. ac_cv_path_GREP=$GREP
  4640. fi
  4641. fi
  4642. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  4643. $as_echo "$ac_cv_path_GREP" >&6; }
  4644. GREP="$ac_cv_path_GREP"
  4645. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  4646. $as_echo_n "checking for egrep... " >&6; }
  4647. if test "${ac_cv_path_EGREP+set}" = set; then :
  4648. $as_echo_n "(cached) " >&6
  4649. else
  4650. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  4651. then ac_cv_path_EGREP="$GREP -E"
  4652. else
  4653. if test -z "$EGREP"; then
  4654. ac_path_EGREP_found=false
  4655. # Loop through the user's path and test for each of PROGNAME-LIST
  4656. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4657. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4658. do
  4659. IFS=$as_save_IFS
  4660. test -z "$as_dir" && as_dir=.
  4661. for ac_prog in egrep; do
  4662. for ac_exec_ext in '' $ac_executable_extensions; do
  4663. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  4664. { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
  4665. # Check for GNU ac_path_EGREP and select it if it is found.
  4666. # Check for GNU $ac_path_EGREP
  4667. case `"$ac_path_EGREP" --version 2>&1` in
  4668. *GNU*)
  4669. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  4670. *)
  4671. ac_count=0
  4672. $as_echo_n 0123456789 >"conftest.in"
  4673. while :
  4674. do
  4675. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4676. mv "conftest.tmp" "conftest.in"
  4677. cp "conftest.in" "conftest.nl"
  4678. $as_echo 'EGREP' >> "conftest.nl"
  4679. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4680. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4681. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4682. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  4683. # Best one so far, save it but keep looking for a better one
  4684. ac_cv_path_EGREP="$ac_path_EGREP"
  4685. ac_path_EGREP_max=$ac_count
  4686. fi
  4687. # 10*(2^10) chars as input seems more than enough
  4688. test $ac_count -gt 10 && break
  4689. done
  4690. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4691. esac
  4692. $ac_path_EGREP_found && break 3
  4693. done
  4694. done
  4695. done
  4696. IFS=$as_save_IFS
  4697. if test -z "$ac_cv_path_EGREP"; then
  4698. as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4699. fi
  4700. else
  4701. ac_cv_path_EGREP=$EGREP
  4702. fi
  4703. fi
  4704. fi
  4705. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  4706. $as_echo "$ac_cv_path_EGREP" >&6; }
  4707. EGREP="$ac_cv_path_EGREP"
  4708. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  4709. $as_echo_n "checking for ANSI C header files... " >&6; }
  4710. if test "${ac_cv_header_stdc+set}" = set; then :
  4711. $as_echo_n "(cached) " >&6
  4712. else
  4713. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4714. /* end confdefs.h. */
  4715. #include <stdlib.h>
  4716. #include <stdarg.h>
  4717. #include <string.h>
  4718. #include <float.h>
  4719. int
  4720. main ()
  4721. {
  4722. ;
  4723. return 0;
  4724. }
  4725. _ACEOF
  4726. if ac_fn_c_try_compile "$LINENO"; then :
  4727. ac_cv_header_stdc=yes
  4728. else
  4729. ac_cv_header_stdc=no
  4730. fi
  4731. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4732. if test $ac_cv_header_stdc = yes; then
  4733. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  4734. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4735. /* end confdefs.h. */
  4736. #include <string.h>
  4737. _ACEOF
  4738. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  4739. $EGREP "memchr" >/dev/null 2>&1; then :
  4740. else
  4741. ac_cv_header_stdc=no
  4742. fi
  4743. rm -f conftest*
  4744. fi
  4745. if test $ac_cv_header_stdc = yes; then
  4746. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  4747. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4748. /* end confdefs.h. */
  4749. #include <stdlib.h>
  4750. _ACEOF
  4751. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  4752. $EGREP "free" >/dev/null 2>&1; then :
  4753. else
  4754. ac_cv_header_stdc=no
  4755. fi
  4756. rm -f conftest*
  4757. fi
  4758. if test $ac_cv_header_stdc = yes; then
  4759. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  4760. if test "$cross_compiling" = yes; then :
  4761. :
  4762. else
  4763. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4764. /* end confdefs.h. */
  4765. #include <ctype.h>
  4766. #include <stdlib.h>
  4767. #if ((' ' & 0x0FF) == 0x020)
  4768. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  4769. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  4770. #else
  4771. # define ISLOWER(c) \
  4772. (('a' <= (c) && (c) <= 'i') \
  4773. || ('j' <= (c) && (c) <= 'r') \
  4774. || ('s' <= (c) && (c) <= 'z'))
  4775. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  4776. #endif
  4777. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  4778. int
  4779. main ()
  4780. {
  4781. int i;
  4782. for (i = 0; i < 256; i++)
  4783. if (XOR (islower (i), ISLOWER (i))
  4784. || toupper (i) != TOUPPER (i))
  4785. return 2;
  4786. return 0;
  4787. }
  4788. _ACEOF
  4789. if ac_fn_c_try_run "$LINENO"; then :
  4790. else
  4791. ac_cv_header_stdc=no
  4792. fi
  4793. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  4794. conftest.$ac_objext conftest.beam conftest.$ac_ext
  4795. fi
  4796. fi
  4797. fi
  4798. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  4799. $as_echo "$ac_cv_header_stdc" >&6; }
  4800. if test $ac_cv_header_stdc = yes; then
  4801. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  4802. fi
  4803. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  4804. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  4805. inttypes.h stdint.h unistd.h
  4806. do :
  4807. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  4808. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  4809. "
  4810. eval as_val=\$$as_ac_Header
  4811. if test "x$as_val" = x""yes; then :
  4812. cat >>confdefs.h <<_ACEOF
  4813. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  4814. _ACEOF
  4815. fi
  4816. done
  4817. # Check whether --enable-alsa was given.
  4818. if test "${enable_alsa+set}" = set; then :
  4819. enableval=$enable_alsa; case "${enableval}" in
  4820. yes) COMPILE_ALSA=yes ;;
  4821. no) COMPILE_ALSA=no ;;
  4822. *) COMPILE_ALSA=yes ;;
  4823. esac
  4824. else
  4825. for ac_header in alsa/asoundlib.h
  4826. do :
  4827. ac_fn_c_check_header_mongrel "$LINENO" "alsa/asoundlib.h" "ac_cv_header_alsa_asoundlib_h" "$ac_includes_default"
  4828. if test "x$ac_cv_header_alsa_asoundlib_h" = x""yes; then :
  4829. cat >>confdefs.h <<_ACEOF
  4830. #define HAVE_ALSA_ASOUNDLIB_H 1
  4831. _ACEOF
  4832. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for snd_seq_open in -lasound" >&5
  4833. $as_echo_n "checking for snd_seq_open in -lasound... " >&6; }
  4834. if test "${ac_cv_lib_asound_snd_seq_open+set}" = set; then :
  4835. $as_echo_n "(cached) " >&6
  4836. else
  4837. ac_check_lib_save_LIBS=$LIBS
  4838. LIBS="-lasound $LIBS"
  4839. if test x$gcc_no_link = xyes; then
  4840. as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  4841. fi
  4842. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4843. /* end confdefs.h. */
  4844. /* Override any GCC internal prototype to avoid an error.
  4845. Use char because int might match the return type of a GCC
  4846. builtin and then its argument prototype would still apply. */
  4847. #ifdef __cplusplus
  4848. extern "C"
  4849. #endif
  4850. char snd_seq_open ();
  4851. int
  4852. main ()
  4853. {
  4854. return snd_seq_open ();
  4855. ;
  4856. return 0;
  4857. }
  4858. _ACEOF
  4859. if ac_fn_c_try_link "$LINENO"; then :
  4860. ac_cv_lib_asound_snd_seq_open=yes
  4861. else
  4862. ac_cv_lib_asound_snd_seq_open=no
  4863. fi
  4864. rm -f core conftest.err conftest.$ac_objext \
  4865. conftest$ac_exeext conftest.$ac_ext
  4866. LIBS=$ac_check_lib_save_LIBS
  4867. fi
  4868. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_asound_snd_seq_open" >&5
  4869. $as_echo "$ac_cv_lib_asound_snd_seq_open" >&6; }
  4870. if test "x$ac_cv_lib_asound_snd_seq_open" = x""yes; then :
  4871. COMPILE_ALSA=yes
  4872. else
  4873. COMPILE_ALSA=no
  4874. fi
  4875. else
  4876. COMPILE_ALSA=no
  4877. fi
  4878. done
  4879. fi
  4880. if test "x${COMPILE_ALSA}" = xyes; then
  4881. CREATE_ALSA_LIBRARIES_TRUE=
  4882. CREATE_ALSA_LIBRARIES_FALSE='#'
  4883. else
  4884. CREATE_ALSA_LIBRARIES_TRUE='#'
  4885. CREATE_ALSA_LIBRARIES_FALSE=
  4886. fi
  4887. # Check whether --enable-dssi was given.
  4888. if test "${enable_dssi+set}" = set; then :
  4889. enableval=$enable_dssi; case "${enableval}" in
  4890. yes) COMPILE_DSSI=yes ;;
  4891. no) COMPILE_DSSI=no ;;
  4892. *) COMPILE_DSSI=yes ;;
  4893. esac
  4894. else
  4895. COMPILE_DSSI=no
  4896. for ac_header in dssi.h
  4897. do :
  4898. ac_fn_c_check_header_mongrel "$LINENO" "dssi.h" "ac_cv_header_dssi_h" "$ac_includes_default"
  4899. if test "x$ac_cv_header_dssi_h" = x""yes; then :
  4900. cat >>confdefs.h <<_ACEOF
  4901. #define HAVE_DSSI_H 1
  4902. _ACEOF
  4903. for ac_header in jack/jack.h
  4904. do :
  4905. ac_fn_c_check_header_mongrel "$LINENO" "jack/jack.h" "ac_cv_header_jack_jack_h" "$ac_includes_default"
  4906. if test "x$ac_cv_header_jack_jack_h" = x""yes; then :
  4907. cat >>confdefs.h <<_ACEOF
  4908. #define HAVE_JACK_JACK_H 1
  4909. _ACEOF
  4910. COMPILE_DSSI=yes
  4911. fi
  4912. done
  4913. fi
  4914. done
  4915. fi
  4916. if test "x${COMPILE_DSSI}" = xyes; then
  4917. CREATE_DSSI_LIBRARIES_TRUE=
  4918. CREATE_DSSI_LIBRARIES_FALSE='#'
  4919. else
  4920. CREATE_DSSI_LIBRARIES_TRUE='#'
  4921. CREATE_DSSI_LIBRARIES_FALSE=
  4922. fi
  4923. # Check whether --enable-gtk-peer was given.
  4924. if test "${enable_gtk_peer+set}" = set; then :
  4925. enableval=$enable_gtk_peer; case "${enableval}" in
  4926. yes) COMPILE_GTK_PEER=yes ;;
  4927. no) COMPILE_GTK_PEER=no ;;
  4928. *) COMPILE_GTK_PEER=yes ;;
  4929. esac
  4930. else
  4931. COMPILE_GTK_PEER=yes
  4932. fi
  4933. if test "x${COMPILE_GTK_PEER}" = xyes; then
  4934. CREATE_GTK_PEER_LIBRARIES_TRUE=
  4935. CREATE_GTK_PEER_LIBRARIES_FALSE='#'
  4936. else
  4937. CREATE_GTK_PEER_LIBRARIES_TRUE='#'
  4938. CREATE_GTK_PEER_LIBRARIES_FALSE=
  4939. fi
  4940. # Check whether --enable-gtk-peers was given.
  4941. if test "${enable_gtk_peers+set}" = set; then :
  4942. enableval=$enable_gtk_peers; as_fn_error "No --enable-gtk-peers (or --disable-gtk-peers) option; you want --enable-gtk-peer" "$LINENO" 5
  4943. fi
  4944. # Check whether --enable-qt-peer was given.
  4945. if test "${enable_qt_peer+set}" = set; then :
  4946. enableval=$enable_qt_peer; case "${enableval}" in
  4947. yes) COMPILE_QT_PEER=yes ;;
  4948. no) COMPILE_QT_PEER=no ;;
  4949. *) COMPILE_QT_PEER=yes ;;
  4950. esac
  4951. else
  4952. COMPILE_QT_PEER=no
  4953. fi
  4954. if test "x${COMPILE_QT_PEER}" = xyes; then
  4955. CREATE_QT_PEER_LIBRARIES_TRUE=
  4956. CREATE_QT_PEER_LIBRARIES_FALSE='#'
  4957. else
  4958. CREATE_QT_PEER_LIBRARIES_TRUE='#'
  4959. CREATE_QT_PEER_LIBRARIES_FALSE=
  4960. fi
  4961. # Check whether --enable-plugin was given.
  4962. if test "${enable_plugin+set}" = set; then :
  4963. enableval=$enable_plugin; case "${enableval}" in
  4964. yes) COMPILE_PLUGIN=yes ;;
  4965. no) COMPILE_PLUGIN=no ;;
  4966. *) COMPILE_PLUGIN=yes ;;
  4967. esac
  4968. else
  4969. COMPILE_PLUGIN=no
  4970. fi
  4971. if test "x${COMPILE_PLUGIN}" = xyes; then
  4972. CREATE_PLUGIN_TRUE=
  4973. CREATE_PLUGIN_FALSE='#'
  4974. else
  4975. CREATE_PLUGIN_TRUE='#'
  4976. CREATE_PLUGIN_FALSE=
  4977. fi
  4978. # Check whether --enable-gmp was given.
  4979. if test "${enable_gmp+set}" = set; then :
  4980. enableval=$enable_gmp; case "${enableval}" in
  4981. yes|true) COMPILE_GMP=yes ;;
  4982. no|false) COMPILE_GMP=no ;;
  4983. *) COMPILE_GMP=yes ;;
  4984. esac
  4985. else
  4986. COMPILE_GMP=yes
  4987. fi
  4988. # Check whether --enable-gjdoc was given.
  4989. if test "${enable_gjdoc+set}" = set; then :
  4990. enableval=$enable_gjdoc; case "${enableval}" in
  4991. yes) COMPILE_GJDOC=yes ;;
  4992. no) COMPILE_GJDOC=no ;;
  4993. *) COMPILE_GJDOC=yes ;;
  4994. esac
  4995. else
  4996. COMPILE_GJDOC=yes
  4997. fi
  4998. if test "x${COMPILE_GJDOC}" = xyes; then
  4999. CREATE_GJDOC_TRUE=
  5000. CREATE_GJDOC_FALSE='#'
  5001. else
  5002. CREATE_GJDOC_TRUE='#'
  5003. CREATE_GJDOC_FALSE=
  5004. fi
  5005. case ${host_alias} in
  5006. "") host_noncanonical=${build_noncanonical} ;;
  5007. *) host_noncanonical=${host_alias} ;;
  5008. esac
  5009. case ${target_alias} in
  5010. "") target_noncanonical=${host_noncanonical} ;;
  5011. *) target_noncanonical=${target_alias} ;;
  5012. esac
  5013. # Check whether --enable-version-specific-runtime-libs was given.
  5014. if test "${enable_version_specific_runtime_libs+set}" = set; then :
  5015. enableval=$enable_version_specific_runtime_libs; case "$enableval" in
  5016. yes) version_specific_libs=yes ;;
  5017. no) version_specific_libs=no ;;
  5018. *) as_fn_error "Unknown argument to enable/disable version-specific libs" "$LINENO" 5;;
  5019. esac
  5020. else
  5021. version_specific_libs=no
  5022. fi
  5023. case ${version_specific_libs} in
  5024. yes)
  5025. # Need the gcc compiler version to know where to install libraries
  5026. # and header files if --enable-version-specific-runtime-libs option
  5027. # is selected.
  5028. includedir='$(libdir)/gcc/$(target_noncanonical)/$(gcc_version)/include/'
  5029. toolexecdir='$(libdir)/gcc/$(target_noncanonical)'
  5030. toolexecmainlibdir='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)'
  5031. toolexeclibdir=$toolexecmainlibdir
  5032. ;;
  5033. no)
  5034. if test -n "$with_cross_host" &&
  5035. test x"$with_cross_host" != x"no"; then
  5036. # Install a library built with a cross compiler in tooldir, not libdir.
  5037. toolexecdir='$(exec_prefix)/$(target_noncanonical)'
  5038. toolexecmainlibdir='$(toolexecdir)/lib'
  5039. else
  5040. toolexecdir='$(libdir)/gcc-lib/$(target_noncanonical)'
  5041. toolexecmainlibdir='$(libdir)'
  5042. fi
  5043. multi_os_directory=`$CC -print-multi-os-directory`
  5044. case $multi_os_directory in
  5045. .) toolexeclibdir=$toolexecmainlibdir ;; # Avoid trailing /.
  5046. *) toolexeclibdir=$toolexecmainlibdir/$multi_os_directory ;;
  5047. esac
  5048. ;;
  5049. esac
  5050. # Check whether --with-native-libdir was given.
  5051. if test "${with_native_libdir+set}" = set; then :
  5052. withval=$with_native_libdir;
  5053. nativeexeclibdir=${withval}
  5054. else
  5055. nativeexeclibdir='${toolexeclibdir}/gcj-'`cat ${srcdir}/../../gcc/BASE-VER`-`awk -F: '/^[^#].*:/ { print $1 }' ${srcdir}/../libtool-version`
  5056. fi
  5057. # Check whether --with-glibj-dir was given.
  5058. if test "${with_glibj_dir+set}" = set; then :
  5059. withval=$with_glibj_dir;
  5060. glibjdir=${withval}
  5061. else
  5062. glibjdir='${datadir}/${PACKAGE}'
  5063. fi
  5064. # Check whether --with-antlr-jar was given.
  5065. if test "${with_antlr_jar+set}" = set; then :
  5066. withval=$with_antlr_jar;
  5067. ANTLR_JAR=$withval
  5068. else
  5069. ANTLR_JAR="$ANTLR_JAR"
  5070. fi
  5071. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to regenerate the headers" >&5
  5072. $as_echo_n "checking whether to regenerate the headers... " >&6; }
  5073. # Check whether --enable-regen-headers was given.
  5074. if test "${enable_regen_headers+set}" = set; then :
  5075. enableval=$enable_regen_headers; case "${enableval}" in
  5076. yes) REGENERATE_JNI_HEADERS=yes ;;
  5077. no) REGENERATE_JNI_HEADERS=no ;;
  5078. *) REGENERATE_JNI_HEADERS=yes ;;
  5079. esac
  5080. else
  5081. if test -e ${srcdir}/include/java_lang_VMSystem.h; then
  5082. REGENERATE_JNI_HEADERS=no ;
  5083. else
  5084. REGENERATE_JNI_HEADERS=yes ;
  5085. fi
  5086. fi
  5087. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${REGENERATE_JNI_HEADERS}" >&5
  5088. $as_echo "${REGENERATE_JNI_HEADERS}" >&6; }
  5089. if test "x${REGENERATE_JNI_HEADERS}" = xyes; then
  5090. CREATE_JNI_HEADERS_TRUE=
  5091. CREATE_JNI_HEADERS_FALSE='#'
  5092. else
  5093. CREATE_JNI_HEADERS_TRUE='#'
  5094. CREATE_JNI_HEADERS_FALSE=
  5095. fi
  5096. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to regenerate the GJDoc parser" >&5
  5097. $as_echo_n "checking whether to regenerate the GJDoc parser... " >&6; }
  5098. # Check whether --enable-regen-gjdoc-parser was given.
  5099. if test "${enable_regen_gjdoc_parser+set}" = set; then :
  5100. enableval=$enable_regen_gjdoc_parser; case "${enableval}" in
  5101. yes) REGENERATE_GJDOC_PARSER=yes ;;
  5102. no) REGENERATE_GJDOC_PARSER=no ;;
  5103. *) REGENERATE_GJDOC_PARSER=yes ;;
  5104. esac
  5105. else
  5106. if test -e ${srcdir}/tools/generated/gnu/classpath/tools/gjdoc/expr/JavaLexer.java; then
  5107. REGENERATE_GJDOC_PARSER=no ;
  5108. else
  5109. REGENERATE_GJDOC_PARSER=yes ;
  5110. fi
  5111. fi
  5112. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${REGENERATE_GJDOC_PARSER}" >&5
  5113. $as_echo "${REGENERATE_GJDOC_PARSER}" >&6; }
  5114. if test "x${REGENERATE_GJDOC_PARSER}" = xyes; then
  5115. CREATE_GJDOC_PARSER_TRUE=
  5116. CREATE_GJDOC_PARSER_FALSE='#'
  5117. else
  5118. CREATE_GJDOC_PARSER_TRUE='#'
  5119. CREATE_GJDOC_PARSER_FALSE=
  5120. fi
  5121. # Check whether --enable-tool-wrappers was given.
  5122. if test "${enable_tool_wrappers+set}" = set; then :
  5123. enableval=$enable_tool_wrappers; case x"${enableval}" in
  5124. xyes)
  5125. COMPILE_WRAPPERS=yes;
  5126. for ac_header in ltdl.h
  5127. do :
  5128. ac_fn_c_check_header_mongrel "$LINENO" "ltdl.h" "ac_cv_header_ltdl_h" "$ac_includes_default"
  5129. if test "x$ac_cv_header_ltdl_h" = x""yes; then :
  5130. cat >>confdefs.h <<_ACEOF
  5131. #define HAVE_LTDL_H 1
  5132. _ACEOF
  5133. else
  5134. as_fn_error "cannot find ltdl.h" "$LINENO" 5
  5135. fi
  5136. done
  5137. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lt_dlopen in -lltdl" >&5
  5138. $as_echo_n "checking for lt_dlopen in -lltdl... " >&6; }
  5139. if test "${ac_cv_lib_ltdl_lt_dlopen+set}" = set; then :
  5140. $as_echo_n "(cached) " >&6
  5141. else
  5142. ac_check_lib_save_LIBS=$LIBS
  5143. LIBS="-lltdl $LIBS"
  5144. if test x$gcc_no_link = xyes; then
  5145. as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  5146. fi
  5147. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5148. /* end confdefs.h. */
  5149. /* Override any GCC internal prototype to avoid an error.
  5150. Use char because int might match the return type of a GCC
  5151. builtin and then its argument prototype would still apply. */
  5152. #ifdef __cplusplus
  5153. extern "C"
  5154. #endif
  5155. char lt_dlopen ();
  5156. int
  5157. main ()
  5158. {
  5159. return lt_dlopen ();
  5160. ;
  5161. return 0;
  5162. }
  5163. _ACEOF
  5164. if ac_fn_c_try_link "$LINENO"; then :
  5165. ac_cv_lib_ltdl_lt_dlopen=yes
  5166. else
  5167. ac_cv_lib_ltdl_lt_dlopen=no
  5168. fi
  5169. rm -f core conftest.err conftest.$ac_objext \
  5170. conftest$ac_exeext conftest.$ac_ext
  5171. LIBS=$ac_check_lib_save_LIBS
  5172. fi
  5173. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ltdl_lt_dlopen" >&5
  5174. $as_echo "$ac_cv_lib_ltdl_lt_dlopen" >&6; }
  5175. if test "x$ac_cv_lib_ltdl_lt_dlopen" = x""yes; then :
  5176. cat >>confdefs.h <<_ACEOF
  5177. #define HAVE_LIBLTDL 1
  5178. _ACEOF
  5179. LIBS="-lltdl $LIBS"
  5180. else
  5181. as_fn_error "cannot find libltdl" "$LINENO" 5
  5182. fi
  5183. ;;
  5184. xno) COMPILE_WRAPPERS=no ;;
  5185. x) COMPILE_WRAPPERS=yes ;;
  5186. *) COMPILE_WRAPPERS=yes ;;
  5187. esac
  5188. else
  5189. COMPILE_WRAPPERS=no
  5190. fi
  5191. if test "x${COMPILE_WRAPPERS}" = xyes; then
  5192. CREATE_WRAPPERS_TRUE=
  5193. CREATE_WRAPPERS_FALSE='#'
  5194. else
  5195. CREATE_WRAPPERS_TRUE='#'
  5196. CREATE_WRAPPERS_FALSE=
  5197. fi
  5198. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
  5199. $as_echo_n "checking whether ln -s works... " >&6; }
  5200. LN_S=$as_ln_s
  5201. if test "$LN_S" = "ln -s"; then
  5202. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  5203. $as_echo "yes" >&6; }
  5204. else
  5205. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
  5206. $as_echo "no, using $LN_S" >&6; }
  5207. fi
  5208. # Check whether --enable-static was given.
  5209. if test "${enable_static+set}" = set; then :
  5210. enableval=$enable_static; p=${PACKAGE-default}
  5211. case $enableval in
  5212. yes) enable_static=yes ;;
  5213. no) enable_static=no ;;
  5214. *)
  5215. enable_static=no
  5216. # Look at the argument we got. We use all the common list separators.
  5217. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  5218. for pkg in $enableval; do
  5219. IFS="$lt_save_ifs"
  5220. if test "X$pkg" = "X$p"; then
  5221. enable_static=yes
  5222. fi
  5223. done
  5224. IFS="$lt_save_ifs"
  5225. ;;
  5226. esac
  5227. else
  5228. enable_static=no
  5229. fi
  5230. case `pwd` in
  5231. *\ * | *\ *)
  5232. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
  5233. $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
  5234. esac
  5235. macro_version='2.2.7a'
  5236. macro_revision='1.3134'
  5237. ltmain="$ac_aux_dir/ltmain.sh"
  5238. # Backslashify metacharacters that are still active within
  5239. # double-quoted strings.
  5240. sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
  5241. # Same as above, but do not quote variable references.
  5242. double_quote_subst='s/\(["`\\]\)/\\\1/g'
  5243. # Sed substitution to delay expansion of an escaped shell variable in a
  5244. # double_quote_subst'ed string.
  5245. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  5246. # Sed substitution to delay expansion of an escaped single quote.
  5247. delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
  5248. # Sed substitution to avoid accidental globbing in evaled expressions
  5249. no_glob_subst='s/\*/\\\*/g'
  5250. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  5251. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
  5252. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
  5253. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
  5254. $as_echo_n "checking how to print strings... " >&6; }
  5255. # Test print first, because it will be a builtin if present.
  5256. if test "X`print -r -- -n 2>/dev/null`" = X-n && \
  5257. test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
  5258. ECHO='print -r --'
  5259. elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
  5260. ECHO='printf %s\n'
  5261. else
  5262. # Use this function as a fallback that always works.
  5263. func_fallback_echo ()
  5264. {
  5265. eval 'cat <<_LTECHO_EOF
  5266. $1
  5267. _LTECHO_EOF'
  5268. }
  5269. ECHO='func_fallback_echo'
  5270. fi
  5271. # func_echo_all arg...
  5272. # Invoke $ECHO with all args, space-separated.
  5273. func_echo_all ()
  5274. {
  5275. $ECHO ""
  5276. }
  5277. case "$ECHO" in
  5278. printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
  5279. $as_echo "printf" >&6; } ;;
  5280. print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
  5281. $as_echo "print -r" >&6; } ;;
  5282. *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
  5283. $as_echo "cat" >&6; } ;;
  5284. esac
  5285. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
  5286. $as_echo_n "checking for a sed that does not truncate output... " >&6; }
  5287. if test "${ac_cv_path_SED+set}" = set; then :
  5288. $as_echo_n "(cached) " >&6
  5289. else
  5290. ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  5291. for ac_i in 1 2 3 4 5 6 7; do
  5292. ac_script="$ac_script$as_nl$ac_script"
  5293. done
  5294. echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  5295. { ac_script=; unset ac_script;}
  5296. if test -z "$SED"; then
  5297. ac_path_SED_found=false
  5298. # Loop through the user's path and test for each of PROGNAME-LIST
  5299. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5300. for as_dir in $PATH
  5301. do
  5302. IFS=$as_save_IFS
  5303. test -z "$as_dir" && as_dir=.
  5304. for ac_prog in sed gsed; do
  5305. for ac_exec_ext in '' $ac_executable_extensions; do
  5306. ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
  5307. { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
  5308. # Check for GNU ac_path_SED and select it if it is found.
  5309. # Check for GNU $ac_path_SED
  5310. case `"$ac_path_SED" --version 2>&1` in
  5311. *GNU*)
  5312. ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  5313. *)
  5314. ac_count=0
  5315. $as_echo_n 0123456789 >"conftest.in"
  5316. while :
  5317. do
  5318. cat "conftest.in" "conftest.in" >"conftest.tmp"
  5319. mv "conftest.tmp" "conftest.in"
  5320. cp "conftest.in" "conftest.nl"
  5321. $as_echo '' >> "conftest.nl"
  5322. "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  5323. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  5324. as_fn_arith $ac_count + 1 && ac_count=$as_val
  5325. if test $ac_count -gt ${ac_path_SED_max-0}; then
  5326. # Best one so far, save it but keep looking for a better one
  5327. ac_cv_path_SED="$ac_path_SED"
  5328. ac_path_SED_max=$ac_count
  5329. fi
  5330. # 10*(2^10) chars as input seems more than enough
  5331. test $ac_count -gt 10 && break
  5332. done
  5333. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  5334. esac
  5335. $ac_path_SED_found && break 3
  5336. done
  5337. done
  5338. done
  5339. IFS=$as_save_IFS
  5340. if test -z "$ac_cv_path_SED"; then
  5341. as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
  5342. fi
  5343. else
  5344. ac_cv_path_SED=$SED
  5345. fi
  5346. fi
  5347. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
  5348. $as_echo "$ac_cv_path_SED" >&6; }
  5349. SED="$ac_cv_path_SED"
  5350. rm -f conftest.sed
  5351. test -z "$SED" && SED=sed
  5352. Xsed="$SED -e 1s/^X//"
  5353. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
  5354. $as_echo_n "checking for fgrep... " >&6; }
  5355. if test "${ac_cv_path_FGREP+set}" = set; then :
  5356. $as_echo_n "(cached) " >&6
  5357. else
  5358. if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
  5359. then ac_cv_path_FGREP="$GREP -F"
  5360. else
  5361. if test -z "$FGREP"; then
  5362. ac_path_FGREP_found=false
  5363. # Loop through the user's path and test for each of PROGNAME-LIST
  5364. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5365. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  5366. do
  5367. IFS=$as_save_IFS
  5368. test -z "$as_dir" && as_dir=.
  5369. for ac_prog in fgrep; do
  5370. for ac_exec_ext in '' $ac_executable_extensions; do
  5371. ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
  5372. { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
  5373. # Check for GNU ac_path_FGREP and select it if it is found.
  5374. # Check for GNU $ac_path_FGREP
  5375. case `"$ac_path_FGREP" --version 2>&1` in
  5376. *GNU*)
  5377. ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
  5378. *)
  5379. ac_count=0
  5380. $as_echo_n 0123456789 >"conftest.in"
  5381. while :
  5382. do
  5383. cat "conftest.in" "conftest.in" >"conftest.tmp"
  5384. mv "conftest.tmp" "conftest.in"
  5385. cp "conftest.in" "conftest.nl"
  5386. $as_echo 'FGREP' >> "conftest.nl"
  5387. "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
  5388. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  5389. as_fn_arith $ac_count + 1 && ac_count=$as_val
  5390. if test $ac_count -gt ${ac_path_FGREP_max-0}; then
  5391. # Best one so far, save it but keep looking for a better one
  5392. ac_cv_path_FGREP="$ac_path_FGREP"
  5393. ac_path_FGREP_max=$ac_count
  5394. fi
  5395. # 10*(2^10) chars as input seems more than enough
  5396. test $ac_count -gt 10 && break
  5397. done
  5398. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  5399. esac
  5400. $ac_path_FGREP_found && break 3
  5401. done
  5402. done
  5403. done
  5404. IFS=$as_save_IFS
  5405. if test -z "$ac_cv_path_FGREP"; then
  5406. as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  5407. fi
  5408. else
  5409. ac_cv_path_FGREP=$FGREP
  5410. fi
  5411. fi
  5412. fi
  5413. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
  5414. $as_echo "$ac_cv_path_FGREP" >&6; }
  5415. FGREP="$ac_cv_path_FGREP"
  5416. test -z "$GREP" && GREP=grep
  5417. # Check whether --with-gnu-ld was given.
  5418. if test "${with_gnu_ld+set}" = set; then :
  5419. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  5420. else
  5421. with_gnu_ld=no
  5422. fi
  5423. ac_prog=ld
  5424. if test "$GCC" = yes; then
  5425. # Check if gcc -print-prog-name=ld gives a path.
  5426. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  5427. $as_echo_n "checking for ld used by $CC... " >&6; }
  5428. case $host in
  5429. *-*-mingw*)
  5430. # gcc leaves a trailing carriage return which upsets mingw
  5431. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  5432. *)
  5433. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  5434. esac
  5435. case $ac_prog in
  5436. # Accept absolute paths.
  5437. [\\/]* | ?:[\\/]*)
  5438. re_direlt='/[^/][^/]*/\.\./'
  5439. # Canonicalize the pathname of ld
  5440. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  5441. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  5442. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  5443. done
  5444. test -z "$LD" && LD="$ac_prog"
  5445. ;;
  5446. "")
  5447. # If it fails, then pretend we aren't using GCC.
  5448. ac_prog=ld
  5449. ;;
  5450. *)
  5451. # If it is relative, then search for the first ld in PATH.
  5452. with_gnu_ld=unknown
  5453. ;;
  5454. esac
  5455. elif test "$with_gnu_ld" = yes; then
  5456. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  5457. $as_echo_n "checking for GNU ld... " >&6; }
  5458. else
  5459. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  5460. $as_echo_n "checking for non-GNU ld... " >&6; }
  5461. fi
  5462. if test "${lt_cv_path_LD+set}" = set; then :
  5463. $as_echo_n "(cached) " >&6
  5464. else
  5465. if test -z "$LD"; then
  5466. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  5467. for ac_dir in $PATH; do
  5468. IFS="$lt_save_ifs"
  5469. test -z "$ac_dir" && ac_dir=.
  5470. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  5471. lt_cv_path_LD="$ac_dir/$ac_prog"
  5472. # Check to see if the program is GNU ld. I'd rather use --version,
  5473. # but apparently some variants of GNU ld only accept -v.
  5474. # Break only if it was the GNU/non-GNU ld that we prefer.
  5475. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  5476. *GNU* | *'with BFD'*)
  5477. test "$with_gnu_ld" != no && break
  5478. ;;
  5479. *)
  5480. test "$with_gnu_ld" != yes && break
  5481. ;;
  5482. esac
  5483. fi
  5484. done
  5485. IFS="$lt_save_ifs"
  5486. else
  5487. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  5488. fi
  5489. fi
  5490. LD="$lt_cv_path_LD"
  5491. if test -n "$LD"; then
  5492. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  5493. $as_echo "$LD" >&6; }
  5494. else
  5495. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5496. $as_echo "no" >&6; }
  5497. fi
  5498. test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
  5499. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  5500. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  5501. if test "${lt_cv_prog_gnu_ld+set}" = set; then :
  5502. $as_echo_n "(cached) " >&6
  5503. else
  5504. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  5505. case `$LD -v 2>&1 </dev/null` in
  5506. *GNU* | *'with BFD'*)
  5507. lt_cv_prog_gnu_ld=yes
  5508. ;;
  5509. *)
  5510. lt_cv_prog_gnu_ld=no
  5511. ;;
  5512. esac
  5513. fi
  5514. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  5515. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  5516. with_gnu_ld=$lt_cv_prog_gnu_ld
  5517. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
  5518. $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
  5519. if test "${lt_cv_path_NM+set}" = set; then :
  5520. $as_echo_n "(cached) " >&6
  5521. else
  5522. if test -n "$NM"; then
  5523. # Let the user override the test.
  5524. lt_cv_path_NM="$NM"
  5525. else
  5526. lt_nm_to_check="${ac_tool_prefix}nm"
  5527. if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  5528. lt_nm_to_check="$lt_nm_to_check nm"
  5529. fi
  5530. for lt_tmp_nm in $lt_nm_to_check; do
  5531. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  5532. for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  5533. IFS="$lt_save_ifs"
  5534. test -z "$ac_dir" && ac_dir=.
  5535. tmp_nm="$ac_dir/$lt_tmp_nm"
  5536. if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
  5537. # Check to see if the nm accepts a BSD-compat flag.
  5538. # Adding the `sed 1q' prevents false positives on HP-UX, which says:
  5539. # nm: unknown option "B" ignored
  5540. # Tru64's nm complains that /dev/null is an invalid object file
  5541. case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
  5542. */dev/null* | *'Invalid file or object type'*)
  5543. lt_cv_path_NM="$tmp_nm -B"
  5544. break
  5545. ;;
  5546. *)
  5547. case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  5548. */dev/null*)
  5549. lt_cv_path_NM="$tmp_nm -p"
  5550. break
  5551. ;;
  5552. *)
  5553. lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  5554. continue # so that we can try to find one that supports BSD flags
  5555. ;;
  5556. esac
  5557. ;;
  5558. esac
  5559. fi
  5560. done
  5561. IFS="$lt_save_ifs"
  5562. done
  5563. : ${lt_cv_path_NM=no}
  5564. fi
  5565. fi
  5566. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
  5567. $as_echo "$lt_cv_path_NM" >&6; }
  5568. if test "$lt_cv_path_NM" != "no"; then
  5569. NM="$lt_cv_path_NM"
  5570. else
  5571. # Didn't find any BSD compatible name lister, look for dumpbin.
  5572. if test -n "$DUMPBIN"; then :
  5573. # Let the user override the test.
  5574. else
  5575. if test -n "$ac_tool_prefix"; then
  5576. for ac_prog in dumpbin "link -dump"
  5577. do
  5578. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  5579. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  5580. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5581. $as_echo_n "checking for $ac_word... " >&6; }
  5582. if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
  5583. $as_echo_n "(cached) " >&6
  5584. else
  5585. if test -n "$DUMPBIN"; then
  5586. ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
  5587. else
  5588. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5589. for as_dir in $PATH
  5590. do
  5591. IFS=$as_save_IFS
  5592. test -z "$as_dir" && as_dir=.
  5593. for ac_exec_ext in '' $ac_executable_extensions; do
  5594. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5595. ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
  5596. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5597. break 2
  5598. fi
  5599. done
  5600. done
  5601. IFS=$as_save_IFS
  5602. fi
  5603. fi
  5604. DUMPBIN=$ac_cv_prog_DUMPBIN
  5605. if test -n "$DUMPBIN"; then
  5606. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
  5607. $as_echo "$DUMPBIN" >&6; }
  5608. else
  5609. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5610. $as_echo "no" >&6; }
  5611. fi
  5612. test -n "$DUMPBIN" && break
  5613. done
  5614. fi
  5615. if test -z "$DUMPBIN"; then
  5616. ac_ct_DUMPBIN=$DUMPBIN
  5617. for ac_prog in dumpbin "link -dump"
  5618. do
  5619. # Extract the first word of "$ac_prog", so it can be a program name with args.
  5620. set dummy $ac_prog; ac_word=$2
  5621. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5622. $as_echo_n "checking for $ac_word... " >&6; }
  5623. if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
  5624. $as_echo_n "(cached) " >&6
  5625. else
  5626. if test -n "$ac_ct_DUMPBIN"; then
  5627. ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
  5628. else
  5629. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5630. for as_dir in $PATH
  5631. do
  5632. IFS=$as_save_IFS
  5633. test -z "$as_dir" && as_dir=.
  5634. for ac_exec_ext in '' $ac_executable_extensions; do
  5635. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5636. ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
  5637. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5638. break 2
  5639. fi
  5640. done
  5641. done
  5642. IFS=$as_save_IFS
  5643. fi
  5644. fi
  5645. ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
  5646. if test -n "$ac_ct_DUMPBIN"; then
  5647. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
  5648. $as_echo "$ac_ct_DUMPBIN" >&6; }
  5649. else
  5650. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5651. $as_echo "no" >&6; }
  5652. fi
  5653. test -n "$ac_ct_DUMPBIN" && break
  5654. done
  5655. if test "x$ac_ct_DUMPBIN" = x; then
  5656. DUMPBIN=":"
  5657. else
  5658. case $cross_compiling:$ac_tool_warned in
  5659. yes:)
  5660. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5661. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5662. ac_tool_warned=yes ;;
  5663. esac
  5664. DUMPBIN=$ac_ct_DUMPBIN
  5665. fi
  5666. fi
  5667. case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
  5668. *COFF*)
  5669. DUMPBIN="$DUMPBIN -symbols"
  5670. ;;
  5671. *)
  5672. DUMPBIN=:
  5673. ;;
  5674. esac
  5675. fi
  5676. if test "$DUMPBIN" != ":"; then
  5677. NM="$DUMPBIN"
  5678. fi
  5679. fi
  5680. test -z "$NM" && NM=nm
  5681. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
  5682. $as_echo_n "checking the name lister ($NM) interface... " >&6; }
  5683. if test "${lt_cv_nm_interface+set}" = set; then :
  5684. $as_echo_n "(cached) " >&6
  5685. else
  5686. lt_cv_nm_interface="BSD nm"
  5687. echo "int some_variable = 0;" > conftest.$ac_ext
  5688. (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
  5689. (eval "$ac_compile" 2>conftest.err)
  5690. cat conftest.err >&5
  5691. (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
  5692. (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  5693. cat conftest.err >&5
  5694. (eval echo "\"\$as_me:$LINENO: output\"" >&5)
  5695. cat conftest.out >&5
  5696. if $GREP 'External.*some_variable' conftest.out > /dev/null; then
  5697. lt_cv_nm_interface="MS dumpbin"
  5698. fi
  5699. rm -f conftest*
  5700. fi
  5701. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
  5702. $as_echo "$lt_cv_nm_interface" >&6; }
  5703. # find the maximum length of command line arguments
  5704. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
  5705. $as_echo_n "checking the maximum length of command line arguments... " >&6; }
  5706. if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
  5707. $as_echo_n "(cached) " >&6
  5708. else
  5709. i=0
  5710. teststring="ABCD"
  5711. case $build_os in
  5712. msdosdjgpp*)
  5713. # On DJGPP, this test can blow up pretty badly due to problems in libc
  5714. # (any single argument exceeding 2000 bytes causes a buffer overrun
  5715. # during glob expansion). Even if it were fixed, the result of this
  5716. # check would be larger than it should be.
  5717. lt_cv_sys_max_cmd_len=12288; # 12K is about right
  5718. ;;
  5719. gnu*)
  5720. # Under GNU Hurd, this test is not required because there is
  5721. # no limit to the length of command line arguments.
  5722. # Libtool will interpret -1 as no limit whatsoever
  5723. lt_cv_sys_max_cmd_len=-1;
  5724. ;;
  5725. cygwin* | mingw* | cegcc*)
  5726. # On Win9x/ME, this test blows up -- it succeeds, but takes
  5727. # about 5 minutes as the teststring grows exponentially.
  5728. # Worse, since 9x/ME are not pre-emptively multitasking,
  5729. # you end up with a "frozen" computer, even though with patience
  5730. # the test eventually succeeds (with a max line length of 256k).
  5731. # Instead, let's just punt: use the minimum linelength reported by
  5732. # all of the supported platforms: 8192 (on NT/2K/XP).
  5733. lt_cv_sys_max_cmd_len=8192;
  5734. ;;
  5735. mint*)
  5736. # On MiNT this can take a long time and run out of memory.
  5737. lt_cv_sys_max_cmd_len=8192;
  5738. ;;
  5739. amigaos*)
  5740. # On AmigaOS with pdksh, this test takes hours, literally.
  5741. # So we just punt and use a minimum line length of 8192.
  5742. lt_cv_sys_max_cmd_len=8192;
  5743. ;;
  5744. netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
  5745. # This has been around since 386BSD, at least. Likely further.
  5746. if test -x /sbin/sysctl; then
  5747. lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  5748. elif test -x /usr/sbin/sysctl; then
  5749. lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  5750. else
  5751. lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  5752. fi
  5753. # And add a safety zone
  5754. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  5755. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  5756. ;;
  5757. interix*)
  5758. # We know the value 262144 and hardcode it with a safety zone (like BSD)
  5759. lt_cv_sys_max_cmd_len=196608
  5760. ;;
  5761. osf*)
  5762. # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  5763. # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  5764. # nice to cause kernel panics so lets avoid the loop below.
  5765. # First set a reasonable default.
  5766. lt_cv_sys_max_cmd_len=16384
  5767. #
  5768. if test -x /sbin/sysconfig; then
  5769. case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  5770. *1*) lt_cv_sys_max_cmd_len=-1 ;;
  5771. esac
  5772. fi
  5773. ;;
  5774. sco3.2v5*)
  5775. lt_cv_sys_max_cmd_len=102400
  5776. ;;
  5777. sysv5* | sco5v6* | sysv4.2uw2*)
  5778. kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  5779. if test -n "$kargmax"; then
  5780. lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
  5781. else
  5782. lt_cv_sys_max_cmd_len=32768
  5783. fi
  5784. ;;
  5785. *)
  5786. lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  5787. if test -n "$lt_cv_sys_max_cmd_len"; then
  5788. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  5789. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  5790. else
  5791. # Make teststring a little bigger before we do anything with it.
  5792. # a 1K string should be a reasonable start.
  5793. for i in 1 2 3 4 5 6 7 8 ; do
  5794. teststring=$teststring$teststring
  5795. done
  5796. SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  5797. # If test is not a shell built-in, we'll probably end up computing a
  5798. # maximum length that is only half of the actual maximum length, but
  5799. # we can't tell.
  5800. while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
  5801. = "X$teststring$teststring"; } >/dev/null 2>&1 &&
  5802. test $i != 17 # 1/2 MB should be enough
  5803. do
  5804. i=`expr $i + 1`
  5805. teststring=$teststring$teststring
  5806. done
  5807. # Only check the string length outside the loop.
  5808. lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
  5809. teststring=
  5810. # Add a significant safety factor because C++ compilers can tack on
  5811. # massive amounts of additional arguments before passing them to the
  5812. # linker. It appears as though 1/2 is a usable value.
  5813. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  5814. fi
  5815. ;;
  5816. esac
  5817. fi
  5818. if test -n $lt_cv_sys_max_cmd_len ; then
  5819. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
  5820. $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
  5821. else
  5822. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
  5823. $as_echo "none" >&6; }
  5824. fi
  5825. max_cmd_len=$lt_cv_sys_max_cmd_len
  5826. : ${CP="cp -f"}
  5827. : ${MV="mv -f"}
  5828. : ${RM="rm -f"}
  5829. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
  5830. $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
  5831. # Try some XSI features
  5832. xsi_shell=no
  5833. ( _lt_dummy="a/b/c"
  5834. test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
  5835. = c,a/b,, \
  5836. && eval 'test $(( 1 + 1 )) -eq 2 \
  5837. && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
  5838. && xsi_shell=yes
  5839. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
  5840. $as_echo "$xsi_shell" >&6; }
  5841. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
  5842. $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
  5843. lt_shell_append=no
  5844. ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
  5845. >/dev/null 2>&1 \
  5846. && lt_shell_append=yes
  5847. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
  5848. $as_echo "$lt_shell_append" >&6; }
  5849. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  5850. lt_unset=unset
  5851. else
  5852. lt_unset=false
  5853. fi
  5854. # test EBCDIC or ASCII
  5855. case `echo X|tr X '\101'` in
  5856. A) # ASCII based system
  5857. # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  5858. lt_SP2NL='tr \040 \012'
  5859. lt_NL2SP='tr \015\012 \040\040'
  5860. ;;
  5861. *) # EBCDIC based system
  5862. lt_SP2NL='tr \100 \n'
  5863. lt_NL2SP='tr \r\n \100\100'
  5864. ;;
  5865. esac
  5866. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
  5867. $as_echo_n "checking for $LD option to reload object files... " >&6; }
  5868. if test "${lt_cv_ld_reload_flag+set}" = set; then :
  5869. $as_echo_n "(cached) " >&6
  5870. else
  5871. lt_cv_ld_reload_flag='-r'
  5872. fi
  5873. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
  5874. $as_echo "$lt_cv_ld_reload_flag" >&6; }
  5875. reload_flag=$lt_cv_ld_reload_flag
  5876. case $reload_flag in
  5877. "" | " "*) ;;
  5878. *) reload_flag=" $reload_flag" ;;
  5879. esac
  5880. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  5881. case $host_os in
  5882. darwin*)
  5883. if test "$GCC" = yes; then
  5884. reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
  5885. else
  5886. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  5887. fi
  5888. ;;
  5889. esac
  5890. if test -n "$ac_tool_prefix"; then
  5891. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  5892. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  5893. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5894. $as_echo_n "checking for $ac_word... " >&6; }
  5895. if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
  5896. $as_echo_n "(cached) " >&6
  5897. else
  5898. if test -n "$OBJDUMP"; then
  5899. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  5900. else
  5901. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5902. for as_dir in $PATH
  5903. do
  5904. IFS=$as_save_IFS
  5905. test -z "$as_dir" && as_dir=.
  5906. for ac_exec_ext in '' $ac_executable_extensions; do
  5907. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5908. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  5909. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5910. break 2
  5911. fi
  5912. done
  5913. done
  5914. IFS=$as_save_IFS
  5915. fi
  5916. fi
  5917. OBJDUMP=$ac_cv_prog_OBJDUMP
  5918. if test -n "$OBJDUMP"; then
  5919. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  5920. $as_echo "$OBJDUMP" >&6; }
  5921. else
  5922. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5923. $as_echo "no" >&6; }
  5924. fi
  5925. fi
  5926. if test -z "$ac_cv_prog_OBJDUMP"; then
  5927. ac_ct_OBJDUMP=$OBJDUMP
  5928. # Extract the first word of "objdump", so it can be a program name with args.
  5929. set dummy objdump; ac_word=$2
  5930. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5931. $as_echo_n "checking for $ac_word... " >&6; }
  5932. if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
  5933. $as_echo_n "(cached) " >&6
  5934. else
  5935. if test -n "$ac_ct_OBJDUMP"; then
  5936. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  5937. else
  5938. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5939. for as_dir in $PATH
  5940. do
  5941. IFS=$as_save_IFS
  5942. test -z "$as_dir" && as_dir=.
  5943. for ac_exec_ext in '' $ac_executable_extensions; do
  5944. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5945. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  5946. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5947. break 2
  5948. fi
  5949. done
  5950. done
  5951. IFS=$as_save_IFS
  5952. fi
  5953. fi
  5954. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  5955. if test -n "$ac_ct_OBJDUMP"; then
  5956. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  5957. $as_echo "$ac_ct_OBJDUMP" >&6; }
  5958. else
  5959. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5960. $as_echo "no" >&6; }
  5961. fi
  5962. if test "x$ac_ct_OBJDUMP" = x; then
  5963. OBJDUMP="false"
  5964. else
  5965. case $cross_compiling:$ac_tool_warned in
  5966. yes:)
  5967. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5968. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5969. ac_tool_warned=yes ;;
  5970. esac
  5971. OBJDUMP=$ac_ct_OBJDUMP
  5972. fi
  5973. else
  5974. OBJDUMP="$ac_cv_prog_OBJDUMP"
  5975. fi
  5976. test -z "$OBJDUMP" && OBJDUMP=objdump
  5977. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
  5978. $as_echo_n "checking how to recognize dependent libraries... " >&6; }
  5979. if test "${lt_cv_deplibs_check_method+set}" = set; then :
  5980. $as_echo_n "(cached) " >&6
  5981. else
  5982. lt_cv_file_magic_cmd='$MAGIC_CMD'
  5983. lt_cv_file_magic_test_file=
  5984. lt_cv_deplibs_check_method='unknown'
  5985. # Need to set the preceding variable on all platforms that support
  5986. # interlibrary dependencies.
  5987. # 'none' -- dependencies not supported.
  5988. # `unknown' -- same as none, but documents that we really don't know.
  5989. # 'pass_all' -- all dependencies passed with no checks.
  5990. # 'test_compile' -- check by making test program.
  5991. # 'file_magic [[regex]]' -- check by looking for files in library path
  5992. # which responds to the $file_magic_cmd with a given extended regex.
  5993. # If you have `file' or equivalent on your system and you're not sure
  5994. # whether `pass_all' will *always* work, you probably want this one.
  5995. case $host_os in
  5996. aix[4-9]*)
  5997. lt_cv_deplibs_check_method=pass_all
  5998. ;;
  5999. beos*)
  6000. lt_cv_deplibs_check_method=pass_all
  6001. ;;
  6002. bsdi[45]*)
  6003. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  6004. lt_cv_file_magic_cmd='/usr/bin/file -L'
  6005. lt_cv_file_magic_test_file=/shlib/libc.so
  6006. ;;
  6007. cygwin*)
  6008. # func_win32_libid is a shell function defined in ltmain.sh
  6009. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  6010. lt_cv_file_magic_cmd='func_win32_libid'
  6011. ;;
  6012. mingw* | pw32*)
  6013. # Base MSYS/MinGW do not provide the 'file' command needed by
  6014. # func_win32_libid shell function, so use a weaker test based on 'objdump',
  6015. # unless we find 'file', for example because we are cross-compiling.
  6016. # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
  6017. if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
  6018. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  6019. lt_cv_file_magic_cmd='func_win32_libid'
  6020. else
  6021. lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
  6022. lt_cv_file_magic_cmd='$OBJDUMP -f'
  6023. fi
  6024. ;;
  6025. cegcc*)
  6026. # use the weaker test based on 'objdump'. See mingw*.
  6027. lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
  6028. lt_cv_file_magic_cmd='$OBJDUMP -f'
  6029. ;;
  6030. darwin* | rhapsody*)
  6031. lt_cv_deplibs_check_method=pass_all
  6032. ;;
  6033. freebsd* | dragonfly*)
  6034. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  6035. case $host_cpu in
  6036. i*86 )
  6037. # Not sure whether the presence of OpenBSD here was a mistake.
  6038. # Let's accept both of them until this is cleared up.
  6039. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
  6040. lt_cv_file_magic_cmd=/usr/bin/file
  6041. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  6042. ;;
  6043. esac
  6044. else
  6045. lt_cv_deplibs_check_method=pass_all
  6046. fi
  6047. ;;
  6048. gnu*)
  6049. lt_cv_deplibs_check_method=pass_all
  6050. ;;
  6051. haiku*)
  6052. lt_cv_deplibs_check_method=pass_all
  6053. ;;
  6054. hpux10.20* | hpux11*)
  6055. lt_cv_file_magic_cmd=/usr/bin/file
  6056. case $host_cpu in
  6057. ia64*)
  6058. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  6059. lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  6060. ;;
  6061. hppa*64*)
  6062. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'
  6063. lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  6064. ;;
  6065. *)
  6066. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
  6067. lt_cv_file_magic_test_file=/usr/lib/libc.sl
  6068. ;;
  6069. esac
  6070. ;;
  6071. interix[3-9]*)
  6072. # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  6073. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
  6074. ;;
  6075. irix5* | irix6* | nonstopux*)
  6076. case $LD in
  6077. *-32|*"-32 ") libmagic=32-bit;;
  6078. *-n32|*"-n32 ") libmagic=N32;;
  6079. *-64|*"-64 ") libmagic=64-bit;;
  6080. *) libmagic=never-match;;
  6081. esac
  6082. lt_cv_deplibs_check_method=pass_all
  6083. ;;
  6084. # This must be Linux ELF.
  6085. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  6086. lt_cv_deplibs_check_method=pass_all
  6087. ;;
  6088. netbsd*)
  6089. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  6090. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  6091. else
  6092. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  6093. fi
  6094. ;;
  6095. newos6*)
  6096. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  6097. lt_cv_file_magic_cmd=/usr/bin/file
  6098. lt_cv_file_magic_test_file=/usr/lib/libnls.so
  6099. ;;
  6100. *nto* | *qnx*)
  6101. lt_cv_deplibs_check_method=pass_all
  6102. ;;
  6103. openbsd*)
  6104. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  6105. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  6106. else
  6107. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  6108. fi
  6109. ;;
  6110. osf3* | osf4* | osf5*)
  6111. lt_cv_deplibs_check_method=pass_all
  6112. ;;
  6113. rdos*)
  6114. lt_cv_deplibs_check_method=pass_all
  6115. ;;
  6116. solaris*)
  6117. lt_cv_deplibs_check_method=pass_all
  6118. ;;
  6119. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  6120. lt_cv_deplibs_check_method=pass_all
  6121. ;;
  6122. sysv4 | sysv4.3*)
  6123. case $host_vendor in
  6124. motorola)
  6125. 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]'
  6126. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  6127. ;;
  6128. ncr)
  6129. lt_cv_deplibs_check_method=pass_all
  6130. ;;
  6131. sequent)
  6132. lt_cv_file_magic_cmd='/bin/file'
  6133. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  6134. ;;
  6135. sni)
  6136. lt_cv_file_magic_cmd='/bin/file'
  6137. lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  6138. lt_cv_file_magic_test_file=/lib/libc.so
  6139. ;;
  6140. siemens)
  6141. lt_cv_deplibs_check_method=pass_all
  6142. ;;
  6143. pc)
  6144. lt_cv_deplibs_check_method=pass_all
  6145. ;;
  6146. esac
  6147. ;;
  6148. tpf*)
  6149. lt_cv_deplibs_check_method=pass_all
  6150. ;;
  6151. esac
  6152. fi
  6153. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
  6154. $as_echo "$lt_cv_deplibs_check_method" >&6; }
  6155. file_magic_cmd=$lt_cv_file_magic_cmd
  6156. deplibs_check_method=$lt_cv_deplibs_check_method
  6157. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  6158. if test -n "$ac_tool_prefix"; then
  6159. # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
  6160. set dummy ${ac_tool_prefix}ar; ac_word=$2
  6161. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6162. $as_echo_n "checking for $ac_word... " >&6; }
  6163. if test "${ac_cv_prog_AR+set}" = set; then :
  6164. $as_echo_n "(cached) " >&6
  6165. else
  6166. if test -n "$AR"; then
  6167. ac_cv_prog_AR="$AR" # Let the user override the test.
  6168. else
  6169. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6170. for as_dir in $PATH
  6171. do
  6172. IFS=$as_save_IFS
  6173. test -z "$as_dir" && as_dir=.
  6174. for ac_exec_ext in '' $ac_executable_extensions; do
  6175. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6176. ac_cv_prog_AR="${ac_tool_prefix}ar"
  6177. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6178. break 2
  6179. fi
  6180. done
  6181. done
  6182. IFS=$as_save_IFS
  6183. fi
  6184. fi
  6185. AR=$ac_cv_prog_AR
  6186. if test -n "$AR"; then
  6187. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  6188. $as_echo "$AR" >&6; }
  6189. else
  6190. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6191. $as_echo "no" >&6; }
  6192. fi
  6193. fi
  6194. if test -z "$ac_cv_prog_AR"; then
  6195. ac_ct_AR=$AR
  6196. # Extract the first word of "ar", so it can be a program name with args.
  6197. set dummy ar; ac_word=$2
  6198. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6199. $as_echo_n "checking for $ac_word... " >&6; }
  6200. if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
  6201. $as_echo_n "(cached) " >&6
  6202. else
  6203. if test -n "$ac_ct_AR"; then
  6204. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  6205. else
  6206. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6207. for as_dir in $PATH
  6208. do
  6209. IFS=$as_save_IFS
  6210. test -z "$as_dir" && as_dir=.
  6211. for ac_exec_ext in '' $ac_executable_extensions; do
  6212. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6213. ac_cv_prog_ac_ct_AR="ar"
  6214. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6215. break 2
  6216. fi
  6217. done
  6218. done
  6219. IFS=$as_save_IFS
  6220. fi
  6221. fi
  6222. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  6223. if test -n "$ac_ct_AR"; then
  6224. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
  6225. $as_echo "$ac_ct_AR" >&6; }
  6226. else
  6227. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6228. $as_echo "no" >&6; }
  6229. fi
  6230. if test "x$ac_ct_AR" = x; then
  6231. AR="false"
  6232. else
  6233. case $cross_compiling:$ac_tool_warned in
  6234. yes:)
  6235. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6236. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6237. ac_tool_warned=yes ;;
  6238. esac
  6239. AR=$ac_ct_AR
  6240. fi
  6241. else
  6242. AR="$ac_cv_prog_AR"
  6243. fi
  6244. test -z "$AR" && AR=ar
  6245. test -z "$AR_FLAGS" && AR_FLAGS=cru
  6246. if test -n "$ac_tool_prefix"; then
  6247. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  6248. set dummy ${ac_tool_prefix}strip; ac_word=$2
  6249. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6250. $as_echo_n "checking for $ac_word... " >&6; }
  6251. if test "${ac_cv_prog_STRIP+set}" = set; then :
  6252. $as_echo_n "(cached) " >&6
  6253. else
  6254. if test -n "$STRIP"; then
  6255. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  6256. else
  6257. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6258. for as_dir in $PATH
  6259. do
  6260. IFS=$as_save_IFS
  6261. test -z "$as_dir" && as_dir=.
  6262. for ac_exec_ext in '' $ac_executable_extensions; do
  6263. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6264. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  6265. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6266. break 2
  6267. fi
  6268. done
  6269. done
  6270. IFS=$as_save_IFS
  6271. fi
  6272. fi
  6273. STRIP=$ac_cv_prog_STRIP
  6274. if test -n "$STRIP"; then
  6275. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  6276. $as_echo "$STRIP" >&6; }
  6277. else
  6278. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6279. $as_echo "no" >&6; }
  6280. fi
  6281. fi
  6282. if test -z "$ac_cv_prog_STRIP"; then
  6283. ac_ct_STRIP=$STRIP
  6284. # Extract the first word of "strip", so it can be a program name with args.
  6285. set dummy strip; ac_word=$2
  6286. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6287. $as_echo_n "checking for $ac_word... " >&6; }
  6288. if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
  6289. $as_echo_n "(cached) " >&6
  6290. else
  6291. if test -n "$ac_ct_STRIP"; then
  6292. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  6293. else
  6294. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6295. for as_dir in $PATH
  6296. do
  6297. IFS=$as_save_IFS
  6298. test -z "$as_dir" && as_dir=.
  6299. for ac_exec_ext in '' $ac_executable_extensions; do
  6300. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6301. ac_cv_prog_ac_ct_STRIP="strip"
  6302. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6303. break 2
  6304. fi
  6305. done
  6306. done
  6307. IFS=$as_save_IFS
  6308. fi
  6309. fi
  6310. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  6311. if test -n "$ac_ct_STRIP"; then
  6312. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  6313. $as_echo "$ac_ct_STRIP" >&6; }
  6314. else
  6315. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6316. $as_echo "no" >&6; }
  6317. fi
  6318. if test "x$ac_ct_STRIP" = x; then
  6319. STRIP=":"
  6320. else
  6321. case $cross_compiling:$ac_tool_warned in
  6322. yes:)
  6323. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6324. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6325. ac_tool_warned=yes ;;
  6326. esac
  6327. STRIP=$ac_ct_STRIP
  6328. fi
  6329. else
  6330. STRIP="$ac_cv_prog_STRIP"
  6331. fi
  6332. test -z "$STRIP" && STRIP=:
  6333. if test -n "$ac_tool_prefix"; then
  6334. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  6335. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  6336. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6337. $as_echo_n "checking for $ac_word... " >&6; }
  6338. if test "${ac_cv_prog_RANLIB+set}" = set; then :
  6339. $as_echo_n "(cached) " >&6
  6340. else
  6341. if test -n "$RANLIB"; then
  6342. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  6343. else
  6344. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6345. for as_dir in $PATH
  6346. do
  6347. IFS=$as_save_IFS
  6348. test -z "$as_dir" && as_dir=.
  6349. for ac_exec_ext in '' $ac_executable_extensions; do
  6350. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6351. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  6352. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6353. break 2
  6354. fi
  6355. done
  6356. done
  6357. IFS=$as_save_IFS
  6358. fi
  6359. fi
  6360. RANLIB=$ac_cv_prog_RANLIB
  6361. if test -n "$RANLIB"; then
  6362. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  6363. $as_echo "$RANLIB" >&6; }
  6364. else
  6365. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6366. $as_echo "no" >&6; }
  6367. fi
  6368. fi
  6369. if test -z "$ac_cv_prog_RANLIB"; then
  6370. ac_ct_RANLIB=$RANLIB
  6371. # Extract the first word of "ranlib", so it can be a program name with args.
  6372. set dummy ranlib; ac_word=$2
  6373. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6374. $as_echo_n "checking for $ac_word... " >&6; }
  6375. if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
  6376. $as_echo_n "(cached) " >&6
  6377. else
  6378. if test -n "$ac_ct_RANLIB"; then
  6379. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  6380. else
  6381. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6382. for as_dir in $PATH
  6383. do
  6384. IFS=$as_save_IFS
  6385. test -z "$as_dir" && as_dir=.
  6386. for ac_exec_ext in '' $ac_executable_extensions; do
  6387. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6388. ac_cv_prog_ac_ct_RANLIB="ranlib"
  6389. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6390. break 2
  6391. fi
  6392. done
  6393. done
  6394. IFS=$as_save_IFS
  6395. fi
  6396. fi
  6397. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  6398. if test -n "$ac_ct_RANLIB"; then
  6399. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  6400. $as_echo "$ac_ct_RANLIB" >&6; }
  6401. else
  6402. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6403. $as_echo "no" >&6; }
  6404. fi
  6405. if test "x$ac_ct_RANLIB" = x; then
  6406. RANLIB=":"
  6407. else
  6408. case $cross_compiling:$ac_tool_warned in
  6409. yes:)
  6410. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6411. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6412. ac_tool_warned=yes ;;
  6413. esac
  6414. RANLIB=$ac_ct_RANLIB
  6415. fi
  6416. else
  6417. RANLIB="$ac_cv_prog_RANLIB"
  6418. fi
  6419. test -z "$RANLIB" && RANLIB=:
  6420. # Determine commands to create old-style static archives.
  6421. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  6422. old_postinstall_cmds='chmod 644 $oldlib'
  6423. old_postuninstall_cmds=
  6424. if test -n "$RANLIB"; then
  6425. case $host_os in
  6426. openbsd*)
  6427. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
  6428. ;;
  6429. *)
  6430. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
  6431. ;;
  6432. esac
  6433. old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
  6434. fi
  6435. case $host_os in
  6436. darwin*)
  6437. lock_old_archive_extraction=yes ;;
  6438. *)
  6439. lock_old_archive_extraction=no ;;
  6440. esac
  6441. # If no C compiler was specified, use CC.
  6442. LTCC=${LTCC-"$CC"}
  6443. # If no C compiler flags were specified, use CFLAGS.
  6444. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  6445. # Allow CC to be a program name with arguments.
  6446. compiler=$CC
  6447. # Check for command to grab the raw symbol name followed by C symbol from nm.
  6448. { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
  6449. $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
  6450. if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
  6451. $as_echo_n "(cached) " >&6
  6452. else
  6453. # These are sane defaults that work on at least a few old systems.
  6454. # [They come from Ultrix. What could be older than Ultrix?!! ;)]
  6455. # Character class describing NM global symbol codes.
  6456. symcode='[BCDEGRST]'
  6457. # Regexp to match symbols that can be accessed directly from C.
  6458. sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  6459. # Define system-specific variables.
  6460. case $host_os in
  6461. aix*)
  6462. symcode='[BCDT]'
  6463. ;;
  6464. cygwin* | mingw* | pw32* | cegcc*)
  6465. symcode='[ABCDGISTW]'
  6466. ;;
  6467. hpux*)
  6468. if test "$host_cpu" = ia64; then
  6469. symcode='[ABCDEGRST]'
  6470. fi
  6471. ;;
  6472. irix* | nonstopux*)
  6473. symcode='[BCDEGRST]'
  6474. ;;
  6475. osf*)
  6476. symcode='[BCDEGQRST]'
  6477. ;;
  6478. solaris*)
  6479. symcode='[BDRT]'
  6480. ;;
  6481. sco3.2v5*)
  6482. symcode='[DT]'
  6483. ;;
  6484. sysv4.2uw2*)
  6485. symcode='[DT]'
  6486. ;;
  6487. sysv5* | sco5v6* | unixware* | OpenUNIX*)
  6488. symcode='[ABDT]'
  6489. ;;
  6490. sysv4)
  6491. symcode='[DFNSTU]'
  6492. ;;
  6493. esac
  6494. # If we're using GNU nm, then use its standard symbol codes.
  6495. case `$NM -V 2>&1` in
  6496. *GNU* | *'with BFD'*)
  6497. symcode='[ABCDGIRSTW]' ;;
  6498. esac
  6499. # Transform an extracted symbol line into a proper C declaration.
  6500. # Some systems (esp. on ia64) link data and code symbols differently,
  6501. # so use this general approach.
  6502. lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  6503. # Transform an extracted symbol line into symbol name and symbol address
  6504. lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
  6505. 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'"
  6506. # Handle CRLF in mingw tool chain
  6507. opt_cr=
  6508. case $build_os in
  6509. mingw*)
  6510. opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  6511. ;;
  6512. esac
  6513. # Try without a prefix underscore, then with it.
  6514. for ac_symprfx in "" "_"; do
  6515. # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  6516. symxfrm="\\1 $ac_symprfx\\2 \\2"
  6517. # Write the raw and C identifiers.
  6518. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  6519. # Fake it for dumpbin and say T for any non-static function
  6520. # and D for any global variable.
  6521. # Also find C++ and __fastcall symbols from MSVC++,
  6522. # which start with @ or ?.
  6523. lt_cv_sys_global_symbol_pipe="$AWK '"\
  6524. " {last_section=section; section=\$ 3};"\
  6525. " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
  6526. " \$ 0!~/External *\|/{next};"\
  6527. " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
  6528. " {if(hide[section]) next};"\
  6529. " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
  6530. " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
  6531. " s[1]~/^[@?]/{print s[1], s[1]; next};"\
  6532. " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
  6533. " ' prfx=^$ac_symprfx"
  6534. else
  6535. lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  6536. fi
  6537. # Check to see that the pipe works correctly.
  6538. pipe_works=no
  6539. rm -f conftest*
  6540. cat > conftest.$ac_ext <<_LT_EOF
  6541. #ifdef __cplusplus
  6542. extern "C" {
  6543. #endif
  6544. char nm_test_var;
  6545. void nm_test_func(void);
  6546. void nm_test_func(void){}
  6547. #ifdef __cplusplus
  6548. }
  6549. #endif
  6550. int main(){nm_test_var='a';nm_test_func();return(0);}
  6551. _LT_EOF
  6552. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6553. (eval $ac_compile) 2>&5
  6554. ac_status=$?
  6555. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6556. test $ac_status = 0; }; then
  6557. # Now try to grab the symbols.
  6558. nlist=conftest.nm
  6559. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
  6560. (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
  6561. ac_status=$?
  6562. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6563. test $ac_status = 0; } && test -s "$nlist"; then
  6564. # Try sorting and uniquifying the output.
  6565. if sort "$nlist" | uniq > "$nlist"T; then
  6566. mv -f "$nlist"T "$nlist"
  6567. else
  6568. rm -f "$nlist"T
  6569. fi
  6570. # Make sure that we snagged all the symbols we need.
  6571. if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
  6572. if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
  6573. cat <<_LT_EOF > conftest.$ac_ext
  6574. #ifdef __cplusplus
  6575. extern "C" {
  6576. #endif
  6577. _LT_EOF
  6578. # Now generate the symbol file.
  6579. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
  6580. cat <<_LT_EOF >> conftest.$ac_ext
  6581. /* The mapping between symbol names and symbols. */
  6582. const struct {
  6583. const char *name;
  6584. void *address;
  6585. }
  6586. lt__PROGRAM__LTX_preloaded_symbols[] =
  6587. {
  6588. { "@PROGRAM@", (void *) 0 },
  6589. _LT_EOF
  6590. $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
  6591. cat <<\_LT_EOF >> conftest.$ac_ext
  6592. {0, (void *) 0}
  6593. };
  6594. /* This works around a problem in FreeBSD linker */
  6595. #ifdef FREEBSD_WORKAROUND
  6596. static const void *lt_preloaded_setup() {
  6597. return lt__PROGRAM__LTX_preloaded_symbols;
  6598. }
  6599. #endif
  6600. #ifdef __cplusplus
  6601. }
  6602. #endif
  6603. _LT_EOF
  6604. # Now try linking the two files.
  6605. mv conftest.$ac_objext conftstm.$ac_objext
  6606. lt_save_LIBS="$LIBS"
  6607. lt_save_CFLAGS="$CFLAGS"
  6608. LIBS="conftstm.$ac_objext"
  6609. CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
  6610. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  6611. (eval $ac_link) 2>&5
  6612. ac_status=$?
  6613. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6614. test $ac_status = 0; } && test -s conftest${ac_exeext}; then
  6615. pipe_works=yes
  6616. fi
  6617. LIBS="$lt_save_LIBS"
  6618. CFLAGS="$lt_save_CFLAGS"
  6619. else
  6620. echo "cannot find nm_test_func in $nlist" >&5
  6621. fi
  6622. else
  6623. echo "cannot find nm_test_var in $nlist" >&5
  6624. fi
  6625. else
  6626. echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
  6627. fi
  6628. else
  6629. echo "$progname: failed program was:" >&5
  6630. cat conftest.$ac_ext >&5
  6631. fi
  6632. rm -rf conftest* conftst*
  6633. # Do not use the global_symbol_pipe unless it works.
  6634. if test "$pipe_works" = yes; then
  6635. break
  6636. else
  6637. lt_cv_sys_global_symbol_pipe=
  6638. fi
  6639. done
  6640. fi
  6641. if test -z "$lt_cv_sys_global_symbol_pipe"; then
  6642. lt_cv_sys_global_symbol_to_cdecl=
  6643. fi
  6644. if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  6645. { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
  6646. $as_echo "failed" >&6; }
  6647. else
  6648. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
  6649. $as_echo "ok" >&6; }
  6650. fi
  6651. # Check whether --enable-libtool-lock was given.
  6652. if test "${enable_libtool_lock+set}" = set; then :
  6653. enableval=$enable_libtool_lock;
  6654. fi
  6655. test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  6656. # Some flags need to be propagated to the compiler or linker for good
  6657. # libtool support.
  6658. case $host in
  6659. ia64-*-hpux*)
  6660. # Find out which ABI we are using.
  6661. echo 'int i;' > conftest.$ac_ext
  6662. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6663. (eval $ac_compile) 2>&5
  6664. ac_status=$?
  6665. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6666. test $ac_status = 0; }; then
  6667. case `/usr/bin/file conftest.$ac_objext` in
  6668. *ELF-32*)
  6669. HPUX_IA64_MODE="32"
  6670. ;;
  6671. *ELF-64*)
  6672. HPUX_IA64_MODE="64"
  6673. ;;
  6674. esac
  6675. fi
  6676. rm -rf conftest*
  6677. ;;
  6678. *-*-irix6*)
  6679. # Find out which ABI we are using.
  6680. echo '#line '$LINENO' "configure"' > conftest.$ac_ext
  6681. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6682. (eval $ac_compile) 2>&5
  6683. ac_status=$?
  6684. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6685. test $ac_status = 0; }; then
  6686. if test "$lt_cv_prog_gnu_ld" = yes; then
  6687. case `/usr/bin/file conftest.$ac_objext` in
  6688. *32-bit*)
  6689. LD="${LD-ld} -melf32bsmip"
  6690. ;;
  6691. *N32*)
  6692. LD="${LD-ld} -melf32bmipn32"
  6693. ;;
  6694. *64-bit*)
  6695. LD="${LD-ld} -melf64bmip"
  6696. ;;
  6697. esac
  6698. else
  6699. case `/usr/bin/file conftest.$ac_objext` in
  6700. *32-bit*)
  6701. LD="${LD-ld} -32"
  6702. ;;
  6703. *N32*)
  6704. LD="${LD-ld} -n32"
  6705. ;;
  6706. *64-bit*)
  6707. LD="${LD-ld} -64"
  6708. ;;
  6709. esac
  6710. fi
  6711. fi
  6712. rm -rf conftest*
  6713. ;;
  6714. x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
  6715. s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
  6716. # Find out which ABI we are using.
  6717. echo 'int i;' > conftest.$ac_ext
  6718. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6719. (eval $ac_compile) 2>&5
  6720. ac_status=$?
  6721. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6722. test $ac_status = 0; }; then
  6723. case `/usr/bin/file conftest.o` in
  6724. *32-bit*)
  6725. case $host in
  6726. x86_64-*kfreebsd*-gnu)
  6727. LD="${LD-ld} -m elf_i386_fbsd"
  6728. ;;
  6729. x86_64-*linux*)
  6730. case `/usr/bin/file conftest.o` in
  6731. *x86-64*)
  6732. LD="${LD-ld} -m elf32_x86_64"
  6733. ;;
  6734. *)
  6735. LD="${LD-ld} -m elf_i386"
  6736. ;;
  6737. esac
  6738. ;;
  6739. powerpc64le-*linux*)
  6740. LD="${LD-ld} -m elf32lppclinux"
  6741. ;;
  6742. powerpc64-*linux*)
  6743. LD="${LD-ld} -m elf32ppclinux"
  6744. ;;
  6745. s390x-*linux*)
  6746. LD="${LD-ld} -m elf_s390"
  6747. ;;
  6748. sparc64-*linux*)
  6749. LD="${LD-ld} -m elf32_sparc"
  6750. ;;
  6751. esac
  6752. ;;
  6753. *64-bit*)
  6754. case $host in
  6755. x86_64-*kfreebsd*-gnu)
  6756. LD="${LD-ld} -m elf_x86_64_fbsd"
  6757. ;;
  6758. x86_64-*linux*)
  6759. LD="${LD-ld} -m elf_x86_64"
  6760. ;;
  6761. powerpcle-*linux*)
  6762. LD="${LD-ld} -m elf64lppc"
  6763. ;;
  6764. powerpc-*linux*)
  6765. LD="${LD-ld} -m elf64ppc"
  6766. ;;
  6767. s390*-*linux*|s390*-*tpf*)
  6768. LD="${LD-ld} -m elf64_s390"
  6769. ;;
  6770. sparc*-*linux*)
  6771. LD="${LD-ld} -m elf64_sparc"
  6772. ;;
  6773. esac
  6774. ;;
  6775. esac
  6776. fi
  6777. rm -rf conftest*
  6778. ;;
  6779. *-*-sco3.2v5*)
  6780. # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  6781. SAVE_CFLAGS="$CFLAGS"
  6782. CFLAGS="$CFLAGS -belf"
  6783. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
  6784. $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
  6785. if test "${lt_cv_cc_needs_belf+set}" = set; then :
  6786. $as_echo_n "(cached) " >&6
  6787. else
  6788. ac_ext=c
  6789. ac_cpp='$CPP $CPPFLAGS'
  6790. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6791. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6792. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6793. if test x$gcc_no_link = xyes; then
  6794. as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  6795. fi
  6796. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6797. /* end confdefs.h. */
  6798. int
  6799. main ()
  6800. {
  6801. ;
  6802. return 0;
  6803. }
  6804. _ACEOF
  6805. if ac_fn_c_try_link "$LINENO"; then :
  6806. lt_cv_cc_needs_belf=yes
  6807. else
  6808. lt_cv_cc_needs_belf=no
  6809. fi
  6810. rm -f core conftest.err conftest.$ac_objext \
  6811. conftest$ac_exeext conftest.$ac_ext
  6812. ac_ext=c
  6813. ac_cpp='$CPP $CPPFLAGS'
  6814. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6815. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6816. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6817. fi
  6818. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
  6819. $as_echo "$lt_cv_cc_needs_belf" >&6; }
  6820. if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  6821. # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  6822. CFLAGS="$SAVE_CFLAGS"
  6823. fi
  6824. ;;
  6825. sparc*-*solaris*)
  6826. # Find out which ABI we are using.
  6827. echo 'int i;' > conftest.$ac_ext
  6828. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6829. (eval $ac_compile) 2>&5
  6830. ac_status=$?
  6831. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6832. test $ac_status = 0; }; then
  6833. case `/usr/bin/file conftest.o` in
  6834. *64-bit*)
  6835. case $lt_cv_prog_gnu_ld in
  6836. yes*) LD="${LD-ld} -m elf64_sparc" ;;
  6837. *)
  6838. if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  6839. LD="${LD-ld} -64"
  6840. fi
  6841. ;;
  6842. esac
  6843. ;;
  6844. esac
  6845. fi
  6846. rm -rf conftest*
  6847. ;;
  6848. esac
  6849. need_locks="$enable_libtool_lock"
  6850. case $host_os in
  6851. rhapsody* | darwin*)
  6852. if test -n "$ac_tool_prefix"; then
  6853. # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
  6854. set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
  6855. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6856. $as_echo_n "checking for $ac_word... " >&6; }
  6857. if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
  6858. $as_echo_n "(cached) " >&6
  6859. else
  6860. if test -n "$DSYMUTIL"; then
  6861. ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
  6862. else
  6863. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6864. for as_dir in $PATH
  6865. do
  6866. IFS=$as_save_IFS
  6867. test -z "$as_dir" && as_dir=.
  6868. for ac_exec_ext in '' $ac_executable_extensions; do
  6869. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6870. ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
  6871. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6872. break 2
  6873. fi
  6874. done
  6875. done
  6876. IFS=$as_save_IFS
  6877. fi
  6878. fi
  6879. DSYMUTIL=$ac_cv_prog_DSYMUTIL
  6880. if test -n "$DSYMUTIL"; then
  6881. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
  6882. $as_echo "$DSYMUTIL" >&6; }
  6883. else
  6884. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6885. $as_echo "no" >&6; }
  6886. fi
  6887. fi
  6888. if test -z "$ac_cv_prog_DSYMUTIL"; then
  6889. ac_ct_DSYMUTIL=$DSYMUTIL
  6890. # Extract the first word of "dsymutil", so it can be a program name with args.
  6891. set dummy dsymutil; ac_word=$2
  6892. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6893. $as_echo_n "checking for $ac_word... " >&6; }
  6894. if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
  6895. $as_echo_n "(cached) " >&6
  6896. else
  6897. if test -n "$ac_ct_DSYMUTIL"; then
  6898. ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
  6899. else
  6900. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6901. for as_dir in $PATH
  6902. do
  6903. IFS=$as_save_IFS
  6904. test -z "$as_dir" && as_dir=.
  6905. for ac_exec_ext in '' $ac_executable_extensions; do
  6906. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6907. ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
  6908. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6909. break 2
  6910. fi
  6911. done
  6912. done
  6913. IFS=$as_save_IFS
  6914. fi
  6915. fi
  6916. ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
  6917. if test -n "$ac_ct_DSYMUTIL"; then
  6918. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
  6919. $as_echo "$ac_ct_DSYMUTIL" >&6; }
  6920. else
  6921. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6922. $as_echo "no" >&6; }
  6923. fi
  6924. if test "x$ac_ct_DSYMUTIL" = x; then
  6925. DSYMUTIL=":"
  6926. else
  6927. case $cross_compiling:$ac_tool_warned in
  6928. yes:)
  6929. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6930. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6931. ac_tool_warned=yes ;;
  6932. esac
  6933. DSYMUTIL=$ac_ct_DSYMUTIL
  6934. fi
  6935. else
  6936. DSYMUTIL="$ac_cv_prog_DSYMUTIL"
  6937. fi
  6938. if test -n "$ac_tool_prefix"; then
  6939. # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
  6940. set dummy ${ac_tool_prefix}nmedit; ac_word=$2
  6941. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6942. $as_echo_n "checking for $ac_word... " >&6; }
  6943. if test "${ac_cv_prog_NMEDIT+set}" = set; then :
  6944. $as_echo_n "(cached) " >&6
  6945. else
  6946. if test -n "$NMEDIT"; then
  6947. ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
  6948. else
  6949. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6950. for as_dir in $PATH
  6951. do
  6952. IFS=$as_save_IFS
  6953. test -z "$as_dir" && as_dir=.
  6954. for ac_exec_ext in '' $ac_executable_extensions; do
  6955. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6956. ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
  6957. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6958. break 2
  6959. fi
  6960. done
  6961. done
  6962. IFS=$as_save_IFS
  6963. fi
  6964. fi
  6965. NMEDIT=$ac_cv_prog_NMEDIT
  6966. if test -n "$NMEDIT"; then
  6967. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
  6968. $as_echo "$NMEDIT" >&6; }
  6969. else
  6970. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6971. $as_echo "no" >&6; }
  6972. fi
  6973. fi
  6974. if test -z "$ac_cv_prog_NMEDIT"; then
  6975. ac_ct_NMEDIT=$NMEDIT
  6976. # Extract the first word of "nmedit", so it can be a program name with args.
  6977. set dummy nmedit; ac_word=$2
  6978. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6979. $as_echo_n "checking for $ac_word... " >&6; }
  6980. if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
  6981. $as_echo_n "(cached) " >&6
  6982. else
  6983. if test -n "$ac_ct_NMEDIT"; then
  6984. ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
  6985. else
  6986. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6987. for as_dir in $PATH
  6988. do
  6989. IFS=$as_save_IFS
  6990. test -z "$as_dir" && as_dir=.
  6991. for ac_exec_ext in '' $ac_executable_extensions; do
  6992. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6993. ac_cv_prog_ac_ct_NMEDIT="nmedit"
  6994. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6995. break 2
  6996. fi
  6997. done
  6998. done
  6999. IFS=$as_save_IFS
  7000. fi
  7001. fi
  7002. ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
  7003. if test -n "$ac_ct_NMEDIT"; then
  7004. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
  7005. $as_echo "$ac_ct_NMEDIT" >&6; }
  7006. else
  7007. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7008. $as_echo "no" >&6; }
  7009. fi
  7010. if test "x$ac_ct_NMEDIT" = x; then
  7011. NMEDIT=":"
  7012. else
  7013. case $cross_compiling:$ac_tool_warned in
  7014. yes:)
  7015. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7016. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7017. ac_tool_warned=yes ;;
  7018. esac
  7019. NMEDIT=$ac_ct_NMEDIT
  7020. fi
  7021. else
  7022. NMEDIT="$ac_cv_prog_NMEDIT"
  7023. fi
  7024. if test -n "$ac_tool_prefix"; then
  7025. # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
  7026. set dummy ${ac_tool_prefix}lipo; ac_word=$2
  7027. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7028. $as_echo_n "checking for $ac_word... " >&6; }
  7029. if test "${ac_cv_prog_LIPO+set}" = set; then :
  7030. $as_echo_n "(cached) " >&6
  7031. else
  7032. if test -n "$LIPO"; then
  7033. ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
  7034. else
  7035. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7036. for as_dir in $PATH
  7037. do
  7038. IFS=$as_save_IFS
  7039. test -z "$as_dir" && as_dir=.
  7040. for ac_exec_ext in '' $ac_executable_extensions; do
  7041. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  7042. ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
  7043. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7044. break 2
  7045. fi
  7046. done
  7047. done
  7048. IFS=$as_save_IFS
  7049. fi
  7050. fi
  7051. LIPO=$ac_cv_prog_LIPO
  7052. if test -n "$LIPO"; then
  7053. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
  7054. $as_echo "$LIPO" >&6; }
  7055. else
  7056. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7057. $as_echo "no" >&6; }
  7058. fi
  7059. fi
  7060. if test -z "$ac_cv_prog_LIPO"; then
  7061. ac_ct_LIPO=$LIPO
  7062. # Extract the first word of "lipo", so it can be a program name with args.
  7063. set dummy lipo; ac_word=$2
  7064. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7065. $as_echo_n "checking for $ac_word... " >&6; }
  7066. if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
  7067. $as_echo_n "(cached) " >&6
  7068. else
  7069. if test -n "$ac_ct_LIPO"; then
  7070. ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
  7071. else
  7072. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7073. for as_dir in $PATH
  7074. do
  7075. IFS=$as_save_IFS
  7076. test -z "$as_dir" && as_dir=.
  7077. for ac_exec_ext in '' $ac_executable_extensions; do
  7078. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  7079. ac_cv_prog_ac_ct_LIPO="lipo"
  7080. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7081. break 2
  7082. fi
  7083. done
  7084. done
  7085. IFS=$as_save_IFS
  7086. fi
  7087. fi
  7088. ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
  7089. if test -n "$ac_ct_LIPO"; then
  7090. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
  7091. $as_echo "$ac_ct_LIPO" >&6; }
  7092. else
  7093. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7094. $as_echo "no" >&6; }
  7095. fi
  7096. if test "x$ac_ct_LIPO" = x; then
  7097. LIPO=":"
  7098. else
  7099. case $cross_compiling:$ac_tool_warned in
  7100. yes:)
  7101. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7102. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7103. ac_tool_warned=yes ;;
  7104. esac
  7105. LIPO=$ac_ct_LIPO
  7106. fi
  7107. else
  7108. LIPO="$ac_cv_prog_LIPO"
  7109. fi
  7110. if test -n "$ac_tool_prefix"; then
  7111. # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
  7112. set dummy ${ac_tool_prefix}otool; ac_word=$2
  7113. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7114. $as_echo_n "checking for $ac_word... " >&6; }
  7115. if test "${ac_cv_prog_OTOOL+set}" = set; then :
  7116. $as_echo_n "(cached) " >&6
  7117. else
  7118. if test -n "$OTOOL"; then
  7119. ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
  7120. else
  7121. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7122. for as_dir in $PATH
  7123. do
  7124. IFS=$as_save_IFS
  7125. test -z "$as_dir" && as_dir=.
  7126. for ac_exec_ext in '' $ac_executable_extensions; do
  7127. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  7128. ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
  7129. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7130. break 2
  7131. fi
  7132. done
  7133. done
  7134. IFS=$as_save_IFS
  7135. fi
  7136. fi
  7137. OTOOL=$ac_cv_prog_OTOOL
  7138. if test -n "$OTOOL"; then
  7139. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
  7140. $as_echo "$OTOOL" >&6; }
  7141. else
  7142. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7143. $as_echo "no" >&6; }
  7144. fi
  7145. fi
  7146. if test -z "$ac_cv_prog_OTOOL"; then
  7147. ac_ct_OTOOL=$OTOOL
  7148. # Extract the first word of "otool", so it can be a program name with args.
  7149. set dummy otool; ac_word=$2
  7150. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7151. $as_echo_n "checking for $ac_word... " >&6; }
  7152. if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
  7153. $as_echo_n "(cached) " >&6
  7154. else
  7155. if test -n "$ac_ct_OTOOL"; then
  7156. ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
  7157. else
  7158. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7159. for as_dir in $PATH
  7160. do
  7161. IFS=$as_save_IFS
  7162. test -z "$as_dir" && as_dir=.
  7163. for ac_exec_ext in '' $ac_executable_extensions; do
  7164. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  7165. ac_cv_prog_ac_ct_OTOOL="otool"
  7166. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7167. break 2
  7168. fi
  7169. done
  7170. done
  7171. IFS=$as_save_IFS
  7172. fi
  7173. fi
  7174. ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
  7175. if test -n "$ac_ct_OTOOL"; then
  7176. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
  7177. $as_echo "$ac_ct_OTOOL" >&6; }
  7178. else
  7179. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7180. $as_echo "no" >&6; }
  7181. fi
  7182. if test "x$ac_ct_OTOOL" = x; then
  7183. OTOOL=":"
  7184. else
  7185. case $cross_compiling:$ac_tool_warned in
  7186. yes:)
  7187. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7188. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7189. ac_tool_warned=yes ;;
  7190. esac
  7191. OTOOL=$ac_ct_OTOOL
  7192. fi
  7193. else
  7194. OTOOL="$ac_cv_prog_OTOOL"
  7195. fi
  7196. if test -n "$ac_tool_prefix"; then
  7197. # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
  7198. set dummy ${ac_tool_prefix}otool64; ac_word=$2
  7199. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7200. $as_echo_n "checking for $ac_word... " >&6; }
  7201. if test "${ac_cv_prog_OTOOL64+set}" = set; then :
  7202. $as_echo_n "(cached) " >&6
  7203. else
  7204. if test -n "$OTOOL64"; then
  7205. ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
  7206. else
  7207. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7208. for as_dir in $PATH
  7209. do
  7210. IFS=$as_save_IFS
  7211. test -z "$as_dir" && as_dir=.
  7212. for ac_exec_ext in '' $ac_executable_extensions; do
  7213. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  7214. ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
  7215. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7216. break 2
  7217. fi
  7218. done
  7219. done
  7220. IFS=$as_save_IFS
  7221. fi
  7222. fi
  7223. OTOOL64=$ac_cv_prog_OTOOL64
  7224. if test -n "$OTOOL64"; then
  7225. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
  7226. $as_echo "$OTOOL64" >&6; }
  7227. else
  7228. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7229. $as_echo "no" >&6; }
  7230. fi
  7231. fi
  7232. if test -z "$ac_cv_prog_OTOOL64"; then
  7233. ac_ct_OTOOL64=$OTOOL64
  7234. # Extract the first word of "otool64", so it can be a program name with args.
  7235. set dummy otool64; ac_word=$2
  7236. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7237. $as_echo_n "checking for $ac_word... " >&6; }
  7238. if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
  7239. $as_echo_n "(cached) " >&6
  7240. else
  7241. if test -n "$ac_ct_OTOOL64"; then
  7242. ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
  7243. else
  7244. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7245. for as_dir in $PATH
  7246. do
  7247. IFS=$as_save_IFS
  7248. test -z "$as_dir" && as_dir=.
  7249. for ac_exec_ext in '' $ac_executable_extensions; do
  7250. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  7251. ac_cv_prog_ac_ct_OTOOL64="otool64"
  7252. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7253. break 2
  7254. fi
  7255. done
  7256. done
  7257. IFS=$as_save_IFS
  7258. fi
  7259. fi
  7260. ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
  7261. if test -n "$ac_ct_OTOOL64"; then
  7262. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
  7263. $as_echo "$ac_ct_OTOOL64" >&6; }
  7264. else
  7265. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7266. $as_echo "no" >&6; }
  7267. fi
  7268. if test "x$ac_ct_OTOOL64" = x; then
  7269. OTOOL64=":"
  7270. else
  7271. case $cross_compiling:$ac_tool_warned in
  7272. yes:)
  7273. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7274. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7275. ac_tool_warned=yes ;;
  7276. esac
  7277. OTOOL64=$ac_ct_OTOOL64
  7278. fi
  7279. else
  7280. OTOOL64="$ac_cv_prog_OTOOL64"
  7281. fi
  7282. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
  7283. $as_echo_n "checking for -single_module linker flag... " >&6; }
  7284. if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
  7285. $as_echo_n "(cached) " >&6
  7286. else
  7287. lt_cv_apple_cc_single_mod=no
  7288. if test -z "${LT_MULTI_MODULE}"; then
  7289. # By default we will add the -single_module flag. You can override
  7290. # by either setting the environment variable LT_MULTI_MODULE
  7291. # non-empty at configure time, or by adding -multi_module to the
  7292. # link flags.
  7293. rm -rf libconftest.dylib*
  7294. echo "int foo(void){return 1;}" > conftest.c
  7295. echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  7296. -dynamiclib -Wl,-single_module conftest.c" >&5
  7297. $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  7298. -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
  7299. _lt_result=$?
  7300. if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
  7301. lt_cv_apple_cc_single_mod=yes
  7302. else
  7303. cat conftest.err >&5
  7304. fi
  7305. rm -rf libconftest.dylib*
  7306. rm -f conftest.*
  7307. fi
  7308. fi
  7309. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
  7310. $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
  7311. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
  7312. $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
  7313. if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
  7314. $as_echo_n "(cached) " >&6
  7315. else
  7316. lt_cv_ld_exported_symbols_list=no
  7317. save_LDFLAGS=$LDFLAGS
  7318. echo "_main" > conftest.sym
  7319. LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  7320. if test x$gcc_no_link = xyes; then
  7321. as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  7322. fi
  7323. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7324. /* end confdefs.h. */
  7325. int
  7326. main ()
  7327. {
  7328. ;
  7329. return 0;
  7330. }
  7331. _ACEOF
  7332. if ac_fn_c_try_link "$LINENO"; then :
  7333. lt_cv_ld_exported_symbols_list=yes
  7334. else
  7335. lt_cv_ld_exported_symbols_list=no
  7336. fi
  7337. rm -f core conftest.err conftest.$ac_objext \
  7338. conftest$ac_exeext conftest.$ac_ext
  7339. LDFLAGS="$save_LDFLAGS"
  7340. fi
  7341. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
  7342. $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
  7343. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
  7344. $as_echo_n "checking for -force_load linker flag... " >&6; }
  7345. if test "${lt_cv_ld_force_load+set}" = set; then :
  7346. $as_echo_n "(cached) " >&6
  7347. else
  7348. lt_cv_ld_force_load=no
  7349. cat > conftest.c << _LT_EOF
  7350. int forced_loaded() { return 2;}
  7351. _LT_EOF
  7352. echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
  7353. $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
  7354. echo "$AR cru libconftest.a conftest.o" >&5
  7355. $AR cru libconftest.a conftest.o 2>&5
  7356. cat > conftest.c << _LT_EOF
  7357. int main() { return 0;}
  7358. _LT_EOF
  7359. echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
  7360. $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
  7361. _lt_result=$?
  7362. if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
  7363. lt_cv_ld_force_load=yes
  7364. else
  7365. cat conftest.err >&5
  7366. fi
  7367. rm -f conftest.err libconftest.a conftest conftest.c
  7368. rm -rf conftest.dSYM
  7369. fi
  7370. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
  7371. $as_echo "$lt_cv_ld_force_load" >&6; }
  7372. case $host_os in
  7373. rhapsody* | darwin1.[012])
  7374. _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
  7375. darwin1.*)
  7376. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  7377. darwin*) # darwin 5.x on
  7378. # if running on 10.5 or later, the deployment target defaults
  7379. # to the OS version, if on x86, and 10.4, the deployment
  7380. # target defaults to 10.4. Don't you love it?
  7381. case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
  7382. 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
  7383. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  7384. 10.[012][,.]*)
  7385. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  7386. 10.*)
  7387. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  7388. esac
  7389. ;;
  7390. esac
  7391. if test "$lt_cv_apple_cc_single_mod" = "yes"; then
  7392. _lt_dar_single_mod='$single_module'
  7393. fi
  7394. if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
  7395. _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
  7396. else
  7397. _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
  7398. fi
  7399. if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
  7400. _lt_dsymutil='~$DSYMUTIL $lib || :'
  7401. else
  7402. _lt_dsymutil=
  7403. fi
  7404. ;;
  7405. esac
  7406. for ac_header in dlfcn.h
  7407. do :
  7408. ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
  7409. "
  7410. if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
  7411. cat >>confdefs.h <<_ACEOF
  7412. #define HAVE_DLFCN_H 1
  7413. _ACEOF
  7414. fi
  7415. done
  7416. # Set options
  7417. enable_dlopen=no
  7418. enable_win32_dll=no
  7419. # Check whether --enable-shared was given.
  7420. if test "${enable_shared+set}" = set; then :
  7421. enableval=$enable_shared; p=${PACKAGE-default}
  7422. case $enableval in
  7423. yes) enable_shared=yes ;;
  7424. no) enable_shared=no ;;
  7425. *)
  7426. enable_shared=no
  7427. # Look at the argument we got. We use all the common list separators.
  7428. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  7429. for pkg in $enableval; do
  7430. IFS="$lt_save_ifs"
  7431. if test "X$pkg" = "X$p"; then
  7432. enable_shared=yes
  7433. fi
  7434. done
  7435. IFS="$lt_save_ifs"
  7436. ;;
  7437. esac
  7438. else
  7439. enable_shared=yes
  7440. fi
  7441. # Check whether --with-pic was given.
  7442. if test "${with_pic+set}" = set; then :
  7443. withval=$with_pic; pic_mode="$withval"
  7444. else
  7445. pic_mode=default
  7446. fi
  7447. test -z "$pic_mode" && pic_mode=default
  7448. # Check whether --enable-fast-install was given.
  7449. if test "${enable_fast_install+set}" = set; then :
  7450. enableval=$enable_fast_install; p=${PACKAGE-default}
  7451. case $enableval in
  7452. yes) enable_fast_install=yes ;;
  7453. no) enable_fast_install=no ;;
  7454. *)
  7455. enable_fast_install=no
  7456. # Look at the argument we got. We use all the common list separators.
  7457. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  7458. for pkg in $enableval; do
  7459. IFS="$lt_save_ifs"
  7460. if test "X$pkg" = "X$p"; then
  7461. enable_fast_install=yes
  7462. fi
  7463. done
  7464. IFS="$lt_save_ifs"
  7465. ;;
  7466. esac
  7467. else
  7468. enable_fast_install=yes
  7469. fi
  7470. # This can be used to rebuild libtool when needed
  7471. LIBTOOL_DEPS="$ltmain"
  7472. # Always use our own libtool.
  7473. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  7474. test -z "$LN_S" && LN_S="ln -s"
  7475. if test -n "${ZSH_VERSION+set}" ; then
  7476. setopt NO_GLOB_SUBST
  7477. fi
  7478. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
  7479. $as_echo_n "checking for objdir... " >&6; }
  7480. if test "${lt_cv_objdir+set}" = set; then :
  7481. $as_echo_n "(cached) " >&6
  7482. else
  7483. rm -f .libs 2>/dev/null
  7484. mkdir .libs 2>/dev/null
  7485. if test -d .libs; then
  7486. lt_cv_objdir=.libs
  7487. else
  7488. # MS-DOS does not allow filenames that begin with a dot.
  7489. lt_cv_objdir=_libs
  7490. fi
  7491. rmdir .libs 2>/dev/null
  7492. fi
  7493. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
  7494. $as_echo "$lt_cv_objdir" >&6; }
  7495. objdir=$lt_cv_objdir
  7496. cat >>confdefs.h <<_ACEOF
  7497. #define LT_OBJDIR "$lt_cv_objdir/"
  7498. _ACEOF
  7499. case $host_os in
  7500. aix3*)
  7501. # AIX sometimes has problems with the GCC collect2 program. For some
  7502. # reason, if we set the COLLECT_NAMES environment variable, the problems
  7503. # vanish in a puff of smoke.
  7504. if test "X${COLLECT_NAMES+set}" != Xset; then
  7505. COLLECT_NAMES=
  7506. export COLLECT_NAMES
  7507. fi
  7508. ;;
  7509. esac
  7510. # Global variables:
  7511. ofile=libtool
  7512. can_build_shared=yes
  7513. # All known linkers require a `.a' archive for static linking (except MSVC,
  7514. # which needs '.lib').
  7515. libext=a
  7516. with_gnu_ld="$lt_cv_prog_gnu_ld"
  7517. old_CC="$CC"
  7518. old_CFLAGS="$CFLAGS"
  7519. # Set sane defaults for various variables
  7520. test -z "$CC" && CC=cc
  7521. test -z "$LTCC" && LTCC=$CC
  7522. test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  7523. test -z "$LD" && LD=ld
  7524. test -z "$ac_objext" && ac_objext=o
  7525. for cc_temp in $compiler""; do
  7526. case $cc_temp in
  7527. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  7528. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  7529. \-*) ;;
  7530. *) break;;
  7531. esac
  7532. done
  7533. cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  7534. # Only perform the check for file, if the check method requires it
  7535. test -z "$MAGIC_CMD" && MAGIC_CMD=file
  7536. case $deplibs_check_method in
  7537. file_magic*)
  7538. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  7539. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
  7540. $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
  7541. if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
  7542. $as_echo_n "(cached) " >&6
  7543. else
  7544. case $MAGIC_CMD in
  7545. [\\/*] | ?:[\\/]*)
  7546. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  7547. ;;
  7548. *)
  7549. lt_save_MAGIC_CMD="$MAGIC_CMD"
  7550. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  7551. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  7552. for ac_dir in $ac_dummy; do
  7553. IFS="$lt_save_ifs"
  7554. test -z "$ac_dir" && ac_dir=.
  7555. if test -f $ac_dir/${ac_tool_prefix}file; then
  7556. lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
  7557. if test -n "$file_magic_test_file"; then
  7558. case $deplibs_check_method in
  7559. "file_magic "*)
  7560. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  7561. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  7562. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  7563. $EGREP "$file_magic_regex" > /dev/null; then
  7564. :
  7565. else
  7566. cat <<_LT_EOF 1>&2
  7567. *** Warning: the command libtool uses to detect shared libraries,
  7568. *** $file_magic_cmd, produces output that libtool cannot recognize.
  7569. *** The result is that libtool may fail to recognize shared libraries
  7570. *** as such. This will affect the creation of libtool libraries that
  7571. *** depend on shared libraries, but programs linked with such libtool
  7572. *** libraries will work regardless of this problem. Nevertheless, you
  7573. *** may want to report the problem to your system manager and/or to
  7574. *** bug-libtool@gnu.org
  7575. _LT_EOF
  7576. fi ;;
  7577. esac
  7578. fi
  7579. break
  7580. fi
  7581. done
  7582. IFS="$lt_save_ifs"
  7583. MAGIC_CMD="$lt_save_MAGIC_CMD"
  7584. ;;
  7585. esac
  7586. fi
  7587. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  7588. if test -n "$MAGIC_CMD"; then
  7589. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  7590. $as_echo "$MAGIC_CMD" >&6; }
  7591. else
  7592. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7593. $as_echo "no" >&6; }
  7594. fi
  7595. if test -z "$lt_cv_path_MAGIC_CMD"; then
  7596. if test -n "$ac_tool_prefix"; then
  7597. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
  7598. $as_echo_n "checking for file... " >&6; }
  7599. if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
  7600. $as_echo_n "(cached) " >&6
  7601. else
  7602. case $MAGIC_CMD in
  7603. [\\/*] | ?:[\\/]*)
  7604. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  7605. ;;
  7606. *)
  7607. lt_save_MAGIC_CMD="$MAGIC_CMD"
  7608. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  7609. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  7610. for ac_dir in $ac_dummy; do
  7611. IFS="$lt_save_ifs"
  7612. test -z "$ac_dir" && ac_dir=.
  7613. if test -f $ac_dir/file; then
  7614. lt_cv_path_MAGIC_CMD="$ac_dir/file"
  7615. if test -n "$file_magic_test_file"; then
  7616. case $deplibs_check_method in
  7617. "file_magic "*)
  7618. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  7619. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  7620. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  7621. $EGREP "$file_magic_regex" > /dev/null; then
  7622. :
  7623. else
  7624. cat <<_LT_EOF 1>&2
  7625. *** Warning: the command libtool uses to detect shared libraries,
  7626. *** $file_magic_cmd, produces output that libtool cannot recognize.
  7627. *** The result is that libtool may fail to recognize shared libraries
  7628. *** as such. This will affect the creation of libtool libraries that
  7629. *** depend on shared libraries, but programs linked with such libtool
  7630. *** libraries will work regardless of this problem. Nevertheless, you
  7631. *** may want to report the problem to your system manager and/or to
  7632. *** bug-libtool@gnu.org
  7633. _LT_EOF
  7634. fi ;;
  7635. esac
  7636. fi
  7637. break
  7638. fi
  7639. done
  7640. IFS="$lt_save_ifs"
  7641. MAGIC_CMD="$lt_save_MAGIC_CMD"
  7642. ;;
  7643. esac
  7644. fi
  7645. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  7646. if test -n "$MAGIC_CMD"; then
  7647. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  7648. $as_echo "$MAGIC_CMD" >&6; }
  7649. else
  7650. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7651. $as_echo "no" >&6; }
  7652. fi
  7653. else
  7654. MAGIC_CMD=:
  7655. fi
  7656. fi
  7657. fi
  7658. ;;
  7659. esac
  7660. # Use C for the default configuration in the libtool script
  7661. lt_save_CC="$CC"
  7662. ac_ext=c
  7663. ac_cpp='$CPP $CPPFLAGS'
  7664. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7665. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7666. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  7667. # Source file extension for C test sources.
  7668. ac_ext=c
  7669. # Object file extension for compiled C test sources.
  7670. objext=o
  7671. objext=$objext
  7672. # Code to be used in simple compile tests
  7673. lt_simple_compile_test_code="int some_variable = 0;"
  7674. # Code to be used in simple link tests
  7675. lt_simple_link_test_code='int main(){return(0);}'
  7676. # If no C compiler was specified, use CC.
  7677. LTCC=${LTCC-"$CC"}
  7678. # If no C compiler flags were specified, use CFLAGS.
  7679. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  7680. # Allow CC to be a program name with arguments.
  7681. compiler=$CC
  7682. # Save the default compiler, since it gets overwritten when the other
  7683. # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
  7684. compiler_DEFAULT=$CC
  7685. # save warnings/boilerplate of simple test code
  7686. ac_outfile=conftest.$ac_objext
  7687. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  7688. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  7689. _lt_compiler_boilerplate=`cat conftest.err`
  7690. $RM conftest*
  7691. ac_outfile=conftest.$ac_objext
  7692. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  7693. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  7694. _lt_linker_boilerplate=`cat conftest.err`
  7695. $RM -r conftest*
  7696. ## CAVEAT EMPTOR:
  7697. ## There is no encapsulation within the following macros, do not change
  7698. ## the running order or otherwise move them around unless you know exactly
  7699. ## what you are doing...
  7700. if test -n "$compiler"; then
  7701. lt_prog_compiler_no_builtin_flag=
  7702. if test "$GCC" = yes; then
  7703. case $cc_basename in
  7704. nvcc*)
  7705. lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
  7706. *)
  7707. lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
  7708. esac
  7709. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  7710. $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
  7711. if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
  7712. $as_echo_n "(cached) " >&6
  7713. else
  7714. lt_cv_prog_compiler_rtti_exceptions=no
  7715. ac_outfile=conftest.$ac_objext
  7716. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7717. lt_compiler_flag="-fno-rtti -fno-exceptions"
  7718. # Insert the option either (1) after the last *FLAGS variable, or
  7719. # (2) before a word containing "conftest.", or (3) at the end.
  7720. # Note that $ac_compile itself does not contain backslashes and begins
  7721. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7722. # The option is referenced via a variable to avoid confusing sed.
  7723. lt_compile=`echo "$ac_compile" | $SED \
  7724. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7725. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7726. -e 's:$: $lt_compiler_flag:'`
  7727. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7728. (eval "$lt_compile" 2>conftest.err)
  7729. ac_status=$?
  7730. cat conftest.err >&5
  7731. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7732. if (exit $ac_status) && test -s "$ac_outfile"; then
  7733. # The compiler can only warn and ignore the option if not recognized
  7734. # So say no if there are warnings other than the usual output.
  7735. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  7736. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7737. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  7738. lt_cv_prog_compiler_rtti_exceptions=yes
  7739. fi
  7740. fi
  7741. $RM conftest*
  7742. fi
  7743. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  7744. $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  7745. if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
  7746. lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  7747. else
  7748. :
  7749. fi
  7750. fi
  7751. lt_prog_compiler_wl=
  7752. lt_prog_compiler_pic=
  7753. lt_prog_compiler_static=
  7754. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  7755. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  7756. if test "$GCC" = yes; then
  7757. lt_prog_compiler_wl='-Wl,'
  7758. lt_prog_compiler_static='-static'
  7759. case $host_os in
  7760. aix*)
  7761. # All AIX code is PIC.
  7762. if test "$host_cpu" = ia64; then
  7763. # AIX 5 now supports IA64 processor
  7764. lt_prog_compiler_static='-Bstatic'
  7765. fi
  7766. lt_prog_compiler_pic='-fPIC'
  7767. ;;
  7768. amigaos*)
  7769. case $host_cpu in
  7770. powerpc)
  7771. # see comment about AmigaOS4 .so support
  7772. lt_prog_compiler_pic='-fPIC'
  7773. ;;
  7774. m68k)
  7775. # FIXME: we need at least 68020 code to build shared libraries, but
  7776. # adding the `-m68020' flag to GCC prevents building anything better,
  7777. # like `-m68040'.
  7778. lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  7779. ;;
  7780. esac
  7781. ;;
  7782. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  7783. # PIC is the default for these OSes.
  7784. ;;
  7785. mingw* | cygwin* | pw32* | os2* | cegcc*)
  7786. # This hack is so that the source file can tell whether it is being
  7787. # built for inclusion in a dll (and should export symbols for example).
  7788. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  7789. # (--disable-auto-import) libraries
  7790. lt_prog_compiler_pic='-DDLL_EXPORT'
  7791. ;;
  7792. darwin* | rhapsody*)
  7793. # PIC is the default on this platform
  7794. # Common symbols not allowed in MH_DYLIB files
  7795. lt_prog_compiler_pic='-fno-common'
  7796. ;;
  7797. haiku*)
  7798. # PIC is the default for Haiku.
  7799. # The "-static" flag exists, but is broken.
  7800. lt_prog_compiler_static=
  7801. ;;
  7802. hpux*)
  7803. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  7804. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  7805. # sets the default TLS model and affects inlining.
  7806. case $host_cpu in
  7807. hppa*64*)
  7808. # +Z the default
  7809. ;;
  7810. *)
  7811. lt_prog_compiler_pic='-fPIC'
  7812. ;;
  7813. esac
  7814. ;;
  7815. interix[3-9]*)
  7816. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  7817. # Instead, we relocate shared libraries at runtime.
  7818. ;;
  7819. msdosdjgpp*)
  7820. # Just because we use GCC doesn't mean we suddenly get shared libraries
  7821. # on systems that don't support them.
  7822. lt_prog_compiler_can_build_shared=no
  7823. enable_shared=no
  7824. ;;
  7825. *nto* | *qnx*)
  7826. # QNX uses GNU C++, but need to define -shared option too, otherwise
  7827. # it will coredump.
  7828. lt_prog_compiler_pic='-fPIC -shared'
  7829. ;;
  7830. sysv4*MP*)
  7831. if test -d /usr/nec; then
  7832. lt_prog_compiler_pic=-Kconform_pic
  7833. fi
  7834. ;;
  7835. *)
  7836. lt_prog_compiler_pic='-fPIC'
  7837. ;;
  7838. esac
  7839. case $cc_basename in
  7840. nvcc*) # Cuda Compiler Driver 2.2
  7841. lt_prog_compiler_wl='-Xlinker '
  7842. lt_prog_compiler_pic='-Xcompiler -fPIC'
  7843. ;;
  7844. esac
  7845. else
  7846. # PORTME Check for flag to pass linker flags through the system compiler.
  7847. case $host_os in
  7848. aix*)
  7849. lt_prog_compiler_wl='-Wl,'
  7850. if test "$host_cpu" = ia64; then
  7851. # AIX 5 now supports IA64 processor
  7852. lt_prog_compiler_static='-Bstatic'
  7853. else
  7854. lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  7855. fi
  7856. ;;
  7857. mingw* | cygwin* | pw32* | os2* | cegcc*)
  7858. # This hack is so that the source file can tell whether it is being
  7859. # built for inclusion in a dll (and should export symbols for example).
  7860. lt_prog_compiler_pic='-DDLL_EXPORT'
  7861. ;;
  7862. hpux9* | hpux10* | hpux11*)
  7863. lt_prog_compiler_wl='-Wl,'
  7864. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  7865. # not for PA HP-UX.
  7866. case $host_cpu in
  7867. hppa*64*|ia64*)
  7868. # +Z the default
  7869. ;;
  7870. *)
  7871. lt_prog_compiler_pic='+Z'
  7872. ;;
  7873. esac
  7874. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  7875. lt_prog_compiler_static='${wl}-a ${wl}archive'
  7876. ;;
  7877. irix5* | irix6* | nonstopux*)
  7878. lt_prog_compiler_wl='-Wl,'
  7879. # PIC (with -KPIC) is the default.
  7880. lt_prog_compiler_static='-non_shared'
  7881. ;;
  7882. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  7883. case $cc_basename in
  7884. # old Intel for x86_64 which still supported -KPIC.
  7885. ecc*)
  7886. lt_prog_compiler_wl='-Wl,'
  7887. lt_prog_compiler_pic='-KPIC'
  7888. lt_prog_compiler_static='-static'
  7889. ;;
  7890. # icc used to be incompatible with GCC.
  7891. # ICC 10 doesn't accept -KPIC any more.
  7892. icc* | ifort*)
  7893. lt_prog_compiler_wl='-Wl,'
  7894. lt_prog_compiler_pic='-fPIC'
  7895. lt_prog_compiler_static='-static'
  7896. ;;
  7897. # Lahey Fortran 8.1.
  7898. lf95*)
  7899. lt_prog_compiler_wl='-Wl,'
  7900. lt_prog_compiler_pic='--shared'
  7901. lt_prog_compiler_static='--static'
  7902. ;;
  7903. pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
  7904. # Portland Group compilers (*not* the Pentium gcc compiler,
  7905. # which looks to be a dead project)
  7906. lt_prog_compiler_wl='-Wl,'
  7907. lt_prog_compiler_pic='-fpic'
  7908. lt_prog_compiler_static='-Bstatic'
  7909. ;;
  7910. ccc*)
  7911. lt_prog_compiler_wl='-Wl,'
  7912. # All Alpha code is PIC.
  7913. lt_prog_compiler_static='-non_shared'
  7914. ;;
  7915. xl* | bgxl* | bgf* | mpixl*)
  7916. # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
  7917. lt_prog_compiler_wl='-Wl,'
  7918. lt_prog_compiler_pic='-qpic'
  7919. lt_prog_compiler_static='-qstaticlink'
  7920. ;;
  7921. *)
  7922. case `$CC -V 2>&1 | sed 5q` in
  7923. *Sun\ F* | *Sun*Fortran*)
  7924. # Sun Fortran 8.3 passes all unrecognized flags to the linker
  7925. lt_prog_compiler_pic='-KPIC'
  7926. lt_prog_compiler_static='-Bstatic'
  7927. lt_prog_compiler_wl=''
  7928. ;;
  7929. *Sun\ C*)
  7930. # Sun C 5.9
  7931. lt_prog_compiler_pic='-KPIC'
  7932. lt_prog_compiler_static='-Bstatic'
  7933. lt_prog_compiler_wl='-Wl,'
  7934. ;;
  7935. esac
  7936. ;;
  7937. esac
  7938. ;;
  7939. newsos6)
  7940. lt_prog_compiler_pic='-KPIC'
  7941. lt_prog_compiler_static='-Bstatic'
  7942. ;;
  7943. *nto* | *qnx*)
  7944. # QNX uses GNU C++, but need to define -shared option too, otherwise
  7945. # it will coredump.
  7946. lt_prog_compiler_pic='-fPIC -shared'
  7947. ;;
  7948. osf3* | osf4* | osf5*)
  7949. lt_prog_compiler_wl='-Wl,'
  7950. # All OSF/1 code is PIC.
  7951. lt_prog_compiler_static='-non_shared'
  7952. ;;
  7953. rdos*)
  7954. lt_prog_compiler_static='-non_shared'
  7955. ;;
  7956. solaris*)
  7957. lt_prog_compiler_pic='-KPIC'
  7958. lt_prog_compiler_static='-Bstatic'
  7959. case $cc_basename in
  7960. f77* | f90* | f95*)
  7961. lt_prog_compiler_wl='-Qoption ld ';;
  7962. *)
  7963. lt_prog_compiler_wl='-Wl,';;
  7964. esac
  7965. ;;
  7966. sunos4*)
  7967. lt_prog_compiler_wl='-Qoption ld '
  7968. lt_prog_compiler_pic='-PIC'
  7969. lt_prog_compiler_static='-Bstatic'
  7970. ;;
  7971. sysv4 | sysv4.2uw2* | sysv4.3*)
  7972. lt_prog_compiler_wl='-Wl,'
  7973. lt_prog_compiler_pic='-KPIC'
  7974. lt_prog_compiler_static='-Bstatic'
  7975. ;;
  7976. sysv4*MP*)
  7977. if test -d /usr/nec ;then
  7978. lt_prog_compiler_pic='-Kconform_pic'
  7979. lt_prog_compiler_static='-Bstatic'
  7980. fi
  7981. ;;
  7982. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  7983. lt_prog_compiler_wl='-Wl,'
  7984. lt_prog_compiler_pic='-KPIC'
  7985. lt_prog_compiler_static='-Bstatic'
  7986. ;;
  7987. unicos*)
  7988. lt_prog_compiler_wl='-Wl,'
  7989. lt_prog_compiler_can_build_shared=no
  7990. ;;
  7991. uts4*)
  7992. lt_prog_compiler_pic='-pic'
  7993. lt_prog_compiler_static='-Bstatic'
  7994. ;;
  7995. *)
  7996. lt_prog_compiler_can_build_shared=no
  7997. ;;
  7998. esac
  7999. fi
  8000. case $host_os in
  8001. # For platforms which do not support PIC, -DPIC is meaningless:
  8002. *djgpp*)
  8003. lt_prog_compiler_pic=
  8004. ;;
  8005. *)
  8006. lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  8007. ;;
  8008. esac
  8009. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
  8010. $as_echo "$lt_prog_compiler_pic" >&6; }
  8011. #
  8012. # Check to make sure the PIC flag actually works.
  8013. #
  8014. if test -n "$lt_prog_compiler_pic"; then
  8015. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  8016. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
  8017. if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
  8018. $as_echo_n "(cached) " >&6
  8019. else
  8020. lt_cv_prog_compiler_pic_works=no
  8021. ac_outfile=conftest.$ac_objext
  8022. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8023. lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
  8024. # Insert the option either (1) after the last *FLAGS variable, or
  8025. # (2) before a word containing "conftest.", or (3) at the end.
  8026. # Note that $ac_compile itself does not contain backslashes and begins
  8027. # with a dollar sign (not a hyphen), so the echo should work correctly.
  8028. # The option is referenced via a variable to avoid confusing sed.
  8029. lt_compile=`echo "$ac_compile" | $SED \
  8030. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  8031. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  8032. -e 's:$: $lt_compiler_flag:'`
  8033. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  8034. (eval "$lt_compile" 2>conftest.err)
  8035. ac_status=$?
  8036. cat conftest.err >&5
  8037. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8038. if (exit $ac_status) && test -s "$ac_outfile"; then
  8039. # The compiler can only warn and ignore the option if not recognized
  8040. # So say no if there are warnings other than the usual output.
  8041. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  8042. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  8043. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  8044. lt_cv_prog_compiler_pic_works=yes
  8045. fi
  8046. fi
  8047. $RM conftest*
  8048. fi
  8049. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
  8050. $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
  8051. if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
  8052. case $lt_prog_compiler_pic in
  8053. "" | " "*) ;;
  8054. *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  8055. esac
  8056. else
  8057. lt_prog_compiler_pic=
  8058. lt_prog_compiler_can_build_shared=no
  8059. fi
  8060. fi
  8061. #
  8062. # Check to make sure the static flag actually works.
  8063. #
  8064. wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
  8065. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  8066. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  8067. if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
  8068. $as_echo_n "(cached) " >&6
  8069. else
  8070. lt_cv_prog_compiler_static_works=no
  8071. save_LDFLAGS="$LDFLAGS"
  8072. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  8073. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  8074. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  8075. # The linker can only warn and ignore the option if not recognized
  8076. # So say no if there are warnings
  8077. if test -s conftest.err; then
  8078. # Append any errors to the config.log.
  8079. cat conftest.err 1>&5
  8080. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  8081. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  8082. if diff conftest.exp conftest.er2 >/dev/null; then
  8083. lt_cv_prog_compiler_static_works=yes
  8084. fi
  8085. else
  8086. lt_cv_prog_compiler_static_works=yes
  8087. fi
  8088. fi
  8089. $RM -r conftest*
  8090. LDFLAGS="$save_LDFLAGS"
  8091. fi
  8092. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
  8093. $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
  8094. if test x"$lt_cv_prog_compiler_static_works" = xyes; then
  8095. :
  8096. else
  8097. lt_prog_compiler_static=
  8098. fi
  8099. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  8100. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  8101. if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
  8102. $as_echo_n "(cached) " >&6
  8103. else
  8104. lt_cv_prog_compiler_c_o=no
  8105. $RM -r conftest 2>/dev/null
  8106. mkdir conftest
  8107. cd conftest
  8108. mkdir out
  8109. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8110. lt_compiler_flag="-o out/conftest2.$ac_objext"
  8111. # Insert the option either (1) after the last *FLAGS variable, or
  8112. # (2) before a word containing "conftest.", or (3) at the end.
  8113. # Note that $ac_compile itself does not contain backslashes and begins
  8114. # with a dollar sign (not a hyphen), so the echo should work correctly.
  8115. lt_compile=`echo "$ac_compile" | $SED \
  8116. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  8117. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  8118. -e 's:$: $lt_compiler_flag:'`
  8119. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  8120. (eval "$lt_compile" 2>out/conftest.err)
  8121. ac_status=$?
  8122. cat out/conftest.err >&5
  8123. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8124. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  8125. then
  8126. # The compiler can only warn and ignore the option if not recognized
  8127. # So say no if there are warnings
  8128. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  8129. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  8130. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  8131. lt_cv_prog_compiler_c_o=yes
  8132. fi
  8133. fi
  8134. chmod u+w . 2>&5
  8135. $RM conftest*
  8136. # SGI C++ compiler will create directory out/ii_files/ for
  8137. # template instantiation
  8138. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  8139. $RM out/* && rmdir out
  8140. cd ..
  8141. $RM -r conftest
  8142. $RM conftest*
  8143. fi
  8144. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  8145. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  8146. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  8147. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  8148. if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
  8149. $as_echo_n "(cached) " >&6
  8150. else
  8151. lt_cv_prog_compiler_c_o=no
  8152. $RM -r conftest 2>/dev/null
  8153. mkdir conftest
  8154. cd conftest
  8155. mkdir out
  8156. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8157. lt_compiler_flag="-o out/conftest2.$ac_objext"
  8158. # Insert the option either (1) after the last *FLAGS variable, or
  8159. # (2) before a word containing "conftest.", or (3) at the end.
  8160. # Note that $ac_compile itself does not contain backslashes and begins
  8161. # with a dollar sign (not a hyphen), so the echo should work correctly.
  8162. lt_compile=`echo "$ac_compile" | $SED \
  8163. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  8164. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  8165. -e 's:$: $lt_compiler_flag:'`
  8166. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  8167. (eval "$lt_compile" 2>out/conftest.err)
  8168. ac_status=$?
  8169. cat out/conftest.err >&5
  8170. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8171. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  8172. then
  8173. # The compiler can only warn and ignore the option if not recognized
  8174. # So say no if there are warnings
  8175. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  8176. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  8177. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  8178. lt_cv_prog_compiler_c_o=yes
  8179. fi
  8180. fi
  8181. chmod u+w . 2>&5
  8182. $RM conftest*
  8183. # SGI C++ compiler will create directory out/ii_files/ for
  8184. # template instantiation
  8185. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  8186. $RM out/* && rmdir out
  8187. cd ..
  8188. $RM -r conftest
  8189. $RM conftest*
  8190. fi
  8191. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  8192. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  8193. hard_links="nottested"
  8194. if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
  8195. # do not overwrite the value of need_locks provided by the user
  8196. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  8197. $as_echo_n "checking if we can lock with hard links... " >&6; }
  8198. hard_links=yes
  8199. $RM conftest*
  8200. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  8201. touch conftest.a
  8202. ln conftest.a conftest.b 2>&5 || hard_links=no
  8203. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  8204. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  8205. $as_echo "$hard_links" >&6; }
  8206. if test "$hard_links" = no; then
  8207. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  8208. $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  8209. need_locks=warn
  8210. fi
  8211. else
  8212. need_locks=no
  8213. fi
  8214. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  8215. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  8216. runpath_var=
  8217. allow_undefined_flag=
  8218. always_export_symbols=no
  8219. archive_cmds=
  8220. archive_expsym_cmds=
  8221. compiler_needs_object=no
  8222. enable_shared_with_static_runtimes=no
  8223. export_dynamic_flag_spec=
  8224. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  8225. hardcode_automatic=no
  8226. hardcode_direct=no
  8227. hardcode_direct_absolute=no
  8228. hardcode_libdir_flag_spec=
  8229. hardcode_libdir_flag_spec_ld=
  8230. hardcode_libdir_separator=
  8231. hardcode_minus_L=no
  8232. hardcode_shlibpath_var=unsupported
  8233. inherit_rpath=no
  8234. link_all_deplibs=unknown
  8235. module_cmds=
  8236. module_expsym_cmds=
  8237. old_archive_from_new_cmds=
  8238. old_archive_from_expsyms_cmds=
  8239. thread_safe_flag_spec=
  8240. whole_archive_flag_spec=
  8241. # include_expsyms should be a list of space-separated symbols to be *always*
  8242. # included in the symbol list
  8243. include_expsyms=
  8244. # exclude_expsyms can be an extended regexp of symbols to exclude
  8245. # it will be wrapped by ` (' and `)$', so one must not match beginning or
  8246. # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  8247. # as well as any symbol that contains `d'.
  8248. exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  8249. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  8250. # platforms (ab)use it in PIC code, but their linkers get confused if
  8251. # the symbol is explicitly referenced. Since portable code cannot
  8252. # rely on this symbol name, it's probably fine to never include it in
  8253. # preloaded symbol tables.
  8254. # Exclude shared library initialization/finalization symbols.
  8255. extract_expsyms_cmds=
  8256. case $host_os in
  8257. cygwin* | mingw* | pw32* | cegcc*)
  8258. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  8259. # When not using gcc, we currently assume that we are using
  8260. # Microsoft Visual C++.
  8261. if test "$GCC" != yes; then
  8262. with_gnu_ld=no
  8263. fi
  8264. ;;
  8265. interix*)
  8266. # we just hope/assume this is gcc and not c89 (= MSVC++)
  8267. with_gnu_ld=yes
  8268. ;;
  8269. openbsd*)
  8270. with_gnu_ld=no
  8271. ;;
  8272. esac
  8273. ld_shlibs=yes
  8274. # On some targets, GNU ld is compatible enough with the native linker
  8275. # that we're better off using the native interface for both.
  8276. lt_use_gnu_ld_interface=no
  8277. if test "$with_gnu_ld" = yes; then
  8278. case $host_os in
  8279. aix*)
  8280. # The AIX port of GNU ld has always aspired to compatibility
  8281. # with the native linker. However, as the warning in the GNU ld
  8282. # block says, versions before 2.19.5* couldn't really create working
  8283. # shared libraries, regardless of the interface used.
  8284. case `$LD -v 2>&1` in
  8285. *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
  8286. *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
  8287. *\ \(GNU\ Binutils\)\ [3-9]*) ;;
  8288. *)
  8289. lt_use_gnu_ld_interface=yes
  8290. ;;
  8291. esac
  8292. ;;
  8293. *)
  8294. lt_use_gnu_ld_interface=yes
  8295. ;;
  8296. esac
  8297. fi
  8298. if test "$lt_use_gnu_ld_interface" = yes; then
  8299. # If archive_cmds runs LD, not CC, wlarc should be empty
  8300. wlarc='${wl}'
  8301. # Set some defaults for GNU ld with shared library support. These
  8302. # are reset later if shared libraries are not supported. Putting them
  8303. # here allows them to be overridden if necessary.
  8304. runpath_var=LD_RUN_PATH
  8305. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8306. export_dynamic_flag_spec='${wl}--export-dynamic'
  8307. # ancient GNU ld didn't support --whole-archive et. al.
  8308. if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
  8309. whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  8310. else
  8311. whole_archive_flag_spec=
  8312. fi
  8313. supports_anon_versioning=no
  8314. case `$LD -v 2>&1` in
  8315. *GNU\ gold*) supports_anon_versioning=yes ;;
  8316. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  8317. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  8318. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  8319. *\ 2.11.*) ;; # other 2.11 versions
  8320. *) supports_anon_versioning=yes ;;
  8321. esac
  8322. # See if GNU ld supports shared libraries.
  8323. case $host_os in
  8324. aix[3-9]*)
  8325. # On AIX/PPC, the GNU linker is very broken
  8326. if test "$host_cpu" != ia64; then
  8327. ld_shlibs=no
  8328. cat <<_LT_EOF 1>&2
  8329. *** Warning: the GNU linker, at least up to release 2.19, is reported
  8330. *** to be unable to reliably create shared libraries on AIX.
  8331. *** Therefore, libtool is disabling shared libraries support. If you
  8332. *** really care for shared libraries, you may want to install binutils
  8333. *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
  8334. *** You will then need to restart the configuration process.
  8335. _LT_EOF
  8336. fi
  8337. ;;
  8338. amigaos*)
  8339. case $host_cpu in
  8340. powerpc)
  8341. # see comment about AmigaOS4 .so support
  8342. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8343. archive_expsym_cmds=''
  8344. ;;
  8345. m68k)
  8346. 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)'
  8347. hardcode_libdir_flag_spec='-L$libdir'
  8348. hardcode_minus_L=yes
  8349. ;;
  8350. esac
  8351. ;;
  8352. beos*)
  8353. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8354. allow_undefined_flag=unsupported
  8355. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  8356. # support --undefined. This deserves some investigation. FIXME
  8357. archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8358. else
  8359. ld_shlibs=no
  8360. fi
  8361. ;;
  8362. cygwin* | mingw* | pw32* | cegcc*)
  8363. # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  8364. # as there is no search path for DLLs.
  8365. hardcode_libdir_flag_spec='-L$libdir'
  8366. export_dynamic_flag_spec='${wl}--export-all-symbols'
  8367. allow_undefined_flag=unsupported
  8368. always_export_symbols=no
  8369. enable_shared_with_static_runtimes=yes
  8370. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  8371. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  8372. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  8373. # If the export-symbols file already is a .def file (1st line
  8374. # is EXPORTS), use it as is; otherwise, prepend...
  8375. archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  8376. cp $export_symbols $output_objdir/$soname.def;
  8377. else
  8378. echo EXPORTS > $output_objdir/$soname.def;
  8379. cat $export_symbols >> $output_objdir/$soname.def;
  8380. fi~
  8381. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  8382. else
  8383. ld_shlibs=no
  8384. fi
  8385. ;;
  8386. haiku*)
  8387. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8388. link_all_deplibs=yes
  8389. ;;
  8390. interix[3-9]*)
  8391. hardcode_direct=no
  8392. hardcode_shlibpath_var=no
  8393. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  8394. export_dynamic_flag_spec='${wl}-E'
  8395. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  8396. # Instead, shared libraries are loaded at an image base (0x10000000 by
  8397. # default) and relocated if they conflict, which is a slow very memory
  8398. # consuming and fragmenting process. To avoid this, we pick a random,
  8399. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  8400. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  8401. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  8402. 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'
  8403. ;;
  8404. gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
  8405. tmp_diet=no
  8406. if test "$host_os" = linux-dietlibc; then
  8407. case $cc_basename in
  8408. diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
  8409. esac
  8410. fi
  8411. if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
  8412. && test "$tmp_diet" = no
  8413. then
  8414. tmp_addflag=' $pic_flag'
  8415. tmp_sharedflag='-shared'
  8416. case $cc_basename,$host_cpu in
  8417. pgcc*) # Portland Group C compiler
  8418. whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
  8419. tmp_addflag=' $pic_flag'
  8420. ;;
  8421. pgf77* | pgf90* | pgf95* | pgfortran*)
  8422. # Portland Group f77 and f90 compilers
  8423. whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
  8424. tmp_addflag=' $pic_flag -Mnomain' ;;
  8425. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  8426. tmp_addflag=' -i_dynamic' ;;
  8427. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  8428. tmp_addflag=' -i_dynamic -nofor_main' ;;
  8429. ifc* | ifort*) # Intel Fortran compiler
  8430. tmp_addflag=' -nofor_main' ;;
  8431. lf95*) # Lahey Fortran 8.1
  8432. whole_archive_flag_spec=
  8433. tmp_sharedflag='--shared' ;;
  8434. xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
  8435. tmp_sharedflag='-qmkshrobj'
  8436. tmp_addflag= ;;
  8437. nvcc*) # Cuda Compiler Driver 2.2
  8438. whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
  8439. compiler_needs_object=yes
  8440. ;;
  8441. esac
  8442. case `$CC -V 2>&1 | sed 5q` in
  8443. *Sun\ C*) # Sun C 5.9
  8444. whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
  8445. compiler_needs_object=yes
  8446. tmp_sharedflag='-G' ;;
  8447. *Sun\ F*) # Sun Fortran 8.3
  8448. tmp_sharedflag='-G' ;;
  8449. esac
  8450. archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8451. if test "x$supports_anon_versioning" = xyes; then
  8452. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  8453. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  8454. echo "local: *; };" >> $output_objdir/$libname.ver~
  8455. $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  8456. fi
  8457. case $cc_basename in
  8458. xlf* | bgf* | bgxlf* | mpixlf*)
  8459. # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
  8460. whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
  8461. hardcode_libdir_flag_spec=
  8462. hardcode_libdir_flag_spec_ld='-rpath $libdir'
  8463. archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
  8464. if test "x$supports_anon_versioning" = xyes; then
  8465. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  8466. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  8467. echo "local: *; };" >> $output_objdir/$libname.ver~
  8468. $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
  8469. fi
  8470. ;;
  8471. esac
  8472. else
  8473. ld_shlibs=no
  8474. fi
  8475. ;;
  8476. netbsd*)
  8477. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  8478. archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  8479. wlarc=
  8480. else
  8481. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8482. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  8483. fi
  8484. ;;
  8485. solaris*)
  8486. if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
  8487. ld_shlibs=no
  8488. cat <<_LT_EOF 1>&2
  8489. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  8490. *** create shared libraries on Solaris systems. Therefore, libtool
  8491. *** is disabling shared libraries support. We urge you to upgrade GNU
  8492. *** binutils to release 2.9.1 or newer. Another option is to modify
  8493. *** your PATH or compiler configuration so that the native linker is
  8494. *** used, and then restart.
  8495. _LT_EOF
  8496. elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8497. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8498. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  8499. else
  8500. ld_shlibs=no
  8501. fi
  8502. ;;
  8503. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  8504. case `$LD -v 2>&1` in
  8505. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  8506. ld_shlibs=no
  8507. cat <<_LT_EOF 1>&2
  8508. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  8509. *** reliably create shared libraries on SCO systems. Therefore, libtool
  8510. *** is disabling shared libraries support. We urge you to upgrade GNU
  8511. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  8512. *** your PATH or compiler configuration so that the native linker is
  8513. *** used, and then restart.
  8514. _LT_EOF
  8515. ;;
  8516. *)
  8517. # For security reasons, it is highly recommended that you always
  8518. # use absolute paths for naming shared libraries, and exclude the
  8519. # DT_RUNPATH tag from executables and libraries. But doing so
  8520. # requires that you compile everything twice, which is a pain.
  8521. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8522. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8523. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8524. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  8525. else
  8526. ld_shlibs=no
  8527. fi
  8528. ;;
  8529. esac
  8530. ;;
  8531. sunos4*)
  8532. archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8533. wlarc=
  8534. hardcode_direct=yes
  8535. hardcode_shlibpath_var=no
  8536. ;;
  8537. *)
  8538. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8539. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8540. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  8541. else
  8542. ld_shlibs=no
  8543. fi
  8544. ;;
  8545. esac
  8546. if test "$ld_shlibs" = no; then
  8547. runpath_var=
  8548. hardcode_libdir_flag_spec=
  8549. export_dynamic_flag_spec=
  8550. whole_archive_flag_spec=
  8551. fi
  8552. else
  8553. # PORTME fill in a description of your system's linker (not GNU ld)
  8554. case $host_os in
  8555. aix3*)
  8556. allow_undefined_flag=unsupported
  8557. always_export_symbols=yes
  8558. 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'
  8559. # Note: this linker hardcodes the directories in LIBPATH if there
  8560. # are no directories specified by -L.
  8561. hardcode_minus_L=yes
  8562. if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  8563. # Neither direct hardcoding nor static linking is supported with a
  8564. # broken collect2.
  8565. hardcode_direct=unsupported
  8566. fi
  8567. ;;
  8568. aix[4-9]*)
  8569. if test "$host_cpu" = ia64; then
  8570. # On IA64, the linker does run time linking by default, so we don't
  8571. # have to do anything special.
  8572. aix_use_runtimelinking=no
  8573. exp_sym_flag='-Bexport'
  8574. no_entry_flag=""
  8575. else
  8576. # If we're using GNU nm, then we don't want the "-C" option.
  8577. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  8578. # Also, AIX nm treats weak defined symbols like other global
  8579. # defined symbols, whereas GNU nm marks them as "W".
  8580. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  8581. export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
  8582. else
  8583. 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'
  8584. fi
  8585. aix_use_runtimelinking=no
  8586. # Test if we are trying to use run time linking or normal
  8587. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  8588. # need to do runtime linking.
  8589. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  8590. for ld_flag in $LDFLAGS; do
  8591. if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  8592. aix_use_runtimelinking=yes
  8593. break
  8594. fi
  8595. done
  8596. ;;
  8597. esac
  8598. exp_sym_flag='-bexport'
  8599. no_entry_flag='-bnoentry'
  8600. fi
  8601. # When large executables or shared objects are built, AIX ld can
  8602. # have problems creating the table of contents. If linking a library
  8603. # or program results in "error TOC overflow" add -mminimal-toc to
  8604. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  8605. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  8606. archive_cmds=''
  8607. hardcode_direct=yes
  8608. hardcode_direct_absolute=yes
  8609. hardcode_libdir_separator=':'
  8610. link_all_deplibs=yes
  8611. file_list_spec='${wl}-f,'
  8612. if test "$GCC" = yes; then
  8613. case $host_os in aix4.[012]|aix4.[012].*)
  8614. # We only want to do this on AIX 4.2 and lower, the check
  8615. # below for broken collect2 doesn't work under 4.3+
  8616. collect2name=`${CC} -print-prog-name=collect2`
  8617. if test -f "$collect2name" &&
  8618. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  8619. then
  8620. # We have reworked collect2
  8621. :
  8622. else
  8623. # We have old collect2
  8624. hardcode_direct=unsupported
  8625. # It fails to find uninstalled libraries when the uninstalled
  8626. # path is not listed in the libpath. Setting hardcode_minus_L
  8627. # to unsupported forces relinking
  8628. hardcode_minus_L=yes
  8629. hardcode_libdir_flag_spec='-L$libdir'
  8630. hardcode_libdir_separator=
  8631. fi
  8632. ;;
  8633. esac
  8634. shared_flag='-shared'
  8635. if test "$aix_use_runtimelinking" = yes; then
  8636. shared_flag="$shared_flag "'${wl}-G'
  8637. fi
  8638. else
  8639. # not using gcc
  8640. if test "$host_cpu" = ia64; then
  8641. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  8642. # chokes on -Wl,-G. The following line is correct:
  8643. shared_flag='-G'
  8644. else
  8645. if test "$aix_use_runtimelinking" = yes; then
  8646. shared_flag='${wl}-G'
  8647. else
  8648. shared_flag='${wl}-bM:SRE'
  8649. fi
  8650. fi
  8651. fi
  8652. export_dynamic_flag_spec='${wl}-bexpall'
  8653. # It seems that -bexpall does not export symbols beginning with
  8654. # underscore (_), so it is better to generate a list of symbols to export.
  8655. always_export_symbols=yes
  8656. if test "$aix_use_runtimelinking" = yes; then
  8657. # Warning - without using the other runtime loading flags (-brtl),
  8658. # -berok will link without error, but may produce a broken library.
  8659. allow_undefined_flag='-berok'
  8660. # Determine the default libpath from the value encoded in an
  8661. # empty executable.
  8662. if test x$gcc_no_link = xyes; then
  8663. as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  8664. fi
  8665. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8666. /* end confdefs.h. */
  8667. int
  8668. main ()
  8669. {
  8670. ;
  8671. return 0;
  8672. }
  8673. _ACEOF
  8674. if ac_fn_c_try_link "$LINENO"; then :
  8675. lt_aix_libpath_sed='
  8676. /Import File Strings/,/^$/ {
  8677. /^0/ {
  8678. s/^0 *\(.*\)$/\1/
  8679. p
  8680. }
  8681. }'
  8682. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8683. # Check for a 64-bit object if we didn't find anything.
  8684. if test -z "$aix_libpath"; then
  8685. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8686. fi
  8687. fi
  8688. rm -f core conftest.err conftest.$ac_objext \
  8689. conftest$ac_exeext conftest.$ac_ext
  8690. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  8691. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  8692. archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
  8693. else
  8694. if test "$host_cpu" = ia64; then
  8695. hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
  8696. allow_undefined_flag="-z nodefs"
  8697. 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"
  8698. else
  8699. # Determine the default libpath from the value encoded in an
  8700. # empty executable.
  8701. if test x$gcc_no_link = xyes; then
  8702. as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  8703. fi
  8704. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8705. /* end confdefs.h. */
  8706. int
  8707. main ()
  8708. {
  8709. ;
  8710. return 0;
  8711. }
  8712. _ACEOF
  8713. if ac_fn_c_try_link "$LINENO"; then :
  8714. lt_aix_libpath_sed='
  8715. /Import File Strings/,/^$/ {
  8716. /^0/ {
  8717. s/^0 *\(.*\)$/\1/
  8718. p
  8719. }
  8720. }'
  8721. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8722. # Check for a 64-bit object if we didn't find anything.
  8723. if test -z "$aix_libpath"; then
  8724. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8725. fi
  8726. fi
  8727. rm -f core conftest.err conftest.$ac_objext \
  8728. conftest$ac_exeext conftest.$ac_ext
  8729. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  8730. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  8731. # Warning - without using the other run time loading flags,
  8732. # -berok will link without error, but may produce a broken library.
  8733. no_undefined_flag=' ${wl}-bernotok'
  8734. allow_undefined_flag=' ${wl}-berok'
  8735. if test "$with_gnu_ld" = yes; then
  8736. # We only use this code for GNU lds that support --whole-archive.
  8737. whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  8738. else
  8739. # Exported symbols can be pulled into shared objects from archives
  8740. whole_archive_flag_spec='$convenience'
  8741. fi
  8742. archive_cmds_need_lc=yes
  8743. # This is similar to how AIX traditionally builds its shared libraries.
  8744. 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'
  8745. fi
  8746. fi
  8747. ;;
  8748. amigaos*)
  8749. case $host_cpu in
  8750. powerpc)
  8751. # see comment about AmigaOS4 .so support
  8752. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8753. archive_expsym_cmds=''
  8754. ;;
  8755. m68k)
  8756. 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)'
  8757. hardcode_libdir_flag_spec='-L$libdir'
  8758. hardcode_minus_L=yes
  8759. ;;
  8760. esac
  8761. ;;
  8762. bsdi[45]*)
  8763. export_dynamic_flag_spec=-rdynamic
  8764. ;;
  8765. cygwin* | mingw* | pw32* | cegcc*)
  8766. # When not using gcc, we currently assume that we are using
  8767. # Microsoft Visual C++.
  8768. # hardcode_libdir_flag_spec is actually meaningless, as there is
  8769. # no search path for DLLs.
  8770. hardcode_libdir_flag_spec=' '
  8771. allow_undefined_flag=unsupported
  8772. # Tell ltmain to make .lib files, not .a files.
  8773. libext=lib
  8774. # Tell ltmain to make .dll files, not .so files.
  8775. shrext_cmds=".dll"
  8776. # FIXME: Setting linknames here is a bad hack.
  8777. archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
  8778. # The linker will automatically build a .lib file if we build a DLL.
  8779. old_archive_from_new_cmds='true'
  8780. # FIXME: Should let the user specify the lib program.
  8781. old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
  8782. fix_srcfile_path='`cygpath -w "$srcfile"`'
  8783. enable_shared_with_static_runtimes=yes
  8784. ;;
  8785. darwin* | rhapsody*)
  8786. archive_cmds_need_lc=no
  8787. hardcode_direct=no
  8788. hardcode_automatic=yes
  8789. hardcode_shlibpath_var=unsupported
  8790. if test "$lt_cv_ld_force_load" = "yes"; then
  8791. whole_archive_flag_spec='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
  8792. else
  8793. whole_archive_flag_spec=''
  8794. fi
  8795. link_all_deplibs=yes
  8796. allow_undefined_flag="$_lt_dar_allow_undefined"
  8797. case $cc_basename in
  8798. ifort*) _lt_dar_can_shared=yes ;;
  8799. *) _lt_dar_can_shared=$GCC ;;
  8800. esac
  8801. if test "$_lt_dar_can_shared" = "yes"; then
  8802. output_verbose_link_cmd=func_echo_all
  8803. archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
  8804. module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  8805. 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}"
  8806. 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}"
  8807. else
  8808. ld_shlibs=no
  8809. fi
  8810. ;;
  8811. dgux*)
  8812. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8813. hardcode_libdir_flag_spec='-L$libdir'
  8814. hardcode_shlibpath_var=no
  8815. ;;
  8816. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  8817. # support. Future versions do this automatically, but an explicit c++rt0.o
  8818. # does not break anything, and helps significantly (at the cost of a little
  8819. # extra space).
  8820. freebsd2.2*)
  8821. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  8822. hardcode_libdir_flag_spec='-R$libdir'
  8823. hardcode_direct=yes
  8824. hardcode_shlibpath_var=no
  8825. ;;
  8826. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  8827. freebsd2.*)
  8828. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8829. hardcode_direct=yes
  8830. hardcode_minus_L=yes
  8831. hardcode_shlibpath_var=no
  8832. ;;
  8833. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  8834. freebsd* | dragonfly*)
  8835. archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  8836. hardcode_libdir_flag_spec='-R$libdir'
  8837. hardcode_direct=yes
  8838. hardcode_shlibpath_var=no
  8839. ;;
  8840. hpux9*)
  8841. if test "$GCC" = yes; then
  8842. 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'
  8843. else
  8844. 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'
  8845. fi
  8846. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8847. hardcode_libdir_separator=:
  8848. hardcode_direct=yes
  8849. # hardcode_minus_L: Not really in the search PATH,
  8850. # but as the default location of the library.
  8851. hardcode_minus_L=yes
  8852. export_dynamic_flag_spec='${wl}-E'
  8853. ;;
  8854. hpux10*)
  8855. if test "$GCC" = yes && test "$with_gnu_ld" = no; then
  8856. archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8857. else
  8858. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  8859. fi
  8860. if test "$with_gnu_ld" = no; then
  8861. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8862. hardcode_libdir_flag_spec_ld='+b $libdir'
  8863. hardcode_libdir_separator=:
  8864. hardcode_direct=yes
  8865. hardcode_direct_absolute=yes
  8866. export_dynamic_flag_spec='${wl}-E'
  8867. # hardcode_minus_L: Not really in the search PATH,
  8868. # but as the default location of the library.
  8869. hardcode_minus_L=yes
  8870. fi
  8871. ;;
  8872. hpux11*)
  8873. if test "$GCC" = yes && test "$with_gnu_ld" = no; then
  8874. case $host_cpu in
  8875. hppa*64*)
  8876. archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8877. ;;
  8878. ia64*)
  8879. archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  8880. ;;
  8881. *)
  8882. archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8883. ;;
  8884. esac
  8885. else
  8886. case $host_cpu in
  8887. hppa*64*)
  8888. archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8889. ;;
  8890. ia64*)
  8891. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  8892. ;;
  8893. *)
  8894. # Older versions of the 11.00 compiler do not understand -b yet
  8895. # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
  8896. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
  8897. $as_echo_n "checking if $CC understands -b... " >&6; }
  8898. if test "${lt_cv_prog_compiler__b+set}" = set; then :
  8899. $as_echo_n "(cached) " >&6
  8900. else
  8901. lt_cv_prog_compiler__b=no
  8902. save_LDFLAGS="$LDFLAGS"
  8903. LDFLAGS="$LDFLAGS -b"
  8904. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  8905. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  8906. # The linker can only warn and ignore the option if not recognized
  8907. # So say no if there are warnings
  8908. if test -s conftest.err; then
  8909. # Append any errors to the config.log.
  8910. cat conftest.err 1>&5
  8911. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  8912. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  8913. if diff conftest.exp conftest.er2 >/dev/null; then
  8914. lt_cv_prog_compiler__b=yes
  8915. fi
  8916. else
  8917. lt_cv_prog_compiler__b=yes
  8918. fi
  8919. fi
  8920. $RM -r conftest*
  8921. LDFLAGS="$save_LDFLAGS"
  8922. fi
  8923. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
  8924. $as_echo "$lt_cv_prog_compiler__b" >&6; }
  8925. if test x"$lt_cv_prog_compiler__b" = xyes; then
  8926. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8927. else
  8928. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  8929. fi
  8930. ;;
  8931. esac
  8932. fi
  8933. if test "$with_gnu_ld" = no; then
  8934. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8935. hardcode_libdir_separator=:
  8936. case $host_cpu in
  8937. hppa*64*|ia64*)
  8938. hardcode_direct=no
  8939. hardcode_shlibpath_var=no
  8940. ;;
  8941. *)
  8942. hardcode_direct=yes
  8943. hardcode_direct_absolute=yes
  8944. export_dynamic_flag_spec='${wl}-E'
  8945. # hardcode_minus_L: Not really in the search PATH,
  8946. # but as the default location of the library.
  8947. hardcode_minus_L=yes
  8948. ;;
  8949. esac
  8950. fi
  8951. ;;
  8952. irix5* | irix6* | nonstopux*)
  8953. if test "$GCC" = yes; then
  8954. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  8955. # Try to use the -exported_symbol ld option, if it does not
  8956. # work, assume that -exports_file does not work either and
  8957. # implicitly export all symbols.
  8958. save_LDFLAGS="$LDFLAGS"
  8959. LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
  8960. if test x$gcc_no_link = xyes; then
  8961. as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  8962. fi
  8963. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8964. /* end confdefs.h. */
  8965. int foo(void) {}
  8966. _ACEOF
  8967. if ac_fn_c_try_link "$LINENO"; then :
  8968. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
  8969. fi
  8970. rm -f core conftest.err conftest.$ac_objext \
  8971. conftest$ac_exeext conftest.$ac_ext
  8972. LDFLAGS="$save_LDFLAGS"
  8973. else
  8974. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
  8975. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
  8976. fi
  8977. archive_cmds_need_lc='no'
  8978. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8979. hardcode_libdir_separator=:
  8980. inherit_rpath=yes
  8981. link_all_deplibs=yes
  8982. ;;
  8983. netbsd*)
  8984. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  8985. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  8986. else
  8987. archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  8988. fi
  8989. hardcode_libdir_flag_spec='-R$libdir'
  8990. hardcode_direct=yes
  8991. hardcode_shlibpath_var=no
  8992. ;;
  8993. newsos6)
  8994. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8995. hardcode_direct=yes
  8996. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8997. hardcode_libdir_separator=:
  8998. hardcode_shlibpath_var=no
  8999. ;;
  9000. *nto* | *qnx*)
  9001. ;;
  9002. openbsd*)
  9003. if test -f /usr/libexec/ld.so; then
  9004. hardcode_direct=yes
  9005. hardcode_shlibpath_var=no
  9006. hardcode_direct_absolute=yes
  9007. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  9008. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  9009. archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  9010. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  9011. export_dynamic_flag_spec='${wl}-E'
  9012. else
  9013. case $host_os in
  9014. openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  9015. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  9016. hardcode_libdir_flag_spec='-R$libdir'
  9017. ;;
  9018. *)
  9019. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  9020. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  9021. ;;
  9022. esac
  9023. fi
  9024. else
  9025. ld_shlibs=no
  9026. fi
  9027. ;;
  9028. os2*)
  9029. hardcode_libdir_flag_spec='-L$libdir'
  9030. hardcode_minus_L=yes
  9031. allow_undefined_flag=unsupported
  9032. 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'
  9033. old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  9034. ;;
  9035. osf3*)
  9036. if test "$GCC" = yes; then
  9037. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  9038. archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  9039. else
  9040. allow_undefined_flag=' -expect_unresolved \*'
  9041. archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
  9042. fi
  9043. archive_cmds_need_lc='no'
  9044. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  9045. hardcode_libdir_separator=:
  9046. ;;
  9047. osf4* | osf5*) # as osf3* with the addition of -msym flag
  9048. if test "$GCC" = yes; then
  9049. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  9050. archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  9051. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  9052. else
  9053. allow_undefined_flag=' -expect_unresolved \*'
  9054. archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
  9055. 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~
  9056. $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
  9057. # Both c and cxx compiler support -rpath directly
  9058. hardcode_libdir_flag_spec='-rpath $libdir'
  9059. fi
  9060. archive_cmds_need_lc='no'
  9061. hardcode_libdir_separator=:
  9062. ;;
  9063. solaris*)
  9064. no_undefined_flag=' -z defs'
  9065. if test "$GCC" = yes; then
  9066. wlarc='${wl}'
  9067. archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  9068. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  9069. $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  9070. else
  9071. case `$CC -V 2>&1` in
  9072. *"Compilers 5.0"*)
  9073. wlarc=''
  9074. archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9075. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  9076. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
  9077. ;;
  9078. *)
  9079. wlarc='${wl}'
  9080. archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
  9081. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  9082. $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  9083. ;;
  9084. esac
  9085. fi
  9086. hardcode_libdir_flag_spec='-R$libdir'
  9087. hardcode_shlibpath_var=no
  9088. case $host_os in
  9089. solaris2.[0-5] | solaris2.[0-5].*) ;;
  9090. *)
  9091. # The compiler driver will combine and reorder linker options,
  9092. # but understands `-z linker_flag'. GCC discards it without `$wl',
  9093. # but is careful enough not to reorder.
  9094. # Supported since Solaris 2.6 (maybe 2.5.1?)
  9095. if test "$GCC" = yes; then
  9096. whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  9097. else
  9098. whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
  9099. fi
  9100. ;;
  9101. esac
  9102. link_all_deplibs=yes
  9103. ;;
  9104. sunos4*)
  9105. if test "x$host_vendor" = xsequent; then
  9106. # Use $CC to link under sequent, because it throws in some extra .o
  9107. # files that make .init and .fini sections work.
  9108. archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  9109. else
  9110. archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  9111. fi
  9112. hardcode_libdir_flag_spec='-L$libdir'
  9113. hardcode_direct=yes
  9114. hardcode_minus_L=yes
  9115. hardcode_shlibpath_var=no
  9116. ;;
  9117. sysv4)
  9118. case $host_vendor in
  9119. sni)
  9120. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9121. hardcode_direct=yes # is this really true???
  9122. ;;
  9123. siemens)
  9124. ## LD is ld it makes a PLAMLIB
  9125. ## CC just makes a GrossModule.
  9126. archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  9127. reload_cmds='$CC -r -o $output$reload_objs'
  9128. hardcode_direct=no
  9129. ;;
  9130. motorola)
  9131. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9132. hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  9133. ;;
  9134. esac
  9135. runpath_var='LD_RUN_PATH'
  9136. hardcode_shlibpath_var=no
  9137. ;;
  9138. sysv4.3*)
  9139. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9140. hardcode_shlibpath_var=no
  9141. export_dynamic_flag_spec='-Bexport'
  9142. ;;
  9143. sysv4*MP*)
  9144. if test -d /usr/nec; then
  9145. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9146. hardcode_shlibpath_var=no
  9147. runpath_var=LD_RUN_PATH
  9148. hardcode_runpath_var=yes
  9149. ld_shlibs=yes
  9150. fi
  9151. ;;
  9152. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  9153. no_undefined_flag='${wl}-z,text'
  9154. archive_cmds_need_lc=no
  9155. hardcode_shlibpath_var=no
  9156. runpath_var='LD_RUN_PATH'
  9157. if test "$GCC" = yes; then
  9158. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9159. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9160. else
  9161. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9162. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9163. fi
  9164. ;;
  9165. sysv5* | sco3.2v5* | sco5v6*)
  9166. # Note: We can NOT use -z defs as we might desire, because we do not
  9167. # link with -lc, and that would cause any symbols used from libc to
  9168. # always be unresolved, which means just about no library would
  9169. # ever link correctly. If we're not using GNU ld we use -z text
  9170. # though, which does catch some bad symbols but isn't as heavy-handed
  9171. # as -z defs.
  9172. no_undefined_flag='${wl}-z,text'
  9173. allow_undefined_flag='${wl}-z,nodefs'
  9174. archive_cmds_need_lc=no
  9175. hardcode_shlibpath_var=no
  9176. hardcode_libdir_flag_spec='${wl}-R,$libdir'
  9177. hardcode_libdir_separator=':'
  9178. link_all_deplibs=yes
  9179. export_dynamic_flag_spec='${wl}-Bexport'
  9180. runpath_var='LD_RUN_PATH'
  9181. if test "$GCC" = yes; then
  9182. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9183. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9184. else
  9185. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9186. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9187. fi
  9188. ;;
  9189. uts4*)
  9190. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9191. hardcode_libdir_flag_spec='-L$libdir'
  9192. hardcode_shlibpath_var=no
  9193. ;;
  9194. *)
  9195. ld_shlibs=no
  9196. ;;
  9197. esac
  9198. if test x$host_vendor = xsni; then
  9199. case $host in
  9200. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  9201. export_dynamic_flag_spec='${wl}-Blargedynsym'
  9202. ;;
  9203. esac
  9204. fi
  9205. fi
  9206. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
  9207. $as_echo "$ld_shlibs" >&6; }
  9208. test "$ld_shlibs" = no && can_build_shared=no
  9209. with_gnu_ld=$with_gnu_ld
  9210. #
  9211. # Do we need to explicitly link libc?
  9212. #
  9213. case "x$archive_cmds_need_lc" in
  9214. x|xyes)
  9215. # Assume -lc should be added
  9216. archive_cmds_need_lc=yes
  9217. if test "$enable_shared" = yes && test "$GCC" = yes; then
  9218. case $archive_cmds in
  9219. *'~'*)
  9220. # FIXME: we may have to deal with multi-command sequences.
  9221. ;;
  9222. '$CC '*)
  9223. # Test whether the compiler implicitly links with -lc since on some
  9224. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  9225. # to ld, don't add -lc before -lgcc.
  9226. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  9227. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  9228. if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
  9229. $as_echo_n "(cached) " >&6
  9230. else
  9231. $RM conftest*
  9232. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  9233. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  9234. (eval $ac_compile) 2>&5
  9235. ac_status=$?
  9236. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9237. test $ac_status = 0; } 2>conftest.err; then
  9238. soname=conftest
  9239. lib=conftest
  9240. libobjs=conftest.$ac_objext
  9241. deplibs=
  9242. wl=$lt_prog_compiler_wl
  9243. pic_flag=$lt_prog_compiler_pic
  9244. compiler_flags=-v
  9245. linker_flags=-v
  9246. verstring=
  9247. output_objdir=.
  9248. libname=conftest
  9249. lt_save_allow_undefined_flag=$allow_undefined_flag
  9250. allow_undefined_flag=
  9251. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  9252. (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  9253. ac_status=$?
  9254. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9255. test $ac_status = 0; }
  9256. then
  9257. lt_cv_archive_cmds_need_lc=no
  9258. else
  9259. lt_cv_archive_cmds_need_lc=yes
  9260. fi
  9261. allow_undefined_flag=$lt_save_allow_undefined_flag
  9262. else
  9263. cat conftest.err 1>&5
  9264. fi
  9265. $RM conftest*
  9266. fi
  9267. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
  9268. $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
  9269. archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
  9270. ;;
  9271. esac
  9272. fi
  9273. ;;
  9274. esac
  9275. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  9276. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  9277. if test "$GCC" = yes; then
  9278. case $host_os in
  9279. darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
  9280. *) lt_awk_arg="/^libraries:/" ;;
  9281. esac
  9282. case $host_os in
  9283. mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
  9284. *) lt_sed_strip_eq="s,=/,/,g" ;;
  9285. esac
  9286. lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
  9287. case $lt_search_path_spec in
  9288. *\;*)
  9289. # if the path contains ";" then we assume it to be the separator
  9290. # otherwise default to the standard path separator (i.e. ":") - it is
  9291. # assumed that no part of a normal pathname contains ";" but that should
  9292. # okay in the real world where ";" in dirpaths is itself problematic.
  9293. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
  9294. ;;
  9295. *)
  9296. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
  9297. ;;
  9298. esac
  9299. # Ok, now we have the path, separated by spaces, we can step through it
  9300. # and add multilib dir if necessary.
  9301. lt_tmp_lt_search_path_spec=
  9302. lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  9303. for lt_sys_path in $lt_search_path_spec; do
  9304. if test -d "$lt_sys_path/$lt_multi_os_dir"; then
  9305. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
  9306. else
  9307. test -d "$lt_sys_path" && \
  9308. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  9309. fi
  9310. done
  9311. lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
  9312. BEGIN {RS=" "; FS="/|\n";} {
  9313. lt_foo="";
  9314. lt_count=0;
  9315. for (lt_i = NF; lt_i > 0; lt_i--) {
  9316. if ($lt_i != "" && $lt_i != ".") {
  9317. if ($lt_i == "..") {
  9318. lt_count++;
  9319. } else {
  9320. if (lt_count == 0) {
  9321. lt_foo="/" $lt_i lt_foo;
  9322. } else {
  9323. lt_count--;
  9324. }
  9325. }
  9326. }
  9327. }
  9328. if (lt_foo != "") { lt_freq[lt_foo]++; }
  9329. if (lt_freq[lt_foo] == 1) { print lt_foo; }
  9330. }'`
  9331. # AWK program above erroneously prepends '/' to C:/dos/paths
  9332. # for these hosts.
  9333. case $host_os in
  9334. mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
  9335. $SED 's,/\([A-Za-z]:\),\1,g'` ;;
  9336. esac
  9337. sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
  9338. else
  9339. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  9340. fi
  9341. library_names_spec=
  9342. libname_spec='lib$name'
  9343. soname_spec=
  9344. shrext_cmds=".so"
  9345. postinstall_cmds=
  9346. postuninstall_cmds=
  9347. finish_cmds=
  9348. finish_eval=
  9349. shlibpath_var=
  9350. shlibpath_overrides_runpath=unknown
  9351. version_type=none
  9352. dynamic_linker="$host_os ld.so"
  9353. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  9354. need_lib_prefix=unknown
  9355. hardcode_into_libs=no
  9356. # when you set need_version to no, make sure it does not cause -set_version
  9357. # flags to be left without arguments
  9358. need_version=unknown
  9359. case $host_os in
  9360. aix3*)
  9361. version_type=linux
  9362. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  9363. shlibpath_var=LIBPATH
  9364. # AIX 3 has no versioning support, so we append a major version to the name.
  9365. soname_spec='${libname}${release}${shared_ext}$major'
  9366. ;;
  9367. aix[4-9]*)
  9368. version_type=linux
  9369. need_lib_prefix=no
  9370. need_version=no
  9371. hardcode_into_libs=yes
  9372. if test "$host_cpu" = ia64; then
  9373. # AIX 5 supports IA64
  9374. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  9375. shlibpath_var=LD_LIBRARY_PATH
  9376. else
  9377. # With GCC up to 2.95.x, collect2 would create an import file
  9378. # for dependence libraries. The import file would start with
  9379. # the line `#! .'. This would cause the generated library to
  9380. # depend on `.', always an invalid library. This was fixed in
  9381. # development snapshots of GCC prior to 3.0.
  9382. case $host_os in
  9383. aix4 | aix4.[01] | aix4.[01].*)
  9384. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  9385. echo ' yes '
  9386. echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  9387. :
  9388. else
  9389. can_build_shared=no
  9390. fi
  9391. ;;
  9392. esac
  9393. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  9394. # soname into executable. Probably we can add versioning support to
  9395. # collect2, so additional links can be useful in future.
  9396. if test "$aix_use_runtimelinking" = yes; then
  9397. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  9398. # instead of lib<name>.a to let people know that these are not
  9399. # typical AIX shared libraries.
  9400. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9401. else
  9402. # We preserve .a as extension for shared libraries through AIX4.2
  9403. # and later when we are not doing run time linking.
  9404. library_names_spec='${libname}${release}.a $libname.a'
  9405. soname_spec='${libname}${release}${shared_ext}$major'
  9406. fi
  9407. shlibpath_var=LIBPATH
  9408. fi
  9409. ;;
  9410. amigaos*)
  9411. case $host_cpu in
  9412. powerpc)
  9413. # Since July 2007 AmigaOS4 officially supports .so libraries.
  9414. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  9415. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9416. ;;
  9417. m68k)
  9418. library_names_spec='$libname.ixlibrary $libname.a'
  9419. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  9420. finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
  9421. ;;
  9422. esac
  9423. ;;
  9424. beos*)
  9425. library_names_spec='${libname}${shared_ext}'
  9426. dynamic_linker="$host_os ld.so"
  9427. shlibpath_var=LIBRARY_PATH
  9428. ;;
  9429. bsdi[45]*)
  9430. version_type=linux
  9431. need_version=no
  9432. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9433. soname_spec='${libname}${release}${shared_ext}$major'
  9434. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  9435. shlibpath_var=LD_LIBRARY_PATH
  9436. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  9437. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  9438. # the default ld.so.conf also contains /usr/contrib/lib and
  9439. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  9440. # libtool to hard-code these into programs
  9441. ;;
  9442. cygwin* | mingw* | pw32* | cegcc*)
  9443. version_type=windows
  9444. shrext_cmds=".dll"
  9445. need_version=no
  9446. need_lib_prefix=no
  9447. case $GCC,$host_os in
  9448. yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
  9449. library_names_spec='$libname.dll.a'
  9450. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  9451. postinstall_cmds='base_file=`basename \${file}`~
  9452. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  9453. dldir=$destdir/`dirname \$dlpath`~
  9454. test -d \$dldir || mkdir -p \$dldir~
  9455. $install_prog $dir/$dlname \$dldir/$dlname~
  9456. chmod a+x \$dldir/$dlname~
  9457. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  9458. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  9459. fi'
  9460. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  9461. dlpath=$dir/\$dldll~
  9462. $RM \$dlpath'
  9463. shlibpath_overrides_runpath=yes
  9464. case $host_os in
  9465. cygwin*)
  9466. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  9467. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  9468. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
  9469. ;;
  9470. mingw* | cegcc*)
  9471. # MinGW DLLs use traditional 'lib' prefix
  9472. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  9473. ;;
  9474. pw32*)
  9475. # pw32 DLLs use 'pw' prefix rather than 'lib'
  9476. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  9477. ;;
  9478. esac
  9479. ;;
  9480. *)
  9481. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  9482. ;;
  9483. esac
  9484. dynamic_linker='Win32 ld.exe'
  9485. # FIXME: first we should search . and the directory the executable is in
  9486. shlibpath_var=PATH
  9487. ;;
  9488. darwin* | rhapsody*)
  9489. dynamic_linker="$host_os dyld"
  9490. version_type=darwin
  9491. need_lib_prefix=no
  9492. need_version=no
  9493. library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  9494. soname_spec='${libname}${release}${major}$shared_ext'
  9495. shlibpath_overrides_runpath=yes
  9496. shlibpath_var=DYLD_LIBRARY_PATH
  9497. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  9498. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
  9499. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  9500. ;;
  9501. dgux*)
  9502. version_type=linux
  9503. need_lib_prefix=no
  9504. need_version=no
  9505. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  9506. soname_spec='${libname}${release}${shared_ext}$major'
  9507. shlibpath_var=LD_LIBRARY_PATH
  9508. ;;
  9509. freebsd* | dragonfly*)
  9510. # DragonFly does not have aout. When/if they implement a new
  9511. # versioning mechanism, adjust this.
  9512. if test -x /usr/bin/objformat; then
  9513. objformat=`/usr/bin/objformat`
  9514. else
  9515. case $host_os in
  9516. freebsd[23].*) objformat=aout ;;
  9517. *) objformat=elf ;;
  9518. esac
  9519. fi
  9520. version_type=freebsd-$objformat
  9521. case $version_type in
  9522. freebsd-elf*)
  9523. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  9524. need_version=no
  9525. need_lib_prefix=no
  9526. ;;
  9527. freebsd-*)
  9528. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  9529. need_version=yes
  9530. ;;
  9531. esac
  9532. shlibpath_var=LD_LIBRARY_PATH
  9533. case $host_os in
  9534. freebsd2.*)
  9535. shlibpath_overrides_runpath=yes
  9536. ;;
  9537. freebsd3.[01]* | freebsdelf3.[01]*)
  9538. shlibpath_overrides_runpath=yes
  9539. hardcode_into_libs=yes
  9540. ;;
  9541. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  9542. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  9543. shlibpath_overrides_runpath=no
  9544. hardcode_into_libs=yes
  9545. ;;
  9546. *) # from 4.6 on, and DragonFly
  9547. shlibpath_overrides_runpath=yes
  9548. hardcode_into_libs=yes
  9549. ;;
  9550. esac
  9551. ;;
  9552. gnu*)
  9553. version_type=linux
  9554. need_lib_prefix=no
  9555. need_version=no
  9556. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  9557. soname_spec='${libname}${release}${shared_ext}$major'
  9558. shlibpath_var=LD_LIBRARY_PATH
  9559. hardcode_into_libs=yes
  9560. ;;
  9561. haiku*)
  9562. version_type=linux
  9563. need_lib_prefix=no
  9564. need_version=no
  9565. dynamic_linker="$host_os runtime_loader"
  9566. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  9567. soname_spec='${libname}${release}${shared_ext}$major'
  9568. shlibpath_var=LIBRARY_PATH
  9569. shlibpath_overrides_runpath=yes
  9570. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
  9571. hardcode_into_libs=yes
  9572. ;;
  9573. hpux9* | hpux10* | hpux11*)
  9574. # Give a soname corresponding to the major version so that dld.sl refuses to
  9575. # link against other versions.
  9576. version_type=sunos
  9577. need_lib_prefix=no
  9578. need_version=no
  9579. case $host_cpu in
  9580. ia64*)
  9581. shrext_cmds='.so'
  9582. hardcode_into_libs=yes
  9583. dynamic_linker="$host_os dld.so"
  9584. shlibpath_var=LD_LIBRARY_PATH
  9585. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  9586. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9587. soname_spec='${libname}${release}${shared_ext}$major'
  9588. if test "X$HPUX_IA64_MODE" = X32; then
  9589. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  9590. else
  9591. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  9592. fi
  9593. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  9594. ;;
  9595. hppa*64*)
  9596. shrext_cmds='.sl'
  9597. hardcode_into_libs=yes
  9598. dynamic_linker="$host_os dld.sl"
  9599. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  9600. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  9601. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9602. soname_spec='${libname}${release}${shared_ext}$major'
  9603. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  9604. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  9605. ;;
  9606. *)
  9607. shrext_cmds='.sl'
  9608. dynamic_linker="$host_os dld.sl"
  9609. shlibpath_var=SHLIB_PATH
  9610. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  9611. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9612. soname_spec='${libname}${release}${shared_ext}$major'
  9613. ;;
  9614. esac
  9615. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  9616. postinstall_cmds='chmod 555 $lib'
  9617. # or fails outright, so override atomically:
  9618. install_override_mode=555
  9619. ;;
  9620. interix[3-9]*)
  9621. version_type=linux
  9622. need_lib_prefix=no
  9623. need_version=no
  9624. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  9625. soname_spec='${libname}${release}${shared_ext}$major'
  9626. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  9627. shlibpath_var=LD_LIBRARY_PATH
  9628. shlibpath_overrides_runpath=no
  9629. hardcode_into_libs=yes
  9630. ;;
  9631. irix5* | irix6* | nonstopux*)
  9632. case $host_os in
  9633. nonstopux*) version_type=nonstopux ;;
  9634. *)
  9635. if test "$lt_cv_prog_gnu_ld" = yes; then
  9636. version_type=linux
  9637. else
  9638. version_type=irix
  9639. fi ;;
  9640. esac
  9641. need_lib_prefix=no
  9642. need_version=no
  9643. soname_spec='${libname}${release}${shared_ext}$major'
  9644. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  9645. case $host_os in
  9646. irix5* | nonstopux*)
  9647. libsuff= shlibsuff=
  9648. ;;
  9649. *)
  9650. case $LD in # libtool.m4 will add one of these switches to LD
  9651. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  9652. libsuff= shlibsuff= libmagic=32-bit;;
  9653. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  9654. libsuff=32 shlibsuff=N32 libmagic=N32;;
  9655. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  9656. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  9657. *) libsuff= shlibsuff= libmagic=never-match;;
  9658. esac
  9659. ;;
  9660. esac
  9661. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  9662. shlibpath_overrides_runpath=no
  9663. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  9664. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  9665. hardcode_into_libs=yes
  9666. ;;
  9667. # No shared lib support for Linux oldld, aout, or coff.
  9668. linux*oldld* | linux*aout* | linux*coff*)
  9669. dynamic_linker=no
  9670. ;;
  9671. # This must be Linux ELF.
  9672. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  9673. version_type=linux
  9674. need_lib_prefix=no
  9675. need_version=no
  9676. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9677. soname_spec='${libname}${release}${shared_ext}$major'
  9678. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  9679. shlibpath_var=LD_LIBRARY_PATH
  9680. shlibpath_overrides_runpath=no
  9681. # Some binutils ld are patched to set DT_RUNPATH
  9682. if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
  9683. $as_echo_n "(cached) " >&6
  9684. else
  9685. lt_cv_shlibpath_overrides_runpath=no
  9686. save_LDFLAGS=$LDFLAGS
  9687. save_libdir=$libdir
  9688. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
  9689. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
  9690. if test x$gcc_no_link = xyes; then
  9691. as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  9692. fi
  9693. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9694. /* end confdefs.h. */
  9695. int
  9696. main ()
  9697. {
  9698. ;
  9699. return 0;
  9700. }
  9701. _ACEOF
  9702. if ac_fn_c_try_link "$LINENO"; then :
  9703. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  9704. lt_cv_shlibpath_overrides_runpath=yes
  9705. fi
  9706. fi
  9707. rm -f core conftest.err conftest.$ac_objext \
  9708. conftest$ac_exeext conftest.$ac_ext
  9709. LDFLAGS=$save_LDFLAGS
  9710. libdir=$save_libdir
  9711. fi
  9712. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  9713. # This implies no fast_install, which is unacceptable.
  9714. # Some rework will be needed to allow for fast_install
  9715. # before this can be enabled.
  9716. hardcode_into_libs=yes
  9717. # Append ld.so.conf contents to the search path
  9718. if test -f /etc/ld.so.conf; then
  9719. lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
  9720. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  9721. fi
  9722. # We used to test for /lib/ld.so.1 and disable shared libraries on
  9723. # powerpc, because MkLinux only supported shared libraries with the
  9724. # GNU dynamic linker. Since this was broken with cross compilers,
  9725. # most powerpc-linux boxes support dynamic linking these days and
  9726. # people can always --disable-shared, the test was removed, and we
  9727. # assume the GNU/Linux dynamic linker is in use.
  9728. dynamic_linker='GNU/Linux ld.so'
  9729. ;;
  9730. netbsd*)
  9731. version_type=sunos
  9732. need_lib_prefix=no
  9733. need_version=no
  9734. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  9735. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9736. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  9737. dynamic_linker='NetBSD (a.out) ld.so'
  9738. else
  9739. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  9740. soname_spec='${libname}${release}${shared_ext}$major'
  9741. dynamic_linker='NetBSD ld.elf_so'
  9742. fi
  9743. shlibpath_var=LD_LIBRARY_PATH
  9744. shlibpath_overrides_runpath=yes
  9745. hardcode_into_libs=yes
  9746. ;;
  9747. newsos6)
  9748. version_type=linux
  9749. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9750. shlibpath_var=LD_LIBRARY_PATH
  9751. shlibpath_overrides_runpath=yes
  9752. ;;
  9753. *nto* | *qnx*)
  9754. version_type=qnx
  9755. need_lib_prefix=no
  9756. need_version=no
  9757. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9758. soname_spec='${libname}${release}${shared_ext}$major'
  9759. shlibpath_var=LD_LIBRARY_PATH
  9760. shlibpath_overrides_runpath=no
  9761. hardcode_into_libs=yes
  9762. dynamic_linker='ldqnx.so'
  9763. ;;
  9764. openbsd*)
  9765. version_type=sunos
  9766. sys_lib_dlsearch_path_spec="/usr/lib"
  9767. need_lib_prefix=no
  9768. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  9769. case $host_os in
  9770. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  9771. *) need_version=no ;;
  9772. esac
  9773. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9774. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  9775. shlibpath_var=LD_LIBRARY_PATH
  9776. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  9777. case $host_os in
  9778. openbsd2.[89] | openbsd2.[89].*)
  9779. shlibpath_overrides_runpath=no
  9780. ;;
  9781. *)
  9782. shlibpath_overrides_runpath=yes
  9783. ;;
  9784. esac
  9785. else
  9786. shlibpath_overrides_runpath=yes
  9787. fi
  9788. ;;
  9789. os2*)
  9790. libname_spec='$name'
  9791. shrext_cmds=".dll"
  9792. need_lib_prefix=no
  9793. library_names_spec='$libname${shared_ext} $libname.a'
  9794. dynamic_linker='OS/2 ld.exe'
  9795. shlibpath_var=LIBPATH
  9796. ;;
  9797. osf3* | osf4* | osf5*)
  9798. version_type=osf
  9799. need_lib_prefix=no
  9800. need_version=no
  9801. soname_spec='${libname}${release}${shared_ext}$major'
  9802. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9803. shlibpath_var=LD_LIBRARY_PATH
  9804. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  9805. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  9806. ;;
  9807. rdos*)
  9808. dynamic_linker=no
  9809. ;;
  9810. solaris*)
  9811. version_type=linux
  9812. need_lib_prefix=no
  9813. need_version=no
  9814. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9815. soname_spec='${libname}${release}${shared_ext}$major'
  9816. shlibpath_var=LD_LIBRARY_PATH
  9817. shlibpath_overrides_runpath=yes
  9818. hardcode_into_libs=yes
  9819. # ldd complains unless libraries are executable
  9820. postinstall_cmds='chmod +x $lib'
  9821. ;;
  9822. sunos4*)
  9823. version_type=sunos
  9824. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9825. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  9826. shlibpath_var=LD_LIBRARY_PATH
  9827. shlibpath_overrides_runpath=yes
  9828. if test "$with_gnu_ld" = yes; then
  9829. need_lib_prefix=no
  9830. fi
  9831. need_version=yes
  9832. ;;
  9833. sysv4 | sysv4.3*)
  9834. version_type=linux
  9835. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9836. soname_spec='${libname}${release}${shared_ext}$major'
  9837. shlibpath_var=LD_LIBRARY_PATH
  9838. case $host_vendor in
  9839. sni)
  9840. shlibpath_overrides_runpath=no
  9841. need_lib_prefix=no
  9842. runpath_var=LD_RUN_PATH
  9843. ;;
  9844. siemens)
  9845. need_lib_prefix=no
  9846. ;;
  9847. motorola)
  9848. need_lib_prefix=no
  9849. need_version=no
  9850. shlibpath_overrides_runpath=no
  9851. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  9852. ;;
  9853. esac
  9854. ;;
  9855. sysv4*MP*)
  9856. if test -d /usr/nec ;then
  9857. version_type=linux
  9858. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  9859. soname_spec='$libname${shared_ext}.$major'
  9860. shlibpath_var=LD_LIBRARY_PATH
  9861. fi
  9862. ;;
  9863. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  9864. version_type=freebsd-elf
  9865. need_lib_prefix=no
  9866. need_version=no
  9867. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  9868. soname_spec='${libname}${release}${shared_ext}$major'
  9869. shlibpath_var=LD_LIBRARY_PATH
  9870. shlibpath_overrides_runpath=yes
  9871. hardcode_into_libs=yes
  9872. if test "$with_gnu_ld" = yes; then
  9873. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  9874. else
  9875. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  9876. case $host_os in
  9877. sco3.2v5*)
  9878. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  9879. ;;
  9880. esac
  9881. fi
  9882. sys_lib_dlsearch_path_spec='/usr/lib'
  9883. ;;
  9884. tpf*)
  9885. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  9886. version_type=linux
  9887. need_lib_prefix=no
  9888. need_version=no
  9889. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9890. shlibpath_var=LD_LIBRARY_PATH
  9891. shlibpath_overrides_runpath=no
  9892. hardcode_into_libs=yes
  9893. ;;
  9894. uts4*)
  9895. version_type=linux
  9896. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9897. soname_spec='${libname}${release}${shared_ext}$major'
  9898. shlibpath_var=LD_LIBRARY_PATH
  9899. ;;
  9900. *)
  9901. dynamic_linker=no
  9902. ;;
  9903. esac
  9904. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  9905. $as_echo "$dynamic_linker" >&6; }
  9906. test "$dynamic_linker" = no && can_build_shared=no
  9907. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  9908. if test "$GCC" = yes; then
  9909. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  9910. fi
  9911. if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  9912. sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  9913. fi
  9914. if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  9915. sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  9916. fi
  9917. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  9918. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  9919. hardcode_action=
  9920. if test -n "$hardcode_libdir_flag_spec" ||
  9921. test -n "$runpath_var" ||
  9922. test "X$hardcode_automatic" = "Xyes" ; then
  9923. # We can hardcode non-existent directories.
  9924. if test "$hardcode_direct" != no &&
  9925. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  9926. # have to relink, otherwise we might link with an installed library
  9927. # when we should be linking with a yet-to-be-installed one
  9928. ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
  9929. test "$hardcode_minus_L" != no; then
  9930. # Linking always hardcodes the temporary library directory.
  9931. hardcode_action=relink
  9932. else
  9933. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  9934. hardcode_action=immediate
  9935. fi
  9936. else
  9937. # We cannot hardcode anything, or else we can only hardcode existing
  9938. # directories.
  9939. hardcode_action=unsupported
  9940. fi
  9941. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
  9942. $as_echo "$hardcode_action" >&6; }
  9943. if test "$hardcode_action" = relink ||
  9944. test "$inherit_rpath" = yes; then
  9945. # Fast installation is not supported
  9946. enable_fast_install=no
  9947. elif test "$shlibpath_overrides_runpath" = yes ||
  9948. test "$enable_shared" = no; then
  9949. # Fast installation is not necessary
  9950. enable_fast_install=needless
  9951. fi
  9952. if test "x$enable_dlopen" != xyes; then
  9953. enable_dlopen=unknown
  9954. enable_dlopen_self=unknown
  9955. enable_dlopen_self_static=unknown
  9956. else
  9957. lt_cv_dlopen=no
  9958. lt_cv_dlopen_libs=
  9959. case $host_os in
  9960. beos*)
  9961. lt_cv_dlopen="load_add_on"
  9962. lt_cv_dlopen_libs=
  9963. lt_cv_dlopen_self=yes
  9964. ;;
  9965. mingw* | pw32* | cegcc*)
  9966. lt_cv_dlopen="LoadLibrary"
  9967. lt_cv_dlopen_libs=
  9968. ;;
  9969. cygwin*)
  9970. lt_cv_dlopen="dlopen"
  9971. lt_cv_dlopen_libs=
  9972. ;;
  9973. darwin*)
  9974. # if libdl is installed we need to link against it
  9975. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  9976. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  9977. if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
  9978. $as_echo_n "(cached) " >&6
  9979. else
  9980. ac_check_lib_save_LIBS=$LIBS
  9981. LIBS="-ldl $LIBS"
  9982. if test x$gcc_no_link = xyes; then
  9983. as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  9984. fi
  9985. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9986. /* end confdefs.h. */
  9987. /* Override any GCC internal prototype to avoid an error.
  9988. Use char because int might match the return type of a GCC
  9989. builtin and then its argument prototype would still apply. */
  9990. #ifdef __cplusplus
  9991. extern "C"
  9992. #endif
  9993. char dlopen ();
  9994. int
  9995. main ()
  9996. {
  9997. return dlopen ();
  9998. ;
  9999. return 0;
  10000. }
  10001. _ACEOF
  10002. if ac_fn_c_try_link "$LINENO"; then :
  10003. ac_cv_lib_dl_dlopen=yes
  10004. else
  10005. ac_cv_lib_dl_dlopen=no
  10006. fi
  10007. rm -f core conftest.err conftest.$ac_objext \
  10008. conftest$ac_exeext conftest.$ac_ext
  10009. LIBS=$ac_check_lib_save_LIBS
  10010. fi
  10011. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  10012. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  10013. if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
  10014. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  10015. else
  10016. lt_cv_dlopen="dyld"
  10017. lt_cv_dlopen_libs=
  10018. lt_cv_dlopen_self=yes
  10019. fi
  10020. ;;
  10021. *)
  10022. ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
  10023. if test "x$ac_cv_func_shl_load" = x""yes; then :
  10024. lt_cv_dlopen="shl_load"
  10025. else
  10026. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
  10027. $as_echo_n "checking for shl_load in -ldld... " >&6; }
  10028. if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
  10029. $as_echo_n "(cached) " >&6
  10030. else
  10031. ac_check_lib_save_LIBS=$LIBS
  10032. LIBS="-ldld $LIBS"
  10033. if test x$gcc_no_link = xyes; then
  10034. as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  10035. fi
  10036. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10037. /* end confdefs.h. */
  10038. /* Override any GCC internal prototype to avoid an error.
  10039. Use char because int might match the return type of a GCC
  10040. builtin and then its argument prototype would still apply. */
  10041. #ifdef __cplusplus
  10042. extern "C"
  10043. #endif
  10044. char shl_load ();
  10045. int
  10046. main ()
  10047. {
  10048. return shl_load ();
  10049. ;
  10050. return 0;
  10051. }
  10052. _ACEOF
  10053. if ac_fn_c_try_link "$LINENO"; then :
  10054. ac_cv_lib_dld_shl_load=yes
  10055. else
  10056. ac_cv_lib_dld_shl_load=no
  10057. fi
  10058. rm -f core conftest.err conftest.$ac_objext \
  10059. conftest$ac_exeext conftest.$ac_ext
  10060. LIBS=$ac_check_lib_save_LIBS
  10061. fi
  10062. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
  10063. $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
  10064. if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
  10065. lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
  10066. else
  10067. ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
  10068. if test "x$ac_cv_func_dlopen" = x""yes; then :
  10069. lt_cv_dlopen="dlopen"
  10070. else
  10071. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  10072. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  10073. if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
  10074. $as_echo_n "(cached) " >&6
  10075. else
  10076. ac_check_lib_save_LIBS=$LIBS
  10077. LIBS="-ldl $LIBS"
  10078. if test x$gcc_no_link = xyes; then
  10079. as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  10080. fi
  10081. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10082. /* end confdefs.h. */
  10083. /* Override any GCC internal prototype to avoid an error.
  10084. Use char because int might match the return type of a GCC
  10085. builtin and then its argument prototype would still apply. */
  10086. #ifdef __cplusplus
  10087. extern "C"
  10088. #endif
  10089. char dlopen ();
  10090. int
  10091. main ()
  10092. {
  10093. return dlopen ();
  10094. ;
  10095. return 0;
  10096. }
  10097. _ACEOF
  10098. if ac_fn_c_try_link "$LINENO"; then :
  10099. ac_cv_lib_dl_dlopen=yes
  10100. else
  10101. ac_cv_lib_dl_dlopen=no
  10102. fi
  10103. rm -f core conftest.err conftest.$ac_objext \
  10104. conftest$ac_exeext conftest.$ac_ext
  10105. LIBS=$ac_check_lib_save_LIBS
  10106. fi
  10107. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  10108. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  10109. if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
  10110. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  10111. else
  10112. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
  10113. $as_echo_n "checking for dlopen in -lsvld... " >&6; }
  10114. if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
  10115. $as_echo_n "(cached) " >&6
  10116. else
  10117. ac_check_lib_save_LIBS=$LIBS
  10118. LIBS="-lsvld $LIBS"
  10119. if test x$gcc_no_link = xyes; then
  10120. as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  10121. fi
  10122. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10123. /* end confdefs.h. */
  10124. /* Override any GCC internal prototype to avoid an error.
  10125. Use char because int might match the return type of a GCC
  10126. builtin and then its argument prototype would still apply. */
  10127. #ifdef __cplusplus
  10128. extern "C"
  10129. #endif
  10130. char dlopen ();
  10131. int
  10132. main ()
  10133. {
  10134. return dlopen ();
  10135. ;
  10136. return 0;
  10137. }
  10138. _ACEOF
  10139. if ac_fn_c_try_link "$LINENO"; then :
  10140. ac_cv_lib_svld_dlopen=yes
  10141. else
  10142. ac_cv_lib_svld_dlopen=no
  10143. fi
  10144. rm -f core conftest.err conftest.$ac_objext \
  10145. conftest$ac_exeext conftest.$ac_ext
  10146. LIBS=$ac_check_lib_save_LIBS
  10147. fi
  10148. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
  10149. $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
  10150. if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
  10151. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
  10152. else
  10153. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
  10154. $as_echo_n "checking for dld_link in -ldld... " >&6; }
  10155. if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
  10156. $as_echo_n "(cached) " >&6
  10157. else
  10158. ac_check_lib_save_LIBS=$LIBS
  10159. LIBS="-ldld $LIBS"
  10160. if test x$gcc_no_link = xyes; then
  10161. as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  10162. fi
  10163. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10164. /* end confdefs.h. */
  10165. /* Override any GCC internal prototype to avoid an error.
  10166. Use char because int might match the return type of a GCC
  10167. builtin and then its argument prototype would still apply. */
  10168. #ifdef __cplusplus
  10169. extern "C"
  10170. #endif
  10171. char dld_link ();
  10172. int
  10173. main ()
  10174. {
  10175. return dld_link ();
  10176. ;
  10177. return 0;
  10178. }
  10179. _ACEOF
  10180. if ac_fn_c_try_link "$LINENO"; then :
  10181. ac_cv_lib_dld_dld_link=yes
  10182. else
  10183. ac_cv_lib_dld_dld_link=no
  10184. fi
  10185. rm -f core conftest.err conftest.$ac_objext \
  10186. conftest$ac_exeext conftest.$ac_ext
  10187. LIBS=$ac_check_lib_save_LIBS
  10188. fi
  10189. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
  10190. $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
  10191. if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
  10192. lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
  10193. fi
  10194. fi
  10195. fi
  10196. fi
  10197. fi
  10198. fi
  10199. ;;
  10200. esac
  10201. if test "x$lt_cv_dlopen" != xno; then
  10202. enable_dlopen=yes
  10203. else
  10204. enable_dlopen=no
  10205. fi
  10206. case $lt_cv_dlopen in
  10207. dlopen)
  10208. save_CPPFLAGS="$CPPFLAGS"
  10209. test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  10210. save_LDFLAGS="$LDFLAGS"
  10211. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  10212. save_LIBS="$LIBS"
  10213. LIBS="$lt_cv_dlopen_libs $LIBS"
  10214. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
  10215. $as_echo_n "checking whether a program can dlopen itself... " >&6; }
  10216. if test "${lt_cv_dlopen_self+set}" = set; then :
  10217. $as_echo_n "(cached) " >&6
  10218. else
  10219. if test "$cross_compiling" = yes; then :
  10220. lt_cv_dlopen_self=cross
  10221. else
  10222. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  10223. lt_status=$lt_dlunknown
  10224. cat > conftest.$ac_ext <<_LT_EOF
  10225. #line 11882 "configure"
  10226. #include "confdefs.h"
  10227. #if HAVE_DLFCN_H
  10228. #include <dlfcn.h>
  10229. #endif
  10230. #include <stdio.h>
  10231. #ifdef RTLD_GLOBAL
  10232. # define LT_DLGLOBAL RTLD_GLOBAL
  10233. #else
  10234. # ifdef DL_GLOBAL
  10235. # define LT_DLGLOBAL DL_GLOBAL
  10236. # else
  10237. # define LT_DLGLOBAL 0
  10238. # endif
  10239. #endif
  10240. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  10241. find out it does not work in some platform. */
  10242. #ifndef LT_DLLAZY_OR_NOW
  10243. # ifdef RTLD_LAZY
  10244. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  10245. # else
  10246. # ifdef DL_LAZY
  10247. # define LT_DLLAZY_OR_NOW DL_LAZY
  10248. # else
  10249. # ifdef RTLD_NOW
  10250. # define LT_DLLAZY_OR_NOW RTLD_NOW
  10251. # else
  10252. # ifdef DL_NOW
  10253. # define LT_DLLAZY_OR_NOW DL_NOW
  10254. # else
  10255. # define LT_DLLAZY_OR_NOW 0
  10256. # endif
  10257. # endif
  10258. # endif
  10259. # endif
  10260. #endif
  10261. /* When -fvisbility=hidden is used, assume the code has been annotated
  10262. correspondingly for the symbols needed. */
  10263. #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  10264. void fnord () __attribute__((visibility("default")));
  10265. #endif
  10266. void fnord () { int i=42; }
  10267. int main ()
  10268. {
  10269. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  10270. int status = $lt_dlunknown;
  10271. if (self)
  10272. {
  10273. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  10274. else
  10275. {
  10276. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  10277. else puts (dlerror ());
  10278. }
  10279. /* dlclose (self); */
  10280. }
  10281. else
  10282. puts (dlerror ());
  10283. return status;
  10284. }
  10285. _LT_EOF
  10286. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  10287. (eval $ac_link) 2>&5
  10288. ac_status=$?
  10289. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10290. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  10291. (./conftest; exit; ) >&5 2>/dev/null
  10292. lt_status=$?
  10293. case x$lt_status in
  10294. x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  10295. x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  10296. x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
  10297. esac
  10298. else :
  10299. # compilation failed
  10300. lt_cv_dlopen_self=no
  10301. fi
  10302. fi
  10303. rm -fr conftest*
  10304. fi
  10305. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
  10306. $as_echo "$lt_cv_dlopen_self" >&6; }
  10307. if test "x$lt_cv_dlopen_self" = xyes; then
  10308. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  10309. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
  10310. $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
  10311. if test "${lt_cv_dlopen_self_static+set}" = set; then :
  10312. $as_echo_n "(cached) " >&6
  10313. else
  10314. if test "$cross_compiling" = yes; then :
  10315. lt_cv_dlopen_self_static=cross
  10316. else
  10317. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  10318. lt_status=$lt_dlunknown
  10319. cat > conftest.$ac_ext <<_LT_EOF
  10320. #line 11988 "configure"
  10321. #include "confdefs.h"
  10322. #if HAVE_DLFCN_H
  10323. #include <dlfcn.h>
  10324. #endif
  10325. #include <stdio.h>
  10326. #ifdef RTLD_GLOBAL
  10327. # define LT_DLGLOBAL RTLD_GLOBAL
  10328. #else
  10329. # ifdef DL_GLOBAL
  10330. # define LT_DLGLOBAL DL_GLOBAL
  10331. # else
  10332. # define LT_DLGLOBAL 0
  10333. # endif
  10334. #endif
  10335. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  10336. find out it does not work in some platform. */
  10337. #ifndef LT_DLLAZY_OR_NOW
  10338. # ifdef RTLD_LAZY
  10339. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  10340. # else
  10341. # ifdef DL_LAZY
  10342. # define LT_DLLAZY_OR_NOW DL_LAZY
  10343. # else
  10344. # ifdef RTLD_NOW
  10345. # define LT_DLLAZY_OR_NOW RTLD_NOW
  10346. # else
  10347. # ifdef DL_NOW
  10348. # define LT_DLLAZY_OR_NOW DL_NOW
  10349. # else
  10350. # define LT_DLLAZY_OR_NOW 0
  10351. # endif
  10352. # endif
  10353. # endif
  10354. # endif
  10355. #endif
  10356. /* When -fvisbility=hidden is used, assume the code has been annotated
  10357. correspondingly for the symbols needed. */
  10358. #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  10359. void fnord () __attribute__((visibility("default")));
  10360. #endif
  10361. void fnord () { int i=42; }
  10362. int main ()
  10363. {
  10364. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  10365. int status = $lt_dlunknown;
  10366. if (self)
  10367. {
  10368. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  10369. else
  10370. {
  10371. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  10372. else puts (dlerror ());
  10373. }
  10374. /* dlclose (self); */
  10375. }
  10376. else
  10377. puts (dlerror ());
  10378. return status;
  10379. }
  10380. _LT_EOF
  10381. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  10382. (eval $ac_link) 2>&5
  10383. ac_status=$?
  10384. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10385. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  10386. (./conftest; exit; ) >&5 2>/dev/null
  10387. lt_status=$?
  10388. case x$lt_status in
  10389. x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  10390. x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  10391. x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
  10392. esac
  10393. else :
  10394. # compilation failed
  10395. lt_cv_dlopen_self_static=no
  10396. fi
  10397. fi
  10398. rm -fr conftest*
  10399. fi
  10400. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
  10401. $as_echo "$lt_cv_dlopen_self_static" >&6; }
  10402. fi
  10403. CPPFLAGS="$save_CPPFLAGS"
  10404. LDFLAGS="$save_LDFLAGS"
  10405. LIBS="$save_LIBS"
  10406. ;;
  10407. esac
  10408. case $lt_cv_dlopen_self in
  10409. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  10410. *) enable_dlopen_self=unknown ;;
  10411. esac
  10412. case $lt_cv_dlopen_self_static in
  10413. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  10414. *) enable_dlopen_self_static=unknown ;;
  10415. esac
  10416. fi
  10417. striplib=
  10418. old_striplib=
  10419. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
  10420. $as_echo_n "checking whether stripping libraries is possible... " >&6; }
  10421. if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  10422. test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  10423. test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  10424. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  10425. $as_echo "yes" >&6; }
  10426. else
  10427. # FIXME - insert some real tests, host_os isn't really good enough
  10428. case $host_os in
  10429. darwin*)
  10430. if test -n "$STRIP" ; then
  10431. striplib="$STRIP -x"
  10432. old_striplib="$STRIP -S"
  10433. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  10434. $as_echo "yes" >&6; }
  10435. else
  10436. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10437. $as_echo "no" >&6; }
  10438. fi
  10439. ;;
  10440. *)
  10441. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10442. $as_echo "no" >&6; }
  10443. ;;
  10444. esac
  10445. fi
  10446. # Report which library types will actually be built
  10447. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
  10448. $as_echo_n "checking if libtool supports shared libraries... " >&6; }
  10449. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
  10450. $as_echo "$can_build_shared" >&6; }
  10451. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
  10452. $as_echo_n "checking whether to build shared libraries... " >&6; }
  10453. test "$can_build_shared" = "no" && enable_shared=no
  10454. # On AIX, shared libraries and static libraries use the same namespace, and
  10455. # are all built from PIC.
  10456. case $host_os in
  10457. aix3*)
  10458. test "$enable_shared" = yes && enable_static=no
  10459. if test -n "$RANLIB"; then
  10460. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  10461. postinstall_cmds='$RANLIB $lib'
  10462. fi
  10463. ;;
  10464. aix[4-9]*)
  10465. if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  10466. test "$enable_shared" = yes && enable_static=no
  10467. fi
  10468. ;;
  10469. esac
  10470. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
  10471. $as_echo "$enable_shared" >&6; }
  10472. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
  10473. $as_echo_n "checking whether to build static libraries... " >&6; }
  10474. # Make sure either enable_shared or enable_static is yes.
  10475. test "$enable_shared" = yes || enable_static=yes
  10476. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
  10477. $as_echo "$enable_static" >&6; }
  10478. fi
  10479. ac_ext=c
  10480. ac_cpp='$CPP $CPPFLAGS'
  10481. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10482. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10483. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  10484. CC="$lt_save_CC"
  10485. ac_config_commands="$ac_config_commands libtool"
  10486. # Only expand once:
  10487. for ac_prog in gawk mawk nawk awk
  10488. do
  10489. # Extract the first word of "$ac_prog", so it can be a program name with args.
  10490. set dummy $ac_prog; ac_word=$2
  10491. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10492. $as_echo_n "checking for $ac_word... " >&6; }
  10493. if test "${ac_cv_prog_AWK+set}" = set; then :
  10494. $as_echo_n "(cached) " >&6
  10495. else
  10496. if test -n "$AWK"; then
  10497. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  10498. else
  10499. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10500. for as_dir in $PATH
  10501. do
  10502. IFS=$as_save_IFS
  10503. test -z "$as_dir" && as_dir=.
  10504. for ac_exec_ext in '' $ac_executable_extensions; do
  10505. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  10506. ac_cv_prog_AWK="$ac_prog"
  10507. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10508. break 2
  10509. fi
  10510. done
  10511. done
  10512. IFS=$as_save_IFS
  10513. fi
  10514. fi
  10515. AWK=$ac_cv_prog_AWK
  10516. if test -n "$AWK"; then
  10517. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  10518. $as_echo "$AWK" >&6; }
  10519. else
  10520. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10521. $as_echo "no" >&6; }
  10522. fi
  10523. test -n "$AWK" && break
  10524. done
  10525. ac_ext=c
  10526. ac_cpp='$CPP $CPPFLAGS'
  10527. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10528. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10529. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  10530. if test -n "$ac_tool_prefix"; then
  10531. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  10532. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  10533. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10534. $as_echo_n "checking for $ac_word... " >&6; }
  10535. if test "${ac_cv_prog_CC+set}" = set; then :
  10536. $as_echo_n "(cached) " >&6
  10537. else
  10538. if test -n "$CC"; then
  10539. ac_cv_prog_CC="$CC" # Let the user override the test.
  10540. else
  10541. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10542. for as_dir in $PATH
  10543. do
  10544. IFS=$as_save_IFS
  10545. test -z "$as_dir" && as_dir=.
  10546. for ac_exec_ext in '' $ac_executable_extensions; do
  10547. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  10548. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  10549. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10550. break 2
  10551. fi
  10552. done
  10553. done
  10554. IFS=$as_save_IFS
  10555. fi
  10556. fi
  10557. CC=$ac_cv_prog_CC
  10558. if test -n "$CC"; then
  10559. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  10560. $as_echo "$CC" >&6; }
  10561. else
  10562. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10563. $as_echo "no" >&6; }
  10564. fi
  10565. fi
  10566. if test -z "$ac_cv_prog_CC"; then
  10567. ac_ct_CC=$CC
  10568. # Extract the first word of "gcc", so it can be a program name with args.
  10569. set dummy gcc; ac_word=$2
  10570. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10571. $as_echo_n "checking for $ac_word... " >&6; }
  10572. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
  10573. $as_echo_n "(cached) " >&6
  10574. else
  10575. if test -n "$ac_ct_CC"; then
  10576. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  10577. else
  10578. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10579. for as_dir in $PATH
  10580. do
  10581. IFS=$as_save_IFS
  10582. test -z "$as_dir" && as_dir=.
  10583. for ac_exec_ext in '' $ac_executable_extensions; do
  10584. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  10585. ac_cv_prog_ac_ct_CC="gcc"
  10586. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10587. break 2
  10588. fi
  10589. done
  10590. done
  10591. IFS=$as_save_IFS
  10592. fi
  10593. fi
  10594. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  10595. if test -n "$ac_ct_CC"; then
  10596. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  10597. $as_echo "$ac_ct_CC" >&6; }
  10598. else
  10599. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10600. $as_echo "no" >&6; }
  10601. fi
  10602. if test "x$ac_ct_CC" = x; then
  10603. CC=""
  10604. else
  10605. case $cross_compiling:$ac_tool_warned in
  10606. yes:)
  10607. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  10608. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  10609. ac_tool_warned=yes ;;
  10610. esac
  10611. CC=$ac_ct_CC
  10612. fi
  10613. else
  10614. CC="$ac_cv_prog_CC"
  10615. fi
  10616. if test -z "$CC"; then
  10617. if test -n "$ac_tool_prefix"; then
  10618. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  10619. set dummy ${ac_tool_prefix}cc; ac_word=$2
  10620. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10621. $as_echo_n "checking for $ac_word... " >&6; }
  10622. if test "${ac_cv_prog_CC+set}" = set; then :
  10623. $as_echo_n "(cached) " >&6
  10624. else
  10625. if test -n "$CC"; then
  10626. ac_cv_prog_CC="$CC" # Let the user override the test.
  10627. else
  10628. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10629. for as_dir in $PATH
  10630. do
  10631. IFS=$as_save_IFS
  10632. test -z "$as_dir" && as_dir=.
  10633. for ac_exec_ext in '' $ac_executable_extensions; do
  10634. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  10635. ac_cv_prog_CC="${ac_tool_prefix}cc"
  10636. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10637. break 2
  10638. fi
  10639. done
  10640. done
  10641. IFS=$as_save_IFS
  10642. fi
  10643. fi
  10644. CC=$ac_cv_prog_CC
  10645. if test -n "$CC"; then
  10646. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  10647. $as_echo "$CC" >&6; }
  10648. else
  10649. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10650. $as_echo "no" >&6; }
  10651. fi
  10652. fi
  10653. fi
  10654. if test -z "$CC"; then
  10655. # Extract the first word of "cc", so it can be a program name with args.
  10656. set dummy cc; ac_word=$2
  10657. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10658. $as_echo_n "checking for $ac_word... " >&6; }
  10659. if test "${ac_cv_prog_CC+set}" = set; then :
  10660. $as_echo_n "(cached) " >&6
  10661. else
  10662. if test -n "$CC"; then
  10663. ac_cv_prog_CC="$CC" # Let the user override the test.
  10664. else
  10665. ac_prog_rejected=no
  10666. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10667. for as_dir in $PATH
  10668. do
  10669. IFS=$as_save_IFS
  10670. test -z "$as_dir" && as_dir=.
  10671. for ac_exec_ext in '' $ac_executable_extensions; do
  10672. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  10673. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  10674. ac_prog_rejected=yes
  10675. continue
  10676. fi
  10677. ac_cv_prog_CC="cc"
  10678. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10679. break 2
  10680. fi
  10681. done
  10682. done
  10683. IFS=$as_save_IFS
  10684. if test $ac_prog_rejected = yes; then
  10685. # We found a bogon in the path, so make sure we never use it.
  10686. set dummy $ac_cv_prog_CC
  10687. shift
  10688. if test $# != 0; then
  10689. # We chose a different compiler from the bogus one.
  10690. # However, it has the same basename, so the bogon will be chosen
  10691. # first if we set CC to just the basename; use the full file name.
  10692. shift
  10693. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  10694. fi
  10695. fi
  10696. fi
  10697. fi
  10698. CC=$ac_cv_prog_CC
  10699. if test -n "$CC"; then
  10700. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  10701. $as_echo "$CC" >&6; }
  10702. else
  10703. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10704. $as_echo "no" >&6; }
  10705. fi
  10706. fi
  10707. if test -z "$CC"; then
  10708. if test -n "$ac_tool_prefix"; then
  10709. for ac_prog in cl.exe
  10710. do
  10711. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  10712. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  10713. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10714. $as_echo_n "checking for $ac_word... " >&6; }
  10715. if test "${ac_cv_prog_CC+set}" = set; then :
  10716. $as_echo_n "(cached) " >&6
  10717. else
  10718. if test -n "$CC"; then
  10719. ac_cv_prog_CC="$CC" # Let the user override the test.
  10720. else
  10721. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10722. for as_dir in $PATH
  10723. do
  10724. IFS=$as_save_IFS
  10725. test -z "$as_dir" && as_dir=.
  10726. for ac_exec_ext in '' $ac_executable_extensions; do
  10727. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  10728. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  10729. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10730. break 2
  10731. fi
  10732. done
  10733. done
  10734. IFS=$as_save_IFS
  10735. fi
  10736. fi
  10737. CC=$ac_cv_prog_CC
  10738. if test -n "$CC"; then
  10739. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  10740. $as_echo "$CC" >&6; }
  10741. else
  10742. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10743. $as_echo "no" >&6; }
  10744. fi
  10745. test -n "$CC" && break
  10746. done
  10747. fi
  10748. if test -z "$CC"; then
  10749. ac_ct_CC=$CC
  10750. for ac_prog in cl.exe
  10751. do
  10752. # Extract the first word of "$ac_prog", so it can be a program name with args.
  10753. set dummy $ac_prog; ac_word=$2
  10754. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10755. $as_echo_n "checking for $ac_word... " >&6; }
  10756. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
  10757. $as_echo_n "(cached) " >&6
  10758. else
  10759. if test -n "$ac_ct_CC"; then
  10760. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  10761. else
  10762. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10763. for as_dir in $PATH
  10764. do
  10765. IFS=$as_save_IFS
  10766. test -z "$as_dir" && as_dir=.
  10767. for ac_exec_ext in '' $ac_executable_extensions; do
  10768. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  10769. ac_cv_prog_ac_ct_CC="$ac_prog"
  10770. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10771. break 2
  10772. fi
  10773. done
  10774. done
  10775. IFS=$as_save_IFS
  10776. fi
  10777. fi
  10778. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  10779. if test -n "$ac_ct_CC"; then
  10780. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  10781. $as_echo "$ac_ct_CC" >&6; }
  10782. else
  10783. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10784. $as_echo "no" >&6; }
  10785. fi
  10786. test -n "$ac_ct_CC" && break
  10787. done
  10788. if test "x$ac_ct_CC" = x; then
  10789. CC=""
  10790. else
  10791. case $cross_compiling:$ac_tool_warned in
  10792. yes:)
  10793. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  10794. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  10795. ac_tool_warned=yes ;;
  10796. esac
  10797. CC=$ac_ct_CC
  10798. fi
  10799. fi
  10800. fi
  10801. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  10802. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  10803. as_fn_error "no acceptable C compiler found in \$PATH
  10804. See \`config.log' for more details." "$LINENO" 5; }
  10805. # Provide some information about the compiler.
  10806. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  10807. set X $ac_compile
  10808. ac_compiler=$2
  10809. for ac_option in --version -v -V -qversion; do
  10810. { { ac_try="$ac_compiler $ac_option >&5"
  10811. case "(($ac_try" in
  10812. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10813. *) ac_try_echo=$ac_try;;
  10814. esac
  10815. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  10816. $as_echo "$ac_try_echo"; } >&5
  10817. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  10818. ac_status=$?
  10819. if test -s conftest.err; then
  10820. sed '10a\
  10821. ... rest of stderr output deleted ...
  10822. 10q' conftest.err >conftest.er1
  10823. cat conftest.er1 >&5
  10824. rm -f conftest.er1 conftest.err
  10825. fi
  10826. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10827. test $ac_status = 0; }
  10828. done
  10829. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  10830. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  10831. if test "${ac_cv_c_compiler_gnu+set}" = set; then :
  10832. $as_echo_n "(cached) " >&6
  10833. else
  10834. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10835. /* end confdefs.h. */
  10836. int
  10837. main ()
  10838. {
  10839. #ifndef __GNUC__
  10840. choke me
  10841. #endif
  10842. ;
  10843. return 0;
  10844. }
  10845. _ACEOF
  10846. if ac_fn_c_try_compile "$LINENO"; then :
  10847. ac_compiler_gnu=yes
  10848. else
  10849. ac_compiler_gnu=no
  10850. fi
  10851. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10852. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  10853. fi
  10854. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  10855. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  10856. if test $ac_compiler_gnu = yes; then
  10857. GCC=yes
  10858. else
  10859. GCC=
  10860. fi
  10861. ac_test_CFLAGS=${CFLAGS+set}
  10862. ac_save_CFLAGS=$CFLAGS
  10863. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  10864. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  10865. if test "${ac_cv_prog_cc_g+set}" = set; then :
  10866. $as_echo_n "(cached) " >&6
  10867. else
  10868. ac_save_c_werror_flag=$ac_c_werror_flag
  10869. ac_c_werror_flag=yes
  10870. ac_cv_prog_cc_g=no
  10871. CFLAGS="-g"
  10872. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10873. /* end confdefs.h. */
  10874. int
  10875. main ()
  10876. {
  10877. ;
  10878. return 0;
  10879. }
  10880. _ACEOF
  10881. if ac_fn_c_try_compile "$LINENO"; then :
  10882. ac_cv_prog_cc_g=yes
  10883. else
  10884. CFLAGS=""
  10885. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10886. /* end confdefs.h. */
  10887. int
  10888. main ()
  10889. {
  10890. ;
  10891. return 0;
  10892. }
  10893. _ACEOF
  10894. if ac_fn_c_try_compile "$LINENO"; then :
  10895. else
  10896. ac_c_werror_flag=$ac_save_c_werror_flag
  10897. CFLAGS="-g"
  10898. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10899. /* end confdefs.h. */
  10900. int
  10901. main ()
  10902. {
  10903. ;
  10904. return 0;
  10905. }
  10906. _ACEOF
  10907. if ac_fn_c_try_compile "$LINENO"; then :
  10908. ac_cv_prog_cc_g=yes
  10909. fi
  10910. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10911. fi
  10912. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10913. fi
  10914. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10915. ac_c_werror_flag=$ac_save_c_werror_flag
  10916. fi
  10917. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  10918. $as_echo "$ac_cv_prog_cc_g" >&6; }
  10919. if test "$ac_test_CFLAGS" = set; then
  10920. CFLAGS=$ac_save_CFLAGS
  10921. elif test $ac_cv_prog_cc_g = yes; then
  10922. if test "$GCC" = yes; then
  10923. CFLAGS="-g -O2"
  10924. else
  10925. CFLAGS="-g"
  10926. fi
  10927. else
  10928. if test "$GCC" = yes; then
  10929. CFLAGS="-O2"
  10930. else
  10931. CFLAGS=
  10932. fi
  10933. fi
  10934. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  10935. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  10936. if test "${ac_cv_prog_cc_c89+set}" = set; then :
  10937. $as_echo_n "(cached) " >&6
  10938. else
  10939. ac_cv_prog_cc_c89=no
  10940. ac_save_CC=$CC
  10941. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10942. /* end confdefs.h. */
  10943. #include <stdarg.h>
  10944. #include <stdio.h>
  10945. #include <sys/types.h>
  10946. #include <sys/stat.h>
  10947. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  10948. struct buf { int x; };
  10949. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  10950. static char *e (p, i)
  10951. char **p;
  10952. int i;
  10953. {
  10954. return p[i];
  10955. }
  10956. static char *f (char * (*g) (char **, int), char **p, ...)
  10957. {
  10958. char *s;
  10959. va_list v;
  10960. va_start (v,p);
  10961. s = g (p, va_arg (v,int));
  10962. va_end (v);
  10963. return s;
  10964. }
  10965. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  10966. function prototypes and stuff, but not '\xHH' hex character constants.
  10967. These don't provoke an error unfortunately, instead are silently treated
  10968. as 'x'. The following induces an error, until -std is added to get
  10969. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  10970. array size at least. It's necessary to write '\x00'==0 to get something
  10971. that's true only with -std. */
  10972. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  10973. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  10974. inside strings and character constants. */
  10975. #define FOO(x) 'x'
  10976. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  10977. int test (int i, double x);
  10978. struct s1 {int (*f) (int a);};
  10979. struct s2 {int (*f) (double a);};
  10980. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  10981. int argc;
  10982. char **argv;
  10983. int
  10984. main ()
  10985. {
  10986. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  10987. ;
  10988. return 0;
  10989. }
  10990. _ACEOF
  10991. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  10992. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  10993. do
  10994. CC="$ac_save_CC $ac_arg"
  10995. if ac_fn_c_try_compile "$LINENO"; then :
  10996. ac_cv_prog_cc_c89=$ac_arg
  10997. fi
  10998. rm -f core conftest.err conftest.$ac_objext
  10999. test "x$ac_cv_prog_cc_c89" != "xno" && break
  11000. done
  11001. rm -f conftest.$ac_ext
  11002. CC=$ac_save_CC
  11003. fi
  11004. # AC_CACHE_VAL
  11005. case "x$ac_cv_prog_cc_c89" in
  11006. x)
  11007. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  11008. $as_echo "none needed" >&6; } ;;
  11009. xno)
  11010. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  11011. $as_echo "unsupported" >&6; } ;;
  11012. *)
  11013. CC="$CC $ac_cv_prog_cc_c89"
  11014. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  11015. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  11016. esac
  11017. if test "x$ac_cv_prog_cc_c89" != xno; then :
  11018. fi
  11019. ac_ext=c
  11020. ac_cpp='$CPP $CPPFLAGS'
  11021. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  11022. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  11023. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  11024. depcc="$CC" am_compiler_list=
  11025. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  11026. $as_echo_n "checking dependency style of $depcc... " >&6; }
  11027. if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
  11028. $as_echo_n "(cached) " >&6
  11029. else
  11030. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  11031. # We make a subdir and do the tests there. Otherwise we can end up
  11032. # making bogus files that we don't know about and never remove. For
  11033. # instance it was reported that on HP-UX the gcc test will end up
  11034. # making a dummy file named `D' -- because `-MD' means `put the output
  11035. # in D'.
  11036. mkdir conftest.dir
  11037. # Copy depcomp to subdir because otherwise we won't find it if we're
  11038. # using a relative directory.
  11039. cp "$am_depcomp" conftest.dir
  11040. cd conftest.dir
  11041. # We will build objects and dependencies in a subdirectory because
  11042. # it helps to detect inapplicable dependency modes. For instance
  11043. # both Tru64's cc and ICC support -MD to output dependencies as a
  11044. # side effect of compilation, but ICC will put the dependencies in
  11045. # the current directory while Tru64 will put them in the object
  11046. # directory.
  11047. mkdir sub
  11048. am_cv_CC_dependencies_compiler_type=none
  11049. if test "$am_compiler_list" = ""; then
  11050. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  11051. fi
  11052. am__universal=false
  11053. case " $depcc " in #(
  11054. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  11055. esac
  11056. for depmode in $am_compiler_list; do
  11057. # Setup a source with many dependencies, because some compilers
  11058. # like to wrap large dependency lists on column 80 (with \), and
  11059. # we should not choose a depcomp mode which is confused by this.
  11060. #
  11061. # We need to recreate these files for each test, as the compiler may
  11062. # overwrite some of them when testing with obscure command lines.
  11063. # This happens at least with the AIX C compiler.
  11064. : > sub/conftest.c
  11065. for i in 1 2 3 4 5 6; do
  11066. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  11067. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  11068. # Solaris 8's {/usr,}/bin/sh.
  11069. touch sub/conftst$i.h
  11070. done
  11071. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  11072. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  11073. # mode. It turns out that the SunPro C++ compiler does not properly
  11074. # handle `-M -o', and we need to detect this. Also, some Intel
  11075. # versions had trouble with output in subdirs
  11076. am__obj=sub/conftest.${OBJEXT-o}
  11077. am__minus_obj="-o $am__obj"
  11078. case $depmode in
  11079. gcc)
  11080. # This depmode causes a compiler race in universal mode.
  11081. test "$am__universal" = false || continue
  11082. ;;
  11083. nosideeffect)
  11084. # after this tag, mechanisms are not by side-effect, so they'll
  11085. # only be used when explicitly requested
  11086. if test "x$enable_dependency_tracking" = xyes; then
  11087. continue
  11088. else
  11089. break
  11090. fi
  11091. ;;
  11092. msvisualcpp | msvcmsys)
  11093. # This compiler won't grok `-c -o', but also, the minuso test has
  11094. # not run yet. These depmodes are late enough in the game, and
  11095. # so weak that their functioning should not be impacted.
  11096. am__obj=conftest.${OBJEXT-o}
  11097. am__minus_obj=
  11098. ;;
  11099. none) break ;;
  11100. esac
  11101. if depmode=$depmode \
  11102. source=sub/conftest.c object=$am__obj \
  11103. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  11104. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  11105. >/dev/null 2>conftest.err &&
  11106. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  11107. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  11108. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  11109. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  11110. # icc doesn't choke on unknown options, it will just issue warnings
  11111. # or remarks (even with -Werror). So we grep stderr for any message
  11112. # that says an option was ignored or not supported.
  11113. # When given -MP, icc 7.0 and 7.1 complain thusly:
  11114. # icc: Command line warning: ignoring option '-M'; no argument required
  11115. # The diagnosis changed in icc 8.0:
  11116. # icc: Command line remark: option '-MP' not supported
  11117. if (grep 'ignoring option' conftest.err ||
  11118. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  11119. am_cv_CC_dependencies_compiler_type=$depmode
  11120. break
  11121. fi
  11122. fi
  11123. done
  11124. cd ..
  11125. rm -rf conftest.dir
  11126. else
  11127. am_cv_CC_dependencies_compiler_type=none
  11128. fi
  11129. fi
  11130. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
  11131. $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
  11132. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  11133. if
  11134. test "x$enable_dependency_tracking" != xno \
  11135. && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  11136. am__fastdepCC_TRUE=
  11137. am__fastdepCC_FALSE='#'
  11138. else
  11139. am__fastdepCC_TRUE='#'
  11140. am__fastdepCC_FALSE=
  11141. fi
  11142. if test "x$CC" != xcc; then
  11143. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
  11144. $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
  11145. else
  11146. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
  11147. $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
  11148. fi
  11149. set dummy $CC; ac_cc=`$as_echo "$2" |
  11150. sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
  11151. if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
  11152. $as_echo_n "(cached) " >&6
  11153. else
  11154. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11155. /* end confdefs.h. */
  11156. int
  11157. main ()
  11158. {
  11159. ;
  11160. return 0;
  11161. }
  11162. _ACEOF
  11163. # Make sure it works both with $CC and with simple cc.
  11164. # We do the test twice because some compilers refuse to overwrite an
  11165. # existing .o file with -o, though they will create one.
  11166. ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
  11167. rm -f conftest2.*
  11168. if { { case "(($ac_try" in
  11169. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11170. *) ac_try_echo=$ac_try;;
  11171. esac
  11172. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  11173. $as_echo "$ac_try_echo"; } >&5
  11174. (eval "$ac_try") 2>&5
  11175. ac_status=$?
  11176. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11177. test $ac_status = 0; } &&
  11178. test -f conftest2.$ac_objext && { { case "(($ac_try" in
  11179. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11180. *) ac_try_echo=$ac_try;;
  11181. esac
  11182. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  11183. $as_echo "$ac_try_echo"; } >&5
  11184. (eval "$ac_try") 2>&5
  11185. ac_status=$?
  11186. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11187. test $ac_status = 0; };
  11188. then
  11189. eval ac_cv_prog_cc_${ac_cc}_c_o=yes
  11190. if test "x$CC" != xcc; then
  11191. # Test first that cc exists at all.
  11192. if { ac_try='cc -c conftest.$ac_ext >&5'
  11193. { { case "(($ac_try" in
  11194. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11195. *) ac_try_echo=$ac_try;;
  11196. esac
  11197. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  11198. $as_echo "$ac_try_echo"; } >&5
  11199. (eval "$ac_try") 2>&5
  11200. ac_status=$?
  11201. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11202. test $ac_status = 0; }; }; then
  11203. ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
  11204. rm -f conftest2.*
  11205. if { { case "(($ac_try" in
  11206. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11207. *) ac_try_echo=$ac_try;;
  11208. esac
  11209. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  11210. $as_echo "$ac_try_echo"; } >&5
  11211. (eval "$ac_try") 2>&5
  11212. ac_status=$?
  11213. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11214. test $ac_status = 0; } &&
  11215. test -f conftest2.$ac_objext && { { case "(($ac_try" in
  11216. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11217. *) ac_try_echo=$ac_try;;
  11218. esac
  11219. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  11220. $as_echo "$ac_try_echo"; } >&5
  11221. (eval "$ac_try") 2>&5
  11222. ac_status=$?
  11223. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11224. test $ac_status = 0; };
  11225. then
  11226. # cc works too.
  11227. :
  11228. else
  11229. # cc exists but doesn't like -o.
  11230. eval ac_cv_prog_cc_${ac_cc}_c_o=no
  11231. fi
  11232. fi
  11233. fi
  11234. else
  11235. eval ac_cv_prog_cc_${ac_cc}_c_o=no
  11236. fi
  11237. rm -f core conftest*
  11238. fi
  11239. if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
  11240. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  11241. $as_echo "yes" >&6; }
  11242. else
  11243. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11244. $as_echo "no" >&6; }
  11245. $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
  11246. fi
  11247. # FIXME: we rely on the cache variable name because
  11248. # there is no other way.
  11249. set dummy $CC
  11250. am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
  11251. eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
  11252. if test "$am_t" != yes; then
  11253. # Losing compiler, so override with the script.
  11254. # FIXME: It is wrong to rewrite CC.
  11255. # But if we don't then we get into trouble of one sort or another.
  11256. # A longer-term fix would be to have automake use am__CC in this case,
  11257. # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
  11258. CC="$am_aux_dir/compile $CC"
  11259. fi
  11260. ac_ext=c
  11261. ac_cpp='$CPP $CPPFLAGS'
  11262. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  11263. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  11264. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  11265. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  11266. $as_echo_n "checking how to run the C preprocessor... " >&6; }
  11267. # On Suns, sometimes $CPP names a directory.
  11268. if test -n "$CPP" && test -d "$CPP"; then
  11269. CPP=
  11270. fi
  11271. if test -z "$CPP"; then
  11272. if test "${ac_cv_prog_CPP+set}" = set; then :
  11273. $as_echo_n "(cached) " >&6
  11274. else
  11275. # Double quotes because CPP needs to be expanded
  11276. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  11277. do
  11278. ac_preproc_ok=false
  11279. for ac_c_preproc_warn_flag in '' yes
  11280. do
  11281. # Use a header file that comes with gcc, so configuring glibc
  11282. # with a fresh cross-compiler works.
  11283. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  11284. # <limits.h> exists even on freestanding compilers.
  11285. # On the NeXT, cc -E runs the code through the compiler's parser,
  11286. # not just through cpp. "Syntax error" is here to catch this case.
  11287. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11288. /* end confdefs.h. */
  11289. #ifdef __STDC__
  11290. # include <limits.h>
  11291. #else
  11292. # include <assert.h>
  11293. #endif
  11294. Syntax error
  11295. _ACEOF
  11296. if ac_fn_c_try_cpp "$LINENO"; then :
  11297. else
  11298. # Broken: fails on valid input.
  11299. continue
  11300. fi
  11301. rm -f conftest.err conftest.$ac_ext
  11302. # OK, works on sane cases. Now check whether nonexistent headers
  11303. # can be detected and how.
  11304. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11305. /* end confdefs.h. */
  11306. #include <ac_nonexistent.h>
  11307. _ACEOF
  11308. if ac_fn_c_try_cpp "$LINENO"; then :
  11309. # Broken: success on invalid input.
  11310. continue
  11311. else
  11312. # Passes both tests.
  11313. ac_preproc_ok=:
  11314. break
  11315. fi
  11316. rm -f conftest.err conftest.$ac_ext
  11317. done
  11318. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  11319. rm -f conftest.err conftest.$ac_ext
  11320. if $ac_preproc_ok; then :
  11321. break
  11322. fi
  11323. done
  11324. ac_cv_prog_CPP=$CPP
  11325. fi
  11326. CPP=$ac_cv_prog_CPP
  11327. else
  11328. ac_cv_prog_CPP=$CPP
  11329. fi
  11330. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  11331. $as_echo "$CPP" >&6; }
  11332. ac_preproc_ok=false
  11333. for ac_c_preproc_warn_flag in '' yes
  11334. do
  11335. # Use a header file that comes with gcc, so configuring glibc
  11336. # with a fresh cross-compiler works.
  11337. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  11338. # <limits.h> exists even on freestanding compilers.
  11339. # On the NeXT, cc -E runs the code through the compiler's parser,
  11340. # not just through cpp. "Syntax error" is here to catch this case.
  11341. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11342. /* end confdefs.h. */
  11343. #ifdef __STDC__
  11344. # include <limits.h>
  11345. #else
  11346. # include <assert.h>
  11347. #endif
  11348. Syntax error
  11349. _ACEOF
  11350. if ac_fn_c_try_cpp "$LINENO"; then :
  11351. else
  11352. # Broken: fails on valid input.
  11353. continue
  11354. fi
  11355. rm -f conftest.err conftest.$ac_ext
  11356. # OK, works on sane cases. Now check whether nonexistent headers
  11357. # can be detected and how.
  11358. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11359. /* end confdefs.h. */
  11360. #include <ac_nonexistent.h>
  11361. _ACEOF
  11362. if ac_fn_c_try_cpp "$LINENO"; then :
  11363. # Broken: success on invalid input.
  11364. continue
  11365. else
  11366. # Passes both tests.
  11367. ac_preproc_ok=:
  11368. break
  11369. fi
  11370. rm -f conftest.err conftest.$ac_ext
  11371. done
  11372. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  11373. rm -f conftest.err conftest.$ac_ext
  11374. if $ac_preproc_ok; then :
  11375. else
  11376. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  11377. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  11378. as_fn_error "C preprocessor \"$CPP\" fails sanity check
  11379. See \`config.log' for more details." "$LINENO" 5; }
  11380. fi
  11381. ac_ext=c
  11382. ac_cpp='$CPP $CPPFLAGS'
  11383. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  11384. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  11385. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  11386. ac_ext=cpp
  11387. ac_cpp='$CXXCPP $CPPFLAGS'
  11388. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  11389. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  11390. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  11391. if test -z "$CXX"; then
  11392. if test -n "$CCC"; then
  11393. CXX=$CCC
  11394. else
  11395. if test -n "$ac_tool_prefix"; then
  11396. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  11397. do
  11398. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  11399. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  11400. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11401. $as_echo_n "checking for $ac_word... " >&6; }
  11402. if test "${ac_cv_prog_CXX+set}" = set; then :
  11403. $as_echo_n "(cached) " >&6
  11404. else
  11405. if test -n "$CXX"; then
  11406. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  11407. else
  11408. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11409. for as_dir in $PATH
  11410. do
  11411. IFS=$as_save_IFS
  11412. test -z "$as_dir" && as_dir=.
  11413. for ac_exec_ext in '' $ac_executable_extensions; do
  11414. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  11415. ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  11416. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  11417. break 2
  11418. fi
  11419. done
  11420. done
  11421. IFS=$as_save_IFS
  11422. fi
  11423. fi
  11424. CXX=$ac_cv_prog_CXX
  11425. if test -n "$CXX"; then
  11426. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
  11427. $as_echo "$CXX" >&6; }
  11428. else
  11429. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11430. $as_echo "no" >&6; }
  11431. fi
  11432. test -n "$CXX" && break
  11433. done
  11434. fi
  11435. if test -z "$CXX"; then
  11436. ac_ct_CXX=$CXX
  11437. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  11438. do
  11439. # Extract the first word of "$ac_prog", so it can be a program name with args.
  11440. set dummy $ac_prog; ac_word=$2
  11441. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11442. $as_echo_n "checking for $ac_word... " >&6; }
  11443. if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
  11444. $as_echo_n "(cached) " >&6
  11445. else
  11446. if test -n "$ac_ct_CXX"; then
  11447. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  11448. else
  11449. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11450. for as_dir in $PATH
  11451. do
  11452. IFS=$as_save_IFS
  11453. test -z "$as_dir" && as_dir=.
  11454. for ac_exec_ext in '' $ac_executable_extensions; do
  11455. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  11456. ac_cv_prog_ac_ct_CXX="$ac_prog"
  11457. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  11458. break 2
  11459. fi
  11460. done
  11461. done
  11462. IFS=$as_save_IFS
  11463. fi
  11464. fi
  11465. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  11466. if test -n "$ac_ct_CXX"; then
  11467. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
  11468. $as_echo "$ac_ct_CXX" >&6; }
  11469. else
  11470. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11471. $as_echo "no" >&6; }
  11472. fi
  11473. test -n "$ac_ct_CXX" && break
  11474. done
  11475. if test "x$ac_ct_CXX" = x; then
  11476. CXX="g++"
  11477. else
  11478. case $cross_compiling:$ac_tool_warned in
  11479. yes:)
  11480. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  11481. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  11482. ac_tool_warned=yes ;;
  11483. esac
  11484. CXX=$ac_ct_CXX
  11485. fi
  11486. fi
  11487. fi
  11488. fi
  11489. # Provide some information about the compiler.
  11490. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
  11491. set X $ac_compile
  11492. ac_compiler=$2
  11493. for ac_option in --version -v -V -qversion; do
  11494. { { ac_try="$ac_compiler $ac_option >&5"
  11495. case "(($ac_try" in
  11496. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11497. *) ac_try_echo=$ac_try;;
  11498. esac
  11499. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  11500. $as_echo "$ac_try_echo"; } >&5
  11501. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  11502. ac_status=$?
  11503. if test -s conftest.err; then
  11504. sed '10a\
  11505. ... rest of stderr output deleted ...
  11506. 10q' conftest.err >conftest.er1
  11507. cat conftest.er1 >&5
  11508. rm -f conftest.er1 conftest.err
  11509. fi
  11510. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11511. test $ac_status = 0; }
  11512. done
  11513. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
  11514. $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
  11515. if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
  11516. $as_echo_n "(cached) " >&6
  11517. else
  11518. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11519. /* end confdefs.h. */
  11520. int
  11521. main ()
  11522. {
  11523. #ifndef __GNUC__
  11524. choke me
  11525. #endif
  11526. ;
  11527. return 0;
  11528. }
  11529. _ACEOF
  11530. if ac_fn_cxx_try_compile "$LINENO"; then :
  11531. ac_compiler_gnu=yes
  11532. else
  11533. ac_compiler_gnu=no
  11534. fi
  11535. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11536. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  11537. fi
  11538. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
  11539. $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
  11540. if test $ac_compiler_gnu = yes; then
  11541. GXX=yes
  11542. else
  11543. GXX=
  11544. fi
  11545. ac_test_CXXFLAGS=${CXXFLAGS+set}
  11546. ac_save_CXXFLAGS=$CXXFLAGS
  11547. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
  11548. $as_echo_n "checking whether $CXX accepts -g... " >&6; }
  11549. if test "${ac_cv_prog_cxx_g+set}" = set; then :
  11550. $as_echo_n "(cached) " >&6
  11551. else
  11552. ac_save_cxx_werror_flag=$ac_cxx_werror_flag
  11553. ac_cxx_werror_flag=yes
  11554. ac_cv_prog_cxx_g=no
  11555. CXXFLAGS="-g"
  11556. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11557. /* end confdefs.h. */
  11558. int
  11559. main ()
  11560. {
  11561. ;
  11562. return 0;
  11563. }
  11564. _ACEOF
  11565. if ac_fn_cxx_try_compile "$LINENO"; then :
  11566. ac_cv_prog_cxx_g=yes
  11567. else
  11568. CXXFLAGS=""
  11569. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11570. /* end confdefs.h. */
  11571. int
  11572. main ()
  11573. {
  11574. ;
  11575. return 0;
  11576. }
  11577. _ACEOF
  11578. if ac_fn_cxx_try_compile "$LINENO"; then :
  11579. else
  11580. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  11581. CXXFLAGS="-g"
  11582. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11583. /* end confdefs.h. */
  11584. int
  11585. main ()
  11586. {
  11587. ;
  11588. return 0;
  11589. }
  11590. _ACEOF
  11591. if ac_fn_cxx_try_compile "$LINENO"; then :
  11592. ac_cv_prog_cxx_g=yes
  11593. fi
  11594. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11595. fi
  11596. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11597. fi
  11598. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11599. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  11600. fi
  11601. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
  11602. $as_echo "$ac_cv_prog_cxx_g" >&6; }
  11603. if test "$ac_test_CXXFLAGS" = set; then
  11604. CXXFLAGS=$ac_save_CXXFLAGS
  11605. elif test $ac_cv_prog_cxx_g = yes; then
  11606. if test "$GXX" = yes; then
  11607. CXXFLAGS="-g -O2"
  11608. else
  11609. CXXFLAGS="-g"
  11610. fi
  11611. else
  11612. if test "$GXX" = yes; then
  11613. CXXFLAGS="-O2"
  11614. else
  11615. CXXFLAGS=
  11616. fi
  11617. fi
  11618. ac_ext=c
  11619. ac_cpp='$CPP $CPPFLAGS'
  11620. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  11621. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  11622. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  11623. depcc="$CXX" am_compiler_list=
  11624. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  11625. $as_echo_n "checking dependency style of $depcc... " >&6; }
  11626. if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
  11627. $as_echo_n "(cached) " >&6
  11628. else
  11629. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  11630. # We make a subdir and do the tests there. Otherwise we can end up
  11631. # making bogus files that we don't know about and never remove. For
  11632. # instance it was reported that on HP-UX the gcc test will end up
  11633. # making a dummy file named `D' -- because `-MD' means `put the output
  11634. # in D'.
  11635. mkdir conftest.dir
  11636. # Copy depcomp to subdir because otherwise we won't find it if we're
  11637. # using a relative directory.
  11638. cp "$am_depcomp" conftest.dir
  11639. cd conftest.dir
  11640. # We will build objects and dependencies in a subdirectory because
  11641. # it helps to detect inapplicable dependency modes. For instance
  11642. # both Tru64's cc and ICC support -MD to output dependencies as a
  11643. # side effect of compilation, but ICC will put the dependencies in
  11644. # the current directory while Tru64 will put them in the object
  11645. # directory.
  11646. mkdir sub
  11647. am_cv_CXX_dependencies_compiler_type=none
  11648. if test "$am_compiler_list" = ""; then
  11649. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  11650. fi
  11651. am__universal=false
  11652. case " $depcc " in #(
  11653. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  11654. esac
  11655. for depmode in $am_compiler_list; do
  11656. # Setup a source with many dependencies, because some compilers
  11657. # like to wrap large dependency lists on column 80 (with \), and
  11658. # we should not choose a depcomp mode which is confused by this.
  11659. #
  11660. # We need to recreate these files for each test, as the compiler may
  11661. # overwrite some of them when testing with obscure command lines.
  11662. # This happens at least with the AIX C compiler.
  11663. : > sub/conftest.c
  11664. for i in 1 2 3 4 5 6; do
  11665. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  11666. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  11667. # Solaris 8's {/usr,}/bin/sh.
  11668. touch sub/conftst$i.h
  11669. done
  11670. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  11671. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  11672. # mode. It turns out that the SunPro C++ compiler does not properly
  11673. # handle `-M -o', and we need to detect this. Also, some Intel
  11674. # versions had trouble with output in subdirs
  11675. am__obj=sub/conftest.${OBJEXT-o}
  11676. am__minus_obj="-o $am__obj"
  11677. case $depmode in
  11678. gcc)
  11679. # This depmode causes a compiler race in universal mode.
  11680. test "$am__universal" = false || continue
  11681. ;;
  11682. nosideeffect)
  11683. # after this tag, mechanisms are not by side-effect, so they'll
  11684. # only be used when explicitly requested
  11685. if test "x$enable_dependency_tracking" = xyes; then
  11686. continue
  11687. else
  11688. break
  11689. fi
  11690. ;;
  11691. msvisualcpp | msvcmsys)
  11692. # This compiler won't grok `-c -o', but also, the minuso test has
  11693. # not run yet. These depmodes are late enough in the game, and
  11694. # so weak that their functioning should not be impacted.
  11695. am__obj=conftest.${OBJEXT-o}
  11696. am__minus_obj=
  11697. ;;
  11698. none) break ;;
  11699. esac
  11700. if depmode=$depmode \
  11701. source=sub/conftest.c object=$am__obj \
  11702. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  11703. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  11704. >/dev/null 2>conftest.err &&
  11705. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  11706. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  11707. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  11708. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  11709. # icc doesn't choke on unknown options, it will just issue warnings
  11710. # or remarks (even with -Werror). So we grep stderr for any message
  11711. # that says an option was ignored or not supported.
  11712. # When given -MP, icc 7.0 and 7.1 complain thusly:
  11713. # icc: Command line warning: ignoring option '-M'; no argument required
  11714. # The diagnosis changed in icc 8.0:
  11715. # icc: Command line remark: option '-MP' not supported
  11716. if (grep 'ignoring option' conftest.err ||
  11717. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  11718. am_cv_CXX_dependencies_compiler_type=$depmode
  11719. break
  11720. fi
  11721. fi
  11722. done
  11723. cd ..
  11724. rm -rf conftest.dir
  11725. else
  11726. am_cv_CXX_dependencies_compiler_type=none
  11727. fi
  11728. fi
  11729. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
  11730. $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
  11731. CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
  11732. if
  11733. test "x$enable_dependency_tracking" != xno \
  11734. && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
  11735. am__fastdepCXX_TRUE=
  11736. am__fastdepCXX_FALSE='#'
  11737. else
  11738. am__fastdepCXX_TRUE='#'
  11739. am__fastdepCXX_FALSE=
  11740. fi
  11741. if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
  11742. ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
  11743. (test "X$CXX" != "Xg++"))) ; then
  11744. ac_ext=cpp
  11745. ac_cpp='$CXXCPP $CPPFLAGS'
  11746. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  11747. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  11748. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  11749. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
  11750. $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
  11751. if test -z "$CXXCPP"; then
  11752. if test "${ac_cv_prog_CXXCPP+set}" = set; then :
  11753. $as_echo_n "(cached) " >&6
  11754. else
  11755. # Double quotes because CXXCPP needs to be expanded
  11756. for CXXCPP in "$CXX -E" "/lib/cpp"
  11757. do
  11758. ac_preproc_ok=false
  11759. for ac_cxx_preproc_warn_flag in '' yes
  11760. do
  11761. # Use a header file that comes with gcc, so configuring glibc
  11762. # with a fresh cross-compiler works.
  11763. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  11764. # <limits.h> exists even on freestanding compilers.
  11765. # On the NeXT, cc -E runs the code through the compiler's parser,
  11766. # not just through cpp. "Syntax error" is here to catch this case.
  11767. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11768. /* end confdefs.h. */
  11769. #ifdef __STDC__
  11770. # include <limits.h>
  11771. #else
  11772. # include <assert.h>
  11773. #endif
  11774. Syntax error
  11775. _ACEOF
  11776. if ac_fn_cxx_try_cpp "$LINENO"; then :
  11777. else
  11778. # Broken: fails on valid input.
  11779. continue
  11780. fi
  11781. rm -f conftest.err conftest.$ac_ext
  11782. # OK, works on sane cases. Now check whether nonexistent headers
  11783. # can be detected and how.
  11784. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11785. /* end confdefs.h. */
  11786. #include <ac_nonexistent.h>
  11787. _ACEOF
  11788. if ac_fn_cxx_try_cpp "$LINENO"; then :
  11789. # Broken: success on invalid input.
  11790. continue
  11791. else
  11792. # Passes both tests.
  11793. ac_preproc_ok=:
  11794. break
  11795. fi
  11796. rm -f conftest.err conftest.$ac_ext
  11797. done
  11798. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  11799. rm -f conftest.err conftest.$ac_ext
  11800. if $ac_preproc_ok; then :
  11801. break
  11802. fi
  11803. done
  11804. ac_cv_prog_CXXCPP=$CXXCPP
  11805. fi
  11806. CXXCPP=$ac_cv_prog_CXXCPP
  11807. else
  11808. ac_cv_prog_CXXCPP=$CXXCPP
  11809. fi
  11810. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
  11811. $as_echo "$CXXCPP" >&6; }
  11812. ac_preproc_ok=false
  11813. for ac_cxx_preproc_warn_flag in '' yes
  11814. do
  11815. # Use a header file that comes with gcc, so configuring glibc
  11816. # with a fresh cross-compiler works.
  11817. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  11818. # <limits.h> exists even on freestanding compilers.
  11819. # On the NeXT, cc -E runs the code through the compiler's parser,
  11820. # not just through cpp. "Syntax error" is here to catch this case.
  11821. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11822. /* end confdefs.h. */
  11823. #ifdef __STDC__
  11824. # include <limits.h>
  11825. #else
  11826. # include <assert.h>
  11827. #endif
  11828. Syntax error
  11829. _ACEOF
  11830. if ac_fn_cxx_try_cpp "$LINENO"; then :
  11831. else
  11832. # Broken: fails on valid input.
  11833. continue
  11834. fi
  11835. rm -f conftest.err conftest.$ac_ext
  11836. # OK, works on sane cases. Now check whether nonexistent headers
  11837. # can be detected and how.
  11838. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11839. /* end confdefs.h. */
  11840. #include <ac_nonexistent.h>
  11841. _ACEOF
  11842. if ac_fn_cxx_try_cpp "$LINENO"; then :
  11843. # Broken: success on invalid input.
  11844. continue
  11845. else
  11846. # Passes both tests.
  11847. ac_preproc_ok=:
  11848. break
  11849. fi
  11850. rm -f conftest.err conftest.$ac_ext
  11851. done
  11852. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  11853. rm -f conftest.err conftest.$ac_ext
  11854. if $ac_preproc_ok; then :
  11855. else
  11856. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  11857. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  11858. as_fn_error "C++ preprocessor \"$CXXCPP\" fails sanity check
  11859. See \`config.log' for more details." "$LINENO" 5; }
  11860. fi
  11861. ac_ext=c
  11862. ac_cpp='$CPP $CPPFLAGS'
  11863. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  11864. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  11865. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  11866. else
  11867. _lt_caught_CXX_error=yes
  11868. fi
  11869. ac_ext=cpp
  11870. ac_cpp='$CXXCPP $CPPFLAGS'
  11871. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  11872. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  11873. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  11874. archive_cmds_need_lc_CXX=no
  11875. allow_undefined_flag_CXX=
  11876. always_export_symbols_CXX=no
  11877. archive_expsym_cmds_CXX=
  11878. compiler_needs_object_CXX=no
  11879. export_dynamic_flag_spec_CXX=
  11880. hardcode_direct_CXX=no
  11881. hardcode_direct_absolute_CXX=no
  11882. hardcode_libdir_flag_spec_CXX=
  11883. hardcode_libdir_flag_spec_ld_CXX=
  11884. hardcode_libdir_separator_CXX=
  11885. hardcode_minus_L_CXX=no
  11886. hardcode_shlibpath_var_CXX=unsupported
  11887. hardcode_automatic_CXX=no
  11888. inherit_rpath_CXX=no
  11889. module_cmds_CXX=
  11890. module_expsym_cmds_CXX=
  11891. link_all_deplibs_CXX=unknown
  11892. old_archive_cmds_CXX=$old_archive_cmds
  11893. reload_flag_CXX=$reload_flag
  11894. reload_cmds_CXX=$reload_cmds
  11895. no_undefined_flag_CXX=
  11896. whole_archive_flag_spec_CXX=
  11897. enable_shared_with_static_runtimes_CXX=no
  11898. # Source file extension for C++ test sources.
  11899. ac_ext=cpp
  11900. # Object file extension for compiled C++ test sources.
  11901. objext=o
  11902. objext_CXX=$objext
  11903. # No sense in running all these tests if we already determined that
  11904. # the CXX compiler isn't working. Some variables (like enable_shared)
  11905. # are currently assumed to apply to all compilers on this platform,
  11906. # and will be corrupted by setting them based on a non-working compiler.
  11907. if test "$_lt_caught_CXX_error" != yes; then
  11908. # Code to be used in simple compile tests
  11909. lt_simple_compile_test_code="int some_variable = 0;"
  11910. # Code to be used in simple link tests
  11911. lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
  11912. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  11913. # If no C compiler was specified, use CC.
  11914. LTCC=${LTCC-"$CC"}
  11915. # If no C compiler flags were specified, use CFLAGS.
  11916. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  11917. # Allow CC to be a program name with arguments.
  11918. compiler=$CC
  11919. # save warnings/boilerplate of simple test code
  11920. ac_outfile=conftest.$ac_objext
  11921. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  11922. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  11923. _lt_compiler_boilerplate=`cat conftest.err`
  11924. $RM conftest*
  11925. ac_outfile=conftest.$ac_objext
  11926. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  11927. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  11928. _lt_linker_boilerplate=`cat conftest.err`
  11929. $RM -r conftest*
  11930. # Allow CC to be a program name with arguments.
  11931. lt_save_CC=$CC
  11932. lt_save_LD=$LD
  11933. lt_save_GCC=$GCC
  11934. GCC=$GXX
  11935. lt_save_with_gnu_ld=$with_gnu_ld
  11936. lt_save_path_LD=$lt_cv_path_LD
  11937. if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
  11938. lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
  11939. else
  11940. $as_unset lt_cv_prog_gnu_ld
  11941. fi
  11942. if test -n "${lt_cv_path_LDCXX+set}"; then
  11943. lt_cv_path_LD=$lt_cv_path_LDCXX
  11944. else
  11945. $as_unset lt_cv_path_LD
  11946. fi
  11947. test -z "${LDCXX+set}" || LD=$LDCXX
  11948. CC=${CXX-"c++"}
  11949. compiler=$CC
  11950. compiler_CXX=$CC
  11951. for cc_temp in $compiler""; do
  11952. case $cc_temp in
  11953. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  11954. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  11955. \-*) ;;
  11956. *) break;;
  11957. esac
  11958. done
  11959. cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  11960. if test -n "$compiler"; then
  11961. # We don't want -fno-exception when compiling C++ code, so set the
  11962. # no_builtin_flag separately
  11963. if test "$GXX" = yes; then
  11964. lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
  11965. else
  11966. lt_prog_compiler_no_builtin_flag_CXX=
  11967. fi
  11968. if test "$GXX" = yes; then
  11969. # Set up default GNU C++ configuration
  11970. # Check whether --with-gnu-ld was given.
  11971. if test "${with_gnu_ld+set}" = set; then :
  11972. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  11973. else
  11974. with_gnu_ld=no
  11975. fi
  11976. ac_prog=ld
  11977. if test "$GCC" = yes; then
  11978. # Check if gcc -print-prog-name=ld gives a path.
  11979. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  11980. $as_echo_n "checking for ld used by $CC... " >&6; }
  11981. case $host in
  11982. *-*-mingw*)
  11983. # gcc leaves a trailing carriage return which upsets mingw
  11984. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  11985. *)
  11986. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  11987. esac
  11988. case $ac_prog in
  11989. # Accept absolute paths.
  11990. [\\/]* | ?:[\\/]*)
  11991. re_direlt='/[^/][^/]*/\.\./'
  11992. # Canonicalize the pathname of ld
  11993. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  11994. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  11995. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  11996. done
  11997. test -z "$LD" && LD="$ac_prog"
  11998. ;;
  11999. "")
  12000. # If it fails, then pretend we aren't using GCC.
  12001. ac_prog=ld
  12002. ;;
  12003. *)
  12004. # If it is relative, then search for the first ld in PATH.
  12005. with_gnu_ld=unknown
  12006. ;;
  12007. esac
  12008. elif test "$with_gnu_ld" = yes; then
  12009. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  12010. $as_echo_n "checking for GNU ld... " >&6; }
  12011. else
  12012. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  12013. $as_echo_n "checking for non-GNU ld... " >&6; }
  12014. fi
  12015. if test "${lt_cv_path_LD+set}" = set; then :
  12016. $as_echo_n "(cached) " >&6
  12017. else
  12018. if test -z "$LD"; then
  12019. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  12020. for ac_dir in $PATH; do
  12021. IFS="$lt_save_ifs"
  12022. test -z "$ac_dir" && ac_dir=.
  12023. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  12024. lt_cv_path_LD="$ac_dir/$ac_prog"
  12025. # Check to see if the program is GNU ld. I'd rather use --version,
  12026. # but apparently some variants of GNU ld only accept -v.
  12027. # Break only if it was the GNU/non-GNU ld that we prefer.
  12028. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  12029. *GNU* | *'with BFD'*)
  12030. test "$with_gnu_ld" != no && break
  12031. ;;
  12032. *)
  12033. test "$with_gnu_ld" != yes && break
  12034. ;;
  12035. esac
  12036. fi
  12037. done
  12038. IFS="$lt_save_ifs"
  12039. else
  12040. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  12041. fi
  12042. fi
  12043. LD="$lt_cv_path_LD"
  12044. if test -n "$LD"; then
  12045. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  12046. $as_echo "$LD" >&6; }
  12047. else
  12048. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12049. $as_echo "no" >&6; }
  12050. fi
  12051. test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
  12052. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  12053. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  12054. if test "${lt_cv_prog_gnu_ld+set}" = set; then :
  12055. $as_echo_n "(cached) " >&6
  12056. else
  12057. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  12058. case `$LD -v 2>&1 </dev/null` in
  12059. *GNU* | *'with BFD'*)
  12060. lt_cv_prog_gnu_ld=yes
  12061. ;;
  12062. *)
  12063. lt_cv_prog_gnu_ld=no
  12064. ;;
  12065. esac
  12066. fi
  12067. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  12068. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  12069. with_gnu_ld=$lt_cv_prog_gnu_ld
  12070. # Check if GNU C++ uses GNU ld as the underlying linker, since the
  12071. # archiving commands below assume that GNU ld is being used.
  12072. if test "$with_gnu_ld" = yes; then
  12073. archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  12074. archive_expsym_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  12075. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  12076. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  12077. # If archive_cmds runs LD, not CC, wlarc should be empty
  12078. # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
  12079. # investigate it a little bit more. (MM)
  12080. wlarc='${wl}'
  12081. # ancient GNU ld didn't support --whole-archive et. al.
  12082. if eval "`$CC -print-prog-name=ld` --help 2>&1" |
  12083. $GREP 'no-whole-archive' > /dev/null; then
  12084. whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  12085. else
  12086. whole_archive_flag_spec_CXX=
  12087. fi
  12088. else
  12089. with_gnu_ld=no
  12090. wlarc=
  12091. # A generic and very simple default shared library creation
  12092. # command for GNU C++ for the case where it uses the native
  12093. # linker, instead of GNU ld. If possible, this setting should
  12094. # overridden to take advantage of the native linker features on
  12095. # the platform it is being used on.
  12096. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  12097. fi
  12098. # Commands to make compiler produce verbose output that lists
  12099. # what "hidden" libraries, object files and flags are used when
  12100. # linking a shared library.
  12101. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  12102. else
  12103. GXX=no
  12104. with_gnu_ld=no
  12105. wlarc=
  12106. fi
  12107. # PORTME: fill in a description of your system's C++ link characteristics
  12108. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  12109. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  12110. ld_shlibs_CXX=yes
  12111. case $host_os in
  12112. aix3*)
  12113. # FIXME: insert proper C++ library support
  12114. ld_shlibs_CXX=no
  12115. ;;
  12116. aix[4-9]*)
  12117. if test "$host_cpu" = ia64; then
  12118. # On IA64, the linker does run time linking by default, so we don't
  12119. # have to do anything special.
  12120. aix_use_runtimelinking=no
  12121. exp_sym_flag='-Bexport'
  12122. no_entry_flag=""
  12123. else
  12124. aix_use_runtimelinking=no
  12125. # Test if we are trying to use run time linking or normal
  12126. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  12127. # need to do runtime linking.
  12128. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  12129. for ld_flag in $LDFLAGS; do
  12130. case $ld_flag in
  12131. *-brtl*)
  12132. aix_use_runtimelinking=yes
  12133. break
  12134. ;;
  12135. esac
  12136. done
  12137. ;;
  12138. esac
  12139. exp_sym_flag='-bexport'
  12140. no_entry_flag='-bnoentry'
  12141. fi
  12142. # When large executables or shared objects are built, AIX ld can
  12143. # have problems creating the table of contents. If linking a library
  12144. # or program results in "error TOC overflow" add -mminimal-toc to
  12145. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  12146. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  12147. archive_cmds_CXX=''
  12148. hardcode_direct_CXX=yes
  12149. hardcode_direct_absolute_CXX=yes
  12150. hardcode_libdir_separator_CXX=':'
  12151. link_all_deplibs_CXX=yes
  12152. file_list_spec_CXX='${wl}-f,'
  12153. if test "$GXX" = yes; then
  12154. case $host_os in aix4.[012]|aix4.[012].*)
  12155. # We only want to do this on AIX 4.2 and lower, the check
  12156. # below for broken collect2 doesn't work under 4.3+
  12157. collect2name=`${CC} -print-prog-name=collect2`
  12158. if test -f "$collect2name" &&
  12159. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  12160. then
  12161. # We have reworked collect2
  12162. :
  12163. else
  12164. # We have old collect2
  12165. hardcode_direct_CXX=unsupported
  12166. # It fails to find uninstalled libraries when the uninstalled
  12167. # path is not listed in the libpath. Setting hardcode_minus_L
  12168. # to unsupported forces relinking
  12169. hardcode_minus_L_CXX=yes
  12170. hardcode_libdir_flag_spec_CXX='-L$libdir'
  12171. hardcode_libdir_separator_CXX=
  12172. fi
  12173. esac
  12174. shared_flag='-shared'
  12175. if test "$aix_use_runtimelinking" = yes; then
  12176. shared_flag="$shared_flag "'${wl}-G'
  12177. fi
  12178. else
  12179. # not using gcc
  12180. if test "$host_cpu" = ia64; then
  12181. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  12182. # chokes on -Wl,-G. The following line is correct:
  12183. shared_flag='-G'
  12184. else
  12185. if test "$aix_use_runtimelinking" = yes; then
  12186. shared_flag='${wl}-G'
  12187. else
  12188. shared_flag='${wl}-bM:SRE'
  12189. fi
  12190. fi
  12191. fi
  12192. export_dynamic_flag_spec_CXX='${wl}-bexpall'
  12193. # It seems that -bexpall does not export symbols beginning with
  12194. # underscore (_), so it is better to generate a list of symbols to
  12195. # export.
  12196. always_export_symbols_CXX=yes
  12197. if test "$aix_use_runtimelinking" = yes; then
  12198. # Warning - without using the other runtime loading flags (-brtl),
  12199. # -berok will link without error, but may produce a broken library.
  12200. allow_undefined_flag_CXX='-berok'
  12201. # Determine the default libpath from the value encoded in an empty
  12202. # executable.
  12203. if test x$gcc_no_link = xyes; then
  12204. as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  12205. fi
  12206. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12207. /* end confdefs.h. */
  12208. int
  12209. main ()
  12210. {
  12211. ;
  12212. return 0;
  12213. }
  12214. _ACEOF
  12215. if ac_fn_cxx_try_link "$LINENO"; then :
  12216. lt_aix_libpath_sed='
  12217. /Import File Strings/,/^$/ {
  12218. /^0/ {
  12219. s/^0 *\(.*\)$/\1/
  12220. p
  12221. }
  12222. }'
  12223. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  12224. # Check for a 64-bit object if we didn't find anything.
  12225. if test -z "$aix_libpath"; then
  12226. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  12227. fi
  12228. fi
  12229. rm -f core conftest.err conftest.$ac_objext \
  12230. conftest$ac_exeext conftest.$ac_ext
  12231. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  12232. hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
  12233. 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 func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
  12234. else
  12235. if test "$host_cpu" = ia64; then
  12236. hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
  12237. allow_undefined_flag_CXX="-z nodefs"
  12238. 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"
  12239. else
  12240. # Determine the default libpath from the value encoded in an
  12241. # empty executable.
  12242. if test x$gcc_no_link = xyes; then
  12243. as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  12244. fi
  12245. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12246. /* end confdefs.h. */
  12247. int
  12248. main ()
  12249. {
  12250. ;
  12251. return 0;
  12252. }
  12253. _ACEOF
  12254. if ac_fn_cxx_try_link "$LINENO"; then :
  12255. lt_aix_libpath_sed='
  12256. /Import File Strings/,/^$/ {
  12257. /^0/ {
  12258. s/^0 *\(.*\)$/\1/
  12259. p
  12260. }
  12261. }'
  12262. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  12263. # Check for a 64-bit object if we didn't find anything.
  12264. if test -z "$aix_libpath"; then
  12265. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  12266. fi
  12267. fi
  12268. rm -f core conftest.err conftest.$ac_objext \
  12269. conftest$ac_exeext conftest.$ac_ext
  12270. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  12271. hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
  12272. # Warning - without using the other run time loading flags,
  12273. # -berok will link without error, but may produce a broken library.
  12274. no_undefined_flag_CXX=' ${wl}-bernotok'
  12275. allow_undefined_flag_CXX=' ${wl}-berok'
  12276. if test "$with_gnu_ld" = yes; then
  12277. # We only use this code for GNU lds that support --whole-archive.
  12278. whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  12279. else
  12280. # Exported symbols can be pulled into shared objects from archives
  12281. whole_archive_flag_spec_CXX='$convenience'
  12282. fi
  12283. archive_cmds_need_lc_CXX=yes
  12284. # This is similar to how AIX traditionally builds its shared
  12285. # libraries.
  12286. 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'
  12287. fi
  12288. fi
  12289. ;;
  12290. beos*)
  12291. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  12292. allow_undefined_flag_CXX=unsupported
  12293. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  12294. # support --undefined. This deserves some investigation. FIXME
  12295. archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  12296. else
  12297. ld_shlibs_CXX=no
  12298. fi
  12299. ;;
  12300. chorus*)
  12301. case $cc_basename in
  12302. *)
  12303. # FIXME: insert proper C++ library support
  12304. ld_shlibs_CXX=no
  12305. ;;
  12306. esac
  12307. ;;
  12308. cygwin* | mingw* | pw32* | cegcc*)
  12309. # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
  12310. # as there is no search path for DLLs.
  12311. hardcode_libdir_flag_spec_CXX='-L$libdir'
  12312. export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
  12313. allow_undefined_flag_CXX=unsupported
  12314. always_export_symbols_CXX=no
  12315. enable_shared_with_static_runtimes_CXX=yes
  12316. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  12317. 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'
  12318. # If the export-symbols file already is a .def file (1st line
  12319. # is EXPORTS), use it as is; otherwise, prepend...
  12320. archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  12321. cp $export_symbols $output_objdir/$soname.def;
  12322. else
  12323. echo EXPORTS > $output_objdir/$soname.def;
  12324. cat $export_symbols >> $output_objdir/$soname.def;
  12325. fi~
  12326. $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'
  12327. else
  12328. ld_shlibs_CXX=no
  12329. fi
  12330. ;;
  12331. darwin* | rhapsody*)
  12332. archive_cmds_need_lc_CXX=no
  12333. hardcode_direct_CXX=no
  12334. hardcode_automatic_CXX=yes
  12335. hardcode_shlibpath_var_CXX=unsupported
  12336. if test "$lt_cv_ld_force_load" = "yes"; then
  12337. whole_archive_flag_spec_CXX='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
  12338. else
  12339. whole_archive_flag_spec_CXX=''
  12340. fi
  12341. link_all_deplibs_CXX=yes
  12342. allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
  12343. case $cc_basename in
  12344. ifort*) _lt_dar_can_shared=yes ;;
  12345. *) _lt_dar_can_shared=$GCC ;;
  12346. esac
  12347. if test "$_lt_dar_can_shared" = "yes"; then
  12348. output_verbose_link_cmd=func_echo_all
  12349. 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}"
  12350. module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  12351. 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}"
  12352. 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}"
  12353. if test "$lt_cv_apple_cc_single_mod" != "yes"; then
  12354. 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}"
  12355. 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}"
  12356. fi
  12357. else
  12358. ld_shlibs_CXX=no
  12359. fi
  12360. ;;
  12361. dgux*)
  12362. case $cc_basename in
  12363. ec++*)
  12364. # FIXME: insert proper C++ library support
  12365. ld_shlibs_CXX=no
  12366. ;;
  12367. ghcx*)
  12368. # Green Hills C++ Compiler
  12369. # FIXME: insert proper C++ library support
  12370. ld_shlibs_CXX=no
  12371. ;;
  12372. *)
  12373. # FIXME: insert proper C++ library support
  12374. ld_shlibs_CXX=no
  12375. ;;
  12376. esac
  12377. ;;
  12378. freebsd2.*)
  12379. # C++ shared libraries reported to be fairly broken before
  12380. # switch to ELF
  12381. ld_shlibs_CXX=no
  12382. ;;
  12383. freebsd-elf*)
  12384. archive_cmds_need_lc_CXX=no
  12385. ;;
  12386. freebsd* | dragonfly*)
  12387. # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
  12388. # conventions
  12389. ld_shlibs_CXX=yes
  12390. ;;
  12391. gnu*)
  12392. ;;
  12393. haiku*)
  12394. archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  12395. link_all_deplibs_CXX=yes
  12396. ;;
  12397. hpux9*)
  12398. hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  12399. hardcode_libdir_separator_CXX=:
  12400. export_dynamic_flag_spec_CXX='${wl}-E'
  12401. hardcode_direct_CXX=yes
  12402. hardcode_minus_L_CXX=yes # Not in the search PATH,
  12403. # but as the default
  12404. # location of the library.
  12405. case $cc_basename in
  12406. CC*)
  12407. # FIXME: insert proper C++ library support
  12408. ld_shlibs_CXX=no
  12409. ;;
  12410. aCC*)
  12411. 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'
  12412. # Commands to make compiler produce verbose output that lists
  12413. # what "hidden" libraries, object files and flags are used when
  12414. # linking a shared library.
  12415. #
  12416. # There doesn't appear to be a way to prevent this compiler from
  12417. # explicitly linking system object files so we need to strip them
  12418. # from the output so that they don't get included in the library
  12419. # dependencies.
  12420. output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
  12421. ;;
  12422. *)
  12423. if test "$GXX" = yes; then
  12424. 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'
  12425. else
  12426. # FIXME: insert proper C++ library support
  12427. ld_shlibs_CXX=no
  12428. fi
  12429. ;;
  12430. esac
  12431. ;;
  12432. hpux10*|hpux11*)
  12433. if test $with_gnu_ld = no; then
  12434. hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  12435. hardcode_libdir_separator_CXX=:
  12436. case $host_cpu in
  12437. hppa*64*|ia64*)
  12438. ;;
  12439. *)
  12440. export_dynamic_flag_spec_CXX='${wl}-E'
  12441. ;;
  12442. esac
  12443. fi
  12444. case $host_cpu in
  12445. hppa*64*|ia64*)
  12446. hardcode_direct_CXX=no
  12447. hardcode_shlibpath_var_CXX=no
  12448. ;;
  12449. *)
  12450. hardcode_direct_CXX=yes
  12451. hardcode_direct_absolute_CXX=yes
  12452. hardcode_minus_L_CXX=yes # Not in the search PATH,
  12453. # but as the default
  12454. # location of the library.
  12455. ;;
  12456. esac
  12457. case $cc_basename in
  12458. CC*)
  12459. # FIXME: insert proper C++ library support
  12460. ld_shlibs_CXX=no
  12461. ;;
  12462. aCC*)
  12463. case $host_cpu in
  12464. hppa*64*)
  12465. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  12466. ;;
  12467. ia64*)
  12468. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  12469. ;;
  12470. *)
  12471. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  12472. ;;
  12473. esac
  12474. # Commands to make compiler produce verbose output that lists
  12475. # what "hidden" libraries, object files and flags are used when
  12476. # linking a shared library.
  12477. #
  12478. # There doesn't appear to be a way to prevent this compiler from
  12479. # explicitly linking system object files so we need to strip them
  12480. # from the output so that they don't get included in the library
  12481. # dependencies.
  12482. output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
  12483. ;;
  12484. *)
  12485. if test "$GXX" = yes; then
  12486. if test $with_gnu_ld = no; then
  12487. case $host_cpu in
  12488. hppa*64*)
  12489. archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  12490. ;;
  12491. ia64*)
  12492. archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  12493. ;;
  12494. *)
  12495. 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'
  12496. ;;
  12497. esac
  12498. fi
  12499. else
  12500. # FIXME: insert proper C++ library support
  12501. ld_shlibs_CXX=no
  12502. fi
  12503. ;;
  12504. esac
  12505. ;;
  12506. interix[3-9]*)
  12507. hardcode_direct_CXX=no
  12508. hardcode_shlibpath_var_CXX=no
  12509. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  12510. export_dynamic_flag_spec_CXX='${wl}-E'
  12511. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  12512. # Instead, shared libraries are loaded at an image base (0x10000000 by
  12513. # default) and relocated if they conflict, which is a slow very memory
  12514. # consuming and fragmenting process. To avoid this, we pick a random,
  12515. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  12516. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  12517. 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'
  12518. 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'
  12519. ;;
  12520. irix5* | irix6*)
  12521. case $cc_basename in
  12522. CC*)
  12523. # SGI C++
  12524. archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
  12525. # Archives containing C++ object files must be created using
  12526. # "CC -ar", where "CC" is the IRIX C++ compiler. This is
  12527. # necessary to make sure instantiated templates are included
  12528. # in the archive.
  12529. old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
  12530. ;;
  12531. *)
  12532. if test "$GXX" = yes; then
  12533. if test "$with_gnu_ld" = no; then
  12534. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  12535. else
  12536. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` -o $lib'
  12537. fi
  12538. fi
  12539. link_all_deplibs_CXX=yes
  12540. ;;
  12541. esac
  12542. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  12543. hardcode_libdir_separator_CXX=:
  12544. inherit_rpath_CXX=yes
  12545. ;;
  12546. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  12547. case $cc_basename in
  12548. KCC*)
  12549. # Kuck and Associates, Inc. (KAI) C++ Compiler
  12550. # KCC will only create a shared library if the output file
  12551. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  12552. # to its proper name (with version) after linking.
  12553. 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'
  12554. 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'
  12555. # Commands to make compiler produce verbose output that lists
  12556. # what "hidden" libraries, object files and flags are used when
  12557. # linking a shared library.
  12558. #
  12559. # There doesn't appear to be a way to prevent this compiler from
  12560. # explicitly linking system object files so we need to strip them
  12561. # from the output so that they don't get included in the library
  12562. # dependencies.
  12563. output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
  12564. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  12565. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  12566. # Archives containing C++ object files must be created using
  12567. # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  12568. old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
  12569. ;;
  12570. icpc* | ecpc* )
  12571. # Intel C++
  12572. with_gnu_ld=yes
  12573. # version 8.0 and above of icpc choke on multiply defined symbols
  12574. # if we add $predep_objects and $postdep_objects, however 7.1 and
  12575. # earlier do not add the objects themselves.
  12576. case `$CC -V 2>&1` in
  12577. *"Version 7."*)
  12578. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  12579. 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'
  12580. ;;
  12581. *) # Version 8.0 or newer
  12582. tmp_idyn=
  12583. case $host_cpu in
  12584. ia64*) tmp_idyn=' -i_dynamic';;
  12585. esac
  12586. archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  12587. 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'
  12588. ;;
  12589. esac
  12590. archive_cmds_need_lc_CXX=no
  12591. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  12592. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  12593. whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  12594. ;;
  12595. pgCC* | pgcpp*)
  12596. # Portland Group C++ compiler
  12597. case `$CC -V` in
  12598. *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
  12599. prelink_cmds_CXX='tpldir=Template.dir~
  12600. rm -rf $tpldir~
  12601. $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
  12602. compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
  12603. old_archive_cmds_CXX='tpldir=Template.dir~
  12604. rm -rf $tpldir~
  12605. $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
  12606. $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
  12607. $RANLIB $oldlib'
  12608. archive_cmds_CXX='tpldir=Template.dir~
  12609. rm -rf $tpldir~
  12610. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  12611. $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  12612. archive_expsym_cmds_CXX='tpldir=Template.dir~
  12613. rm -rf $tpldir~
  12614. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  12615. $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'
  12616. ;;
  12617. *) # Version 6 and above use weak symbols
  12618. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  12619. 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'
  12620. ;;
  12621. esac
  12622. hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
  12623. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  12624. whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
  12625. ;;
  12626. cxx*)
  12627. # Compaq C++
  12628. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  12629. 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'
  12630. runpath_var=LD_RUN_PATH
  12631. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  12632. hardcode_libdir_separator_CXX=:
  12633. # Commands to make compiler produce verbose output that lists
  12634. # what "hidden" libraries, object files and flags are used when
  12635. # linking a shared library.
  12636. #
  12637. # There doesn't appear to be a way to prevent this compiler from
  12638. # explicitly linking system object files so we need to strip them
  12639. # from the output so that they don't get included in the library
  12640. # dependencies.
  12641. output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "X$list" | $Xsed'
  12642. ;;
  12643. xl* | mpixl* | bgxl*)
  12644. # IBM XL 8.0 on PPC, with GNU ld
  12645. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  12646. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  12647. archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  12648. if test "x$supports_anon_versioning" = xyes; then
  12649. archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
  12650. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  12651. echo "local: *; };" >> $output_objdir/$libname.ver~
  12652. $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  12653. fi
  12654. ;;
  12655. *)
  12656. case `$CC -V 2>&1 | sed 5q` in
  12657. *Sun\ C*)
  12658. # Sun C++ 5.9
  12659. no_undefined_flag_CXX=' -zdefs'
  12660. archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  12661. 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'
  12662. hardcode_libdir_flag_spec_CXX='-R$libdir'
  12663. whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
  12664. compiler_needs_object_CXX=yes
  12665. # Not sure whether something based on
  12666. # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
  12667. # would be better.
  12668. output_verbose_link_cmd='func_echo_all'
  12669. # Archives containing C++ object files must be created using
  12670. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  12671. # necessary to make sure instantiated templates are included
  12672. # in the archive.
  12673. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  12674. ;;
  12675. esac
  12676. ;;
  12677. esac
  12678. ;;
  12679. lynxos*)
  12680. # FIXME: insert proper C++ library support
  12681. ld_shlibs_CXX=no
  12682. ;;
  12683. m88k*)
  12684. # FIXME: insert proper C++ library support
  12685. ld_shlibs_CXX=no
  12686. ;;
  12687. mvs*)
  12688. case $cc_basename in
  12689. cxx*)
  12690. # FIXME: insert proper C++ library support
  12691. ld_shlibs_CXX=no
  12692. ;;
  12693. *)
  12694. # FIXME: insert proper C++ library support
  12695. ld_shlibs_CXX=no
  12696. ;;
  12697. esac
  12698. ;;
  12699. netbsd*)
  12700. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  12701. archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
  12702. wlarc=
  12703. hardcode_libdir_flag_spec_CXX='-R$libdir'
  12704. hardcode_direct_CXX=yes
  12705. hardcode_shlibpath_var_CXX=no
  12706. fi
  12707. # Workaround some broken pre-1.5 toolchains
  12708. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
  12709. ;;
  12710. *nto* | *qnx*)
  12711. ld_shlibs_CXX=yes
  12712. ;;
  12713. openbsd2*)
  12714. # C++ shared libraries are fairly broken
  12715. ld_shlibs_CXX=no
  12716. ;;
  12717. openbsd*)
  12718. if test -f /usr/libexec/ld.so; then
  12719. hardcode_direct_CXX=yes
  12720. hardcode_shlibpath_var_CXX=no
  12721. hardcode_direct_absolute_CXX=yes
  12722. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  12723. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  12724. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  12725. archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
  12726. export_dynamic_flag_spec_CXX='${wl}-E'
  12727. whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  12728. fi
  12729. output_verbose_link_cmd=func_echo_all
  12730. else
  12731. ld_shlibs_CXX=no
  12732. fi
  12733. ;;
  12734. osf3* | osf4* | osf5*)
  12735. case $cc_basename in
  12736. KCC*)
  12737. # Kuck and Associates, Inc. (KAI) C++ Compiler
  12738. # KCC will only create a shared library if the output file
  12739. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  12740. # to its proper name (with version) after linking.
  12741. 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'
  12742. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  12743. hardcode_libdir_separator_CXX=:
  12744. # Archives containing C++ object files must be created using
  12745. # the KAI C++ compiler.
  12746. case $host in
  12747. osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
  12748. *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
  12749. esac
  12750. ;;
  12751. RCC*)
  12752. # Rational C++ 2.4.1
  12753. # FIXME: insert proper C++ library support
  12754. ld_shlibs_CXX=no
  12755. ;;
  12756. cxx*)
  12757. case $host in
  12758. osf3*)
  12759. allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  12760. archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && func_echo_all "${wl}-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
  12761. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  12762. ;;
  12763. *)
  12764. allow_undefined_flag_CXX=' -expect_unresolved \*'
  12765. archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
  12766. archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
  12767. echo "-hidden">> $lib.exp~
  12768. $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname ${wl}-input ${wl}$lib.exp `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~
  12769. $RM $lib.exp'
  12770. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  12771. ;;
  12772. esac
  12773. hardcode_libdir_separator_CXX=:
  12774. # Commands to make compiler produce verbose output that lists
  12775. # what "hidden" libraries, object files and flags are used when
  12776. # linking a shared library.
  12777. #
  12778. # There doesn't appear to be a way to prevent this compiler from
  12779. # explicitly linking system object files so we need to strip them
  12780. # from the output so that they don't get included in the library
  12781. # dependencies.
  12782. output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
  12783. ;;
  12784. *)
  12785. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  12786. allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  12787. case $host in
  12788. osf3*)
  12789. archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  12790. ;;
  12791. *)
  12792. 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" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  12793. ;;
  12794. esac
  12795. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  12796. hardcode_libdir_separator_CXX=:
  12797. # Commands to make compiler produce verbose output that lists
  12798. # what "hidden" libraries, object files and flags are used when
  12799. # linking a shared library.
  12800. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  12801. else
  12802. # FIXME: insert proper C++ library support
  12803. ld_shlibs_CXX=no
  12804. fi
  12805. ;;
  12806. esac
  12807. ;;
  12808. psos*)
  12809. # FIXME: insert proper C++ library support
  12810. ld_shlibs_CXX=no
  12811. ;;
  12812. sunos4*)
  12813. case $cc_basename in
  12814. CC*)
  12815. # Sun C++ 4.x
  12816. # FIXME: insert proper C++ library support
  12817. ld_shlibs_CXX=no
  12818. ;;
  12819. lcc*)
  12820. # Lucid
  12821. # FIXME: insert proper C++ library support
  12822. ld_shlibs_CXX=no
  12823. ;;
  12824. *)
  12825. # FIXME: insert proper C++ library support
  12826. ld_shlibs_CXX=no
  12827. ;;
  12828. esac
  12829. ;;
  12830. solaris*)
  12831. case $cc_basename in
  12832. CC*)
  12833. # Sun C++ 4.2, 5.x and Centerline C++
  12834. archive_cmds_need_lc_CXX=yes
  12835. no_undefined_flag_CXX=' -zdefs'
  12836. archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  12837. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  12838. $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'
  12839. hardcode_libdir_flag_spec_CXX='-R$libdir'
  12840. hardcode_shlibpath_var_CXX=no
  12841. case $host_os in
  12842. solaris2.[0-5] | solaris2.[0-5].*) ;;
  12843. *)
  12844. # The compiler driver will combine and reorder linker options,
  12845. # but understands `-z linker_flag'.
  12846. # Supported since Solaris 2.6 (maybe 2.5.1?)
  12847. whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
  12848. ;;
  12849. esac
  12850. link_all_deplibs_CXX=yes
  12851. output_verbose_link_cmd='func_echo_all'
  12852. # Archives containing C++ object files must be created using
  12853. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  12854. # necessary to make sure instantiated templates are included
  12855. # in the archive.
  12856. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  12857. ;;
  12858. gcx*)
  12859. # Green Hills C++ Compiler
  12860. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  12861. # The C++ compiler must be used to create the archive.
  12862. old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
  12863. ;;
  12864. *)
  12865. # GNU C++ compiler with Solaris linker
  12866. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  12867. no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
  12868. if $CC --version | $GREP -v '^2\.7' > /dev/null; then
  12869. archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  12870. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  12871. $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  12872. # Commands to make compiler produce verbose output that lists
  12873. # what "hidden" libraries, object files and flags are used when
  12874. # linking a shared library.
  12875. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  12876. else
  12877. # g++ 2.7 appears to require `-G' NOT `-shared' on this
  12878. # platform.
  12879. archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  12880. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  12881. $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  12882. # Commands to make compiler produce verbose output that lists
  12883. # what "hidden" libraries, object files and flags are used when
  12884. # linking a shared library.
  12885. output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  12886. fi
  12887. hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
  12888. case $host_os in
  12889. solaris2.[0-5] | solaris2.[0-5].*) ;;
  12890. *)
  12891. whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  12892. ;;
  12893. esac
  12894. fi
  12895. ;;
  12896. esac
  12897. ;;
  12898. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  12899. no_undefined_flag_CXX='${wl}-z,text'
  12900. archive_cmds_need_lc_CXX=no
  12901. hardcode_shlibpath_var_CXX=no
  12902. runpath_var='LD_RUN_PATH'
  12903. case $cc_basename in
  12904. CC*)
  12905. archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12906. archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12907. ;;
  12908. *)
  12909. archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12910. archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12911. ;;
  12912. esac
  12913. ;;
  12914. sysv5* | sco3.2v5* | sco5v6*)
  12915. # Note: We can NOT use -z defs as we might desire, because we do not
  12916. # link with -lc, and that would cause any symbols used from libc to
  12917. # always be unresolved, which means just about no library would
  12918. # ever link correctly. If we're not using GNU ld we use -z text
  12919. # though, which does catch some bad symbols but isn't as heavy-handed
  12920. # as -z defs.
  12921. no_undefined_flag_CXX='${wl}-z,text'
  12922. allow_undefined_flag_CXX='${wl}-z,nodefs'
  12923. archive_cmds_need_lc_CXX=no
  12924. hardcode_shlibpath_var_CXX=no
  12925. hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
  12926. hardcode_libdir_separator_CXX=':'
  12927. link_all_deplibs_CXX=yes
  12928. export_dynamic_flag_spec_CXX='${wl}-Bexport'
  12929. runpath_var='LD_RUN_PATH'
  12930. case $cc_basename in
  12931. CC*)
  12932. archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12933. archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12934. old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
  12935. '"$old_archive_cmds_CXX"
  12936. reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
  12937. '"$reload_cmds_CXX"
  12938. ;;
  12939. *)
  12940. archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12941. archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12942. ;;
  12943. esac
  12944. ;;
  12945. tandem*)
  12946. case $cc_basename in
  12947. NCC*)
  12948. # NonStop-UX NCC 3.20
  12949. # FIXME: insert proper C++ library support
  12950. ld_shlibs_CXX=no
  12951. ;;
  12952. *)
  12953. # FIXME: insert proper C++ library support
  12954. ld_shlibs_CXX=no
  12955. ;;
  12956. esac
  12957. ;;
  12958. vxworks*)
  12959. # FIXME: insert proper C++ library support
  12960. ld_shlibs_CXX=no
  12961. ;;
  12962. *)
  12963. # FIXME: insert proper C++ library support
  12964. ld_shlibs_CXX=no
  12965. ;;
  12966. esac
  12967. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
  12968. $as_echo "$ld_shlibs_CXX" >&6; }
  12969. test "$ld_shlibs_CXX" = no && can_build_shared=no
  12970. GCC_CXX="$GXX"
  12971. LD_CXX="$LD"
  12972. ## CAVEAT EMPTOR:
  12973. ## There is no encapsulation within the following macros, do not change
  12974. ## the running order or otherwise move them around unless you know exactly
  12975. ## what you are doing...
  12976. # Dependencies to place before and after the object being linked:
  12977. predep_objects_CXX=
  12978. postdep_objects_CXX=
  12979. predeps_CXX=
  12980. postdeps_CXX=
  12981. compiler_lib_search_path_CXX=
  12982. cat > conftest.$ac_ext <<_LT_EOF
  12983. class Foo
  12984. {
  12985. public:
  12986. Foo (void) { a = 0; }
  12987. private:
  12988. int a;
  12989. };
  12990. _LT_EOF
  12991. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  12992. (eval $ac_compile) 2>&5
  12993. ac_status=$?
  12994. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12995. test $ac_status = 0; }; then
  12996. # Parse the compiler output and extract the necessary
  12997. # objects, libraries and library flags.
  12998. # Sentinel used to keep track of whether or not we are before
  12999. # the conftest object file.
  13000. pre_test_object_deps_done=no
  13001. for p in `eval "$output_verbose_link_cmd"`; do
  13002. case $p in
  13003. -L* | -R* | -l*)
  13004. # Some compilers place space between "-{L,R}" and the path.
  13005. # Remove the space.
  13006. if test $p = "-L" ||
  13007. test $p = "-R"; then
  13008. prev=$p
  13009. continue
  13010. else
  13011. prev=
  13012. fi
  13013. if test "$pre_test_object_deps_done" = no; then
  13014. case $p in
  13015. -L* | -R*)
  13016. # Internal compiler library paths should come after those
  13017. # provided the user. The postdeps already come after the
  13018. # user supplied libs so there is no need to process them.
  13019. if test -z "$compiler_lib_search_path_CXX"; then
  13020. compiler_lib_search_path_CXX="${prev}${p}"
  13021. else
  13022. compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
  13023. fi
  13024. ;;
  13025. # The "-l" case would never come before the object being
  13026. # linked, so don't bother handling this case.
  13027. esac
  13028. else
  13029. if test -z "$postdeps_CXX"; then
  13030. postdeps_CXX="${prev}${p}"
  13031. else
  13032. postdeps_CXX="${postdeps_CXX} ${prev}${p}"
  13033. fi
  13034. fi
  13035. ;;
  13036. *.$objext)
  13037. # This assumes that the test object file only shows up
  13038. # once in the compiler output.
  13039. if test "$p" = "conftest.$objext"; then
  13040. pre_test_object_deps_done=yes
  13041. continue
  13042. fi
  13043. if test "$pre_test_object_deps_done" = no; then
  13044. if test -z "$predep_objects_CXX"; then
  13045. predep_objects_CXX="$p"
  13046. else
  13047. predep_objects_CXX="$predep_objects_CXX $p"
  13048. fi
  13049. else
  13050. if test -z "$postdep_objects_CXX"; then
  13051. postdep_objects_CXX="$p"
  13052. else
  13053. postdep_objects_CXX="$postdep_objects_CXX $p"
  13054. fi
  13055. fi
  13056. ;;
  13057. *) ;; # Ignore the rest.
  13058. esac
  13059. done
  13060. # Clean up.
  13061. rm -f a.out a.exe
  13062. else
  13063. echo "libtool.m4: error: problem compiling CXX test program"
  13064. fi
  13065. $RM -f confest.$objext
  13066. # PORTME: override above test on systems where it is broken
  13067. case $host_os in
  13068. interix[3-9]*)
  13069. # Interix 3.5 installs completely hosed .la files for C++, so rather than
  13070. # hack all around it, let's just trust "g++" to DTRT.
  13071. predep_objects_CXX=
  13072. postdep_objects_CXX=
  13073. postdeps_CXX=
  13074. ;;
  13075. linux*)
  13076. case `$CC -V 2>&1 | sed 5q` in
  13077. *Sun\ C*)
  13078. # Sun C++ 5.9
  13079. # The more standards-conforming stlport4 library is
  13080. # incompatible with the Cstd library. Avoid specifying
  13081. # it if it's in CXXFLAGS. Ignore libCrun as
  13082. # -library=stlport4 depends on it.
  13083. case " $CXX $CXXFLAGS " in
  13084. *" -library=stlport4 "*)
  13085. solaris_use_stlport4=yes
  13086. ;;
  13087. esac
  13088. if test "$solaris_use_stlport4" != yes; then
  13089. postdeps_CXX='-library=Cstd -library=Crun'
  13090. fi
  13091. ;;
  13092. esac
  13093. ;;
  13094. solaris*)
  13095. case $cc_basename in
  13096. CC*)
  13097. # The more standards-conforming stlport4 library is
  13098. # incompatible with the Cstd library. Avoid specifying
  13099. # it if it's in CXXFLAGS. Ignore libCrun as
  13100. # -library=stlport4 depends on it.
  13101. case " $CXX $CXXFLAGS " in
  13102. *" -library=stlport4 "*)
  13103. solaris_use_stlport4=yes
  13104. ;;
  13105. esac
  13106. # Adding this requires a known-good setup of shared libraries for
  13107. # Sun compiler versions before 5.6, else PIC objects from an old
  13108. # archive will be linked into the output, leading to subtle bugs.
  13109. if test "$solaris_use_stlport4" != yes; then
  13110. postdeps_CXX='-library=Cstd -library=Crun'
  13111. fi
  13112. ;;
  13113. esac
  13114. ;;
  13115. esac
  13116. case " $postdeps_CXX " in
  13117. *" -lc "*) archive_cmds_need_lc_CXX=no ;;
  13118. esac
  13119. compiler_lib_search_dirs_CXX=
  13120. if test -n "${compiler_lib_search_path_CXX}"; then
  13121. compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
  13122. fi
  13123. lt_prog_compiler_wl_CXX=
  13124. lt_prog_compiler_pic_CXX=
  13125. lt_prog_compiler_static_CXX=
  13126. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  13127. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  13128. # C++ specific cases for pic, static, wl, etc.
  13129. if test "$GXX" = yes; then
  13130. lt_prog_compiler_wl_CXX='-Wl,'
  13131. lt_prog_compiler_static_CXX='-static'
  13132. case $host_os in
  13133. aix*)
  13134. # All AIX code is PIC.
  13135. if test "$host_cpu" = ia64; then
  13136. # AIX 5 now supports IA64 processor
  13137. lt_prog_compiler_static_CXX='-Bstatic'
  13138. fi
  13139. lt_prog_compiler_pic_CXX='-fPIC'
  13140. ;;
  13141. amigaos*)
  13142. case $host_cpu in
  13143. powerpc)
  13144. # see comment about AmigaOS4 .so support
  13145. lt_prog_compiler_pic_CXX='-fPIC'
  13146. ;;
  13147. m68k)
  13148. # FIXME: we need at least 68020 code to build shared libraries, but
  13149. # adding the `-m68020' flag to GCC prevents building anything better,
  13150. # like `-m68040'.
  13151. lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
  13152. ;;
  13153. esac
  13154. ;;
  13155. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  13156. # PIC is the default for these OSes.
  13157. ;;
  13158. mingw* | cygwin* | os2* | pw32* | cegcc*)
  13159. # This hack is so that the source file can tell whether it is being
  13160. # built for inclusion in a dll (and should export symbols for example).
  13161. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  13162. # (--disable-auto-import) libraries
  13163. lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  13164. ;;
  13165. darwin* | rhapsody*)
  13166. # PIC is the default on this platform
  13167. # Common symbols not allowed in MH_DYLIB files
  13168. lt_prog_compiler_pic_CXX='-fno-common'
  13169. ;;
  13170. *djgpp*)
  13171. # DJGPP does not support shared libraries at all
  13172. lt_prog_compiler_pic_CXX=
  13173. ;;
  13174. haiku*)
  13175. # PIC is the default for Haiku.
  13176. # The "-static" flag exists, but is broken.
  13177. lt_prog_compiler_static_CXX=
  13178. ;;
  13179. interix[3-9]*)
  13180. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  13181. # Instead, we relocate shared libraries at runtime.
  13182. ;;
  13183. sysv4*MP*)
  13184. if test -d /usr/nec; then
  13185. lt_prog_compiler_pic_CXX=-Kconform_pic
  13186. fi
  13187. ;;
  13188. hpux*)
  13189. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  13190. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  13191. # sets the default TLS model and affects inlining.
  13192. case $host_cpu in
  13193. hppa*64*)
  13194. ;;
  13195. *)
  13196. lt_prog_compiler_pic_CXX='-fPIC'
  13197. ;;
  13198. esac
  13199. ;;
  13200. *qnx* | *nto*)
  13201. # QNX uses GNU C++, but need to define -shared option too, otherwise
  13202. # it will coredump.
  13203. lt_prog_compiler_pic_CXX='-fPIC -shared'
  13204. ;;
  13205. *)
  13206. lt_prog_compiler_pic_CXX='-fPIC'
  13207. ;;
  13208. esac
  13209. else
  13210. case $host_os in
  13211. aix[4-9]*)
  13212. # All AIX code is PIC.
  13213. if test "$host_cpu" = ia64; then
  13214. # AIX 5 now supports IA64 processor
  13215. lt_prog_compiler_static_CXX='-Bstatic'
  13216. else
  13217. lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
  13218. fi
  13219. ;;
  13220. chorus*)
  13221. case $cc_basename in
  13222. cxch68*)
  13223. # Green Hills C++ Compiler
  13224. # _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"
  13225. ;;
  13226. esac
  13227. ;;
  13228. dgux*)
  13229. case $cc_basename in
  13230. ec++*)
  13231. lt_prog_compiler_pic_CXX='-KPIC'
  13232. ;;
  13233. ghcx*)
  13234. # Green Hills C++ Compiler
  13235. lt_prog_compiler_pic_CXX='-pic'
  13236. ;;
  13237. *)
  13238. ;;
  13239. esac
  13240. ;;
  13241. freebsd* | dragonfly*)
  13242. # FreeBSD uses GNU C++
  13243. ;;
  13244. hpux9* | hpux10* | hpux11*)
  13245. case $cc_basename in
  13246. CC*)
  13247. lt_prog_compiler_wl_CXX='-Wl,'
  13248. lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
  13249. if test "$host_cpu" != ia64; then
  13250. lt_prog_compiler_pic_CXX='+Z'
  13251. fi
  13252. ;;
  13253. aCC*)
  13254. lt_prog_compiler_wl_CXX='-Wl,'
  13255. lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
  13256. case $host_cpu in
  13257. hppa*64*|ia64*)
  13258. # +Z the default
  13259. ;;
  13260. *)
  13261. lt_prog_compiler_pic_CXX='+Z'
  13262. ;;
  13263. esac
  13264. ;;
  13265. *)
  13266. ;;
  13267. esac
  13268. ;;
  13269. interix*)
  13270. # This is c89, which is MS Visual C++ (no shared libs)
  13271. # Anyone wants to do a port?
  13272. ;;
  13273. irix5* | irix6* | nonstopux*)
  13274. case $cc_basename in
  13275. CC*)
  13276. lt_prog_compiler_wl_CXX='-Wl,'
  13277. lt_prog_compiler_static_CXX='-non_shared'
  13278. # CC pic flag -KPIC is the default.
  13279. ;;
  13280. *)
  13281. ;;
  13282. esac
  13283. ;;
  13284. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  13285. case $cc_basename in
  13286. KCC*)
  13287. # KAI C++ Compiler
  13288. lt_prog_compiler_wl_CXX='--backend -Wl,'
  13289. lt_prog_compiler_pic_CXX='-fPIC'
  13290. ;;
  13291. ecpc* )
  13292. # old Intel C++ for x86_64 which still supported -KPIC.
  13293. lt_prog_compiler_wl_CXX='-Wl,'
  13294. lt_prog_compiler_pic_CXX='-KPIC'
  13295. lt_prog_compiler_static_CXX='-static'
  13296. ;;
  13297. icpc* )
  13298. # Intel C++, used to be incompatible with GCC.
  13299. # ICC 10 doesn't accept -KPIC any more.
  13300. lt_prog_compiler_wl_CXX='-Wl,'
  13301. lt_prog_compiler_pic_CXX='-fPIC'
  13302. lt_prog_compiler_static_CXX='-static'
  13303. ;;
  13304. pgCC* | pgcpp*)
  13305. # Portland Group C++ compiler
  13306. lt_prog_compiler_wl_CXX='-Wl,'
  13307. lt_prog_compiler_pic_CXX='-fpic'
  13308. lt_prog_compiler_static_CXX='-Bstatic'
  13309. ;;
  13310. cxx*)
  13311. # Compaq C++
  13312. # Make sure the PIC flag is empty. It appears that all Alpha
  13313. # Linux and Compaq Tru64 Unix objects are PIC.
  13314. lt_prog_compiler_pic_CXX=
  13315. lt_prog_compiler_static_CXX='-non_shared'
  13316. ;;
  13317. xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
  13318. # IBM XL 8.0, 9.0 on PPC and BlueGene
  13319. lt_prog_compiler_wl_CXX='-Wl,'
  13320. lt_prog_compiler_pic_CXX='-qpic'
  13321. lt_prog_compiler_static_CXX='-qstaticlink'
  13322. ;;
  13323. *)
  13324. case `$CC -V 2>&1 | sed 5q` in
  13325. *Sun\ C*)
  13326. # Sun C++ 5.9
  13327. lt_prog_compiler_pic_CXX='-KPIC'
  13328. lt_prog_compiler_static_CXX='-Bstatic'
  13329. lt_prog_compiler_wl_CXX='-Qoption ld '
  13330. ;;
  13331. esac
  13332. ;;
  13333. esac
  13334. ;;
  13335. lynxos*)
  13336. ;;
  13337. m88k*)
  13338. ;;
  13339. mvs*)
  13340. case $cc_basename in
  13341. cxx*)
  13342. lt_prog_compiler_pic_CXX='-W c,exportall'
  13343. ;;
  13344. *)
  13345. ;;
  13346. esac
  13347. ;;
  13348. netbsd*)
  13349. ;;
  13350. *qnx* | *nto*)
  13351. # QNX uses GNU C++, but need to define -shared option too, otherwise
  13352. # it will coredump.
  13353. lt_prog_compiler_pic_CXX='-fPIC -shared'
  13354. ;;
  13355. osf3* | osf4* | osf5*)
  13356. case $cc_basename in
  13357. KCC*)
  13358. lt_prog_compiler_wl_CXX='--backend -Wl,'
  13359. ;;
  13360. RCC*)
  13361. # Rational C++ 2.4.1
  13362. lt_prog_compiler_pic_CXX='-pic'
  13363. ;;
  13364. cxx*)
  13365. # Digital/Compaq C++
  13366. lt_prog_compiler_wl_CXX='-Wl,'
  13367. # Make sure the PIC flag is empty. It appears that all Alpha
  13368. # Linux and Compaq Tru64 Unix objects are PIC.
  13369. lt_prog_compiler_pic_CXX=
  13370. lt_prog_compiler_static_CXX='-non_shared'
  13371. ;;
  13372. *)
  13373. ;;
  13374. esac
  13375. ;;
  13376. psos*)
  13377. ;;
  13378. solaris*)
  13379. case $cc_basename in
  13380. CC*)
  13381. # Sun C++ 4.2, 5.x and Centerline C++
  13382. lt_prog_compiler_pic_CXX='-KPIC'
  13383. lt_prog_compiler_static_CXX='-Bstatic'
  13384. lt_prog_compiler_wl_CXX='-Qoption ld '
  13385. ;;
  13386. gcx*)
  13387. # Green Hills C++ Compiler
  13388. lt_prog_compiler_pic_CXX='-PIC'
  13389. ;;
  13390. *)
  13391. ;;
  13392. esac
  13393. ;;
  13394. sunos4*)
  13395. case $cc_basename in
  13396. CC*)
  13397. # Sun C++ 4.x
  13398. lt_prog_compiler_pic_CXX='-pic'
  13399. lt_prog_compiler_static_CXX='-Bstatic'
  13400. ;;
  13401. lcc*)
  13402. # Lucid
  13403. lt_prog_compiler_pic_CXX='-pic'
  13404. ;;
  13405. *)
  13406. ;;
  13407. esac
  13408. ;;
  13409. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  13410. case $cc_basename in
  13411. CC*)
  13412. lt_prog_compiler_wl_CXX='-Wl,'
  13413. lt_prog_compiler_pic_CXX='-KPIC'
  13414. lt_prog_compiler_static_CXX='-Bstatic'
  13415. ;;
  13416. esac
  13417. ;;
  13418. tandem*)
  13419. case $cc_basename in
  13420. NCC*)
  13421. # NonStop-UX NCC 3.20
  13422. lt_prog_compiler_pic_CXX='-KPIC'
  13423. ;;
  13424. *)
  13425. ;;
  13426. esac
  13427. ;;
  13428. vxworks*)
  13429. ;;
  13430. *)
  13431. lt_prog_compiler_can_build_shared_CXX=no
  13432. ;;
  13433. esac
  13434. fi
  13435. case $host_os in
  13436. # For platforms which do not support PIC, -DPIC is meaningless:
  13437. *djgpp*)
  13438. lt_prog_compiler_pic_CXX=
  13439. ;;
  13440. *)
  13441. lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
  13442. ;;
  13443. esac
  13444. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
  13445. $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
  13446. #
  13447. # Check to make sure the PIC flag actually works.
  13448. #
  13449. if test -n "$lt_prog_compiler_pic_CXX"; then
  13450. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
  13451. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
  13452. if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
  13453. $as_echo_n "(cached) " >&6
  13454. else
  13455. lt_cv_prog_compiler_pic_works_CXX=no
  13456. ac_outfile=conftest.$ac_objext
  13457. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  13458. lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
  13459. # Insert the option either (1) after the last *FLAGS variable, or
  13460. # (2) before a word containing "conftest.", or (3) at the end.
  13461. # Note that $ac_compile itself does not contain backslashes and begins
  13462. # with a dollar sign (not a hyphen), so the echo should work correctly.
  13463. # The option is referenced via a variable to avoid confusing sed.
  13464. lt_compile=`echo "$ac_compile" | $SED \
  13465. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  13466. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  13467. -e 's:$: $lt_compiler_flag:'`
  13468. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  13469. (eval "$lt_compile" 2>conftest.err)
  13470. ac_status=$?
  13471. cat conftest.err >&5
  13472. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13473. if (exit $ac_status) && test -s "$ac_outfile"; then
  13474. # The compiler can only warn and ignore the option if not recognized
  13475. # So say no if there are warnings other than the usual output.
  13476. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  13477. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  13478. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  13479. lt_cv_prog_compiler_pic_works_CXX=yes
  13480. fi
  13481. fi
  13482. $RM conftest*
  13483. fi
  13484. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
  13485. $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
  13486. if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
  13487. case $lt_prog_compiler_pic_CXX in
  13488. "" | " "*) ;;
  13489. *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
  13490. esac
  13491. else
  13492. lt_prog_compiler_pic_CXX=
  13493. lt_prog_compiler_can_build_shared_CXX=no
  13494. fi
  13495. fi
  13496. #
  13497. # Check to make sure the static flag actually works.
  13498. #
  13499. wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
  13500. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  13501. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  13502. if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
  13503. $as_echo_n "(cached) " >&6
  13504. else
  13505. lt_cv_prog_compiler_static_works_CXX=no
  13506. save_LDFLAGS="$LDFLAGS"
  13507. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  13508. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  13509. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  13510. # The linker can only warn and ignore the option if not recognized
  13511. # So say no if there are warnings
  13512. if test -s conftest.err; then
  13513. # Append any errors to the config.log.
  13514. cat conftest.err 1>&5
  13515. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  13516. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  13517. if diff conftest.exp conftest.er2 >/dev/null; then
  13518. lt_cv_prog_compiler_static_works_CXX=yes
  13519. fi
  13520. else
  13521. lt_cv_prog_compiler_static_works_CXX=yes
  13522. fi
  13523. fi
  13524. $RM -r conftest*
  13525. LDFLAGS="$save_LDFLAGS"
  13526. fi
  13527. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
  13528. $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
  13529. if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
  13530. :
  13531. else
  13532. lt_prog_compiler_static_CXX=
  13533. fi
  13534. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  13535. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  13536. if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
  13537. $as_echo_n "(cached) " >&6
  13538. else
  13539. lt_cv_prog_compiler_c_o_CXX=no
  13540. $RM -r conftest 2>/dev/null
  13541. mkdir conftest
  13542. cd conftest
  13543. mkdir out
  13544. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  13545. lt_compiler_flag="-o out/conftest2.$ac_objext"
  13546. # Insert the option either (1) after the last *FLAGS variable, or
  13547. # (2) before a word containing "conftest.", or (3) at the end.
  13548. # Note that $ac_compile itself does not contain backslashes and begins
  13549. # with a dollar sign (not a hyphen), so the echo should work correctly.
  13550. lt_compile=`echo "$ac_compile" | $SED \
  13551. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  13552. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  13553. -e 's:$: $lt_compiler_flag:'`
  13554. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  13555. (eval "$lt_compile" 2>out/conftest.err)
  13556. ac_status=$?
  13557. cat out/conftest.err >&5
  13558. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13559. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  13560. then
  13561. # The compiler can only warn and ignore the option if not recognized
  13562. # So say no if there are warnings
  13563. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  13564. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  13565. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  13566. lt_cv_prog_compiler_c_o_CXX=yes
  13567. fi
  13568. fi
  13569. chmod u+w . 2>&5
  13570. $RM conftest*
  13571. # SGI C++ compiler will create directory out/ii_files/ for
  13572. # template instantiation
  13573. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  13574. $RM out/* && rmdir out
  13575. cd ..
  13576. $RM -r conftest
  13577. $RM conftest*
  13578. fi
  13579. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  13580. $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  13581. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  13582. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  13583. if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
  13584. $as_echo_n "(cached) " >&6
  13585. else
  13586. lt_cv_prog_compiler_c_o_CXX=no
  13587. $RM -r conftest 2>/dev/null
  13588. mkdir conftest
  13589. cd conftest
  13590. mkdir out
  13591. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  13592. lt_compiler_flag="-o out/conftest2.$ac_objext"
  13593. # Insert the option either (1) after the last *FLAGS variable, or
  13594. # (2) before a word containing "conftest.", or (3) at the end.
  13595. # Note that $ac_compile itself does not contain backslashes and begins
  13596. # with a dollar sign (not a hyphen), so the echo should work correctly.
  13597. lt_compile=`echo "$ac_compile" | $SED \
  13598. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  13599. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  13600. -e 's:$: $lt_compiler_flag:'`
  13601. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  13602. (eval "$lt_compile" 2>out/conftest.err)
  13603. ac_status=$?
  13604. cat out/conftest.err >&5
  13605. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13606. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  13607. then
  13608. # The compiler can only warn and ignore the option if not recognized
  13609. # So say no if there are warnings
  13610. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  13611. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  13612. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  13613. lt_cv_prog_compiler_c_o_CXX=yes
  13614. fi
  13615. fi
  13616. chmod u+w . 2>&5
  13617. $RM conftest*
  13618. # SGI C++ compiler will create directory out/ii_files/ for
  13619. # template instantiation
  13620. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  13621. $RM out/* && rmdir out
  13622. cd ..
  13623. $RM -r conftest
  13624. $RM conftest*
  13625. fi
  13626. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  13627. $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  13628. hard_links="nottested"
  13629. if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
  13630. # do not overwrite the value of need_locks provided by the user
  13631. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  13632. $as_echo_n "checking if we can lock with hard links... " >&6; }
  13633. hard_links=yes
  13634. $RM conftest*
  13635. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  13636. touch conftest.a
  13637. ln conftest.a conftest.b 2>&5 || hard_links=no
  13638. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  13639. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  13640. $as_echo "$hard_links" >&6; }
  13641. if test "$hard_links" = no; then
  13642. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  13643. $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  13644. need_locks=warn
  13645. fi
  13646. else
  13647. need_locks=no
  13648. fi
  13649. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  13650. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  13651. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  13652. case $host_os in
  13653. aix[4-9]*)
  13654. # If we're using GNU nm, then we don't want the "-C" option.
  13655. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  13656. # Also, AIX nm treats weak defined symbols like other global defined
  13657. # symbols, whereas GNU nm marks them as "W".
  13658. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  13659. export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
  13660. else
  13661. 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'
  13662. fi
  13663. ;;
  13664. pw32*)
  13665. export_symbols_cmds_CXX="$ltdll_cmds"
  13666. ;;
  13667. cygwin* | mingw* | cegcc*)
  13668. 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'
  13669. ;;
  13670. *)
  13671. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  13672. ;;
  13673. esac
  13674. exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  13675. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
  13676. $as_echo "$ld_shlibs_CXX" >&6; }
  13677. test "$ld_shlibs_CXX" = no && can_build_shared=no
  13678. with_gnu_ld_CXX=$with_gnu_ld
  13679. #
  13680. # Do we need to explicitly link libc?
  13681. #
  13682. case "x$archive_cmds_need_lc_CXX" in
  13683. x|xyes)
  13684. # Assume -lc should be added
  13685. archive_cmds_need_lc_CXX=yes
  13686. if test "$enable_shared" = yes && test "$GCC" = yes; then
  13687. case $archive_cmds_CXX in
  13688. *'~'*)
  13689. # FIXME: we may have to deal with multi-command sequences.
  13690. ;;
  13691. '$CC '*)
  13692. # Test whether the compiler implicitly links with -lc since on some
  13693. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  13694. # to ld, don't add -lc before -lgcc.
  13695. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  13696. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  13697. if test "${lt_cv_archive_cmds_need_lc_CXX+set}" = set; then :
  13698. $as_echo_n "(cached) " >&6
  13699. else
  13700. $RM conftest*
  13701. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  13702. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  13703. (eval $ac_compile) 2>&5
  13704. ac_status=$?
  13705. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  13706. test $ac_status = 0; } 2>conftest.err; then
  13707. soname=conftest
  13708. lib=conftest
  13709. libobjs=conftest.$ac_objext
  13710. deplibs=
  13711. wl=$lt_prog_compiler_wl_CXX
  13712. pic_flag=$lt_prog_compiler_pic_CXX
  13713. compiler_flags=-v
  13714. linker_flags=-v
  13715. verstring=
  13716. output_objdir=.
  13717. libname=conftest
  13718. lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
  13719. allow_undefined_flag_CXX=
  13720. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  13721. (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  13722. ac_status=$?
  13723. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  13724. test $ac_status = 0; }
  13725. then
  13726. lt_cv_archive_cmds_need_lc_CXX=no
  13727. else
  13728. lt_cv_archive_cmds_need_lc_CXX=yes
  13729. fi
  13730. allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
  13731. else
  13732. cat conftest.err 1>&5
  13733. fi
  13734. $RM conftest*
  13735. fi
  13736. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
  13737. $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
  13738. archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
  13739. ;;
  13740. esac
  13741. fi
  13742. ;;
  13743. esac
  13744. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  13745. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  13746. library_names_spec=
  13747. libname_spec='lib$name'
  13748. soname_spec=
  13749. shrext_cmds=".so"
  13750. postinstall_cmds=
  13751. postuninstall_cmds=
  13752. finish_cmds=
  13753. finish_eval=
  13754. shlibpath_var=
  13755. shlibpath_overrides_runpath=unknown
  13756. version_type=none
  13757. dynamic_linker="$host_os ld.so"
  13758. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  13759. need_lib_prefix=unknown
  13760. hardcode_into_libs=no
  13761. # when you set need_version to no, make sure it does not cause -set_version
  13762. # flags to be left without arguments
  13763. need_version=unknown
  13764. case $host_os in
  13765. aix3*)
  13766. version_type=linux
  13767. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  13768. shlibpath_var=LIBPATH
  13769. # AIX 3 has no versioning support, so we append a major version to the name.
  13770. soname_spec='${libname}${release}${shared_ext}$major'
  13771. ;;
  13772. aix[4-9]*)
  13773. version_type=linux
  13774. need_lib_prefix=no
  13775. need_version=no
  13776. hardcode_into_libs=yes
  13777. if test "$host_cpu" = ia64; then
  13778. # AIX 5 supports IA64
  13779. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  13780. shlibpath_var=LD_LIBRARY_PATH
  13781. else
  13782. # With GCC up to 2.95.x, collect2 would create an import file
  13783. # for dependence libraries. The import file would start with
  13784. # the line `#! .'. This would cause the generated library to
  13785. # depend on `.', always an invalid library. This was fixed in
  13786. # development snapshots of GCC prior to 3.0.
  13787. case $host_os in
  13788. aix4 | aix4.[01] | aix4.[01].*)
  13789. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  13790. echo ' yes '
  13791. echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  13792. :
  13793. else
  13794. can_build_shared=no
  13795. fi
  13796. ;;
  13797. esac
  13798. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  13799. # soname into executable. Probably we can add versioning support to
  13800. # collect2, so additional links can be useful in future.
  13801. if test "$aix_use_runtimelinking" = yes; then
  13802. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  13803. # instead of lib<name>.a to let people know that these are not
  13804. # typical AIX shared libraries.
  13805. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13806. else
  13807. # We preserve .a as extension for shared libraries through AIX4.2
  13808. # and later when we are not doing run time linking.
  13809. library_names_spec='${libname}${release}.a $libname.a'
  13810. soname_spec='${libname}${release}${shared_ext}$major'
  13811. fi
  13812. shlibpath_var=LIBPATH
  13813. fi
  13814. ;;
  13815. amigaos*)
  13816. case $host_cpu in
  13817. powerpc)
  13818. # Since July 2007 AmigaOS4 officially supports .so libraries.
  13819. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  13820. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13821. ;;
  13822. m68k)
  13823. library_names_spec='$libname.ixlibrary $libname.a'
  13824. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  13825. finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
  13826. ;;
  13827. esac
  13828. ;;
  13829. beos*)
  13830. library_names_spec='${libname}${shared_ext}'
  13831. dynamic_linker="$host_os ld.so"
  13832. shlibpath_var=LIBRARY_PATH
  13833. ;;
  13834. bsdi[45]*)
  13835. version_type=linux
  13836. need_version=no
  13837. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13838. soname_spec='${libname}${release}${shared_ext}$major'
  13839. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  13840. shlibpath_var=LD_LIBRARY_PATH
  13841. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  13842. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  13843. # the default ld.so.conf also contains /usr/contrib/lib and
  13844. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  13845. # libtool to hard-code these into programs
  13846. ;;
  13847. cygwin* | mingw* | pw32* | cegcc*)
  13848. version_type=windows
  13849. shrext_cmds=".dll"
  13850. need_version=no
  13851. need_lib_prefix=no
  13852. case $GCC,$host_os in
  13853. yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
  13854. library_names_spec='$libname.dll.a'
  13855. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  13856. postinstall_cmds='base_file=`basename \${file}`~
  13857. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  13858. dldir=$destdir/`dirname \$dlpath`~
  13859. test -d \$dldir || mkdir -p \$dldir~
  13860. $install_prog $dir/$dlname \$dldir/$dlname~
  13861. chmod a+x \$dldir/$dlname~
  13862. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  13863. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  13864. fi'
  13865. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  13866. dlpath=$dir/\$dldll~
  13867. $RM \$dlpath'
  13868. shlibpath_overrides_runpath=yes
  13869. case $host_os in
  13870. cygwin*)
  13871. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  13872. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  13873. ;;
  13874. mingw* | cegcc*)
  13875. # MinGW DLLs use traditional 'lib' prefix
  13876. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  13877. ;;
  13878. pw32*)
  13879. # pw32 DLLs use 'pw' prefix rather than 'lib'
  13880. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  13881. ;;
  13882. esac
  13883. ;;
  13884. *)
  13885. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  13886. ;;
  13887. esac
  13888. dynamic_linker='Win32 ld.exe'
  13889. # FIXME: first we should search . and the directory the executable is in
  13890. shlibpath_var=PATH
  13891. ;;
  13892. darwin* | rhapsody*)
  13893. dynamic_linker="$host_os dyld"
  13894. version_type=darwin
  13895. need_lib_prefix=no
  13896. need_version=no
  13897. library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  13898. soname_spec='${libname}${release}${major}$shared_ext'
  13899. shlibpath_overrides_runpath=yes
  13900. shlibpath_var=DYLD_LIBRARY_PATH
  13901. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  13902. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  13903. ;;
  13904. dgux*)
  13905. version_type=linux
  13906. need_lib_prefix=no
  13907. need_version=no
  13908. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  13909. soname_spec='${libname}${release}${shared_ext}$major'
  13910. shlibpath_var=LD_LIBRARY_PATH
  13911. ;;
  13912. freebsd* | dragonfly*)
  13913. # DragonFly does not have aout. When/if they implement a new
  13914. # versioning mechanism, adjust this.
  13915. if test -x /usr/bin/objformat; then
  13916. objformat=`/usr/bin/objformat`
  13917. else
  13918. case $host_os in
  13919. freebsd[23].*) objformat=aout ;;
  13920. *) objformat=elf ;;
  13921. esac
  13922. fi
  13923. version_type=freebsd-$objformat
  13924. case $version_type in
  13925. freebsd-elf*)
  13926. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  13927. need_version=no
  13928. need_lib_prefix=no
  13929. ;;
  13930. freebsd-*)
  13931. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  13932. need_version=yes
  13933. ;;
  13934. esac
  13935. shlibpath_var=LD_LIBRARY_PATH
  13936. case $host_os in
  13937. freebsd2.*)
  13938. shlibpath_overrides_runpath=yes
  13939. ;;
  13940. freebsd3.[01]* | freebsdelf3.[01]*)
  13941. shlibpath_overrides_runpath=yes
  13942. hardcode_into_libs=yes
  13943. ;;
  13944. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  13945. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  13946. shlibpath_overrides_runpath=no
  13947. hardcode_into_libs=yes
  13948. ;;
  13949. *) # from 4.6 on, and DragonFly
  13950. shlibpath_overrides_runpath=yes
  13951. hardcode_into_libs=yes
  13952. ;;
  13953. esac
  13954. ;;
  13955. gnu*)
  13956. version_type=linux
  13957. need_lib_prefix=no
  13958. need_version=no
  13959. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  13960. soname_spec='${libname}${release}${shared_ext}$major'
  13961. shlibpath_var=LD_LIBRARY_PATH
  13962. hardcode_into_libs=yes
  13963. ;;
  13964. haiku*)
  13965. version_type=linux
  13966. need_lib_prefix=no
  13967. need_version=no
  13968. dynamic_linker="$host_os runtime_loader"
  13969. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  13970. soname_spec='${libname}${release}${shared_ext}$major'
  13971. shlibpath_var=LIBRARY_PATH
  13972. shlibpath_overrides_runpath=yes
  13973. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
  13974. hardcode_into_libs=yes
  13975. ;;
  13976. hpux9* | hpux10* | hpux11*)
  13977. # Give a soname corresponding to the major version so that dld.sl refuses to
  13978. # link against other versions.
  13979. version_type=sunos
  13980. need_lib_prefix=no
  13981. need_version=no
  13982. case $host_cpu in
  13983. ia64*)
  13984. shrext_cmds='.so'
  13985. hardcode_into_libs=yes
  13986. dynamic_linker="$host_os dld.so"
  13987. shlibpath_var=LD_LIBRARY_PATH
  13988. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  13989. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13990. soname_spec='${libname}${release}${shared_ext}$major'
  13991. if test "X$HPUX_IA64_MODE" = X32; then
  13992. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  13993. else
  13994. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  13995. fi
  13996. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  13997. ;;
  13998. hppa*64*)
  13999. shrext_cmds='.sl'
  14000. hardcode_into_libs=yes
  14001. dynamic_linker="$host_os dld.sl"
  14002. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  14003. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  14004. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  14005. soname_spec='${libname}${release}${shared_ext}$major'
  14006. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  14007. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  14008. ;;
  14009. *)
  14010. shrext_cmds='.sl'
  14011. dynamic_linker="$host_os dld.sl"
  14012. shlibpath_var=SHLIB_PATH
  14013. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  14014. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  14015. soname_spec='${libname}${release}${shared_ext}$major'
  14016. ;;
  14017. esac
  14018. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  14019. postinstall_cmds='chmod 555 $lib'
  14020. # or fails outright, so override atomically:
  14021. install_override_mode=555
  14022. ;;
  14023. interix[3-9]*)
  14024. version_type=linux
  14025. need_lib_prefix=no
  14026. need_version=no
  14027. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  14028. soname_spec='${libname}${release}${shared_ext}$major'
  14029. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  14030. shlibpath_var=LD_LIBRARY_PATH
  14031. shlibpath_overrides_runpath=no
  14032. hardcode_into_libs=yes
  14033. ;;
  14034. irix5* | irix6* | nonstopux*)
  14035. case $host_os in
  14036. nonstopux*) version_type=nonstopux ;;
  14037. *)
  14038. if test "$lt_cv_prog_gnu_ld" = yes; then
  14039. version_type=linux
  14040. else
  14041. version_type=irix
  14042. fi ;;
  14043. esac
  14044. need_lib_prefix=no
  14045. need_version=no
  14046. soname_spec='${libname}${release}${shared_ext}$major'
  14047. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  14048. case $host_os in
  14049. irix5* | nonstopux*)
  14050. libsuff= shlibsuff=
  14051. ;;
  14052. *)
  14053. case $LD in # libtool.m4 will add one of these switches to LD
  14054. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  14055. libsuff= shlibsuff= libmagic=32-bit;;
  14056. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  14057. libsuff=32 shlibsuff=N32 libmagic=N32;;
  14058. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  14059. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  14060. *) libsuff= shlibsuff= libmagic=never-match;;
  14061. esac
  14062. ;;
  14063. esac
  14064. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  14065. shlibpath_overrides_runpath=no
  14066. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  14067. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  14068. hardcode_into_libs=yes
  14069. ;;
  14070. # No shared lib support for Linux oldld, aout, or coff.
  14071. linux*oldld* | linux*aout* | linux*coff*)
  14072. dynamic_linker=no
  14073. ;;
  14074. # This must be Linux ELF.
  14075. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  14076. version_type=linux
  14077. need_lib_prefix=no
  14078. need_version=no
  14079. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  14080. soname_spec='${libname}${release}${shared_ext}$major'
  14081. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  14082. shlibpath_var=LD_LIBRARY_PATH
  14083. shlibpath_overrides_runpath=no
  14084. # Some binutils ld are patched to set DT_RUNPATH
  14085. if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
  14086. $as_echo_n "(cached) " >&6
  14087. else
  14088. lt_cv_shlibpath_overrides_runpath=no
  14089. save_LDFLAGS=$LDFLAGS
  14090. save_libdir=$libdir
  14091. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
  14092. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
  14093. if test x$gcc_no_link = xyes; then
  14094. as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  14095. fi
  14096. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14097. /* end confdefs.h. */
  14098. int
  14099. main ()
  14100. {
  14101. ;
  14102. return 0;
  14103. }
  14104. _ACEOF
  14105. if ac_fn_cxx_try_link "$LINENO"; then :
  14106. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  14107. lt_cv_shlibpath_overrides_runpath=yes
  14108. fi
  14109. fi
  14110. rm -f core conftest.err conftest.$ac_objext \
  14111. conftest$ac_exeext conftest.$ac_ext
  14112. LDFLAGS=$save_LDFLAGS
  14113. libdir=$save_libdir
  14114. fi
  14115. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  14116. # This implies no fast_install, which is unacceptable.
  14117. # Some rework will be needed to allow for fast_install
  14118. # before this can be enabled.
  14119. hardcode_into_libs=yes
  14120. # Append ld.so.conf contents to the search path
  14121. if test -f /etc/ld.so.conf; then
  14122. lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
  14123. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  14124. fi
  14125. # We used to test for /lib/ld.so.1 and disable shared libraries on
  14126. # powerpc, because MkLinux only supported shared libraries with the
  14127. # GNU dynamic linker. Since this was broken with cross compilers,
  14128. # most powerpc-linux boxes support dynamic linking these days and
  14129. # people can always --disable-shared, the test was removed, and we
  14130. # assume the GNU/Linux dynamic linker is in use.
  14131. dynamic_linker='GNU/Linux ld.so'
  14132. ;;
  14133. netbsd*)
  14134. version_type=sunos
  14135. need_lib_prefix=no
  14136. need_version=no
  14137. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  14138. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  14139. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  14140. dynamic_linker='NetBSD (a.out) ld.so'
  14141. else
  14142. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  14143. soname_spec='${libname}${release}${shared_ext}$major'
  14144. dynamic_linker='NetBSD ld.elf_so'
  14145. fi
  14146. shlibpath_var=LD_LIBRARY_PATH
  14147. shlibpath_overrides_runpath=yes
  14148. hardcode_into_libs=yes
  14149. ;;
  14150. newsos6)
  14151. version_type=linux
  14152. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  14153. shlibpath_var=LD_LIBRARY_PATH
  14154. shlibpath_overrides_runpath=yes
  14155. ;;
  14156. *nto* | *qnx*)
  14157. version_type=qnx
  14158. need_lib_prefix=no
  14159. need_version=no
  14160. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  14161. soname_spec='${libname}${release}${shared_ext}$major'
  14162. shlibpath_var=LD_LIBRARY_PATH
  14163. shlibpath_overrides_runpath=no
  14164. hardcode_into_libs=yes
  14165. dynamic_linker='ldqnx.so'
  14166. ;;
  14167. openbsd*)
  14168. version_type=sunos
  14169. sys_lib_dlsearch_path_spec="/usr/lib"
  14170. need_lib_prefix=no
  14171. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  14172. case $host_os in
  14173. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  14174. *) need_version=no ;;
  14175. esac
  14176. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  14177. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  14178. shlibpath_var=LD_LIBRARY_PATH
  14179. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  14180. case $host_os in
  14181. openbsd2.[89] | openbsd2.[89].*)
  14182. shlibpath_overrides_runpath=no
  14183. ;;
  14184. *)
  14185. shlibpath_overrides_runpath=yes
  14186. ;;
  14187. esac
  14188. else
  14189. shlibpath_overrides_runpath=yes
  14190. fi
  14191. ;;
  14192. os2*)
  14193. libname_spec='$name'
  14194. shrext_cmds=".dll"
  14195. need_lib_prefix=no
  14196. library_names_spec='$libname${shared_ext} $libname.a'
  14197. dynamic_linker='OS/2 ld.exe'
  14198. shlibpath_var=LIBPATH
  14199. ;;
  14200. osf3* | osf4* | osf5*)
  14201. version_type=osf
  14202. need_lib_prefix=no
  14203. need_version=no
  14204. soname_spec='${libname}${release}${shared_ext}$major'
  14205. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  14206. shlibpath_var=LD_LIBRARY_PATH
  14207. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  14208. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  14209. ;;
  14210. rdos*)
  14211. dynamic_linker=no
  14212. ;;
  14213. solaris*)
  14214. version_type=linux
  14215. need_lib_prefix=no
  14216. need_version=no
  14217. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  14218. soname_spec='${libname}${release}${shared_ext}$major'
  14219. shlibpath_var=LD_LIBRARY_PATH
  14220. shlibpath_overrides_runpath=yes
  14221. hardcode_into_libs=yes
  14222. # ldd complains unless libraries are executable
  14223. postinstall_cmds='chmod +x $lib'
  14224. ;;
  14225. sunos4*)
  14226. version_type=sunos
  14227. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  14228. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  14229. shlibpath_var=LD_LIBRARY_PATH
  14230. shlibpath_overrides_runpath=yes
  14231. if test "$with_gnu_ld" = yes; then
  14232. need_lib_prefix=no
  14233. fi
  14234. need_version=yes
  14235. ;;
  14236. sysv4 | sysv4.3*)
  14237. version_type=linux
  14238. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  14239. soname_spec='${libname}${release}${shared_ext}$major'
  14240. shlibpath_var=LD_LIBRARY_PATH
  14241. case $host_vendor in
  14242. sni)
  14243. shlibpath_overrides_runpath=no
  14244. need_lib_prefix=no
  14245. runpath_var=LD_RUN_PATH
  14246. ;;
  14247. siemens)
  14248. need_lib_prefix=no
  14249. ;;
  14250. motorola)
  14251. need_lib_prefix=no
  14252. need_version=no
  14253. shlibpath_overrides_runpath=no
  14254. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  14255. ;;
  14256. esac
  14257. ;;
  14258. sysv4*MP*)
  14259. if test -d /usr/nec ;then
  14260. version_type=linux
  14261. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  14262. soname_spec='$libname${shared_ext}.$major'
  14263. shlibpath_var=LD_LIBRARY_PATH
  14264. fi
  14265. ;;
  14266. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  14267. version_type=freebsd-elf
  14268. need_lib_prefix=no
  14269. need_version=no
  14270. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  14271. soname_spec='${libname}${release}${shared_ext}$major'
  14272. shlibpath_var=LD_LIBRARY_PATH
  14273. shlibpath_overrides_runpath=yes
  14274. hardcode_into_libs=yes
  14275. if test "$with_gnu_ld" = yes; then
  14276. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  14277. else
  14278. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  14279. case $host_os in
  14280. sco3.2v5*)
  14281. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  14282. ;;
  14283. esac
  14284. fi
  14285. sys_lib_dlsearch_path_spec='/usr/lib'
  14286. ;;
  14287. tpf*)
  14288. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  14289. version_type=linux
  14290. need_lib_prefix=no
  14291. need_version=no
  14292. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  14293. shlibpath_var=LD_LIBRARY_PATH
  14294. shlibpath_overrides_runpath=no
  14295. hardcode_into_libs=yes
  14296. ;;
  14297. uts4*)
  14298. version_type=linux
  14299. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  14300. soname_spec='${libname}${release}${shared_ext}$major'
  14301. shlibpath_var=LD_LIBRARY_PATH
  14302. ;;
  14303. *)
  14304. dynamic_linker=no
  14305. ;;
  14306. esac
  14307. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  14308. $as_echo "$dynamic_linker" >&6; }
  14309. test "$dynamic_linker" = no && can_build_shared=no
  14310. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  14311. if test "$GCC" = yes; then
  14312. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  14313. fi
  14314. if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  14315. sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  14316. fi
  14317. if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  14318. sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  14319. fi
  14320. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  14321. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  14322. hardcode_action_CXX=
  14323. if test -n "$hardcode_libdir_flag_spec_CXX" ||
  14324. test -n "$runpath_var_CXX" ||
  14325. test "X$hardcode_automatic_CXX" = "Xyes" ; then
  14326. # We can hardcode non-existent directories.
  14327. if test "$hardcode_direct_CXX" != no &&
  14328. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  14329. # have to relink, otherwise we might link with an installed library
  14330. # when we should be linking with a yet-to-be-installed one
  14331. ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
  14332. test "$hardcode_minus_L_CXX" != no; then
  14333. # Linking always hardcodes the temporary library directory.
  14334. hardcode_action_CXX=relink
  14335. else
  14336. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  14337. hardcode_action_CXX=immediate
  14338. fi
  14339. else
  14340. # We cannot hardcode anything, or else we can only hardcode existing
  14341. # directories.
  14342. hardcode_action_CXX=unsupported
  14343. fi
  14344. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
  14345. $as_echo "$hardcode_action_CXX" >&6; }
  14346. if test "$hardcode_action_CXX" = relink ||
  14347. test "$inherit_rpath_CXX" = yes; then
  14348. # Fast installation is not supported
  14349. enable_fast_install=no
  14350. elif test "$shlibpath_overrides_runpath" = yes ||
  14351. test "$enable_shared" = no; then
  14352. # Fast installation is not necessary
  14353. enable_fast_install=needless
  14354. fi
  14355. fi # test -n "$compiler"
  14356. CC=$lt_save_CC
  14357. LDCXX=$LD
  14358. LD=$lt_save_LD
  14359. GCC=$lt_save_GCC
  14360. with_gnu_ld=$lt_save_with_gnu_ld
  14361. lt_cv_path_LDCXX=$lt_cv_path_LD
  14362. lt_cv_path_LD=$lt_save_path_LD
  14363. lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
  14364. lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
  14365. fi # test "$_lt_caught_CXX_error" != yes
  14366. ac_ext=c
  14367. ac_cpp='$CPP $CPPFLAGS'
  14368. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  14369. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  14370. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  14371. # Handle -Werror default case.
  14372. if test "$ENABLE_WERROR" = default; then
  14373. case "$host_os" in
  14374. *linux*)
  14375. if test "$GCC" = yes; then
  14376. ENABLE_WERROR=yes
  14377. fi
  14378. ;;
  14379. esac
  14380. fi
  14381. if test "x${COMPILE_COLLECTIONS}" = xyes; then
  14382. # Extract the first word of "perl", so it can be a program name with args.
  14383. set dummy perl; ac_word=$2
  14384. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  14385. $as_echo_n "checking for $ac_word... " >&6; }
  14386. if test "${ac_cv_path_PERL+set}" = set; then :
  14387. $as_echo_n "(cached) " >&6
  14388. else
  14389. case $PERL in
  14390. [\\/]* | ?:[\\/]*)
  14391. ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
  14392. ;;
  14393. *)
  14394. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  14395. for as_dir in $PATH
  14396. do
  14397. IFS=$as_save_IFS
  14398. test -z "$as_dir" && as_dir=.
  14399. for ac_exec_ext in '' $ac_executable_extensions; do
  14400. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  14401. ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
  14402. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  14403. break 2
  14404. fi
  14405. done
  14406. done
  14407. IFS=$as_save_IFS
  14408. ;;
  14409. esac
  14410. fi
  14411. PERL=$ac_cv_path_PERL
  14412. if test -n "$PERL"; then
  14413. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
  14414. $as_echo "$PERL" >&6; }
  14415. else
  14416. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14417. $as_echo "no" >&6; }
  14418. fi
  14419. ac_config_files="$ac_config_files lib/mkcollections.pl"
  14420. ac_config_commands="$ac_config_commands mkcollections.pl"
  14421. fi
  14422. if test "x${COMPILE_JNI}" = xyes; then
  14423. { $as_echo "$as_me:${as_lineno-$LINENO}: checking __attribute__((,,))" >&5
  14424. $as_echo_n "checking __attribute__((,,))... " >&6; }
  14425. if test "${gcc_cv_c_gcc_attribute_supported+set}" = set; then :
  14426. $as_echo_n "(cached) " >&6
  14427. else
  14428. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14429. /* end confdefs.h. */
  14430. int
  14431. main ()
  14432. {
  14433. extern int testfunction(int x) __attribute__((,,))
  14434. ;
  14435. return 0;
  14436. }
  14437. _ACEOF
  14438. if ac_fn_c_try_compile "$LINENO"; then :
  14439. gcc_cv_c_gcc_attribute_supported=yes
  14440. else
  14441. gcc_cv_c_gcc_attribute_supported=no
  14442. fi
  14443. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14444. fi
  14445. if test "x$gcc_cv_c_gcc_attribute_supported" = xyes; then
  14446. true
  14447. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  14448. $as_echo "yes" >&6; }
  14449. $as_echo "#define HAVE_GNUC25_ATTRIB /**/" >>confdefs.h
  14450. else
  14451. true
  14452. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14453. $as_echo "no" >&6; }
  14454. fi
  14455. { $as_echo "$as_me:${as_lineno-$LINENO}: checking __attribute__((unused))" >&5
  14456. $as_echo_n "checking __attribute__((unused))... " >&6; }
  14457. if test "${gcc_cv_c_gcc_attribute_unused+set}" = set; then :
  14458. $as_echo_n "(cached) " >&6
  14459. else
  14460. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14461. /* end confdefs.h. */
  14462. int
  14463. main ()
  14464. {
  14465. extern int testfunction(int x) __attribute__((unused))
  14466. ;
  14467. return 0;
  14468. }
  14469. _ACEOF
  14470. if ac_fn_c_try_compile "$LINENO"; then :
  14471. gcc_cv_c_gcc_attribute_unused=yes
  14472. else
  14473. gcc_cv_c_gcc_attribute_unused=no
  14474. fi
  14475. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14476. fi
  14477. if test "x$gcc_cv_c_gcc_attribute_unused" = xyes; then
  14478. true
  14479. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  14480. $as_echo "yes" >&6; }
  14481. $as_echo "#define HAVE_GNUC25_UNUSED /**/" >>confdefs.h
  14482. else
  14483. true
  14484. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14485. $as_echo "no" >&6; }
  14486. fi
  14487. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  14488. $as_echo_n "checking for ANSI C header files... " >&6; }
  14489. if test "${ac_cv_header_stdc+set}" = set; then :
  14490. $as_echo_n "(cached) " >&6
  14491. else
  14492. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14493. /* end confdefs.h. */
  14494. #include <stdlib.h>
  14495. #include <stdarg.h>
  14496. #include <string.h>
  14497. #include <float.h>
  14498. int
  14499. main ()
  14500. {
  14501. ;
  14502. return 0;
  14503. }
  14504. _ACEOF
  14505. if ac_fn_c_try_compile "$LINENO"; then :
  14506. ac_cv_header_stdc=yes
  14507. else
  14508. ac_cv_header_stdc=no
  14509. fi
  14510. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14511. if test $ac_cv_header_stdc = yes; then
  14512. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  14513. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14514. /* end confdefs.h. */
  14515. #include <string.h>
  14516. _ACEOF
  14517. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  14518. $EGREP "memchr" >/dev/null 2>&1; then :
  14519. else
  14520. ac_cv_header_stdc=no
  14521. fi
  14522. rm -f conftest*
  14523. fi
  14524. if test $ac_cv_header_stdc = yes; then
  14525. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  14526. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14527. /* end confdefs.h. */
  14528. #include <stdlib.h>
  14529. _ACEOF
  14530. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  14531. $EGREP "free" >/dev/null 2>&1; then :
  14532. else
  14533. ac_cv_header_stdc=no
  14534. fi
  14535. rm -f conftest*
  14536. fi
  14537. if test $ac_cv_header_stdc = yes; then
  14538. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  14539. if test "$cross_compiling" = yes; then :
  14540. :
  14541. else
  14542. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14543. /* end confdefs.h. */
  14544. #include <ctype.h>
  14545. #include <stdlib.h>
  14546. #if ((' ' & 0x0FF) == 0x020)
  14547. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  14548. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  14549. #else
  14550. # define ISLOWER(c) \
  14551. (('a' <= (c) && (c) <= 'i') \
  14552. || ('j' <= (c) && (c) <= 'r') \
  14553. || ('s' <= (c) && (c) <= 'z'))
  14554. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  14555. #endif
  14556. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  14557. int
  14558. main ()
  14559. {
  14560. int i;
  14561. for (i = 0; i < 256; i++)
  14562. if (XOR (islower (i), ISLOWER (i))
  14563. || toupper (i) != TOUPPER (i))
  14564. return 2;
  14565. return 0;
  14566. }
  14567. _ACEOF
  14568. if ac_fn_c_try_run "$LINENO"; then :
  14569. else
  14570. ac_cv_header_stdc=no
  14571. fi
  14572. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  14573. conftest.$ac_objext conftest.beam conftest.$ac_ext
  14574. fi
  14575. fi
  14576. fi
  14577. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  14578. $as_echo "$ac_cv_header_stdc" >&6; }
  14579. if test $ac_cv_header_stdc = yes; then
  14580. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  14581. fi
  14582. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
  14583. $as_echo_n "checking size of void *... " >&6; }
  14584. if test "${ac_cv_sizeof_void_p+set}" = set; then :
  14585. $as_echo_n "(cached) " >&6
  14586. else
  14587. for ac_size in 4 8 1 2 16 12 ; do # List sizes in rough order of prevalence.
  14588. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14589. /* end confdefs.h. */
  14590. #include "confdefs.h"
  14591. #include <sys/types.h>
  14592. int
  14593. main ()
  14594. {
  14595. switch (0) case 0: case (sizeof (void *) == $ac_size):;
  14596. ;
  14597. return 0;
  14598. }
  14599. _ACEOF
  14600. if ac_fn_c_try_compile "$LINENO"; then :
  14601. ac_cv_sizeof_void_p=$ac_size
  14602. fi
  14603. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14604. if test x$ac_cv_sizeof_void_p != x ; then break; fi
  14605. done
  14606. fi
  14607. if test x$ac_cv_sizeof_void_p = x ; then
  14608. as_fn_error "cannot determine a size for void *" "$LINENO" 5
  14609. fi
  14610. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
  14611. $as_echo "$ac_cv_sizeof_void_p" >&6; }
  14612. cat >>confdefs.h <<_ACEOF
  14613. #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
  14614. _ACEOF
  14615. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
  14616. $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
  14617. if test "${ac_cv_c_bigendian+set}" = set; then :
  14618. $as_echo_n "(cached) " >&6
  14619. else
  14620. ac_cv_c_bigendian=unknown
  14621. # See if sys/param.h defines the BYTE_ORDER macro.
  14622. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14623. /* end confdefs.h. */
  14624. #include <sys/types.h>
  14625. #include <sys/param.h>
  14626. int
  14627. main ()
  14628. {
  14629. #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
  14630. bogus endian macros
  14631. #endif
  14632. ;
  14633. return 0;
  14634. }
  14635. _ACEOF
  14636. if ac_fn_c_try_compile "$LINENO"; then :
  14637. # It does; now see whether it defined to BIG_ENDIAN or not.
  14638. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14639. /* end confdefs.h. */
  14640. #include <sys/types.h>
  14641. #include <sys/param.h>
  14642. int
  14643. main ()
  14644. {
  14645. #if BYTE_ORDER != BIG_ENDIAN
  14646. not big endian
  14647. #endif
  14648. ;
  14649. return 0;
  14650. }
  14651. _ACEOF
  14652. if ac_fn_c_try_compile "$LINENO"; then :
  14653. ac_cv_c_bigendian=yes
  14654. else
  14655. ac_cv_c_bigendian=no
  14656. fi
  14657. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14658. fi
  14659. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14660. if test $ac_cv_c_bigendian = unknown; then
  14661. if test "$cross_compiling" = yes; then :
  14662. echo $ac_n "cross-compiling... " 2>&6
  14663. else
  14664. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14665. /* end confdefs.h. */
  14666. main () {
  14667. /* Are we little or big endian? From Harbison&Steele. */
  14668. union
  14669. {
  14670. long l;
  14671. char c[sizeof (long)];
  14672. } u;
  14673. u.l = 1;
  14674. exit (u.c[sizeof (long) - 1] == 1);
  14675. }
  14676. _ACEOF
  14677. if ac_fn_c_try_run "$LINENO"; then :
  14678. ac_cv_c_bigendian=no
  14679. else
  14680. ac_cv_c_bigendian=yes
  14681. fi
  14682. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  14683. conftest.$ac_objext conftest.beam conftest.$ac_ext
  14684. fi
  14685. fi
  14686. fi
  14687. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
  14688. $as_echo "$ac_cv_c_bigendian" >&6; }
  14689. if test $ac_cv_c_bigendian = unknown; then
  14690. { $as_echo "$as_me:${as_lineno-$LINENO}: checking to probe for byte ordering" >&5
  14691. $as_echo_n "checking to probe for byte ordering... " >&6; }
  14692. cat >conftest.c <<EOF
  14693. short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
  14694. short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
  14695. void _ascii() { char* s = (char*) ascii_mm; s = (char*) ascii_ii; }
  14696. short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
  14697. short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
  14698. void _ebcdic() { char* s = (char*) ebcdic_mm; s = (char*) ebcdic_ii; }
  14699. int main() { _ascii (); _ebcdic (); return 0; }
  14700. EOF
  14701. if test -f conftest.c ; then
  14702. if ${CC-cc} ${CFLAGS} -c conftest.c -o conftest.o && test -f conftest.o ; then
  14703. if test `grep -l BIGenDianSyS conftest.o` ; then
  14704. echo $ac_n ' big endian probe OK, ' 1>&6
  14705. ac_cv_c_bigendian=yes
  14706. fi
  14707. if test `grep -l LiTTleEnDian conftest.o` ; then
  14708. echo $ac_n ' little endian probe OK, ' 1>&6
  14709. if test $ac_cv_c_bigendian = yes ; then
  14710. ac_cv_c_bigendian=unknown;
  14711. else
  14712. ac_cv_c_bigendian=no
  14713. fi
  14714. fi
  14715. echo $ac_n 'guessing bigendian ... ' >&6
  14716. fi
  14717. fi
  14718. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
  14719. $as_echo "$ac_cv_c_bigendian" >&6; }
  14720. fi
  14721. if test $ac_cv_c_bigendian = yes; then
  14722. $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
  14723. $as_echo "#define HOST_WORDS_BIG_ENDIAN 1" >>confdefs.h
  14724. BYTEORDER=4321
  14725. else
  14726. BYTEORDER=1234
  14727. fi
  14728. cat >>confdefs.h <<_ACEOF
  14729. #define BYTEORDER $BYTEORDER
  14730. _ACEOF
  14731. if test $ac_cv_c_bigendian = unknown; then
  14732. as_fn_error "unknown endianess - sorry, please pre-set ac_cv_c_bigendian" "$LINENO" 5
  14733. fi
  14734. for ac_header in unistd.h sys/types.h sys/config.h sys/ioctl.h \
  14735. asm/ioctls.h \
  14736. inttypes.h stdint.h utime.h sys/utime.h sys/filio.h \
  14737. sys/time.h \
  14738. sys/select.h \
  14739. crt_externs.h \
  14740. fcntl.h \
  14741. sys/mman.h \
  14742. magic.h \
  14743. sys/event.h sys/epoll.h \
  14744. ifaddrs.h \
  14745. netinet/in_systm.h netinet/ip.h net/if.h \
  14746. sys/loadavg.h sys/sockio.h
  14747. do :
  14748. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  14749. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  14750. eval as_val=\$$as_ac_Header
  14751. if test "x$as_val" = x""yes; then :
  14752. cat >>confdefs.h <<_ACEOF
  14753. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  14754. _ACEOF
  14755. fi
  14756. done
  14757. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14758. /* end confdefs.h. */
  14759. #include <stdint.h>
  14760. _ACEOF
  14761. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  14762. $EGREP "uint32_t" >/dev/null 2>&1; then :
  14763. $as_echo "#define HAVE_INT32_DEFINED 1" >>confdefs.h
  14764. fi
  14765. rm -f conftest*
  14766. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14767. /* end confdefs.h. */
  14768. #include <inttypes.h>
  14769. _ACEOF
  14770. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  14771. $EGREP "uint32_t" >/dev/null 2>&1; then :
  14772. $as_echo "#define HAVE_INT32_DEFINED 1" >>confdefs.h
  14773. fi
  14774. rm -f conftest*
  14775. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14776. /* end confdefs.h. */
  14777. #include <sys/types.h>
  14778. _ACEOF
  14779. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  14780. $EGREP "u_int32_t" >/dev/null 2>&1; then :
  14781. $as_echo "#define HAVE_BSD_INT32_DEFINED 1" >>confdefs.h
  14782. fi
  14783. rm -f conftest*
  14784. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14785. /* end confdefs.h. */
  14786. #include <sys/config.h>
  14787. _ACEOF
  14788. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  14789. $EGREP "u_int32_t" >/dev/null 2>&1; then :
  14790. $as_echo "#define HAVE_BSD_INT32_DEFINED 1" >>confdefs.h
  14791. fi
  14792. rm -f conftest*
  14793. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
  14794. $as_echo_n "checking for library containing clock_gettime... " >&6; }
  14795. if test "${ac_cv_search_clock_gettime+set}" = set; then :
  14796. $as_echo_n "(cached) " >&6
  14797. else
  14798. ac_func_search_save_LIBS=$LIBS
  14799. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14800. /* end confdefs.h. */
  14801. /* Override any GCC internal prototype to avoid an error.
  14802. Use char because int might match the return type of a GCC
  14803. builtin and then its argument prototype would still apply. */
  14804. #ifdef __cplusplus
  14805. extern "C"
  14806. #endif
  14807. char clock_gettime ();
  14808. int
  14809. main ()
  14810. {
  14811. return clock_gettime ();
  14812. ;
  14813. return 0;
  14814. }
  14815. _ACEOF
  14816. for ac_lib in '' rt; do
  14817. if test -z "$ac_lib"; then
  14818. ac_res="none required"
  14819. else
  14820. ac_res=-l$ac_lib
  14821. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  14822. fi
  14823. if test x$gcc_no_link = xyes; then
  14824. as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  14825. fi
  14826. if ac_fn_c_try_link "$LINENO"; then :
  14827. ac_cv_search_clock_gettime=$ac_res
  14828. fi
  14829. rm -f core conftest.err conftest.$ac_objext \
  14830. conftest$ac_exeext
  14831. if test "${ac_cv_search_clock_gettime+set}" = set; then :
  14832. break
  14833. fi
  14834. done
  14835. if test "${ac_cv_search_clock_gettime+set}" = set; then :
  14836. else
  14837. ac_cv_search_clock_gettime=no
  14838. fi
  14839. rm conftest.$ac_ext
  14840. LIBS=$ac_func_search_save_LIBS
  14841. fi
  14842. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
  14843. $as_echo "$ac_cv_search_clock_gettime" >&6; }
  14844. ac_res=$ac_cv_search_clock_gettime
  14845. if test "$ac_res" != no; then :
  14846. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  14847. fi
  14848. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_pton" >&5
  14849. $as_echo_n "checking for library containing inet_pton... " >&6; }
  14850. if test "${ac_cv_search_inet_pton+set}" = set; then :
  14851. $as_echo_n "(cached) " >&6
  14852. else
  14853. ac_func_search_save_LIBS=$LIBS
  14854. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14855. /* end confdefs.h. */
  14856. /* Override any GCC internal prototype to avoid an error.
  14857. Use char because int might match the return type of a GCC
  14858. builtin and then its argument prototype would still apply. */
  14859. #ifdef __cplusplus
  14860. extern "C"
  14861. #endif
  14862. char inet_pton ();
  14863. int
  14864. main ()
  14865. {
  14866. return inet_pton ();
  14867. ;
  14868. return 0;
  14869. }
  14870. _ACEOF
  14871. for ac_lib in '' nsl; do
  14872. if test -z "$ac_lib"; then
  14873. ac_res="none required"
  14874. else
  14875. ac_res=-l$ac_lib
  14876. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  14877. fi
  14878. if test x$gcc_no_link = xyes; then
  14879. as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  14880. fi
  14881. if ac_fn_c_try_link "$LINENO"; then :
  14882. ac_cv_search_inet_pton=$ac_res
  14883. fi
  14884. rm -f core conftest.err conftest.$ac_objext \
  14885. conftest$ac_exeext
  14886. if test "${ac_cv_search_inet_pton+set}" = set; then :
  14887. break
  14888. fi
  14889. done
  14890. if test "${ac_cv_search_inet_pton+set}" = set; then :
  14891. else
  14892. ac_cv_search_inet_pton=no
  14893. fi
  14894. rm conftest.$ac_ext
  14895. LIBS=$ac_func_search_save_LIBS
  14896. fi
  14897. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_pton" >&5
  14898. $as_echo "$ac_cv_search_inet_pton" >&6; }
  14899. ac_res=$ac_cv_search_inet_pton
  14900. if test "$ac_res" != no; then :
  14901. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  14902. fi
  14903. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostname in -lsocket" >&5
  14904. $as_echo_n "checking for gethostname in -lsocket... " >&6; }
  14905. if test "${ac_cv_lib_socket_gethostname+set}" = set; then :
  14906. $as_echo_n "(cached) " >&6
  14907. else
  14908. ac_check_lib_save_LIBS=$LIBS
  14909. LIBS="-lsocket $LIBS"
  14910. if test x$gcc_no_link = xyes; then
  14911. as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  14912. fi
  14913. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14914. /* end confdefs.h. */
  14915. /* Override any GCC internal prototype to avoid an error.
  14916. Use char because int might match the return type of a GCC
  14917. builtin and then its argument prototype would still apply. */
  14918. #ifdef __cplusplus
  14919. extern "C"
  14920. #endif
  14921. char gethostname ();
  14922. int
  14923. main ()
  14924. {
  14925. return gethostname ();
  14926. ;
  14927. return 0;
  14928. }
  14929. _ACEOF
  14930. if ac_fn_c_try_link "$LINENO"; then :
  14931. ac_cv_lib_socket_gethostname=yes
  14932. else
  14933. ac_cv_lib_socket_gethostname=no
  14934. fi
  14935. rm -f core conftest.err conftest.$ac_objext \
  14936. conftest$ac_exeext conftest.$ac_ext
  14937. LIBS=$ac_check_lib_save_LIBS
  14938. fi
  14939. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_gethostname" >&5
  14940. $as_echo "$ac_cv_lib_socket_gethostname" >&6; }
  14941. if test "x$ac_cv_lib_socket_gethostname" = x""yes; then :
  14942. cat >>confdefs.h <<_ACEOF
  14943. #define HAVE_LIBSOCKET 1
  14944. _ACEOF
  14945. LIBS="-lsocket $LIBS"
  14946. fi
  14947. for ac_func in ftruncate fsync select \
  14948. gethostname socket strerror fork pipe execve open close \
  14949. lseek fstat read readv write writev htonl memset htons connect \
  14950. getsockname getpeername bind listen accept \
  14951. recvfrom send sendto setsockopt getsockopt time mktime clock_gettime \
  14952. gethostbyname_r localtime_r \
  14953. strerror_r \
  14954. fcntl \
  14955. statvfs \
  14956. mmap munmap mincore msync madvise getpagesize sysconf \
  14957. lstat readlink \
  14958. inet_aton inet_addr inet_pton \
  14959. getifaddrs kqueue kevent epoll_create \
  14960. getloadavg
  14961. do :
  14962. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  14963. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  14964. eval as_val=\$$as_ac_var
  14965. if test "x$as_val" = x""yes; then :
  14966. cat >>confdefs.h <<_ACEOF
  14967. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  14968. _ACEOF
  14969. fi
  14970. done
  14971. LIBMAGIC=
  14972. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for magic_open in -lmagic" >&5
  14973. $as_echo_n "checking for magic_open in -lmagic... " >&6; }
  14974. if test "${ac_cv_lib_magic_magic_open+set}" = set; then :
  14975. $as_echo_n "(cached) " >&6
  14976. else
  14977. ac_check_lib_save_LIBS=$LIBS
  14978. LIBS="-lmagic $LIBS"
  14979. if test x$gcc_no_link = xyes; then
  14980. as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  14981. fi
  14982. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14983. /* end confdefs.h. */
  14984. /* Override any GCC internal prototype to avoid an error.
  14985. Use char because int might match the return type of a GCC
  14986. builtin and then its argument prototype would still apply. */
  14987. #ifdef __cplusplus
  14988. extern "C"
  14989. #endif
  14990. char magic_open ();
  14991. int
  14992. main ()
  14993. {
  14994. return magic_open ();
  14995. ;
  14996. return 0;
  14997. }
  14998. _ACEOF
  14999. if ac_fn_c_try_link "$LINENO"; then :
  15000. ac_cv_lib_magic_magic_open=yes
  15001. else
  15002. ac_cv_lib_magic_magic_open=no
  15003. fi
  15004. rm -f core conftest.err conftest.$ac_objext \
  15005. conftest$ac_exeext conftest.$ac_ext
  15006. LIBS=$ac_check_lib_save_LIBS
  15007. fi
  15008. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_magic_magic_open" >&5
  15009. $as_echo "$ac_cv_lib_magic_magic_open" >&6; }
  15010. if test "x$ac_cv_lib_magic_magic_open" = x""yes; then :
  15011. LIBMAGIC=-lmagic
  15012. fi
  15013. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct sockaddr_in6 is in netinet/in.h" >&5
  15014. $as_echo_n "checking whether struct sockaddr_in6 is in netinet/in.h... " >&6; }
  15015. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15016. /* end confdefs.h. */
  15017. #include <netinet/in.h>
  15018. int
  15019. main ()
  15020. {
  15021. struct sockaddr_in6 addr6;
  15022. ;
  15023. return 0;
  15024. }
  15025. _ACEOF
  15026. if ac_fn_c_try_compile "$LINENO"; then :
  15027. $as_echo "#define HAVE_INET6 1" >>confdefs.h
  15028. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15029. $as_echo "yes" >&6; }
  15030. else
  15031. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15032. $as_echo "no" >&6; }
  15033. fi
  15034. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15035. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
  15036. $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
  15037. if test "${ac_cv_header_time+set}" = set; then :
  15038. $as_echo_n "(cached) " >&6
  15039. else
  15040. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15041. /* end confdefs.h. */
  15042. #include <sys/types.h>
  15043. #include <sys/time.h>
  15044. #include <time.h>
  15045. int
  15046. main ()
  15047. {
  15048. if ((struct tm *) 0)
  15049. return 0;
  15050. ;
  15051. return 0;
  15052. }
  15053. _ACEOF
  15054. if ac_fn_c_try_compile "$LINENO"; then :
  15055. ac_cv_header_time=yes
  15056. else
  15057. ac_cv_header_time=no
  15058. fi
  15059. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15060. fi
  15061. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
  15062. $as_echo "$ac_cv_header_time" >&6; }
  15063. if test $ac_cv_header_time = yes; then
  15064. $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
  15065. fi
  15066. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
  15067. $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
  15068. if test "${ac_cv_struct_tm+set}" = set; then :
  15069. $as_echo_n "(cached) " >&6
  15070. else
  15071. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15072. /* end confdefs.h. */
  15073. #include <sys/types.h>
  15074. #include <time.h>
  15075. int
  15076. main ()
  15077. {
  15078. struct tm tm;
  15079. int *p = &tm.tm_sec;
  15080. return !p;
  15081. ;
  15082. return 0;
  15083. }
  15084. _ACEOF
  15085. if ac_fn_c_try_compile "$LINENO"; then :
  15086. ac_cv_struct_tm=time.h
  15087. else
  15088. ac_cv_struct_tm=sys/time.h
  15089. fi
  15090. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15091. fi
  15092. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
  15093. $as_echo "$ac_cv_struct_tm" >&6; }
  15094. if test $ac_cv_struct_tm = sys/time.h; then
  15095. $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
  15096. fi
  15097. ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
  15098. #include <$ac_cv_struct_tm>
  15099. "
  15100. if test "x$ac_cv_member_struct_tm_tm_zone" = x""yes; then :
  15101. cat >>confdefs.h <<_ACEOF
  15102. #define HAVE_STRUCT_TM_TM_ZONE 1
  15103. _ACEOF
  15104. fi
  15105. if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
  15106. $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
  15107. else
  15108. ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
  15109. "
  15110. if test "x$ac_cv_have_decl_tzname" = x""yes; then :
  15111. ac_have_decl=1
  15112. else
  15113. ac_have_decl=0
  15114. fi
  15115. cat >>confdefs.h <<_ACEOF
  15116. #define HAVE_DECL_TZNAME $ac_have_decl
  15117. _ACEOF
  15118. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
  15119. $as_echo_n "checking for tzname... " >&6; }
  15120. if test "${ac_cv_var_tzname+set}" = set; then :
  15121. $as_echo_n "(cached) " >&6
  15122. else
  15123. if test x$gcc_no_link = xyes; then
  15124. as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  15125. fi
  15126. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15127. /* end confdefs.h. */
  15128. #include <time.h>
  15129. #if !HAVE_DECL_TZNAME
  15130. extern char *tzname[];
  15131. #endif
  15132. int
  15133. main ()
  15134. {
  15135. return tzname[0][0];
  15136. ;
  15137. return 0;
  15138. }
  15139. _ACEOF
  15140. if ac_fn_c_try_link "$LINENO"; then :
  15141. ac_cv_var_tzname=yes
  15142. else
  15143. ac_cv_var_tzname=no
  15144. fi
  15145. rm -f core conftest.err conftest.$ac_objext \
  15146. conftest$ac_exeext conftest.$ac_ext
  15147. fi
  15148. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
  15149. $as_echo "$ac_cv_var_tzname" >&6; }
  15150. if test $ac_cv_var_tzname = yes; then
  15151. $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
  15152. fi
  15153. fi
  15154. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tm_gmtoff in struct tm" >&5
  15155. $as_echo_n "checking for tm_gmtoff in struct tm... " >&6; }
  15156. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15157. /* end confdefs.h. */
  15158. #include <time.h>
  15159. int
  15160. main ()
  15161. {
  15162. struct tm tim; tim.tm_gmtoff = 0;
  15163. ;
  15164. return 0;
  15165. }
  15166. _ACEOF
  15167. if ac_fn_c_try_compile "$LINENO"; then :
  15168. $as_echo "#define STRUCT_TM_HAS_GMTOFF 1" >>confdefs.h
  15169. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15170. $as_echo "yes" >&6; }
  15171. else
  15172. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15173. $as_echo "no" >&6; }
  15174. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for global timezone variable" >&5
  15175. $as_echo_n "checking for global timezone variable... " >&6; }
  15176. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15177. /* end confdefs.h. */
  15178. #include <time.h>
  15179. int
  15180. main ()
  15181. {
  15182. void i(){long z2 = 2*timezone;}
  15183. ;
  15184. return 0;
  15185. }
  15186. _ACEOF
  15187. if ac_fn_c_try_compile "$LINENO"; then :
  15188. $as_echo "#define HAVE_TIMEZONE 1" >>confdefs.h
  15189. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15190. $as_echo "yes" >&6; }
  15191. else
  15192. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15193. $as_echo "no" >&6; }
  15194. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for global _timezone variable" >&5
  15195. $as_echo_n "checking for global _timezone variable... " >&6; }
  15196. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15197. /* end confdefs.h. */
  15198. #include <time.h>
  15199. int
  15200. main ()
  15201. {
  15202. long z2 = _timezone;
  15203. ;
  15204. return 0;
  15205. }
  15206. _ACEOF
  15207. if ac_fn_c_try_compile "$LINENO"; then :
  15208. $as_echo "#define HAVE_UNDERSCORE_TIMEZONE 1" >>confdefs.h
  15209. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15210. $as_echo "yes" >&6; }
  15211. else
  15212. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15213. $as_echo "no" >&6; }
  15214. fi
  15215. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15216. fi
  15217. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15218. fi
  15219. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15220. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
  15221. $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
  15222. if test "${ac_cv_c_const+set}" = set; then :
  15223. $as_echo_n "(cached) " >&6
  15224. else
  15225. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15226. /* end confdefs.h. */
  15227. int
  15228. main ()
  15229. {
  15230. /* FIXME: Include the comments suggested by Paul. */
  15231. #ifndef __cplusplus
  15232. /* Ultrix mips cc rejects this. */
  15233. typedef int charset[2];
  15234. const charset cs;
  15235. /* SunOS 4.1.1 cc rejects this. */
  15236. char const *const *pcpcc;
  15237. char **ppc;
  15238. /* NEC SVR4.0.2 mips cc rejects this. */
  15239. struct point {int x, y;};
  15240. static struct point const zero = {0,0};
  15241. /* AIX XL C 1.02.0.0 rejects this.
  15242. It does not let you subtract one const X* pointer from another in
  15243. an arm of an if-expression whose if-part is not a constant
  15244. expression */
  15245. const char *g = "string";
  15246. pcpcc = &g + (g ? g-g : 0);
  15247. /* HPUX 7.0 cc rejects these. */
  15248. ++pcpcc;
  15249. ppc = (char**) pcpcc;
  15250. pcpcc = (char const *const *) ppc;
  15251. { /* SCO 3.2v4 cc rejects this. */
  15252. char *t;
  15253. char const *s = 0 ? (char *) 0 : (char const *) 0;
  15254. *t++ = 0;
  15255. if (s) return 0;
  15256. }
  15257. { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
  15258. int x[] = {25, 17};
  15259. const int *foo = &x[0];
  15260. ++foo;
  15261. }
  15262. { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  15263. typedef const int *iptr;
  15264. iptr p = 0;
  15265. ++p;
  15266. }
  15267. { /* AIX XL C 1.02.0.0 rejects this saying
  15268. "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  15269. struct s { int j; const int *ap[3]; };
  15270. struct s *b; b->j = 5;
  15271. }
  15272. { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  15273. const int foo = 10;
  15274. if (!foo) return 0;
  15275. }
  15276. return !cs[0] && !zero.x;
  15277. #endif
  15278. ;
  15279. return 0;
  15280. }
  15281. _ACEOF
  15282. if ac_fn_c_try_compile "$LINENO"; then :
  15283. ac_cv_c_const=yes
  15284. else
  15285. ac_cv_c_const=no
  15286. fi
  15287. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15288. fi
  15289. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
  15290. $as_echo "$ac_cv_c_const" >&6; }
  15291. if test $ac_cv_c_const = no; then
  15292. $as_echo "#define const /**/" >>confdefs.h
  15293. fi
  15294. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
  15295. $as_echo_n "checking for inline... " >&6; }
  15296. if test "${ac_cv_c_inline+set}" = set; then :
  15297. $as_echo_n "(cached) " >&6
  15298. else
  15299. ac_cv_c_inline=no
  15300. for ac_kw in inline __inline__ __inline; do
  15301. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15302. /* end confdefs.h. */
  15303. #ifndef __cplusplus
  15304. typedef int foo_t;
  15305. static $ac_kw foo_t static_foo () {return 0; }
  15306. $ac_kw foo_t foo () {return 0; }
  15307. #endif
  15308. _ACEOF
  15309. if ac_fn_c_try_compile "$LINENO"; then :
  15310. ac_cv_c_inline=$ac_kw
  15311. fi
  15312. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15313. test "$ac_cv_c_inline" != no && break
  15314. done
  15315. fi
  15316. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
  15317. $as_echo "$ac_cv_c_inline" >&6; }
  15318. case $ac_cv_c_inline in
  15319. inline | yes) ;;
  15320. *)
  15321. case $ac_cv_c_inline in
  15322. no) ac_val=;;
  15323. *) ac_val=$ac_cv_c_inline;;
  15324. esac
  15325. cat >>confdefs.h <<_ACEOF
  15326. #ifndef __cplusplus
  15327. #define inline $ac_val
  15328. #endif
  15329. _ACEOF
  15330. ;;
  15331. esac
  15332. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__" >&5
  15333. $as_echo_n "checking for __attribute__... " >&6; }
  15334. if test "${ac_cv_c_attribute+set}" = set; then :
  15335. $as_echo_n "(cached) " >&6
  15336. else
  15337. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15338. /* end confdefs.h. */
  15339. void foo(void) __attribute__ ((__noreturn__));
  15340. _ACEOF
  15341. if ac_fn_c_try_compile "$LINENO"; then :
  15342. ac_cv_c_attribute=yes
  15343. else
  15344. ac_cv_c_attribute=no
  15345. fi
  15346. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15347. fi
  15348. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_attribute" >&5
  15349. $as_echo "$ac_cv_c_attribute" >&6; }
  15350. case $ac_cv_c_attribute in
  15351. yes) ;;
  15352. no)
  15353. cat >>confdefs.h <<_ACEOF
  15354. #define __attribute__(x) /* nothing */
  15355. _ACEOF
  15356. ;;
  15357. esac
  15358. ac_ext=c
  15359. ac_cpp='$CPP $CPPFLAGS'
  15360. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  15361. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  15362. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  15363. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how many arguments gethostbyname_r() takes" >&5
  15364. $as_echo_n "checking how many arguments gethostbyname_r() takes... " >&6; }
  15365. if test "${ac_cv_func_which_gethostbyname_r+set}" = set; then :
  15366. $as_echo_n "(cached) " >&6
  15367. else
  15368. ################################################################
  15369. ac_cv_func_which_gethostbyname_r=unknown
  15370. #
  15371. # ONE ARGUMENT (sanity check)
  15372. #
  15373. # This should fail, as there is no variant of gethostbyname_r() that takes
  15374. # a single argument. If it actually compiles, then we can assume that
  15375. # netdb.h is not declaring the function, and the compiler is thereby
  15376. # assuming an implicit prototype. In which case, we're out of luck.
  15377. #
  15378. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15379. /* end confdefs.h. */
  15380. #include <netdb.h>
  15381. int
  15382. main ()
  15383. {
  15384. char *name = "www.gnu.org";
  15385. (void)gethostbyname_r(name) /* ; */
  15386. ;
  15387. return 0;
  15388. }
  15389. _ACEOF
  15390. if ac_fn_c_try_compile "$LINENO"; then :
  15391. ac_cv_func_which_gethostbyname_r=no
  15392. fi
  15393. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15394. #
  15395. # SIX ARGUMENTS
  15396. # (e.g. Linux)
  15397. #
  15398. if test "$ac_cv_func_which_gethostbyname_r" = "unknown"; then
  15399. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15400. /* end confdefs.h. */
  15401. #include <netdb.h>
  15402. int
  15403. main ()
  15404. {
  15405. char *name = "www.gnu.org";
  15406. struct hostent ret, *retp;
  15407. char buf[1024];
  15408. int buflen = 1024;
  15409. int my_h_errno;
  15410. (void)gethostbyname_r(name, &ret, buf, buflen, &retp, &my_h_errno) /* ; */
  15411. ;
  15412. return 0;
  15413. }
  15414. _ACEOF
  15415. if ac_fn_c_try_compile "$LINENO"; then :
  15416. ac_cv_func_which_gethostbyname_r=six
  15417. fi
  15418. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15419. fi
  15420. #
  15421. # FIVE ARGUMENTS
  15422. # (e.g. Solaris)
  15423. #
  15424. if test "$ac_cv_func_which_gethostbyname_r" = "unknown"; then
  15425. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15426. /* end confdefs.h. */
  15427. #include <netdb.h>
  15428. int
  15429. main ()
  15430. {
  15431. char *name = "www.gnu.org";
  15432. struct hostent ret;
  15433. char buf[1024];
  15434. int buflen = 1024;
  15435. int my_h_errno;
  15436. (void)gethostbyname_r(name, &ret, buf, buflen, &my_h_errno) /* ; */
  15437. ;
  15438. return 0;
  15439. }
  15440. _ACEOF
  15441. if ac_fn_c_try_compile "$LINENO"; then :
  15442. ac_cv_func_which_gethostbyname_r=five
  15443. fi
  15444. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15445. fi
  15446. #
  15447. # THREE ARGUMENTS
  15448. # (e.g. AIX, HP-UX, Tru64)
  15449. #
  15450. if test "$ac_cv_func_which_gethostbyname_r" = "unknown"; then
  15451. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15452. /* end confdefs.h. */
  15453. #include <netdb.h>
  15454. int
  15455. main ()
  15456. {
  15457. char *name = "www.gnu.org";
  15458. struct hostent ret;
  15459. struct hostent_data data;
  15460. (void)gethostbyname_r(name, &ret, &data) /* ; */
  15461. ;
  15462. return 0;
  15463. }
  15464. _ACEOF
  15465. if ac_fn_c_try_compile "$LINENO"; then :
  15466. ac_cv_func_which_gethostbyname_r=three
  15467. fi
  15468. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15469. fi
  15470. ################################################################
  15471. fi
  15472. case "$ac_cv_func_which_gethostbyname_r" in
  15473. three)
  15474. { $as_echo "$as_me:${as_lineno-$LINENO}: result: three" >&5
  15475. $as_echo "three" >&6; }
  15476. $as_echo "#define HAVE_FUNC_GETHOSTBYNAME_R_3 1" >>confdefs.h
  15477. ;;
  15478. five)
  15479. { $as_echo "$as_me:${as_lineno-$LINENO}: result: five" >&5
  15480. $as_echo "five" >&6; }
  15481. $as_echo "#define HAVE_FUNC_GETHOSTBYNAME_R_5 1" >>confdefs.h
  15482. ;;
  15483. six)
  15484. { $as_echo "$as_me:${as_lineno-$LINENO}: result: six" >&5
  15485. $as_echo "six" >&6; }
  15486. $as_echo "#define HAVE_FUNC_GETHOSTBYNAME_R_6 1" >>confdefs.h
  15487. ;;
  15488. no)
  15489. { $as_echo "$as_me:${as_lineno-$LINENO}: result: cannot find function declaration in netdb.h" >&5
  15490. $as_echo "cannot find function declaration in netdb.h" >&6; }
  15491. ;;
  15492. unknown)
  15493. { $as_echo "$as_me:${as_lineno-$LINENO}: result: can't tell" >&5
  15494. $as_echo "can't tell" >&6; }
  15495. ;;
  15496. *)
  15497. as_fn_error "internal error" "$LINENO" 5
  15498. ;;
  15499. esac
  15500. ac_ext=c
  15501. ac_cpp='$CPP $CPPFLAGS'
  15502. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  15503. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  15504. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  15505. if test "X$prefix" = "XNONE"; then
  15506. acl_final_prefix="$ac_default_prefix"
  15507. else
  15508. acl_final_prefix="$prefix"
  15509. fi
  15510. if test "X$exec_prefix" = "XNONE"; then
  15511. acl_final_exec_prefix='${prefix}'
  15512. else
  15513. acl_final_exec_prefix="$exec_prefix"
  15514. fi
  15515. acl_save_prefix="$prefix"
  15516. prefix="$acl_final_prefix"
  15517. eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
  15518. prefix="$acl_save_prefix"
  15519. # Check whether --with-gnu-ld was given.
  15520. if test "${with_gnu_ld+set}" = set; then :
  15521. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  15522. else
  15523. with_gnu_ld=no
  15524. fi
  15525. # Prepare PATH_SEPARATOR.
  15526. # The user is always right.
  15527. if test "${PATH_SEPARATOR+set}" != set; then
  15528. echo "#! /bin/sh" >conf$$.sh
  15529. echo "exit 0" >>conf$$.sh
  15530. chmod +x conf$$.sh
  15531. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  15532. PATH_SEPARATOR=';'
  15533. else
  15534. PATH_SEPARATOR=:
  15535. fi
  15536. rm -f conf$$.sh
  15537. fi
  15538. ac_prog=ld
  15539. if test "$GCC" = yes; then
  15540. # Check if gcc -print-prog-name=ld gives a path.
  15541. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
  15542. $as_echo_n "checking for ld used by GCC... " >&6; }
  15543. case $host in
  15544. *-*-mingw*)
  15545. # gcc leaves a trailing carriage return which upsets mingw
  15546. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  15547. *)
  15548. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  15549. esac
  15550. case $ac_prog in
  15551. # Accept absolute paths.
  15552. [\\/]* | [A-Za-z]:[\\/]*)
  15553. re_direlt='/[^/][^/]*/\.\./'
  15554. # Canonicalize the path of ld
  15555. ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
  15556. while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
  15557. ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
  15558. done
  15559. test -z "$LD" && LD="$ac_prog"
  15560. ;;
  15561. "")
  15562. # If it fails, then pretend we aren't using GCC.
  15563. ac_prog=ld
  15564. ;;
  15565. *)
  15566. # If it is relative, then search for the first ld in PATH.
  15567. with_gnu_ld=unknown
  15568. ;;
  15569. esac
  15570. elif test "$with_gnu_ld" = yes; then
  15571. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  15572. $as_echo_n "checking for GNU ld... " >&6; }
  15573. else
  15574. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  15575. $as_echo_n "checking for non-GNU ld... " >&6; }
  15576. fi
  15577. if test "${acl_cv_path_LD+set}" = set; then :
  15578. $as_echo_n "(cached) " >&6
  15579. else
  15580. if test -z "$LD"; then
  15581. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
  15582. for ac_dir in $PATH; do
  15583. test -z "$ac_dir" && ac_dir=.
  15584. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  15585. acl_cv_path_LD="$ac_dir/$ac_prog"
  15586. # Check to see if the program is GNU ld. I'd rather use --version,
  15587. # but apparently some GNU ld's only accept -v.
  15588. # Break only if it was the GNU/non-GNU ld that we prefer.
  15589. case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
  15590. *GNU* | *'with BFD'*)
  15591. test "$with_gnu_ld" != no && break ;;
  15592. *)
  15593. test "$with_gnu_ld" != yes && break ;;
  15594. esac
  15595. fi
  15596. done
  15597. IFS="$ac_save_ifs"
  15598. else
  15599. acl_cv_path_LD="$LD" # Let the user override the test with a path.
  15600. fi
  15601. fi
  15602. LD="$acl_cv_path_LD"
  15603. if test -n "$LD"; then
  15604. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  15605. $as_echo "$LD" >&6; }
  15606. else
  15607. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15608. $as_echo "no" >&6; }
  15609. fi
  15610. test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
  15611. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  15612. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  15613. if test "${acl_cv_prog_gnu_ld+set}" = set; then :
  15614. $as_echo_n "(cached) " >&6
  15615. else
  15616. # I'd rather use --version here, but apparently some GNU ld's only accept -v.
  15617. case `$LD -v 2>&1 </dev/null` in
  15618. *GNU* | *'with BFD'*)
  15619. acl_cv_prog_gnu_ld=yes ;;
  15620. *)
  15621. acl_cv_prog_gnu_ld=no ;;
  15622. esac
  15623. fi
  15624. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
  15625. $as_echo "$acl_cv_prog_gnu_ld" >&6; }
  15626. with_gnu_ld=$acl_cv_prog_gnu_ld
  15627. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
  15628. $as_echo_n "checking for shared library run path origin... " >&6; }
  15629. if test "${acl_cv_rpath+set}" = set; then :
  15630. $as_echo_n "(cached) " >&6
  15631. else
  15632. CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
  15633. ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
  15634. . ./conftest.sh
  15635. rm -f ./conftest.sh
  15636. acl_cv_rpath=done
  15637. fi
  15638. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
  15639. $as_echo "$acl_cv_rpath" >&6; }
  15640. wl="$acl_cv_wl"
  15641. acl_libext="$acl_cv_libext"
  15642. acl_shlibext="$acl_cv_shlibext"
  15643. acl_libname_spec="$acl_cv_libname_spec"
  15644. acl_library_names_spec="$acl_cv_library_names_spec"
  15645. acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
  15646. acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
  15647. acl_hardcode_direct="$acl_cv_hardcode_direct"
  15648. acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
  15649. # Check whether --enable-rpath was given.
  15650. if test "${enable_rpath+set}" = set; then :
  15651. enableval=$enable_rpath; :
  15652. else
  15653. enable_rpath=yes
  15654. fi
  15655. acl_libdirstem=lib
  15656. acl_libdirstem2=
  15657. case "$host_os" in
  15658. solaris*)
  15659. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit host" >&5
  15660. $as_echo_n "checking for 64-bit host... " >&6; }
  15661. if test "${gl_cv_solaris_64bit+set}" = set; then :
  15662. $as_echo_n "(cached) " >&6
  15663. else
  15664. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15665. /* end confdefs.h. */
  15666. #ifdef _LP64
  15667. sixtyfour bits
  15668. #endif
  15669. _ACEOF
  15670. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  15671. $EGREP "sixtyfour bits" >/dev/null 2>&1; then :
  15672. gl_cv_solaris_64bit=yes
  15673. else
  15674. gl_cv_solaris_64bit=no
  15675. fi
  15676. rm -f conftest*
  15677. fi
  15678. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_solaris_64bit" >&5
  15679. $as_echo "$gl_cv_solaris_64bit" >&6; }
  15680. if test $gl_cv_solaris_64bit = yes; then
  15681. acl_libdirstem=lib/64
  15682. case "$host_cpu" in
  15683. sparc*) acl_libdirstem2=lib/sparcv9 ;;
  15684. i*86 | x86_64) acl_libdirstem2=lib/amd64 ;;
  15685. esac
  15686. fi
  15687. ;;
  15688. *)
  15689. searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
  15690. if test -n "$searchpath"; then
  15691. acl_save_IFS="${IFS= }"; IFS=":"
  15692. for searchdir in $searchpath; do
  15693. if test -d "$searchdir"; then
  15694. case "$searchdir" in
  15695. */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
  15696. */../ | */.. )
  15697. # Better ignore directories of this form. They are misleading.
  15698. ;;
  15699. *) searchdir=`cd "$searchdir" && pwd`
  15700. case "$searchdir" in
  15701. */lib64 ) acl_libdirstem=lib64 ;;
  15702. esac ;;
  15703. esac
  15704. fi
  15705. done
  15706. IFS="$acl_save_IFS"
  15707. fi
  15708. ;;
  15709. esac
  15710. test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem"
  15711. use_additional=yes
  15712. acl_save_prefix="$prefix"
  15713. prefix="$acl_final_prefix"
  15714. acl_save_exec_prefix="$exec_prefix"
  15715. exec_prefix="$acl_final_exec_prefix"
  15716. eval additional_includedir=\"$includedir\"
  15717. eval additional_libdir=\"$libdir\"
  15718. exec_prefix="$acl_save_exec_prefix"
  15719. prefix="$acl_save_prefix"
  15720. # Check whether --with-libiconv-prefix was given.
  15721. if test "${with_libiconv_prefix+set}" = set; then :
  15722. withval=$with_libiconv_prefix;
  15723. if test "X$withval" = "Xno"; then
  15724. use_additional=no
  15725. else
  15726. if test "X$withval" = "X"; then
  15727. acl_save_prefix="$prefix"
  15728. prefix="$acl_final_prefix"
  15729. acl_save_exec_prefix="$exec_prefix"
  15730. exec_prefix="$acl_final_exec_prefix"
  15731. eval additional_includedir=\"$includedir\"
  15732. eval additional_libdir=\"$libdir\"
  15733. exec_prefix="$acl_save_exec_prefix"
  15734. prefix="$acl_save_prefix"
  15735. else
  15736. additional_includedir="$withval/include"
  15737. additional_libdir="$withval/$acl_libdirstem"
  15738. if test "$acl_libdirstem2" != "$acl_libdirstem" \
  15739. && ! test -d "$withval/$acl_libdirstem"; then
  15740. additional_libdir="$withval/$acl_libdirstem2"
  15741. fi
  15742. fi
  15743. fi
  15744. fi
  15745. LIBICONV=
  15746. LTLIBICONV=
  15747. INCICONV=
  15748. LIBICONV_PREFIX=
  15749. HAVE_LIBICONV=
  15750. rpathdirs=
  15751. ltrpathdirs=
  15752. names_already_handled=
  15753. names_next_round='iconv '
  15754. while test -n "$names_next_round"; do
  15755. names_this_round="$names_next_round"
  15756. names_next_round=
  15757. for name in $names_this_round; do
  15758. already_handled=
  15759. for n in $names_already_handled; do
  15760. if test "$n" = "$name"; then
  15761. already_handled=yes
  15762. break
  15763. fi
  15764. done
  15765. if test -z "$already_handled"; then
  15766. names_already_handled="$names_already_handled $name"
  15767. uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
  15768. eval value=\"\$HAVE_LIB$uppername\"
  15769. if test -n "$value"; then
  15770. if test "$value" = yes; then
  15771. eval value=\"\$LIB$uppername\"
  15772. test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
  15773. eval value=\"\$LTLIB$uppername\"
  15774. test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
  15775. else
  15776. :
  15777. fi
  15778. else
  15779. found_dir=
  15780. found_la=
  15781. found_so=
  15782. found_a=
  15783. eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
  15784. if test -n "$acl_shlibext"; then
  15785. shrext=".$acl_shlibext" # typically: shrext=.so
  15786. else
  15787. shrext=
  15788. fi
  15789. if test $use_additional = yes; then
  15790. dir="$additional_libdir"
  15791. if test -n "$acl_shlibext"; then
  15792. if test -f "$dir/$libname$shrext"; then
  15793. found_dir="$dir"
  15794. found_so="$dir/$libname$shrext"
  15795. else
  15796. if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
  15797. ver=`(cd "$dir" && \
  15798. for f in "$libname$shrext".*; do echo "$f"; done \
  15799. | sed -e "s,^$libname$shrext\\\\.,," \
  15800. | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
  15801. | sed 1q ) 2>/dev/null`
  15802. if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
  15803. found_dir="$dir"
  15804. found_so="$dir/$libname$shrext.$ver"
  15805. fi
  15806. else
  15807. eval library_names=\"$acl_library_names_spec\"
  15808. for f in $library_names; do
  15809. if test -f "$dir/$f"; then
  15810. found_dir="$dir"
  15811. found_so="$dir/$f"
  15812. break
  15813. fi
  15814. done
  15815. fi
  15816. fi
  15817. fi
  15818. if test "X$found_dir" = "X"; then
  15819. if test -f "$dir/$libname.$acl_libext"; then
  15820. found_dir="$dir"
  15821. found_a="$dir/$libname.$acl_libext"
  15822. fi
  15823. fi
  15824. if test "X$found_dir" != "X"; then
  15825. if test -f "$dir/$libname.la"; then
  15826. found_la="$dir/$libname.la"
  15827. fi
  15828. fi
  15829. fi
  15830. if test "X$found_dir" = "X"; then
  15831. for x in $LDFLAGS $LTLIBICONV; do
  15832. acl_save_prefix="$prefix"
  15833. prefix="$acl_final_prefix"
  15834. acl_save_exec_prefix="$exec_prefix"
  15835. exec_prefix="$acl_final_exec_prefix"
  15836. eval x=\"$x\"
  15837. exec_prefix="$acl_save_exec_prefix"
  15838. prefix="$acl_save_prefix"
  15839. case "$x" in
  15840. -L*)
  15841. dir=`echo "X$x" | sed -e 's/^X-L//'`
  15842. if test -n "$acl_shlibext"; then
  15843. if test -f "$dir/$libname$shrext"; then
  15844. found_dir="$dir"
  15845. found_so="$dir/$libname$shrext"
  15846. else
  15847. if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
  15848. ver=`(cd "$dir" && \
  15849. for f in "$libname$shrext".*; do echo "$f"; done \
  15850. | sed -e "s,^$libname$shrext\\\\.,," \
  15851. | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
  15852. | sed 1q ) 2>/dev/null`
  15853. if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
  15854. found_dir="$dir"
  15855. found_so="$dir/$libname$shrext.$ver"
  15856. fi
  15857. else
  15858. eval library_names=\"$acl_library_names_spec\"
  15859. for f in $library_names; do
  15860. if test -f "$dir/$f"; then
  15861. found_dir="$dir"
  15862. found_so="$dir/$f"
  15863. break
  15864. fi
  15865. done
  15866. fi
  15867. fi
  15868. fi
  15869. if test "X$found_dir" = "X"; then
  15870. if test -f "$dir/$libname.$acl_libext"; then
  15871. found_dir="$dir"
  15872. found_a="$dir/$libname.$acl_libext"
  15873. fi
  15874. fi
  15875. if test "X$found_dir" != "X"; then
  15876. if test -f "$dir/$libname.la"; then
  15877. found_la="$dir/$libname.la"
  15878. fi
  15879. fi
  15880. ;;
  15881. esac
  15882. if test "X$found_dir" != "X"; then
  15883. break
  15884. fi
  15885. done
  15886. fi
  15887. if test "X$found_dir" != "X"; then
  15888. LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
  15889. if test "X$found_so" != "X"; then
  15890. if test "$enable_rpath" = no \
  15891. || test "X$found_dir" = "X/usr/$acl_libdirstem" \
  15892. || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
  15893. LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
  15894. else
  15895. haveit=
  15896. for x in $ltrpathdirs; do
  15897. if test "X$x" = "X$found_dir"; then
  15898. haveit=yes
  15899. break
  15900. fi
  15901. done
  15902. if test -z "$haveit"; then
  15903. ltrpathdirs="$ltrpathdirs $found_dir"
  15904. fi
  15905. if test "$acl_hardcode_direct" = yes; then
  15906. LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
  15907. else
  15908. if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
  15909. LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
  15910. haveit=
  15911. for x in $rpathdirs; do
  15912. if test "X$x" = "X$found_dir"; then
  15913. haveit=yes
  15914. break
  15915. fi
  15916. done
  15917. if test -z "$haveit"; then
  15918. rpathdirs="$rpathdirs $found_dir"
  15919. fi
  15920. else
  15921. haveit=
  15922. for x in $LDFLAGS $LIBICONV; do
  15923. acl_save_prefix="$prefix"
  15924. prefix="$acl_final_prefix"
  15925. acl_save_exec_prefix="$exec_prefix"
  15926. exec_prefix="$acl_final_exec_prefix"
  15927. eval x=\"$x\"
  15928. exec_prefix="$acl_save_exec_prefix"
  15929. prefix="$acl_save_prefix"
  15930. if test "X$x" = "X-L$found_dir"; then
  15931. haveit=yes
  15932. break
  15933. fi
  15934. done
  15935. if test -z "$haveit"; then
  15936. LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
  15937. fi
  15938. if test "$acl_hardcode_minus_L" != no; then
  15939. LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
  15940. else
  15941. LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
  15942. fi
  15943. fi
  15944. fi
  15945. fi
  15946. else
  15947. if test "X$found_a" != "X"; then
  15948. LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
  15949. else
  15950. LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
  15951. fi
  15952. fi
  15953. additional_includedir=
  15954. case "$found_dir" in
  15955. */$acl_libdirstem | */$acl_libdirstem/)
  15956. basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
  15957. if test "$name" = 'iconv'; then
  15958. LIBICONV_PREFIX="$basedir"
  15959. fi
  15960. additional_includedir="$basedir/include"
  15961. ;;
  15962. */$acl_libdirstem2 | */$acl_libdirstem2/)
  15963. basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
  15964. if test "$name" = 'iconv'; then
  15965. LIBICONV_PREFIX="$basedir"
  15966. fi
  15967. additional_includedir="$basedir/include"
  15968. ;;
  15969. esac
  15970. if test "X$additional_includedir" != "X"; then
  15971. if test "X$additional_includedir" != "X/usr/include"; then
  15972. haveit=
  15973. if test "X$additional_includedir" = "X/usr/local/include"; then
  15974. if test -n "$GCC"; then
  15975. case $host_os in
  15976. linux* | gnu* | k*bsd*-gnu) haveit=yes;;
  15977. esac
  15978. fi
  15979. fi
  15980. if test -z "$haveit"; then
  15981. for x in $CPPFLAGS $INCICONV; do
  15982. acl_save_prefix="$prefix"
  15983. prefix="$acl_final_prefix"
  15984. acl_save_exec_prefix="$exec_prefix"
  15985. exec_prefix="$acl_final_exec_prefix"
  15986. eval x=\"$x\"
  15987. exec_prefix="$acl_save_exec_prefix"
  15988. prefix="$acl_save_prefix"
  15989. if test "X$x" = "X-I$additional_includedir"; then
  15990. haveit=yes
  15991. break
  15992. fi
  15993. done
  15994. if test -z "$haveit"; then
  15995. if test -d "$additional_includedir"; then
  15996. INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
  15997. fi
  15998. fi
  15999. fi
  16000. fi
  16001. fi
  16002. if test -n "$found_la"; then
  16003. save_libdir="$libdir"
  16004. case "$found_la" in
  16005. */* | *\\*) . "$found_la" ;;
  16006. *) . "./$found_la" ;;
  16007. esac
  16008. libdir="$save_libdir"
  16009. for dep in $dependency_libs; do
  16010. case "$dep" in
  16011. -L*)
  16012. additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
  16013. if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
  16014. && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
  16015. haveit=
  16016. if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
  16017. || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
  16018. if test -n "$GCC"; then
  16019. case $host_os in
  16020. linux* | gnu* | k*bsd*-gnu) haveit=yes;;
  16021. esac
  16022. fi
  16023. fi
  16024. if test -z "$haveit"; then
  16025. haveit=
  16026. for x in $LDFLAGS $LIBICONV; do
  16027. acl_save_prefix="$prefix"
  16028. prefix="$acl_final_prefix"
  16029. acl_save_exec_prefix="$exec_prefix"
  16030. exec_prefix="$acl_final_exec_prefix"
  16031. eval x=\"$x\"
  16032. exec_prefix="$acl_save_exec_prefix"
  16033. prefix="$acl_save_prefix"
  16034. if test "X$x" = "X-L$additional_libdir"; then
  16035. haveit=yes
  16036. break
  16037. fi
  16038. done
  16039. if test -z "$haveit"; then
  16040. if test -d "$additional_libdir"; then
  16041. LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
  16042. fi
  16043. fi
  16044. haveit=
  16045. for x in $LDFLAGS $LTLIBICONV; do
  16046. acl_save_prefix="$prefix"
  16047. prefix="$acl_final_prefix"
  16048. acl_save_exec_prefix="$exec_prefix"
  16049. exec_prefix="$acl_final_exec_prefix"
  16050. eval x=\"$x\"
  16051. exec_prefix="$acl_save_exec_prefix"
  16052. prefix="$acl_save_prefix"
  16053. if test "X$x" = "X-L$additional_libdir"; then
  16054. haveit=yes
  16055. break
  16056. fi
  16057. done
  16058. if test -z "$haveit"; then
  16059. if test -d "$additional_libdir"; then
  16060. LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
  16061. fi
  16062. fi
  16063. fi
  16064. fi
  16065. ;;
  16066. -R*)
  16067. dir=`echo "X$dep" | sed -e 's/^X-R//'`
  16068. if test "$enable_rpath" != no; then
  16069. haveit=
  16070. for x in $rpathdirs; do
  16071. if test "X$x" = "X$dir"; then
  16072. haveit=yes
  16073. break
  16074. fi
  16075. done
  16076. if test -z "$haveit"; then
  16077. rpathdirs="$rpathdirs $dir"
  16078. fi
  16079. haveit=
  16080. for x in $ltrpathdirs; do
  16081. if test "X$x" = "X$dir"; then
  16082. haveit=yes
  16083. break
  16084. fi
  16085. done
  16086. if test -z "$haveit"; then
  16087. ltrpathdirs="$ltrpathdirs $dir"
  16088. fi
  16089. fi
  16090. ;;
  16091. -l*)
  16092. names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
  16093. ;;
  16094. *.la)
  16095. names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
  16096. ;;
  16097. *)
  16098. LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
  16099. LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
  16100. ;;
  16101. esac
  16102. done
  16103. fi
  16104. else
  16105. LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
  16106. LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
  16107. fi
  16108. fi
  16109. fi
  16110. done
  16111. done
  16112. if test "X$rpathdirs" != "X"; then
  16113. if test -n "$acl_hardcode_libdir_separator"; then
  16114. alldirs=
  16115. for found_dir in $rpathdirs; do
  16116. alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
  16117. done
  16118. acl_save_libdir="$libdir"
  16119. libdir="$alldirs"
  16120. eval flag=\"$acl_hardcode_libdir_flag_spec\"
  16121. libdir="$acl_save_libdir"
  16122. LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
  16123. else
  16124. for found_dir in $rpathdirs; do
  16125. acl_save_libdir="$libdir"
  16126. libdir="$found_dir"
  16127. eval flag=\"$acl_hardcode_libdir_flag_spec\"
  16128. libdir="$acl_save_libdir"
  16129. LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
  16130. done
  16131. fi
  16132. fi
  16133. if test "X$ltrpathdirs" != "X"; then
  16134. for found_dir in $ltrpathdirs; do
  16135. LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
  16136. done
  16137. fi
  16138. am_save_CPPFLAGS="$CPPFLAGS"
  16139. for element in $INCICONV; do
  16140. haveit=
  16141. for x in $CPPFLAGS; do
  16142. acl_save_prefix="$prefix"
  16143. prefix="$acl_final_prefix"
  16144. acl_save_exec_prefix="$exec_prefix"
  16145. exec_prefix="$acl_final_exec_prefix"
  16146. eval x=\"$x\"
  16147. exec_prefix="$acl_save_exec_prefix"
  16148. prefix="$acl_save_prefix"
  16149. if test "X$x" = "X$element"; then
  16150. haveit=yes
  16151. break
  16152. fi
  16153. done
  16154. if test -z "$haveit"; then
  16155. CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
  16156. fi
  16157. done
  16158. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
  16159. $as_echo_n "checking for iconv... " >&6; }
  16160. if test "${am_cv_func_iconv+set}" = set; then :
  16161. $as_echo_n "(cached) " >&6
  16162. else
  16163. am_cv_func_iconv="no, consider installing GNU libiconv"
  16164. am_cv_lib_iconv=no
  16165. if test x$gcc_no_link = xyes; then
  16166. as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  16167. fi
  16168. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16169. /* end confdefs.h. */
  16170. #include <stdlib.h>
  16171. #include <iconv.h>
  16172. int
  16173. main ()
  16174. {
  16175. iconv_t cd = iconv_open("","");
  16176. iconv(cd,NULL,NULL,NULL,NULL);
  16177. iconv_close(cd);
  16178. ;
  16179. return 0;
  16180. }
  16181. _ACEOF
  16182. if ac_fn_c_try_link "$LINENO"; then :
  16183. am_cv_func_iconv=yes
  16184. fi
  16185. rm -f core conftest.err conftest.$ac_objext \
  16186. conftest$ac_exeext conftest.$ac_ext
  16187. if test "$am_cv_func_iconv" != yes; then
  16188. am_save_LIBS="$LIBS"
  16189. LIBS="$LIBS $LIBICONV"
  16190. if test x$gcc_no_link = xyes; then
  16191. as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  16192. fi
  16193. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16194. /* end confdefs.h. */
  16195. #include <stdlib.h>
  16196. #include <iconv.h>
  16197. int
  16198. main ()
  16199. {
  16200. iconv_t cd = iconv_open("","");
  16201. iconv(cd,NULL,NULL,NULL,NULL);
  16202. iconv_close(cd);
  16203. ;
  16204. return 0;
  16205. }
  16206. _ACEOF
  16207. if ac_fn_c_try_link "$LINENO"; then :
  16208. am_cv_lib_iconv=yes
  16209. am_cv_func_iconv=yes
  16210. fi
  16211. rm -f core conftest.err conftest.$ac_objext \
  16212. conftest$ac_exeext conftest.$ac_ext
  16213. LIBS="$am_save_LIBS"
  16214. fi
  16215. fi
  16216. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
  16217. $as_echo "$am_cv_func_iconv" >&6; }
  16218. if test "$am_cv_func_iconv" = yes; then
  16219. $as_echo "#define HAVE_ICONV 1" >>confdefs.h
  16220. fi
  16221. if test "$am_cv_lib_iconv" = yes; then
  16222. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
  16223. $as_echo_n "checking how to link with libiconv... " >&6; }
  16224. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
  16225. $as_echo "$LIBICONV" >&6; }
  16226. else
  16227. CPPFLAGS="$am_save_CPPFLAGS"
  16228. LIBICONV=
  16229. LTLIBICONV=
  16230. fi
  16231. if test "$am_cv_func_iconv" = yes; then
  16232. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
  16233. $as_echo_n "checking for iconv declaration... " >&6; }
  16234. if test "${am_cv_proto_iconv+set}" = set; then :
  16235. $as_echo_n "(cached) " >&6
  16236. else
  16237. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16238. /* end confdefs.h. */
  16239. #include <stdlib.h>
  16240. #include <iconv.h>
  16241. extern
  16242. #ifdef __cplusplus
  16243. "C"
  16244. #endif
  16245. #if defined(__STDC__) || defined(__cplusplus)
  16246. size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
  16247. #else
  16248. size_t iconv();
  16249. #endif
  16250. int
  16251. main ()
  16252. {
  16253. ;
  16254. return 0;
  16255. }
  16256. _ACEOF
  16257. if ac_fn_c_try_compile "$LINENO"; then :
  16258. am_cv_proto_iconv_arg1=""
  16259. else
  16260. am_cv_proto_iconv_arg1="const"
  16261. fi
  16262. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16263. am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"
  16264. fi
  16265. am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
  16266. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
  16267. }$am_cv_proto_iconv" >&5
  16268. $as_echo "${ac_t:-
  16269. }$am_cv_proto_iconv" >&6; }
  16270. cat >>confdefs.h <<_ACEOF
  16271. #define ICONV_CONST $am_cv_proto_iconv_arg1
  16272. _ACEOF
  16273. fi
  16274. if test "x${GCC}" = xyes; then
  16275. WARNING_CFLAGS='-W -Wall -Wmissing-declarations -Wwrite-strings -Wmissing-prototypes -Wno-long-long'
  16276. EXTRA_CFLAGS='-fexceptions -fasynchronous-unwind-tables'
  16277. STRICT_WARNING_CFLAGS='-Wstrict-prototypes -pedantic'
  16278. ERROR_CFLAGS=
  16279. if test "x${ENABLE_WERROR}" = xyes; then
  16280. ERROR_CFLAGS='-Werror'
  16281. fi
  16282. fi
  16283. if test "x${COMPILE_XMLJ}" = xyes; then
  16284. succeeded=no
  16285. if test -z "$PKG_CONFIG"; then
  16286. if test -n "$ac_tool_prefix"; then
  16287. # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
  16288. set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
  16289. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  16290. $as_echo_n "checking for $ac_word... " >&6; }
  16291. if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
  16292. $as_echo_n "(cached) " >&6
  16293. else
  16294. case $PKG_CONFIG in
  16295. [\\/]* | ?:[\\/]*)
  16296. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  16297. ;;
  16298. *)
  16299. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  16300. for as_dir in $PATH
  16301. do
  16302. IFS=$as_save_IFS
  16303. test -z "$as_dir" && as_dir=.
  16304. for ac_exec_ext in '' $ac_executable_extensions; do
  16305. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  16306. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  16307. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  16308. break 2
  16309. fi
  16310. done
  16311. done
  16312. IFS=$as_save_IFS
  16313. ;;
  16314. esac
  16315. fi
  16316. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  16317. if test -n "$PKG_CONFIG"; then
  16318. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  16319. $as_echo "$PKG_CONFIG" >&6; }
  16320. else
  16321. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16322. $as_echo "no" >&6; }
  16323. fi
  16324. fi
  16325. if test -z "$ac_cv_path_PKG_CONFIG"; then
  16326. ac_pt_PKG_CONFIG=$PKG_CONFIG
  16327. # Extract the first word of "pkg-config", so it can be a program name with args.
  16328. set dummy pkg-config; ac_word=$2
  16329. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  16330. $as_echo_n "checking for $ac_word... " >&6; }
  16331. if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
  16332. $as_echo_n "(cached) " >&6
  16333. else
  16334. case $ac_pt_PKG_CONFIG in
  16335. [\\/]* | ?:[\\/]*)
  16336. ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
  16337. ;;
  16338. *)
  16339. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  16340. for as_dir in $PATH
  16341. do
  16342. IFS=$as_save_IFS
  16343. test -z "$as_dir" && as_dir=.
  16344. for ac_exec_ext in '' $ac_executable_extensions; do
  16345. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  16346. ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  16347. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  16348. break 2
  16349. fi
  16350. done
  16351. done
  16352. IFS=$as_save_IFS
  16353. ;;
  16354. esac
  16355. fi
  16356. ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
  16357. if test -n "$ac_pt_PKG_CONFIG"; then
  16358. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
  16359. $as_echo "$ac_pt_PKG_CONFIG" >&6; }
  16360. else
  16361. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16362. $as_echo "no" >&6; }
  16363. fi
  16364. if test "x$ac_pt_PKG_CONFIG" = x; then
  16365. PKG_CONFIG="no"
  16366. else
  16367. case $cross_compiling:$ac_tool_warned in
  16368. yes:)
  16369. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  16370. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  16371. ac_tool_warned=yes ;;
  16372. esac
  16373. PKG_CONFIG=$ac_pt_PKG_CONFIG
  16374. fi
  16375. else
  16376. PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
  16377. fi
  16378. fi
  16379. if test "$PKG_CONFIG" = "no" ; then
  16380. echo "*** The pkg-config script could not be found. Make sure it is"
  16381. echo "*** in your path, or set the PKG_CONFIG environment variable"
  16382. echo "*** to the full path to pkg-config."
  16383. echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
  16384. else
  16385. PKG_CONFIG_MIN_VERSION=0.9.0
  16386. if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
  16387. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libxml-2.0 >= 2.6.8" >&5
  16388. $as_echo_n "checking for libxml-2.0 >= 2.6.8... " >&6; }
  16389. if $PKG_CONFIG --exists "libxml-2.0 >= 2.6.8" ; then
  16390. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16391. $as_echo "yes" >&6; }
  16392. succeeded=yes
  16393. { $as_echo "$as_me:${as_lineno-$LINENO}: checking XML_CFLAGS" >&5
  16394. $as_echo_n "checking XML_CFLAGS... " >&6; }
  16395. XML_CFLAGS=`$PKG_CONFIG --cflags "libxml-2.0 >= 2.6.8"`
  16396. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XML_CFLAGS" >&5
  16397. $as_echo "$XML_CFLAGS" >&6; }
  16398. { $as_echo "$as_me:${as_lineno-$LINENO}: checking XML_LIBS" >&5
  16399. $as_echo_n "checking XML_LIBS... " >&6; }
  16400. XML_LIBS=`$PKG_CONFIG --libs "libxml-2.0 >= 2.6.8"`
  16401. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XML_LIBS" >&5
  16402. $as_echo "$XML_LIBS" >&6; }
  16403. else
  16404. XML_CFLAGS=""
  16405. XML_LIBS=""
  16406. ## If we have a custom action on failure, don't print errors, but
  16407. ## do set a variable so people can do so.
  16408. XML_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libxml-2.0 >= 2.6.8"`
  16409. echo $XML_PKG_ERRORS
  16410. fi
  16411. else
  16412. echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
  16413. echo "*** See http://www.freedesktop.org/software/pkgconfig"
  16414. fi
  16415. fi
  16416. if test $succeeded = yes; then
  16417. :
  16418. else
  16419. as_fn_error "Library requirements (libxml-2.0 >= 2.6.8) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." "$LINENO" 5
  16420. fi
  16421. succeeded=no
  16422. if test -z "$PKG_CONFIG"; then
  16423. if test -n "$ac_tool_prefix"; then
  16424. # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
  16425. set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
  16426. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  16427. $as_echo_n "checking for $ac_word... " >&6; }
  16428. if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
  16429. $as_echo_n "(cached) " >&6
  16430. else
  16431. case $PKG_CONFIG in
  16432. [\\/]* | ?:[\\/]*)
  16433. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  16434. ;;
  16435. *)
  16436. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  16437. for as_dir in $PATH
  16438. do
  16439. IFS=$as_save_IFS
  16440. test -z "$as_dir" && as_dir=.
  16441. for ac_exec_ext in '' $ac_executable_extensions; do
  16442. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  16443. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  16444. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  16445. break 2
  16446. fi
  16447. done
  16448. done
  16449. IFS=$as_save_IFS
  16450. ;;
  16451. esac
  16452. fi
  16453. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  16454. if test -n "$PKG_CONFIG"; then
  16455. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  16456. $as_echo "$PKG_CONFIG" >&6; }
  16457. else
  16458. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16459. $as_echo "no" >&6; }
  16460. fi
  16461. fi
  16462. if test -z "$ac_cv_path_PKG_CONFIG"; then
  16463. ac_pt_PKG_CONFIG=$PKG_CONFIG
  16464. # Extract the first word of "pkg-config", so it can be a program name with args.
  16465. set dummy pkg-config; ac_word=$2
  16466. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  16467. $as_echo_n "checking for $ac_word... " >&6; }
  16468. if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
  16469. $as_echo_n "(cached) " >&6
  16470. else
  16471. case $ac_pt_PKG_CONFIG in
  16472. [\\/]* | ?:[\\/]*)
  16473. ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
  16474. ;;
  16475. *)
  16476. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  16477. for as_dir in $PATH
  16478. do
  16479. IFS=$as_save_IFS
  16480. test -z "$as_dir" && as_dir=.
  16481. for ac_exec_ext in '' $ac_executable_extensions; do
  16482. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  16483. ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  16484. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  16485. break 2
  16486. fi
  16487. done
  16488. done
  16489. IFS=$as_save_IFS
  16490. ;;
  16491. esac
  16492. fi
  16493. ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
  16494. if test -n "$ac_pt_PKG_CONFIG"; then
  16495. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
  16496. $as_echo "$ac_pt_PKG_CONFIG" >&6; }
  16497. else
  16498. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16499. $as_echo "no" >&6; }
  16500. fi
  16501. if test "x$ac_pt_PKG_CONFIG" = x; then
  16502. PKG_CONFIG="no"
  16503. else
  16504. case $cross_compiling:$ac_tool_warned in
  16505. yes:)
  16506. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  16507. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  16508. ac_tool_warned=yes ;;
  16509. esac
  16510. PKG_CONFIG=$ac_pt_PKG_CONFIG
  16511. fi
  16512. else
  16513. PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
  16514. fi
  16515. fi
  16516. if test "$PKG_CONFIG" = "no" ; then
  16517. echo "*** The pkg-config script could not be found. Make sure it is"
  16518. echo "*** in your path, or set the PKG_CONFIG environment variable"
  16519. echo "*** to the full path to pkg-config."
  16520. echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
  16521. else
  16522. PKG_CONFIG_MIN_VERSION=0.9.0
  16523. if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
  16524. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libxslt >= 1.1.11" >&5
  16525. $as_echo_n "checking for libxslt >= 1.1.11... " >&6; }
  16526. if $PKG_CONFIG --exists "libxslt >= 1.1.11" ; then
  16527. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16528. $as_echo "yes" >&6; }
  16529. succeeded=yes
  16530. { $as_echo "$as_me:${as_lineno-$LINENO}: checking XSLT_CFLAGS" >&5
  16531. $as_echo_n "checking XSLT_CFLAGS... " >&6; }
  16532. XSLT_CFLAGS=`$PKG_CONFIG --cflags "libxslt >= 1.1.11"`
  16533. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XSLT_CFLAGS" >&5
  16534. $as_echo "$XSLT_CFLAGS" >&6; }
  16535. { $as_echo "$as_me:${as_lineno-$LINENO}: checking XSLT_LIBS" >&5
  16536. $as_echo_n "checking XSLT_LIBS... " >&6; }
  16537. XSLT_LIBS=`$PKG_CONFIG --libs "libxslt >= 1.1.11"`
  16538. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XSLT_LIBS" >&5
  16539. $as_echo "$XSLT_LIBS" >&6; }
  16540. else
  16541. XSLT_CFLAGS=""
  16542. XSLT_LIBS=""
  16543. ## If we have a custom action on failure, don't print errors, but
  16544. ## do set a variable so people can do so.
  16545. XSLT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libxslt >= 1.1.11"`
  16546. echo $XSLT_PKG_ERRORS
  16547. fi
  16548. else
  16549. echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
  16550. echo "*** See http://www.freedesktop.org/software/pkgconfig"
  16551. fi
  16552. fi
  16553. if test $succeeded = yes; then
  16554. :
  16555. else
  16556. as_fn_error "Library requirements (libxslt >= 1.1.11) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." "$LINENO" 5
  16557. fi
  16558. fi
  16559. if test "x${COMPILE_GTK_PEER}" = xyes; then
  16560. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
  16561. $as_echo_n "checking for X... " >&6; }
  16562. # Check whether --with-x was given.
  16563. if test "${with_x+set}" = set; then :
  16564. withval=$with_x;
  16565. fi
  16566. # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
  16567. if test "x$with_x" = xno; then
  16568. # The user explicitly disabled X.
  16569. have_x=disabled
  16570. else
  16571. case $x_includes,$x_libraries in #(
  16572. *\'*) as_fn_error "cannot use X directory names containing '" "$LINENO" 5;; #(
  16573. *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then :
  16574. $as_echo_n "(cached) " >&6
  16575. else
  16576. # One or both of the vars are not set, and there is no cached value.
  16577. ac_x_includes=no ac_x_libraries=no
  16578. rm -f -r conftest.dir
  16579. if mkdir conftest.dir; then
  16580. cd conftest.dir
  16581. cat >Imakefile <<'_ACEOF'
  16582. incroot:
  16583. @echo incroot='${INCROOT}'
  16584. usrlibdir:
  16585. @echo usrlibdir='${USRLIBDIR}'
  16586. libdir:
  16587. @echo libdir='${LIBDIR}'
  16588. _ACEOF
  16589. if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
  16590. # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  16591. for ac_var in incroot usrlibdir libdir; do
  16592. eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
  16593. done
  16594. # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
  16595. for ac_extension in a so sl dylib la dll; do
  16596. if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
  16597. test -f "$ac_im_libdir/libX11.$ac_extension"; then
  16598. ac_im_usrlibdir=$ac_im_libdir; break
  16599. fi
  16600. done
  16601. # Screen out bogus values from the imake configuration. They are
  16602. # bogus both because they are the default anyway, and because
  16603. # using them would break gcc on systems where it needs fixed includes.
  16604. case $ac_im_incroot in
  16605. /usr/include) ac_x_includes= ;;
  16606. *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
  16607. esac
  16608. case $ac_im_usrlibdir in
  16609. /usr/lib | /usr/lib64 | /lib | /lib64) ;;
  16610. *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
  16611. esac
  16612. fi
  16613. cd ..
  16614. rm -f -r conftest.dir
  16615. fi
  16616. # Standard set of common directories for X headers.
  16617. # Check X11 before X11Rn because it is often a symlink to the current release.
  16618. ac_x_header_dirs='
  16619. /usr/X11/include
  16620. /usr/X11R7/include
  16621. /usr/X11R6/include
  16622. /usr/X11R5/include
  16623. /usr/X11R4/include
  16624. /usr/include/X11
  16625. /usr/include/X11R7
  16626. /usr/include/X11R6
  16627. /usr/include/X11R5
  16628. /usr/include/X11R4
  16629. /usr/local/X11/include
  16630. /usr/local/X11R7/include
  16631. /usr/local/X11R6/include
  16632. /usr/local/X11R5/include
  16633. /usr/local/X11R4/include
  16634. /usr/local/include/X11
  16635. /usr/local/include/X11R7
  16636. /usr/local/include/X11R6
  16637. /usr/local/include/X11R5
  16638. /usr/local/include/X11R4
  16639. /usr/X386/include
  16640. /usr/x386/include
  16641. /usr/XFree86/include/X11
  16642. /usr/include
  16643. /usr/local/include
  16644. /usr/unsupported/include
  16645. /usr/athena/include
  16646. /usr/local/x11r5/include
  16647. /usr/lpp/Xamples/include
  16648. /usr/openwin/include
  16649. /usr/openwin/share/include'
  16650. if test "$ac_x_includes" = no; then
  16651. # Guess where to find include files, by looking for Xlib.h.
  16652. # First, try using that file with no special directory specified.
  16653. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16654. /* end confdefs.h. */
  16655. #include <X11/Xlib.h>
  16656. _ACEOF
  16657. if ac_fn_c_try_cpp "$LINENO"; then :
  16658. # We can compile using X headers with no special include directory.
  16659. ac_x_includes=
  16660. else
  16661. for ac_dir in $ac_x_header_dirs; do
  16662. if test -r "$ac_dir/X11/Xlib.h"; then
  16663. ac_x_includes=$ac_dir
  16664. break
  16665. fi
  16666. done
  16667. fi
  16668. rm -f conftest.err conftest.$ac_ext
  16669. fi # $ac_x_includes = no
  16670. if test "$ac_x_libraries" = no; then
  16671. # Check for the libraries.
  16672. # See if we find them without any special options.
  16673. # Don't add to $LIBS permanently.
  16674. ac_save_LIBS=$LIBS
  16675. LIBS="-lX11 $LIBS"
  16676. if test x$gcc_no_link = xyes; then
  16677. as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  16678. fi
  16679. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16680. /* end confdefs.h. */
  16681. #include <X11/Xlib.h>
  16682. int
  16683. main ()
  16684. {
  16685. XrmInitialize ()
  16686. ;
  16687. return 0;
  16688. }
  16689. _ACEOF
  16690. if ac_fn_c_try_link "$LINENO"; then :
  16691. LIBS=$ac_save_LIBS
  16692. # We can link X programs with no special library path.
  16693. ac_x_libraries=
  16694. else
  16695. LIBS=$ac_save_LIBS
  16696. for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
  16697. do
  16698. # Don't even attempt the hair of trying to link an X program!
  16699. for ac_extension in a so sl dylib la dll; do
  16700. if test -r "$ac_dir/libX11.$ac_extension"; then
  16701. ac_x_libraries=$ac_dir
  16702. break 2
  16703. fi
  16704. done
  16705. done
  16706. fi
  16707. rm -f core conftest.err conftest.$ac_objext \
  16708. conftest$ac_exeext conftest.$ac_ext
  16709. fi # $ac_x_libraries = no
  16710. case $ac_x_includes,$ac_x_libraries in #(
  16711. no,* | *,no | *\'*)
  16712. # Didn't find X, or a directory has "'" in its name.
  16713. ac_cv_have_x="have_x=no";; #(
  16714. *)
  16715. # Record where we found X for the cache.
  16716. ac_cv_have_x="have_x=yes\
  16717. ac_x_includes='$ac_x_includes'\
  16718. ac_x_libraries='$ac_x_libraries'"
  16719. esac
  16720. fi
  16721. ;; #(
  16722. *) have_x=yes;;
  16723. esac
  16724. eval "$ac_cv_have_x"
  16725. fi # $with_x != no
  16726. if test "$have_x" != yes; then
  16727. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
  16728. $as_echo "$have_x" >&6; }
  16729. no_x=yes
  16730. else
  16731. # If each of the values was on the command line, it overrides each guess.
  16732. test "x$x_includes" = xNONE && x_includes=$ac_x_includes
  16733. test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
  16734. # Update the cache value to reflect the command line values.
  16735. ac_cv_have_x="have_x=yes\
  16736. ac_x_includes='$x_includes'\
  16737. ac_x_libraries='$x_libraries'"
  16738. { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
  16739. $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
  16740. fi
  16741. if test "$no_x" = yes; then
  16742. # Not all programs may use this symbol, but it does not hurt to define it.
  16743. $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
  16744. X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
  16745. else
  16746. if test -n "$x_includes"; then
  16747. X_CFLAGS="$X_CFLAGS -I$x_includes"
  16748. fi
  16749. # It would also be nice to do this for all -L options, not just this one.
  16750. if test -n "$x_libraries"; then
  16751. X_LIBS="$X_LIBS -L$x_libraries"
  16752. # For Solaris; some versions of Sun CC require a space after -R and
  16753. # others require no space. Words are not sufficient . . . .
  16754. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
  16755. $as_echo_n "checking whether -R must be followed by a space... " >&6; }
  16756. ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
  16757. ac_xsave_c_werror_flag=$ac_c_werror_flag
  16758. ac_c_werror_flag=yes
  16759. if test x$gcc_no_link = xyes; then
  16760. as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  16761. fi
  16762. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16763. /* end confdefs.h. */
  16764. int
  16765. main ()
  16766. {
  16767. ;
  16768. return 0;
  16769. }
  16770. _ACEOF
  16771. if ac_fn_c_try_link "$LINENO"; then :
  16772. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16773. $as_echo "no" >&6; }
  16774. X_LIBS="$X_LIBS -R$x_libraries"
  16775. else
  16776. LIBS="$ac_xsave_LIBS -R $x_libraries"
  16777. if test x$gcc_no_link = xyes; then
  16778. as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  16779. fi
  16780. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16781. /* end confdefs.h. */
  16782. int
  16783. main ()
  16784. {
  16785. ;
  16786. return 0;
  16787. }
  16788. _ACEOF
  16789. if ac_fn_c_try_link "$LINENO"; then :
  16790. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16791. $as_echo "yes" >&6; }
  16792. X_LIBS="$X_LIBS -R $x_libraries"
  16793. else
  16794. { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
  16795. $as_echo "neither works" >&6; }
  16796. fi
  16797. rm -f core conftest.err conftest.$ac_objext \
  16798. conftest$ac_exeext conftest.$ac_ext
  16799. fi
  16800. rm -f core conftest.err conftest.$ac_objext \
  16801. conftest$ac_exeext conftest.$ac_ext
  16802. ac_c_werror_flag=$ac_xsave_c_werror_flag
  16803. LIBS=$ac_xsave_LIBS
  16804. fi
  16805. # Check for system-dependent libraries X programs must link with.
  16806. # Do this before checking for the system-independent R6 libraries
  16807. # (-lICE), since we may need -lsocket or whatever for X linking.
  16808. if test "$ISC" = yes; then
  16809. X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
  16810. else
  16811. # Martyn Johnson says this is needed for Ultrix, if the X
  16812. # libraries were built with DECnet support. And Karl Berry says
  16813. # the Alpha needs dnet_stub (dnet does not exist).
  16814. ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
  16815. if test x$gcc_no_link = xyes; then
  16816. as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  16817. fi
  16818. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16819. /* end confdefs.h. */
  16820. /* Override any GCC internal prototype to avoid an error.
  16821. Use char because int might match the return type of a GCC
  16822. builtin and then its argument prototype would still apply. */
  16823. #ifdef __cplusplus
  16824. extern "C"
  16825. #endif
  16826. char XOpenDisplay ();
  16827. int
  16828. main ()
  16829. {
  16830. return XOpenDisplay ();
  16831. ;
  16832. return 0;
  16833. }
  16834. _ACEOF
  16835. if ac_fn_c_try_link "$LINENO"; then :
  16836. else
  16837. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
  16838. $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
  16839. if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then :
  16840. $as_echo_n "(cached) " >&6
  16841. else
  16842. ac_check_lib_save_LIBS=$LIBS
  16843. LIBS="-ldnet $LIBS"
  16844. if test x$gcc_no_link = xyes; then
  16845. as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  16846. fi
  16847. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16848. /* end confdefs.h. */
  16849. /* Override any GCC internal prototype to avoid an error.
  16850. Use char because int might match the return type of a GCC
  16851. builtin and then its argument prototype would still apply. */
  16852. #ifdef __cplusplus
  16853. extern "C"
  16854. #endif
  16855. char dnet_ntoa ();
  16856. int
  16857. main ()
  16858. {
  16859. return dnet_ntoa ();
  16860. ;
  16861. return 0;
  16862. }
  16863. _ACEOF
  16864. if ac_fn_c_try_link "$LINENO"; then :
  16865. ac_cv_lib_dnet_dnet_ntoa=yes
  16866. else
  16867. ac_cv_lib_dnet_dnet_ntoa=no
  16868. fi
  16869. rm -f core conftest.err conftest.$ac_objext \
  16870. conftest$ac_exeext conftest.$ac_ext
  16871. LIBS=$ac_check_lib_save_LIBS
  16872. fi
  16873. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
  16874. $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
  16875. if test "x$ac_cv_lib_dnet_dnet_ntoa" = x""yes; then :
  16876. X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
  16877. fi
  16878. if test $ac_cv_lib_dnet_dnet_ntoa = no; then
  16879. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
  16880. $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
  16881. if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then :
  16882. $as_echo_n "(cached) " >&6
  16883. else
  16884. ac_check_lib_save_LIBS=$LIBS
  16885. LIBS="-ldnet_stub $LIBS"
  16886. if test x$gcc_no_link = xyes; then
  16887. as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  16888. fi
  16889. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16890. /* end confdefs.h. */
  16891. /* Override any GCC internal prototype to avoid an error.
  16892. Use char because int might match the return type of a GCC
  16893. builtin and then its argument prototype would still apply. */
  16894. #ifdef __cplusplus
  16895. extern "C"
  16896. #endif
  16897. char dnet_ntoa ();
  16898. int
  16899. main ()
  16900. {
  16901. return dnet_ntoa ();
  16902. ;
  16903. return 0;
  16904. }
  16905. _ACEOF
  16906. if ac_fn_c_try_link "$LINENO"; then :
  16907. ac_cv_lib_dnet_stub_dnet_ntoa=yes
  16908. else
  16909. ac_cv_lib_dnet_stub_dnet_ntoa=no
  16910. fi
  16911. rm -f core conftest.err conftest.$ac_objext \
  16912. conftest$ac_exeext conftest.$ac_ext
  16913. LIBS=$ac_check_lib_save_LIBS
  16914. fi
  16915. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
  16916. $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
  16917. if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = x""yes; then :
  16918. X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
  16919. fi
  16920. fi
  16921. fi
  16922. rm -f core conftest.err conftest.$ac_objext \
  16923. conftest$ac_exeext conftest.$ac_ext
  16924. LIBS="$ac_xsave_LIBS"
  16925. # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
  16926. # to get the SysV transport functions.
  16927. # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
  16928. # needs -lnsl.
  16929. # The nsl library prevents programs from opening the X display
  16930. # on Irix 5.2, according to T.E. Dickey.
  16931. # The functions gethostbyname, getservbyname, and inet_addr are
  16932. # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
  16933. ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
  16934. if test "x$ac_cv_func_gethostbyname" = x""yes; then :
  16935. fi
  16936. if test $ac_cv_func_gethostbyname = no; then
  16937. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
  16938. $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
  16939. if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then :
  16940. $as_echo_n "(cached) " >&6
  16941. else
  16942. ac_check_lib_save_LIBS=$LIBS
  16943. LIBS="-lnsl $LIBS"
  16944. if test x$gcc_no_link = xyes; then
  16945. as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  16946. fi
  16947. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16948. /* end confdefs.h. */
  16949. /* Override any GCC internal prototype to avoid an error.
  16950. Use char because int might match the return type of a GCC
  16951. builtin and then its argument prototype would still apply. */
  16952. #ifdef __cplusplus
  16953. extern "C"
  16954. #endif
  16955. char gethostbyname ();
  16956. int
  16957. main ()
  16958. {
  16959. return gethostbyname ();
  16960. ;
  16961. return 0;
  16962. }
  16963. _ACEOF
  16964. if ac_fn_c_try_link "$LINENO"; then :
  16965. ac_cv_lib_nsl_gethostbyname=yes
  16966. else
  16967. ac_cv_lib_nsl_gethostbyname=no
  16968. fi
  16969. rm -f core conftest.err conftest.$ac_objext \
  16970. conftest$ac_exeext conftest.$ac_ext
  16971. LIBS=$ac_check_lib_save_LIBS
  16972. fi
  16973. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
  16974. $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
  16975. if test "x$ac_cv_lib_nsl_gethostbyname" = x""yes; then :
  16976. X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
  16977. fi
  16978. if test $ac_cv_lib_nsl_gethostbyname = no; then
  16979. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
  16980. $as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
  16981. if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then :
  16982. $as_echo_n "(cached) " >&6
  16983. else
  16984. ac_check_lib_save_LIBS=$LIBS
  16985. LIBS="-lbsd $LIBS"
  16986. if test x$gcc_no_link = xyes; then
  16987. as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  16988. fi
  16989. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16990. /* end confdefs.h. */
  16991. /* Override any GCC internal prototype to avoid an error.
  16992. Use char because int might match the return type of a GCC
  16993. builtin and then its argument prototype would still apply. */
  16994. #ifdef __cplusplus
  16995. extern "C"
  16996. #endif
  16997. char gethostbyname ();
  16998. int
  16999. main ()
  17000. {
  17001. return gethostbyname ();
  17002. ;
  17003. return 0;
  17004. }
  17005. _ACEOF
  17006. if ac_fn_c_try_link "$LINENO"; then :
  17007. ac_cv_lib_bsd_gethostbyname=yes
  17008. else
  17009. ac_cv_lib_bsd_gethostbyname=no
  17010. fi
  17011. rm -f core conftest.err conftest.$ac_objext \
  17012. conftest$ac_exeext conftest.$ac_ext
  17013. LIBS=$ac_check_lib_save_LIBS
  17014. fi
  17015. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
  17016. $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
  17017. if test "x$ac_cv_lib_bsd_gethostbyname" = x""yes; then :
  17018. X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
  17019. fi
  17020. fi
  17021. fi
  17022. # lieder@skyler.mavd.honeywell.com says without -lsocket,
  17023. # socket/setsockopt and other routines are undefined under SCO ODT
  17024. # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
  17025. # on later versions), says Simon Leinen: it contains gethostby*
  17026. # variants that don't use the name server (or something). -lsocket
  17027. # must be given before -lnsl if both are needed. We assume that
  17028. # if connect needs -lnsl, so does gethostbyname.
  17029. ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
  17030. if test "x$ac_cv_func_connect" = x""yes; then :
  17031. fi
  17032. if test $ac_cv_func_connect = no; then
  17033. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
  17034. $as_echo_n "checking for connect in -lsocket... " >&6; }
  17035. if test "${ac_cv_lib_socket_connect+set}" = set; then :
  17036. $as_echo_n "(cached) " >&6
  17037. else
  17038. ac_check_lib_save_LIBS=$LIBS
  17039. LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
  17040. if test x$gcc_no_link = xyes; then
  17041. as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  17042. fi
  17043. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17044. /* end confdefs.h. */
  17045. /* Override any GCC internal prototype to avoid an error.
  17046. Use char because int might match the return type of a GCC
  17047. builtin and then its argument prototype would still apply. */
  17048. #ifdef __cplusplus
  17049. extern "C"
  17050. #endif
  17051. char connect ();
  17052. int
  17053. main ()
  17054. {
  17055. return connect ();
  17056. ;
  17057. return 0;
  17058. }
  17059. _ACEOF
  17060. if ac_fn_c_try_link "$LINENO"; then :
  17061. ac_cv_lib_socket_connect=yes
  17062. else
  17063. ac_cv_lib_socket_connect=no
  17064. fi
  17065. rm -f core conftest.err conftest.$ac_objext \
  17066. conftest$ac_exeext conftest.$ac_ext
  17067. LIBS=$ac_check_lib_save_LIBS
  17068. fi
  17069. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
  17070. $as_echo "$ac_cv_lib_socket_connect" >&6; }
  17071. if test "x$ac_cv_lib_socket_connect" = x""yes; then :
  17072. X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
  17073. fi
  17074. fi
  17075. # Guillermo Gomez says -lposix is necessary on A/UX.
  17076. ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
  17077. if test "x$ac_cv_func_remove" = x""yes; then :
  17078. fi
  17079. if test $ac_cv_func_remove = no; then
  17080. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
  17081. $as_echo_n "checking for remove in -lposix... " >&6; }
  17082. if test "${ac_cv_lib_posix_remove+set}" = set; then :
  17083. $as_echo_n "(cached) " >&6
  17084. else
  17085. ac_check_lib_save_LIBS=$LIBS
  17086. LIBS="-lposix $LIBS"
  17087. if test x$gcc_no_link = xyes; then
  17088. as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  17089. fi
  17090. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17091. /* end confdefs.h. */
  17092. /* Override any GCC internal prototype to avoid an error.
  17093. Use char because int might match the return type of a GCC
  17094. builtin and then its argument prototype would still apply. */
  17095. #ifdef __cplusplus
  17096. extern "C"
  17097. #endif
  17098. char remove ();
  17099. int
  17100. main ()
  17101. {
  17102. return remove ();
  17103. ;
  17104. return 0;
  17105. }
  17106. _ACEOF
  17107. if ac_fn_c_try_link "$LINENO"; then :
  17108. ac_cv_lib_posix_remove=yes
  17109. else
  17110. ac_cv_lib_posix_remove=no
  17111. fi
  17112. rm -f core conftest.err conftest.$ac_objext \
  17113. conftest$ac_exeext conftest.$ac_ext
  17114. LIBS=$ac_check_lib_save_LIBS
  17115. fi
  17116. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
  17117. $as_echo "$ac_cv_lib_posix_remove" >&6; }
  17118. if test "x$ac_cv_lib_posix_remove" = x""yes; then :
  17119. X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
  17120. fi
  17121. fi
  17122. # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
  17123. ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
  17124. if test "x$ac_cv_func_shmat" = x""yes; then :
  17125. fi
  17126. if test $ac_cv_func_shmat = no; then
  17127. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
  17128. $as_echo_n "checking for shmat in -lipc... " >&6; }
  17129. if test "${ac_cv_lib_ipc_shmat+set}" = set; then :
  17130. $as_echo_n "(cached) " >&6
  17131. else
  17132. ac_check_lib_save_LIBS=$LIBS
  17133. LIBS="-lipc $LIBS"
  17134. if test x$gcc_no_link = xyes; then
  17135. as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  17136. fi
  17137. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17138. /* end confdefs.h. */
  17139. /* Override any GCC internal prototype to avoid an error.
  17140. Use char because int might match the return type of a GCC
  17141. builtin and then its argument prototype would still apply. */
  17142. #ifdef __cplusplus
  17143. extern "C"
  17144. #endif
  17145. char shmat ();
  17146. int
  17147. main ()
  17148. {
  17149. return shmat ();
  17150. ;
  17151. return 0;
  17152. }
  17153. _ACEOF
  17154. if ac_fn_c_try_link "$LINENO"; then :
  17155. ac_cv_lib_ipc_shmat=yes
  17156. else
  17157. ac_cv_lib_ipc_shmat=no
  17158. fi
  17159. rm -f core conftest.err conftest.$ac_objext \
  17160. conftest$ac_exeext conftest.$ac_ext
  17161. LIBS=$ac_check_lib_save_LIBS
  17162. fi
  17163. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
  17164. $as_echo "$ac_cv_lib_ipc_shmat" >&6; }
  17165. if test "x$ac_cv_lib_ipc_shmat" = x""yes; then :
  17166. X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
  17167. fi
  17168. fi
  17169. fi
  17170. # Check for libraries that X11R6 Xt/Xaw programs need.
  17171. ac_save_LDFLAGS=$LDFLAGS
  17172. test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
  17173. # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
  17174. # check for ICE first), but we must link in the order -lSM -lICE or
  17175. # we get undefined symbols. So assume we have SM if we have ICE.
  17176. # These have to be linked with before -lX11, unlike the other
  17177. # libraries we check for below, so use a different variable.
  17178. # John Interrante, Karl Berry
  17179. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
  17180. $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
  17181. if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then :
  17182. $as_echo_n "(cached) " >&6
  17183. else
  17184. ac_check_lib_save_LIBS=$LIBS
  17185. LIBS="-lICE $X_EXTRA_LIBS $LIBS"
  17186. if test x$gcc_no_link = xyes; then
  17187. as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  17188. fi
  17189. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17190. /* end confdefs.h. */
  17191. /* Override any GCC internal prototype to avoid an error.
  17192. Use char because int might match the return type of a GCC
  17193. builtin and then its argument prototype would still apply. */
  17194. #ifdef __cplusplus
  17195. extern "C"
  17196. #endif
  17197. char IceConnectionNumber ();
  17198. int
  17199. main ()
  17200. {
  17201. return IceConnectionNumber ();
  17202. ;
  17203. return 0;
  17204. }
  17205. _ACEOF
  17206. if ac_fn_c_try_link "$LINENO"; then :
  17207. ac_cv_lib_ICE_IceConnectionNumber=yes
  17208. else
  17209. ac_cv_lib_ICE_IceConnectionNumber=no
  17210. fi
  17211. rm -f core conftest.err conftest.$ac_objext \
  17212. conftest$ac_exeext conftest.$ac_ext
  17213. LIBS=$ac_check_lib_save_LIBS
  17214. fi
  17215. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
  17216. $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
  17217. if test "x$ac_cv_lib_ICE_IceConnectionNumber" = x""yes; then :
  17218. X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
  17219. fi
  17220. LDFLAGS=$ac_save_LDFLAGS
  17221. fi
  17222. if test "$no_x" = yes; then
  17223. as_fn_error "GTK+ peers requested but no X library available" "$LINENO" 5
  17224. fi
  17225. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XTestQueryExtension in -lXtst" >&5
  17226. $as_echo_n "checking for XTestQueryExtension in -lXtst... " >&6; }
  17227. if test "${ac_cv_lib_Xtst_XTestQueryExtension+set}" = set; then :
  17228. $as_echo_n "(cached) " >&6
  17229. else
  17230. ac_check_lib_save_LIBS=$LIBS
  17231. LIBS="-lXtst ${X_LIBS} $LIBS"
  17232. if test x$gcc_no_link = xyes; then
  17233. as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  17234. fi
  17235. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17236. /* end confdefs.h. */
  17237. /* Override any GCC internal prototype to avoid an error.
  17238. Use char because int might match the return type of a GCC
  17239. builtin and then its argument prototype would still apply. */
  17240. #ifdef __cplusplus
  17241. extern "C"
  17242. #endif
  17243. char XTestQueryExtension ();
  17244. int
  17245. main ()
  17246. {
  17247. return XTestQueryExtension ();
  17248. ;
  17249. return 0;
  17250. }
  17251. _ACEOF
  17252. if ac_fn_c_try_link "$LINENO"; then :
  17253. ac_cv_lib_Xtst_XTestQueryExtension=yes
  17254. else
  17255. ac_cv_lib_Xtst_XTestQueryExtension=no
  17256. fi
  17257. rm -f core conftest.err conftest.$ac_objext \
  17258. conftest$ac_exeext conftest.$ac_ext
  17259. LIBS=$ac_check_lib_save_LIBS
  17260. fi
  17261. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xtst_XTestQueryExtension" >&5
  17262. $as_echo "$ac_cv_lib_Xtst_XTestQueryExtension" >&6; }
  17263. if test "x$ac_cv_lib_Xtst_XTestQueryExtension" = x""yes; then :
  17264. $as_echo "#define HAVE_XTEST 1" >>confdefs.h
  17265. XTEST_LIBS="$XTEST_LIBS -X11 -lXtst"
  17266. else
  17267. true
  17268. fi
  17269. succeeded=no
  17270. if test -z "$PKG_CONFIG"; then
  17271. if test -n "$ac_tool_prefix"; then
  17272. # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
  17273. set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
  17274. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  17275. $as_echo_n "checking for $ac_word... " >&6; }
  17276. if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
  17277. $as_echo_n "(cached) " >&6
  17278. else
  17279. case $PKG_CONFIG in
  17280. [\\/]* | ?:[\\/]*)
  17281. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  17282. ;;
  17283. *)
  17284. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  17285. for as_dir in $PATH
  17286. do
  17287. IFS=$as_save_IFS
  17288. test -z "$as_dir" && as_dir=.
  17289. for ac_exec_ext in '' $ac_executable_extensions; do
  17290. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  17291. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  17292. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  17293. break 2
  17294. fi
  17295. done
  17296. done
  17297. IFS=$as_save_IFS
  17298. ;;
  17299. esac
  17300. fi
  17301. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  17302. if test -n "$PKG_CONFIG"; then
  17303. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  17304. $as_echo "$PKG_CONFIG" >&6; }
  17305. else
  17306. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17307. $as_echo "no" >&6; }
  17308. fi
  17309. fi
  17310. if test -z "$ac_cv_path_PKG_CONFIG"; then
  17311. ac_pt_PKG_CONFIG=$PKG_CONFIG
  17312. # Extract the first word of "pkg-config", so it can be a program name with args.
  17313. set dummy pkg-config; ac_word=$2
  17314. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  17315. $as_echo_n "checking for $ac_word... " >&6; }
  17316. if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
  17317. $as_echo_n "(cached) " >&6
  17318. else
  17319. case $ac_pt_PKG_CONFIG in
  17320. [\\/]* | ?:[\\/]*)
  17321. ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
  17322. ;;
  17323. *)
  17324. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  17325. for as_dir in $PATH
  17326. do
  17327. IFS=$as_save_IFS
  17328. test -z "$as_dir" && as_dir=.
  17329. for ac_exec_ext in '' $ac_executable_extensions; do
  17330. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  17331. ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  17332. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  17333. break 2
  17334. fi
  17335. done
  17336. done
  17337. IFS=$as_save_IFS
  17338. ;;
  17339. esac
  17340. fi
  17341. ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
  17342. if test -n "$ac_pt_PKG_CONFIG"; then
  17343. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
  17344. $as_echo "$ac_pt_PKG_CONFIG" >&6; }
  17345. else
  17346. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17347. $as_echo "no" >&6; }
  17348. fi
  17349. if test "x$ac_pt_PKG_CONFIG" = x; then
  17350. PKG_CONFIG="no"
  17351. else
  17352. case $cross_compiling:$ac_tool_warned in
  17353. yes:)
  17354. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  17355. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  17356. ac_tool_warned=yes ;;
  17357. esac
  17358. PKG_CONFIG=$ac_pt_PKG_CONFIG
  17359. fi
  17360. else
  17361. PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
  17362. fi
  17363. fi
  17364. if test "$PKG_CONFIG" = "no" ; then
  17365. echo "*** The pkg-config script could not be found. Make sure it is"
  17366. echo "*** in your path, or set the PKG_CONFIG environment variable"
  17367. echo "*** to the full path to pkg-config."
  17368. echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
  17369. else
  17370. PKG_CONFIG_MIN_VERSION=0.9.0
  17371. if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
  17372. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gtk+-2.0 >= 2.8 gthread-2.0 >= 2.2 gdk-pixbuf-2.0" >&5
  17373. $as_echo_n "checking for gtk+-2.0 >= 2.8 gthread-2.0 >= 2.2 gdk-pixbuf-2.0... " >&6; }
  17374. if $PKG_CONFIG --exists "gtk+-2.0 >= 2.8 gthread-2.0 >= 2.2 gdk-pixbuf-2.0" ; then
  17375. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  17376. $as_echo "yes" >&6; }
  17377. succeeded=yes
  17378. { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_CFLAGS" >&5
  17379. $as_echo_n "checking GTK_CFLAGS... " >&6; }
  17380. GTK_CFLAGS=`$PKG_CONFIG --cflags "gtk+-2.0 >= 2.8 gthread-2.0 >= 2.2 gdk-pixbuf-2.0"`
  17381. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_CFLAGS" >&5
  17382. $as_echo "$GTK_CFLAGS" >&6; }
  17383. { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_LIBS" >&5
  17384. $as_echo_n "checking GTK_LIBS... " >&6; }
  17385. GTK_LIBS=`$PKG_CONFIG --libs "gtk+-2.0 >= 2.8 gthread-2.0 >= 2.2 gdk-pixbuf-2.0"`
  17386. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_LIBS" >&5
  17387. $as_echo "$GTK_LIBS" >&6; }
  17388. else
  17389. GTK_CFLAGS=""
  17390. GTK_LIBS=""
  17391. ## If we have a custom action on failure, don't print errors, but
  17392. ## do set a variable so people can do so.
  17393. GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gtk+-2.0 >= 2.8 gthread-2.0 >= 2.2 gdk-pixbuf-2.0"`
  17394. echo $GTK_PKG_ERRORS
  17395. fi
  17396. else
  17397. echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
  17398. echo "*** See http://www.freedesktop.org/software/pkgconfig"
  17399. fi
  17400. fi
  17401. if test $succeeded = yes; then
  17402. :
  17403. else
  17404. as_fn_error "Library requirements (gtk+-2.0 >= 2.8 gthread-2.0 >= 2.2 gdk-pixbuf-2.0) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." "$LINENO" 5
  17405. fi
  17406. succeeded=no
  17407. if test -z "$PKG_CONFIG"; then
  17408. if test -n "$ac_tool_prefix"; then
  17409. # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
  17410. set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
  17411. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  17412. $as_echo_n "checking for $ac_word... " >&6; }
  17413. if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
  17414. $as_echo_n "(cached) " >&6
  17415. else
  17416. case $PKG_CONFIG in
  17417. [\\/]* | ?:[\\/]*)
  17418. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  17419. ;;
  17420. *)
  17421. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  17422. for as_dir in $PATH
  17423. do
  17424. IFS=$as_save_IFS
  17425. test -z "$as_dir" && as_dir=.
  17426. for ac_exec_ext in '' $ac_executable_extensions; do
  17427. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  17428. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  17429. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  17430. break 2
  17431. fi
  17432. done
  17433. done
  17434. IFS=$as_save_IFS
  17435. ;;
  17436. esac
  17437. fi
  17438. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  17439. if test -n "$PKG_CONFIG"; then
  17440. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  17441. $as_echo "$PKG_CONFIG" >&6; }
  17442. else
  17443. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17444. $as_echo "no" >&6; }
  17445. fi
  17446. fi
  17447. if test -z "$ac_cv_path_PKG_CONFIG"; then
  17448. ac_pt_PKG_CONFIG=$PKG_CONFIG
  17449. # Extract the first word of "pkg-config", so it can be a program name with args.
  17450. set dummy pkg-config; ac_word=$2
  17451. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  17452. $as_echo_n "checking for $ac_word... " >&6; }
  17453. if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
  17454. $as_echo_n "(cached) " >&6
  17455. else
  17456. case $ac_pt_PKG_CONFIG in
  17457. [\\/]* | ?:[\\/]*)
  17458. ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
  17459. ;;
  17460. *)
  17461. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  17462. for as_dir in $PATH
  17463. do
  17464. IFS=$as_save_IFS
  17465. test -z "$as_dir" && as_dir=.
  17466. for ac_exec_ext in '' $ac_executable_extensions; do
  17467. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  17468. ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  17469. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  17470. break 2
  17471. fi
  17472. done
  17473. done
  17474. IFS=$as_save_IFS
  17475. ;;
  17476. esac
  17477. fi
  17478. ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
  17479. if test -n "$ac_pt_PKG_CONFIG"; then
  17480. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
  17481. $as_echo "$ac_pt_PKG_CONFIG" >&6; }
  17482. else
  17483. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17484. $as_echo "no" >&6; }
  17485. fi
  17486. if test "x$ac_pt_PKG_CONFIG" = x; then
  17487. PKG_CONFIG="no"
  17488. else
  17489. case $cross_compiling:$ac_tool_warned in
  17490. yes:)
  17491. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  17492. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  17493. ac_tool_warned=yes ;;
  17494. esac
  17495. PKG_CONFIG=$ac_pt_PKG_CONFIG
  17496. fi
  17497. else
  17498. PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
  17499. fi
  17500. fi
  17501. if test "$PKG_CONFIG" = "no" ; then
  17502. echo "*** The pkg-config script could not be found. Make sure it is"
  17503. echo "*** in your path, or set the PKG_CONFIG environment variable"
  17504. echo "*** to the full path to pkg-config."
  17505. echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
  17506. else
  17507. PKG_CONFIG_MIN_VERSION=0.9.0
  17508. if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
  17509. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype2" >&5
  17510. $as_echo_n "checking for freetype2... " >&6; }
  17511. if $PKG_CONFIG --exists "freetype2" ; then
  17512. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  17513. $as_echo "yes" >&6; }
  17514. succeeded=yes
  17515. { $as_echo "$as_me:${as_lineno-$LINENO}: checking FREETYPE2_CFLAGS" >&5
  17516. $as_echo_n "checking FREETYPE2_CFLAGS... " >&6; }
  17517. FREETYPE2_CFLAGS=`$PKG_CONFIG --cflags "freetype2"`
  17518. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE2_CFLAGS" >&5
  17519. $as_echo "$FREETYPE2_CFLAGS" >&6; }
  17520. { $as_echo "$as_me:${as_lineno-$LINENO}: checking FREETYPE2_LIBS" >&5
  17521. $as_echo_n "checking FREETYPE2_LIBS... " >&6; }
  17522. FREETYPE2_LIBS=`$PKG_CONFIG --libs "freetype2"`
  17523. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE2_LIBS" >&5
  17524. $as_echo "$FREETYPE2_LIBS" >&6; }
  17525. else
  17526. FREETYPE2_CFLAGS=""
  17527. FREETYPE2_LIBS=""
  17528. ## If we have a custom action on failure, don't print errors, but
  17529. ## do set a variable so people can do so.
  17530. FREETYPE2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "freetype2"`
  17531. echo $FREETYPE2_PKG_ERRORS
  17532. fi
  17533. else
  17534. echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
  17535. echo "*** See http://www.freedesktop.org/software/pkgconfig"
  17536. fi
  17537. fi
  17538. if test $succeeded = yes; then
  17539. :
  17540. else
  17541. as_fn_error "Library requirements (freetype2) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." "$LINENO" 5
  17542. fi
  17543. succeeded=no
  17544. if test -z "$PKG_CONFIG"; then
  17545. if test -n "$ac_tool_prefix"; then
  17546. # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
  17547. set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
  17548. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  17549. $as_echo_n "checking for $ac_word... " >&6; }
  17550. if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
  17551. $as_echo_n "(cached) " >&6
  17552. else
  17553. case $PKG_CONFIG in
  17554. [\\/]* | ?:[\\/]*)
  17555. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  17556. ;;
  17557. *)
  17558. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  17559. for as_dir in $PATH
  17560. do
  17561. IFS=$as_save_IFS
  17562. test -z "$as_dir" && as_dir=.
  17563. for ac_exec_ext in '' $ac_executable_extensions; do
  17564. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  17565. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  17566. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  17567. break 2
  17568. fi
  17569. done
  17570. done
  17571. IFS=$as_save_IFS
  17572. ;;
  17573. esac
  17574. fi
  17575. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  17576. if test -n "$PKG_CONFIG"; then
  17577. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  17578. $as_echo "$PKG_CONFIG" >&6; }
  17579. else
  17580. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17581. $as_echo "no" >&6; }
  17582. fi
  17583. fi
  17584. if test -z "$ac_cv_path_PKG_CONFIG"; then
  17585. ac_pt_PKG_CONFIG=$PKG_CONFIG
  17586. # Extract the first word of "pkg-config", so it can be a program name with args.
  17587. set dummy pkg-config; ac_word=$2
  17588. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  17589. $as_echo_n "checking for $ac_word... " >&6; }
  17590. if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
  17591. $as_echo_n "(cached) " >&6
  17592. else
  17593. case $ac_pt_PKG_CONFIG in
  17594. [\\/]* | ?:[\\/]*)
  17595. ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
  17596. ;;
  17597. *)
  17598. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  17599. for as_dir in $PATH
  17600. do
  17601. IFS=$as_save_IFS
  17602. test -z "$as_dir" && as_dir=.
  17603. for ac_exec_ext in '' $ac_executable_extensions; do
  17604. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  17605. ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  17606. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  17607. break 2
  17608. fi
  17609. done
  17610. done
  17611. IFS=$as_save_IFS
  17612. ;;
  17613. esac
  17614. fi
  17615. ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
  17616. if test -n "$ac_pt_PKG_CONFIG"; then
  17617. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
  17618. $as_echo "$ac_pt_PKG_CONFIG" >&6; }
  17619. else
  17620. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17621. $as_echo "no" >&6; }
  17622. fi
  17623. if test "x$ac_pt_PKG_CONFIG" = x; then
  17624. PKG_CONFIG="no"
  17625. else
  17626. case $cross_compiling:$ac_tool_warned in
  17627. yes:)
  17628. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  17629. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  17630. ac_tool_warned=yes ;;
  17631. esac
  17632. PKG_CONFIG=$ac_pt_PKG_CONFIG
  17633. fi
  17634. else
  17635. PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
  17636. fi
  17637. fi
  17638. if test "$PKG_CONFIG" = "no" ; then
  17639. echo "*** The pkg-config script could not be found. Make sure it is"
  17640. echo "*** in your path, or set the PKG_CONFIG environment variable"
  17641. echo "*** to the full path to pkg-config."
  17642. echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
  17643. else
  17644. PKG_CONFIG_MIN_VERSION=0.9.0
  17645. if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
  17646. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pangoft2" >&5
  17647. $as_echo_n "checking for pangoft2... " >&6; }
  17648. if $PKG_CONFIG --exists "pangoft2" ; then
  17649. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  17650. $as_echo "yes" >&6; }
  17651. succeeded=yes
  17652. { $as_echo "$as_me:${as_lineno-$LINENO}: checking PANGOFT2_CFLAGS" >&5
  17653. $as_echo_n "checking PANGOFT2_CFLAGS... " >&6; }
  17654. PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2"`
  17655. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PANGOFT2_CFLAGS" >&5
  17656. $as_echo "$PANGOFT2_CFLAGS" >&6; }
  17657. { $as_echo "$as_me:${as_lineno-$LINENO}: checking PANGOFT2_LIBS" >&5
  17658. $as_echo_n "checking PANGOFT2_LIBS... " >&6; }
  17659. PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2"`
  17660. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PANGOFT2_LIBS" >&5
  17661. $as_echo "$PANGOFT2_LIBS" >&6; }
  17662. else
  17663. PANGOFT2_CFLAGS=""
  17664. PANGOFT2_LIBS=""
  17665. ## If we have a custom action on failure, don't print errors, but
  17666. ## do set a variable so people can do so.
  17667. PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"`
  17668. echo $PANGOFT2_PKG_ERRORS
  17669. fi
  17670. else
  17671. echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
  17672. echo "*** See http://www.freedesktop.org/software/pkgconfig"
  17673. fi
  17674. fi
  17675. if test $succeeded = yes; then
  17676. :
  17677. else
  17678. as_fn_error "Library requirements (pangoft2) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." "$LINENO" 5
  17679. fi
  17680. succeeded=no
  17681. if test -z "$PKG_CONFIG"; then
  17682. if test -n "$ac_tool_prefix"; then
  17683. # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
  17684. set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
  17685. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  17686. $as_echo_n "checking for $ac_word... " >&6; }
  17687. if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
  17688. $as_echo_n "(cached) " >&6
  17689. else
  17690. case $PKG_CONFIG in
  17691. [\\/]* | ?:[\\/]*)
  17692. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  17693. ;;
  17694. *)
  17695. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  17696. for as_dir in $PATH
  17697. do
  17698. IFS=$as_save_IFS
  17699. test -z "$as_dir" && as_dir=.
  17700. for ac_exec_ext in '' $ac_executable_extensions; do
  17701. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  17702. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  17703. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  17704. break 2
  17705. fi
  17706. done
  17707. done
  17708. IFS=$as_save_IFS
  17709. ;;
  17710. esac
  17711. fi
  17712. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  17713. if test -n "$PKG_CONFIG"; then
  17714. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  17715. $as_echo "$PKG_CONFIG" >&6; }
  17716. else
  17717. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17718. $as_echo "no" >&6; }
  17719. fi
  17720. fi
  17721. if test -z "$ac_cv_path_PKG_CONFIG"; then
  17722. ac_pt_PKG_CONFIG=$PKG_CONFIG
  17723. # Extract the first word of "pkg-config", so it can be a program name with args.
  17724. set dummy pkg-config; ac_word=$2
  17725. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  17726. $as_echo_n "checking for $ac_word... " >&6; }
  17727. if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
  17728. $as_echo_n "(cached) " >&6
  17729. else
  17730. case $ac_pt_PKG_CONFIG in
  17731. [\\/]* | ?:[\\/]*)
  17732. ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
  17733. ;;
  17734. *)
  17735. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  17736. for as_dir in $PATH
  17737. do
  17738. IFS=$as_save_IFS
  17739. test -z "$as_dir" && as_dir=.
  17740. for ac_exec_ext in '' $ac_executable_extensions; do
  17741. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  17742. ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  17743. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  17744. break 2
  17745. fi
  17746. done
  17747. done
  17748. IFS=$as_save_IFS
  17749. ;;
  17750. esac
  17751. fi
  17752. ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
  17753. if test -n "$ac_pt_PKG_CONFIG"; then
  17754. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
  17755. $as_echo "$ac_pt_PKG_CONFIG" >&6; }
  17756. else
  17757. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17758. $as_echo "no" >&6; }
  17759. fi
  17760. if test "x$ac_pt_PKG_CONFIG" = x; then
  17761. PKG_CONFIG="no"
  17762. else
  17763. case $cross_compiling:$ac_tool_warned in
  17764. yes:)
  17765. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  17766. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  17767. ac_tool_warned=yes ;;
  17768. esac
  17769. PKG_CONFIG=$ac_pt_PKG_CONFIG
  17770. fi
  17771. else
  17772. PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
  17773. fi
  17774. fi
  17775. if test "$PKG_CONFIG" = "no" ; then
  17776. echo "*** The pkg-config script could not be found. Make sure it is"
  17777. echo "*** in your path, or set the PKG_CONFIG environment variable"
  17778. echo "*** to the full path to pkg-config."
  17779. echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
  17780. else
  17781. PKG_CONFIG_MIN_VERSION=0.9.0
  17782. if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
  17783. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cairo >= 1.1.8" >&5
  17784. $as_echo_n "checking for cairo >= 1.1.8... " >&6; }
  17785. if $PKG_CONFIG --exists "cairo >= 1.1.8" ; then
  17786. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  17787. $as_echo "yes" >&6; }
  17788. succeeded=yes
  17789. { $as_echo "$as_me:${as_lineno-$LINENO}: checking CAIRO_CFLAGS" >&5
  17790. $as_echo_n "checking CAIRO_CFLAGS... " >&6; }
  17791. CAIRO_CFLAGS=`$PKG_CONFIG --cflags "cairo >= 1.1.8"`
  17792. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAIRO_CFLAGS" >&5
  17793. $as_echo "$CAIRO_CFLAGS" >&6; }
  17794. { $as_echo "$as_me:${as_lineno-$LINENO}: checking CAIRO_LIBS" >&5
  17795. $as_echo_n "checking CAIRO_LIBS... " >&6; }
  17796. CAIRO_LIBS=`$PKG_CONFIG --libs "cairo >= 1.1.8"`
  17797. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAIRO_LIBS" >&5
  17798. $as_echo "$CAIRO_LIBS" >&6; }
  17799. else
  17800. CAIRO_CFLAGS=""
  17801. CAIRO_LIBS=""
  17802. ## If we have a custom action on failure, don't print errors, but
  17803. ## do set a variable so people can do so.
  17804. CAIRO_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cairo >= 1.1.8"`
  17805. echo $CAIRO_PKG_ERRORS
  17806. fi
  17807. else
  17808. echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
  17809. echo "*** See http://www.freedesktop.org/software/pkgconfig"
  17810. fi
  17811. fi
  17812. if test $succeeded = yes; then
  17813. :
  17814. else
  17815. as_fn_error "Library requirements (cairo >= 1.1.8) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." "$LINENO" 5
  17816. fi
  17817. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRenderQueryExtension in -lXrender" >&5
  17818. $as_echo_n "checking for XRenderQueryExtension in -lXrender... " >&6; }
  17819. if test "${ac_cv_lib_Xrender_XRenderQueryExtension+set}" = set; then :
  17820. $as_echo_n "(cached) " >&6
  17821. else
  17822. ac_check_lib_save_LIBS=$LIBS
  17823. LIBS="-lXrender ${X_LIBS} $LIBS"
  17824. if test x$gcc_no_link = xyes; then
  17825. as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  17826. fi
  17827. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17828. /* end confdefs.h. */
  17829. /* Override any GCC internal prototype to avoid an error.
  17830. Use char because int might match the return type of a GCC
  17831. builtin and then its argument prototype would still apply. */
  17832. #ifdef __cplusplus
  17833. extern "C"
  17834. #endif
  17835. char XRenderQueryExtension ();
  17836. int
  17837. main ()
  17838. {
  17839. return XRenderQueryExtension ();
  17840. ;
  17841. return 0;
  17842. }
  17843. _ACEOF
  17844. if ac_fn_c_try_link "$LINENO"; then :
  17845. ac_cv_lib_Xrender_XRenderQueryExtension=yes
  17846. else
  17847. ac_cv_lib_Xrender_XRenderQueryExtension=no
  17848. fi
  17849. rm -f core conftest.err conftest.$ac_objext \
  17850. conftest$ac_exeext conftest.$ac_ext
  17851. LIBS=$ac_check_lib_save_LIBS
  17852. fi
  17853. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrender_XRenderQueryExtension" >&5
  17854. $as_echo "$ac_cv_lib_Xrender_XRenderQueryExtension" >&6; }
  17855. if test "x$ac_cv_lib_Xrender_XRenderQueryExtension" = x""yes; then :
  17856. $as_echo "#define HAVE_XRENDER 1" >>confdefs.h
  17857. X_EXTRA_LIBS="$X_EXTRA_LIBS -lXrender"
  17858. else
  17859. true
  17860. fi
  17861. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRRQueryExtension in -lXrandr" >&5
  17862. $as_echo_n "checking for XRRQueryExtension in -lXrandr... " >&6; }
  17863. if test "${ac_cv_lib_Xrandr_XRRQueryExtension+set}" = set; then :
  17864. $as_echo_n "(cached) " >&6
  17865. else
  17866. ac_check_lib_save_LIBS=$LIBS
  17867. LIBS="-lXrandr ${X_LIBS} $LIBS"
  17868. if test x$gcc_no_link = xyes; then
  17869. as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  17870. fi
  17871. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17872. /* end confdefs.h. */
  17873. /* Override any GCC internal prototype to avoid an error.
  17874. Use char because int might match the return type of a GCC
  17875. builtin and then its argument prototype would still apply. */
  17876. #ifdef __cplusplus
  17877. extern "C"
  17878. #endif
  17879. char XRRQueryExtension ();
  17880. int
  17881. main ()
  17882. {
  17883. return XRRQueryExtension ();
  17884. ;
  17885. return 0;
  17886. }
  17887. _ACEOF
  17888. if ac_fn_c_try_link "$LINENO"; then :
  17889. ac_cv_lib_Xrandr_XRRQueryExtension=yes
  17890. else
  17891. ac_cv_lib_Xrandr_XRRQueryExtension=no
  17892. fi
  17893. rm -f core conftest.err conftest.$ac_objext \
  17894. conftest$ac_exeext conftest.$ac_ext
  17895. LIBS=$ac_check_lib_save_LIBS
  17896. fi
  17897. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrandr_XRRQueryExtension" >&5
  17898. $as_echo "$ac_cv_lib_Xrandr_XRRQueryExtension" >&6; }
  17899. if test "x$ac_cv_lib_Xrandr_XRRQueryExtension" = x""yes; then :
  17900. $as_echo "#define HAVE_XRANDR 1" >>confdefs.h
  17901. X_EXTRA_LIBS="$X_EXTRA_LIBS -lXrandr"
  17902. else
  17903. true
  17904. fi
  17905. fi
  17906. if test "x${COMPILE_GCONF_PEER}" = xyes; then
  17907. succeeded=no
  17908. if test -z "$PKG_CONFIG"; then
  17909. if test -n "$ac_tool_prefix"; then
  17910. # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
  17911. set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
  17912. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  17913. $as_echo_n "checking for $ac_word... " >&6; }
  17914. if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
  17915. $as_echo_n "(cached) " >&6
  17916. else
  17917. case $PKG_CONFIG in
  17918. [\\/]* | ?:[\\/]*)
  17919. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  17920. ;;
  17921. *)
  17922. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  17923. for as_dir in $PATH
  17924. do
  17925. IFS=$as_save_IFS
  17926. test -z "$as_dir" && as_dir=.
  17927. for ac_exec_ext in '' $ac_executable_extensions; do
  17928. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  17929. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  17930. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  17931. break 2
  17932. fi
  17933. done
  17934. done
  17935. IFS=$as_save_IFS
  17936. ;;
  17937. esac
  17938. fi
  17939. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  17940. if test -n "$PKG_CONFIG"; then
  17941. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  17942. $as_echo "$PKG_CONFIG" >&6; }
  17943. else
  17944. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17945. $as_echo "no" >&6; }
  17946. fi
  17947. fi
  17948. if test -z "$ac_cv_path_PKG_CONFIG"; then
  17949. ac_pt_PKG_CONFIG=$PKG_CONFIG
  17950. # Extract the first word of "pkg-config", so it can be a program name with args.
  17951. set dummy pkg-config; ac_word=$2
  17952. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  17953. $as_echo_n "checking for $ac_word... " >&6; }
  17954. if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
  17955. $as_echo_n "(cached) " >&6
  17956. else
  17957. case $ac_pt_PKG_CONFIG in
  17958. [\\/]* | ?:[\\/]*)
  17959. ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
  17960. ;;
  17961. *)
  17962. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  17963. for as_dir in $PATH
  17964. do
  17965. IFS=$as_save_IFS
  17966. test -z "$as_dir" && as_dir=.
  17967. for ac_exec_ext in '' $ac_executable_extensions; do
  17968. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  17969. ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  17970. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  17971. break 2
  17972. fi
  17973. done
  17974. done
  17975. IFS=$as_save_IFS
  17976. ;;
  17977. esac
  17978. fi
  17979. ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
  17980. if test -n "$ac_pt_PKG_CONFIG"; then
  17981. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
  17982. $as_echo "$ac_pt_PKG_CONFIG" >&6; }
  17983. else
  17984. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17985. $as_echo "no" >&6; }
  17986. fi
  17987. if test "x$ac_pt_PKG_CONFIG" = x; then
  17988. PKG_CONFIG="no"
  17989. else
  17990. case $cross_compiling:$ac_tool_warned in
  17991. yes:)
  17992. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  17993. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  17994. ac_tool_warned=yes ;;
  17995. esac
  17996. PKG_CONFIG=$ac_pt_PKG_CONFIG
  17997. fi
  17998. else
  17999. PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
  18000. fi
  18001. fi
  18002. if test "$PKG_CONFIG" = "no" ; then
  18003. echo "*** The pkg-config script could not be found. Make sure it is"
  18004. echo "*** in your path, or set the PKG_CONFIG environment variable"
  18005. echo "*** to the full path to pkg-config."
  18006. echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
  18007. else
  18008. PKG_CONFIG_MIN_VERSION=0.9.0
  18009. if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
  18010. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gconf-2.0 >= 2.6.0" >&5
  18011. $as_echo_n "checking for gconf-2.0 >= 2.6.0... " >&6; }
  18012. if $PKG_CONFIG --exists "gconf-2.0 >= 2.6.0" ; then
  18013. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  18014. $as_echo "yes" >&6; }
  18015. succeeded=yes
  18016. { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCONF_CFLAGS" >&5
  18017. $as_echo_n "checking GCONF_CFLAGS... " >&6; }
  18018. GCONF_CFLAGS=`$PKG_CONFIG --cflags "gconf-2.0 >= 2.6.0"`
  18019. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCONF_CFLAGS" >&5
  18020. $as_echo "$GCONF_CFLAGS" >&6; }
  18021. { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCONF_LIBS" >&5
  18022. $as_echo_n "checking GCONF_LIBS... " >&6; }
  18023. GCONF_LIBS=`$PKG_CONFIG --libs "gconf-2.0 >= 2.6.0"`
  18024. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCONF_LIBS" >&5
  18025. $as_echo "$GCONF_LIBS" >&6; }
  18026. else
  18027. GCONF_CFLAGS=""
  18028. GCONF_LIBS=""
  18029. ## If we have a custom action on failure, don't print errors, but
  18030. ## do set a variable so people can do so.
  18031. GCONF_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gconf-2.0 >= 2.6.0"`
  18032. echo $GCONF_PKG_ERRORS
  18033. fi
  18034. else
  18035. echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
  18036. echo "*** See http://www.freedesktop.org/software/pkgconfig"
  18037. fi
  18038. fi
  18039. if test $succeeded = yes; then
  18040. :
  18041. else
  18042. as_fn_error "Library requirements (gconf-2.0 >= 2.6.0) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." "$LINENO" 5
  18043. fi
  18044. succeeded=no
  18045. if test -z "$PKG_CONFIG"; then
  18046. if test -n "$ac_tool_prefix"; then
  18047. # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
  18048. set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
  18049. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  18050. $as_echo_n "checking for $ac_word... " >&6; }
  18051. if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
  18052. $as_echo_n "(cached) " >&6
  18053. else
  18054. case $PKG_CONFIG in
  18055. [\\/]* | ?:[\\/]*)
  18056. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  18057. ;;
  18058. *)
  18059. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  18060. for as_dir in $PATH
  18061. do
  18062. IFS=$as_save_IFS
  18063. test -z "$as_dir" && as_dir=.
  18064. for ac_exec_ext in '' $ac_executable_extensions; do
  18065. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  18066. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  18067. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  18068. break 2
  18069. fi
  18070. done
  18071. done
  18072. IFS=$as_save_IFS
  18073. ;;
  18074. esac
  18075. fi
  18076. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  18077. if test -n "$PKG_CONFIG"; then
  18078. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  18079. $as_echo "$PKG_CONFIG" >&6; }
  18080. else
  18081. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18082. $as_echo "no" >&6; }
  18083. fi
  18084. fi
  18085. if test -z "$ac_cv_path_PKG_CONFIG"; then
  18086. ac_pt_PKG_CONFIG=$PKG_CONFIG
  18087. # Extract the first word of "pkg-config", so it can be a program name with args.
  18088. set dummy pkg-config; ac_word=$2
  18089. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  18090. $as_echo_n "checking for $ac_word... " >&6; }
  18091. if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
  18092. $as_echo_n "(cached) " >&6
  18093. else
  18094. case $ac_pt_PKG_CONFIG in
  18095. [\\/]* | ?:[\\/]*)
  18096. ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
  18097. ;;
  18098. *)
  18099. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  18100. for as_dir in $PATH
  18101. do
  18102. IFS=$as_save_IFS
  18103. test -z "$as_dir" && as_dir=.
  18104. for ac_exec_ext in '' $ac_executable_extensions; do
  18105. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  18106. ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  18107. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  18108. break 2
  18109. fi
  18110. done
  18111. done
  18112. IFS=$as_save_IFS
  18113. ;;
  18114. esac
  18115. fi
  18116. ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
  18117. if test -n "$ac_pt_PKG_CONFIG"; then
  18118. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
  18119. $as_echo "$ac_pt_PKG_CONFIG" >&6; }
  18120. else
  18121. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18122. $as_echo "no" >&6; }
  18123. fi
  18124. if test "x$ac_pt_PKG_CONFIG" = x; then
  18125. PKG_CONFIG="no"
  18126. else
  18127. case $cross_compiling:$ac_tool_warned in
  18128. yes:)
  18129. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  18130. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  18131. ac_tool_warned=yes ;;
  18132. esac
  18133. PKG_CONFIG=$ac_pt_PKG_CONFIG
  18134. fi
  18135. else
  18136. PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
  18137. fi
  18138. fi
  18139. if test "$PKG_CONFIG" = "no" ; then
  18140. echo "*** The pkg-config script could not be found. Make sure it is"
  18141. echo "*** in your path, or set the PKG_CONFIG environment variable"
  18142. echo "*** to the full path to pkg-config."
  18143. echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
  18144. else
  18145. PKG_CONFIG_MIN_VERSION=0.9.0
  18146. if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
  18147. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdk-2.0 >= 2.8" >&5
  18148. $as_echo_n "checking for gdk-2.0 >= 2.8... " >&6; }
  18149. if $PKG_CONFIG --exists "gdk-2.0 >= 2.8" ; then
  18150. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  18151. $as_echo "yes" >&6; }
  18152. succeeded=yes
  18153. { $as_echo "$as_me:${as_lineno-$LINENO}: checking GDK_CFLAGS" >&5
  18154. $as_echo_n "checking GDK_CFLAGS... " >&6; }
  18155. GDK_CFLAGS=`$PKG_CONFIG --cflags "gdk-2.0 >= 2.8"`
  18156. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDK_CFLAGS" >&5
  18157. $as_echo "$GDK_CFLAGS" >&6; }
  18158. { $as_echo "$as_me:${as_lineno-$LINENO}: checking GDK_LIBS" >&5
  18159. $as_echo_n "checking GDK_LIBS... " >&6; }
  18160. GDK_LIBS=`$PKG_CONFIG --libs "gdk-2.0 >= 2.8"`
  18161. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDK_LIBS" >&5
  18162. $as_echo "$GDK_LIBS" >&6; }
  18163. else
  18164. GDK_CFLAGS=""
  18165. GDK_LIBS=""
  18166. ## If we have a custom action on failure, don't print errors, but
  18167. ## do set a variable so people can do so.
  18168. GDK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gdk-2.0 >= 2.8"`
  18169. echo $GDK_PKG_ERRORS
  18170. fi
  18171. else
  18172. echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
  18173. echo "*** See http://www.freedesktop.org/software/pkgconfig"
  18174. fi
  18175. fi
  18176. if test $succeeded = yes; then
  18177. :
  18178. else
  18179. as_fn_error "Library requirements (gdk-2.0 >= 2.8) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." "$LINENO" 5
  18180. fi
  18181. USE_GCONF_PREFS_PEER=$enable_default_preferences_peer
  18182. if test "$USE_GCONF_PREFS_PEER" = ""; then
  18183. DEFAULT_PREFS_PEER=gnu.java.util.prefs.GConfBasedFactory
  18184. fi
  18185. fi
  18186. if test "x${COMPILE_GSTREAMER_PEER}" = xyes; then
  18187. GST_MAJORMINOR=0.10
  18188. GST_REQUIRED=0.10.10
  18189. succeeded=no
  18190. if test -z "$PKG_CONFIG"; then
  18191. if test -n "$ac_tool_prefix"; then
  18192. # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
  18193. set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
  18194. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  18195. $as_echo_n "checking for $ac_word... " >&6; }
  18196. if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
  18197. $as_echo_n "(cached) " >&6
  18198. else
  18199. case $PKG_CONFIG in
  18200. [\\/]* | ?:[\\/]*)
  18201. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  18202. ;;
  18203. *)
  18204. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  18205. for as_dir in $PATH
  18206. do
  18207. IFS=$as_save_IFS
  18208. test -z "$as_dir" && as_dir=.
  18209. for ac_exec_ext in '' $ac_executable_extensions; do
  18210. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  18211. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  18212. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  18213. break 2
  18214. fi
  18215. done
  18216. done
  18217. IFS=$as_save_IFS
  18218. ;;
  18219. esac
  18220. fi
  18221. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  18222. if test -n "$PKG_CONFIG"; then
  18223. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  18224. $as_echo "$PKG_CONFIG" >&6; }
  18225. else
  18226. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18227. $as_echo "no" >&6; }
  18228. fi
  18229. fi
  18230. if test -z "$ac_cv_path_PKG_CONFIG"; then
  18231. ac_pt_PKG_CONFIG=$PKG_CONFIG
  18232. # Extract the first word of "pkg-config", so it can be a program name with args.
  18233. set dummy pkg-config; ac_word=$2
  18234. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  18235. $as_echo_n "checking for $ac_word... " >&6; }
  18236. if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
  18237. $as_echo_n "(cached) " >&6
  18238. else
  18239. case $ac_pt_PKG_CONFIG in
  18240. [\\/]* | ?:[\\/]*)
  18241. ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
  18242. ;;
  18243. *)
  18244. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  18245. for as_dir in $PATH
  18246. do
  18247. IFS=$as_save_IFS
  18248. test -z "$as_dir" && as_dir=.
  18249. for ac_exec_ext in '' $ac_executable_extensions; do
  18250. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  18251. ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  18252. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  18253. break 2
  18254. fi
  18255. done
  18256. done
  18257. IFS=$as_save_IFS
  18258. ;;
  18259. esac
  18260. fi
  18261. ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
  18262. if test -n "$ac_pt_PKG_CONFIG"; then
  18263. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
  18264. $as_echo "$ac_pt_PKG_CONFIG" >&6; }
  18265. else
  18266. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18267. $as_echo "no" >&6; }
  18268. fi
  18269. if test "x$ac_pt_PKG_CONFIG" = x; then
  18270. PKG_CONFIG="no"
  18271. else
  18272. case $cross_compiling:$ac_tool_warned in
  18273. yes:)
  18274. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  18275. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  18276. ac_tool_warned=yes ;;
  18277. esac
  18278. PKG_CONFIG=$ac_pt_PKG_CONFIG
  18279. fi
  18280. else
  18281. PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
  18282. fi
  18283. fi
  18284. if test "$PKG_CONFIG" = "no" ; then
  18285. echo "*** The pkg-config script could not be found. Make sure it is"
  18286. echo "*** in your path, or set the PKG_CONFIG environment variable"
  18287. echo "*** to the full path to pkg-config."
  18288. echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
  18289. else
  18290. PKG_CONFIG_MIN_VERSION=0.9.0
  18291. if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
  18292. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gstreamer-$GST_MAJORMINOR >= $GST_REQUIRED" >&5
  18293. $as_echo_n "checking for gstreamer-$GST_MAJORMINOR >= $GST_REQUIRED... " >&6; }
  18294. if $PKG_CONFIG --exists "gstreamer-$GST_MAJORMINOR >= $GST_REQUIRED" ; then
  18295. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  18296. $as_echo "yes" >&6; }
  18297. succeeded=yes
  18298. { $as_echo "$as_me:${as_lineno-$LINENO}: checking GSTREAMER_CFLAGS" >&5
  18299. $as_echo_n "checking GSTREAMER_CFLAGS... " >&6; }
  18300. GSTREAMER_CFLAGS=`$PKG_CONFIG --cflags "gstreamer-$GST_MAJORMINOR >= $GST_REQUIRED"`
  18301. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSTREAMER_CFLAGS" >&5
  18302. $as_echo "$GSTREAMER_CFLAGS" >&6; }
  18303. { $as_echo "$as_me:${as_lineno-$LINENO}: checking GSTREAMER_LIBS" >&5
  18304. $as_echo_n "checking GSTREAMER_LIBS... " >&6; }
  18305. GSTREAMER_LIBS=`$PKG_CONFIG --libs "gstreamer-$GST_MAJORMINOR >= $GST_REQUIRED"`
  18306. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSTREAMER_LIBS" >&5
  18307. $as_echo "$GSTREAMER_LIBS" >&6; }
  18308. else
  18309. GSTREAMER_CFLAGS=""
  18310. GSTREAMER_LIBS=""
  18311. ## If we have a custom action on failure, don't print errors, but
  18312. ## do set a variable so people can do so.
  18313. GSTREAMER_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gstreamer-$GST_MAJORMINOR >= $GST_REQUIRED"`
  18314. echo $GSTREAMER_PKG_ERRORS
  18315. fi
  18316. else
  18317. echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
  18318. echo "*** See http://www.freedesktop.org/software/pkgconfig"
  18319. fi
  18320. fi
  18321. if test $succeeded = yes; then
  18322. :
  18323. else
  18324. as_fn_error "Library requirements (gstreamer-$GST_MAJORMINOR >= $GST_REQUIRED) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." "$LINENO" 5
  18325. fi
  18326. succeeded=no
  18327. if test -z "$PKG_CONFIG"; then
  18328. if test -n "$ac_tool_prefix"; then
  18329. # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
  18330. set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
  18331. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  18332. $as_echo_n "checking for $ac_word... " >&6; }
  18333. if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
  18334. $as_echo_n "(cached) " >&6
  18335. else
  18336. case $PKG_CONFIG in
  18337. [\\/]* | ?:[\\/]*)
  18338. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  18339. ;;
  18340. *)
  18341. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  18342. for as_dir in $PATH
  18343. do
  18344. IFS=$as_save_IFS
  18345. test -z "$as_dir" && as_dir=.
  18346. for ac_exec_ext in '' $ac_executable_extensions; do
  18347. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  18348. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  18349. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  18350. break 2
  18351. fi
  18352. done
  18353. done
  18354. IFS=$as_save_IFS
  18355. ;;
  18356. esac
  18357. fi
  18358. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  18359. if test -n "$PKG_CONFIG"; then
  18360. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  18361. $as_echo "$PKG_CONFIG" >&6; }
  18362. else
  18363. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18364. $as_echo "no" >&6; }
  18365. fi
  18366. fi
  18367. if test -z "$ac_cv_path_PKG_CONFIG"; then
  18368. ac_pt_PKG_CONFIG=$PKG_CONFIG
  18369. # Extract the first word of "pkg-config", so it can be a program name with args.
  18370. set dummy pkg-config; ac_word=$2
  18371. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  18372. $as_echo_n "checking for $ac_word... " >&6; }
  18373. if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
  18374. $as_echo_n "(cached) " >&6
  18375. else
  18376. case $ac_pt_PKG_CONFIG in
  18377. [\\/]* | ?:[\\/]*)
  18378. ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
  18379. ;;
  18380. *)
  18381. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  18382. for as_dir in $PATH
  18383. do
  18384. IFS=$as_save_IFS
  18385. test -z "$as_dir" && as_dir=.
  18386. for ac_exec_ext in '' $ac_executable_extensions; do
  18387. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  18388. ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  18389. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  18390. break 2
  18391. fi
  18392. done
  18393. done
  18394. IFS=$as_save_IFS
  18395. ;;
  18396. esac
  18397. fi
  18398. ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
  18399. if test -n "$ac_pt_PKG_CONFIG"; then
  18400. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
  18401. $as_echo "$ac_pt_PKG_CONFIG" >&6; }
  18402. else
  18403. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18404. $as_echo "no" >&6; }
  18405. fi
  18406. if test "x$ac_pt_PKG_CONFIG" = x; then
  18407. PKG_CONFIG="no"
  18408. else
  18409. case $cross_compiling:$ac_tool_warned in
  18410. yes:)
  18411. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  18412. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  18413. ac_tool_warned=yes ;;
  18414. esac
  18415. PKG_CONFIG=$ac_pt_PKG_CONFIG
  18416. fi
  18417. else
  18418. PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
  18419. fi
  18420. fi
  18421. if test "$PKG_CONFIG" = "no" ; then
  18422. echo "*** The pkg-config script could not be found. Make sure it is"
  18423. echo "*** in your path, or set the PKG_CONFIG environment variable"
  18424. echo "*** to the full path to pkg-config."
  18425. echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
  18426. else
  18427. PKG_CONFIG_MIN_VERSION=0.9.0
  18428. if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
  18429. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gstreamer-base-$GST_MAJORMINOR >= $GST_REQUIRED" >&5
  18430. $as_echo_n "checking for gstreamer-base-$GST_MAJORMINOR >= $GST_REQUIRED... " >&6; }
  18431. if $PKG_CONFIG --exists "gstreamer-base-$GST_MAJORMINOR >= $GST_REQUIRED" ; then
  18432. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  18433. $as_echo "yes" >&6; }
  18434. succeeded=yes
  18435. { $as_echo "$as_me:${as_lineno-$LINENO}: checking GSTREAMER_BASE_CFLAGS" >&5
  18436. $as_echo_n "checking GSTREAMER_BASE_CFLAGS... " >&6; }
  18437. GSTREAMER_BASE_CFLAGS=`$PKG_CONFIG --cflags "gstreamer-base-$GST_MAJORMINOR >= $GST_REQUIRED"`
  18438. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSTREAMER_BASE_CFLAGS" >&5
  18439. $as_echo "$GSTREAMER_BASE_CFLAGS" >&6; }
  18440. { $as_echo "$as_me:${as_lineno-$LINENO}: checking GSTREAMER_BASE_LIBS" >&5
  18441. $as_echo_n "checking GSTREAMER_BASE_LIBS... " >&6; }
  18442. GSTREAMER_BASE_LIBS=`$PKG_CONFIG --libs "gstreamer-base-$GST_MAJORMINOR >= $GST_REQUIRED"`
  18443. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSTREAMER_BASE_LIBS" >&5
  18444. $as_echo "$GSTREAMER_BASE_LIBS" >&6; }
  18445. else
  18446. GSTREAMER_BASE_CFLAGS=""
  18447. GSTREAMER_BASE_LIBS=""
  18448. ## If we have a custom action on failure, don't print errors, but
  18449. ## do set a variable so people can do so.
  18450. GSTREAMER_BASE_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gstreamer-base-$GST_MAJORMINOR >= $GST_REQUIRED"`
  18451. echo $GSTREAMER_BASE_PKG_ERRORS
  18452. fi
  18453. else
  18454. echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
  18455. echo "*** See http://www.freedesktop.org/software/pkgconfig"
  18456. fi
  18457. fi
  18458. if test $succeeded = yes; then
  18459. :
  18460. else
  18461. as_fn_error "Library requirements (gstreamer-base-$GST_MAJORMINOR >= $GST_REQUIRED) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." "$LINENO" 5
  18462. fi
  18463. succeeded=no
  18464. if test -z "$PKG_CONFIG"; then
  18465. if test -n "$ac_tool_prefix"; then
  18466. # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
  18467. set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
  18468. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  18469. $as_echo_n "checking for $ac_word... " >&6; }
  18470. if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
  18471. $as_echo_n "(cached) " >&6
  18472. else
  18473. case $PKG_CONFIG in
  18474. [\\/]* | ?:[\\/]*)
  18475. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  18476. ;;
  18477. *)
  18478. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  18479. for as_dir in $PATH
  18480. do
  18481. IFS=$as_save_IFS
  18482. test -z "$as_dir" && as_dir=.
  18483. for ac_exec_ext in '' $ac_executable_extensions; do
  18484. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  18485. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  18486. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  18487. break 2
  18488. fi
  18489. done
  18490. done
  18491. IFS=$as_save_IFS
  18492. ;;
  18493. esac
  18494. fi
  18495. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  18496. if test -n "$PKG_CONFIG"; then
  18497. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  18498. $as_echo "$PKG_CONFIG" >&6; }
  18499. else
  18500. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18501. $as_echo "no" >&6; }
  18502. fi
  18503. fi
  18504. if test -z "$ac_cv_path_PKG_CONFIG"; then
  18505. ac_pt_PKG_CONFIG=$PKG_CONFIG
  18506. # Extract the first word of "pkg-config", so it can be a program name with args.
  18507. set dummy pkg-config; ac_word=$2
  18508. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  18509. $as_echo_n "checking for $ac_word... " >&6; }
  18510. if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
  18511. $as_echo_n "(cached) " >&6
  18512. else
  18513. case $ac_pt_PKG_CONFIG in
  18514. [\\/]* | ?:[\\/]*)
  18515. ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
  18516. ;;
  18517. *)
  18518. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  18519. for as_dir in $PATH
  18520. do
  18521. IFS=$as_save_IFS
  18522. test -z "$as_dir" && as_dir=.
  18523. for ac_exec_ext in '' $ac_executable_extensions; do
  18524. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  18525. ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  18526. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  18527. break 2
  18528. fi
  18529. done
  18530. done
  18531. IFS=$as_save_IFS
  18532. ;;
  18533. esac
  18534. fi
  18535. ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
  18536. if test -n "$ac_pt_PKG_CONFIG"; then
  18537. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
  18538. $as_echo "$ac_pt_PKG_CONFIG" >&6; }
  18539. else
  18540. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18541. $as_echo "no" >&6; }
  18542. fi
  18543. if test "x$ac_pt_PKG_CONFIG" = x; then
  18544. PKG_CONFIG="no"
  18545. else
  18546. case $cross_compiling:$ac_tool_warned in
  18547. yes:)
  18548. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  18549. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  18550. ac_tool_warned=yes ;;
  18551. esac
  18552. PKG_CONFIG=$ac_pt_PKG_CONFIG
  18553. fi
  18554. else
  18555. PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
  18556. fi
  18557. fi
  18558. if test "$PKG_CONFIG" = "no" ; then
  18559. echo "*** The pkg-config script could not be found. Make sure it is"
  18560. echo "*** in your path, or set the PKG_CONFIG environment variable"
  18561. echo "*** to the full path to pkg-config."
  18562. echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
  18563. else
  18564. PKG_CONFIG_MIN_VERSION=0.9.0
  18565. if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
  18566. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gstreamer-plugins-base-$GST_MAJORMINOR >= $GST_REQUIRED" >&5
  18567. $as_echo_n "checking for gstreamer-plugins-base-$GST_MAJORMINOR >= $GST_REQUIRED... " >&6; }
  18568. if $PKG_CONFIG --exists "gstreamer-plugins-base-$GST_MAJORMINOR >= $GST_REQUIRED" ; then
  18569. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  18570. $as_echo "yes" >&6; }
  18571. succeeded=yes
  18572. { $as_echo "$as_me:${as_lineno-$LINENO}: checking GSTREAMER_PLUGINS_BASE_CFLAGS" >&5
  18573. $as_echo_n "checking GSTREAMER_PLUGINS_BASE_CFLAGS... " >&6; }
  18574. GSTREAMER_PLUGINS_BASE_CFLAGS=`$PKG_CONFIG --cflags "gstreamer-plugins-base-$GST_MAJORMINOR >= $GST_REQUIRED"`
  18575. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSTREAMER_PLUGINS_BASE_CFLAGS" >&5
  18576. $as_echo "$GSTREAMER_PLUGINS_BASE_CFLAGS" >&6; }
  18577. { $as_echo "$as_me:${as_lineno-$LINENO}: checking GSTREAMER_PLUGINS_BASE_LIBS" >&5
  18578. $as_echo_n "checking GSTREAMER_PLUGINS_BASE_LIBS... " >&6; }
  18579. GSTREAMER_PLUGINS_BASE_LIBS=`$PKG_CONFIG --libs "gstreamer-plugins-base-$GST_MAJORMINOR >= $GST_REQUIRED"`
  18580. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSTREAMER_PLUGINS_BASE_LIBS" >&5
  18581. $as_echo "$GSTREAMER_PLUGINS_BASE_LIBS" >&6; }
  18582. else
  18583. GSTREAMER_PLUGINS_BASE_CFLAGS=""
  18584. GSTREAMER_PLUGINS_BASE_LIBS=""
  18585. ## If we have a custom action on failure, don't print errors, but
  18586. ## do set a variable so people can do so.
  18587. GSTREAMER_PLUGINS_BASE_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gstreamer-plugins-base-$GST_MAJORMINOR >= $GST_REQUIRED"`
  18588. echo $GSTREAMER_PLUGINS_BASE_PKG_ERRORS
  18589. fi
  18590. else
  18591. echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
  18592. echo "*** See http://www.freedesktop.org/software/pkgconfig"
  18593. fi
  18594. fi
  18595. if test $succeeded = yes; then
  18596. :
  18597. else
  18598. as_fn_error "Library requirements (gstreamer-plugins-base-$GST_MAJORMINOR >= $GST_REQUIRED) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." "$LINENO" 5
  18599. fi
  18600. GST_PLUGIN_LDFLAGS='-module -avoid-version -Wno-unused-parameter -no-undefined'
  18601. succeeded=no
  18602. if test -z "$PKG_CONFIG"; then
  18603. if test -n "$ac_tool_prefix"; then
  18604. # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
  18605. set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
  18606. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  18607. $as_echo_n "checking for $ac_word... " >&6; }
  18608. if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
  18609. $as_echo_n "(cached) " >&6
  18610. else
  18611. case $PKG_CONFIG in
  18612. [\\/]* | ?:[\\/]*)
  18613. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  18614. ;;
  18615. *)
  18616. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  18617. for as_dir in $PATH
  18618. do
  18619. IFS=$as_save_IFS
  18620. test -z "$as_dir" && as_dir=.
  18621. for ac_exec_ext in '' $ac_executable_extensions; do
  18622. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  18623. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  18624. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  18625. break 2
  18626. fi
  18627. done
  18628. done
  18629. IFS=$as_save_IFS
  18630. ;;
  18631. esac
  18632. fi
  18633. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  18634. if test -n "$PKG_CONFIG"; then
  18635. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  18636. $as_echo "$PKG_CONFIG" >&6; }
  18637. else
  18638. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18639. $as_echo "no" >&6; }
  18640. fi
  18641. fi
  18642. if test -z "$ac_cv_path_PKG_CONFIG"; then
  18643. ac_pt_PKG_CONFIG=$PKG_CONFIG
  18644. # Extract the first word of "pkg-config", so it can be a program name with args.
  18645. set dummy pkg-config; ac_word=$2
  18646. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  18647. $as_echo_n "checking for $ac_word... " >&6; }
  18648. if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
  18649. $as_echo_n "(cached) " >&6
  18650. else
  18651. case $ac_pt_PKG_CONFIG in
  18652. [\\/]* | ?:[\\/]*)
  18653. ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
  18654. ;;
  18655. *)
  18656. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  18657. for as_dir in $PATH
  18658. do
  18659. IFS=$as_save_IFS
  18660. test -z "$as_dir" && as_dir=.
  18661. for ac_exec_ext in '' $ac_executable_extensions; do
  18662. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  18663. ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  18664. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  18665. break 2
  18666. fi
  18667. done
  18668. done
  18669. IFS=$as_save_IFS
  18670. ;;
  18671. esac
  18672. fi
  18673. ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
  18674. if test -n "$ac_pt_PKG_CONFIG"; then
  18675. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
  18676. $as_echo "$ac_pt_PKG_CONFIG" >&6; }
  18677. else
  18678. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18679. $as_echo "no" >&6; }
  18680. fi
  18681. if test "x$ac_pt_PKG_CONFIG" = x; then
  18682. PKG_CONFIG="no"
  18683. else
  18684. case $cross_compiling:$ac_tool_warned in
  18685. yes:)
  18686. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  18687. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  18688. ac_tool_warned=yes ;;
  18689. esac
  18690. PKG_CONFIG=$ac_pt_PKG_CONFIG
  18691. fi
  18692. else
  18693. PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
  18694. fi
  18695. fi
  18696. if test "$PKG_CONFIG" = "no" ; then
  18697. echo "*** The pkg-config script could not be found. Make sure it is"
  18698. echo "*** in your path, or set the PKG_CONFIG environment variable"
  18699. echo "*** to the full path to pkg-config."
  18700. echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
  18701. else
  18702. PKG_CONFIG_MIN_VERSION=0.9.0
  18703. if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
  18704. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdk-2.0 >= 2.8" >&5
  18705. $as_echo_n "checking for gdk-2.0 >= 2.8... " >&6; }
  18706. if $PKG_CONFIG --exists "gdk-2.0 >= 2.8" ; then
  18707. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  18708. $as_echo "yes" >&6; }
  18709. succeeded=yes
  18710. { $as_echo "$as_me:${as_lineno-$LINENO}: checking GDK_CFLAGS" >&5
  18711. $as_echo_n "checking GDK_CFLAGS... " >&6; }
  18712. GDK_CFLAGS=`$PKG_CONFIG --cflags "gdk-2.0 >= 2.8"`
  18713. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDK_CFLAGS" >&5
  18714. $as_echo "$GDK_CFLAGS" >&6; }
  18715. { $as_echo "$as_me:${as_lineno-$LINENO}: checking GDK_LIBS" >&5
  18716. $as_echo_n "checking GDK_LIBS... " >&6; }
  18717. GDK_LIBS=`$PKG_CONFIG --libs "gdk-2.0 >= 2.8"`
  18718. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDK_LIBS" >&5
  18719. $as_echo "$GDK_LIBS" >&6; }
  18720. else
  18721. GDK_CFLAGS=""
  18722. GDK_LIBS=""
  18723. ## If we have a custom action on failure, don't print errors, but
  18724. ## do set a variable so people can do so.
  18725. GDK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gdk-2.0 >= 2.8"`
  18726. echo $GDK_PKG_ERRORS
  18727. fi
  18728. else
  18729. echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
  18730. echo "*** See http://www.freedesktop.org/software/pkgconfig"
  18731. fi
  18732. fi
  18733. if test $succeeded = yes; then
  18734. :
  18735. else
  18736. as_fn_error "Library requirements (gdk-2.0 >= 2.8) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." "$LINENO" 5
  18737. fi
  18738. GSTREAMER_FILE_READER=gnu.javax.sound.sampled.gstreamer.io.GstAudioFileReader
  18739. GSTREAMER_MIXER_PROVIDER=gnu.javax.sound.sampled.gstreamer.GStreamerMixerProvider
  18740. fi
  18741. if test "x${COMPILE_QT_PEER}" = xyes; then
  18742. succeeded=no
  18743. if test -z "$PKG_CONFIG"; then
  18744. if test -n "$ac_tool_prefix"; then
  18745. # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
  18746. set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
  18747. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  18748. $as_echo_n "checking for $ac_word... " >&6; }
  18749. if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
  18750. $as_echo_n "(cached) " >&6
  18751. else
  18752. case $PKG_CONFIG in
  18753. [\\/]* | ?:[\\/]*)
  18754. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  18755. ;;
  18756. *)
  18757. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  18758. for as_dir in $PATH
  18759. do
  18760. IFS=$as_save_IFS
  18761. test -z "$as_dir" && as_dir=.
  18762. for ac_exec_ext in '' $ac_executable_extensions; do
  18763. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  18764. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  18765. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  18766. break 2
  18767. fi
  18768. done
  18769. done
  18770. IFS=$as_save_IFS
  18771. ;;
  18772. esac
  18773. fi
  18774. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  18775. if test -n "$PKG_CONFIG"; then
  18776. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  18777. $as_echo "$PKG_CONFIG" >&6; }
  18778. else
  18779. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18780. $as_echo "no" >&6; }
  18781. fi
  18782. fi
  18783. if test -z "$ac_cv_path_PKG_CONFIG"; then
  18784. ac_pt_PKG_CONFIG=$PKG_CONFIG
  18785. # Extract the first word of "pkg-config", so it can be a program name with args.
  18786. set dummy pkg-config; ac_word=$2
  18787. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  18788. $as_echo_n "checking for $ac_word... " >&6; }
  18789. if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
  18790. $as_echo_n "(cached) " >&6
  18791. else
  18792. case $ac_pt_PKG_CONFIG in
  18793. [\\/]* | ?:[\\/]*)
  18794. ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
  18795. ;;
  18796. *)
  18797. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  18798. for as_dir in $PATH
  18799. do
  18800. IFS=$as_save_IFS
  18801. test -z "$as_dir" && as_dir=.
  18802. for ac_exec_ext in '' $ac_executable_extensions; do
  18803. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  18804. ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  18805. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  18806. break 2
  18807. fi
  18808. done
  18809. done
  18810. IFS=$as_save_IFS
  18811. ;;
  18812. esac
  18813. fi
  18814. ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
  18815. if test -n "$ac_pt_PKG_CONFIG"; then
  18816. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
  18817. $as_echo "$ac_pt_PKG_CONFIG" >&6; }
  18818. else
  18819. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18820. $as_echo "no" >&6; }
  18821. fi
  18822. if test "x$ac_pt_PKG_CONFIG" = x; then
  18823. PKG_CONFIG="no"
  18824. else
  18825. case $cross_compiling:$ac_tool_warned in
  18826. yes:)
  18827. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  18828. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  18829. ac_tool_warned=yes ;;
  18830. esac
  18831. PKG_CONFIG=$ac_pt_PKG_CONFIG
  18832. fi
  18833. else
  18834. PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
  18835. fi
  18836. fi
  18837. if test "$PKG_CONFIG" = "no" ; then
  18838. echo "*** The pkg-config script could not be found. Make sure it is"
  18839. echo "*** in your path, or set the PKG_CONFIG environment variable"
  18840. echo "*** to the full path to pkg-config."
  18841. echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
  18842. else
  18843. PKG_CONFIG_MIN_VERSION=0.9.0
  18844. if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
  18845. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for QtCore QtGui >= 4.1.0" >&5
  18846. $as_echo_n "checking for QtCore QtGui >= 4.1.0... " >&6; }
  18847. if $PKG_CONFIG --exists "QtCore QtGui >= 4.1.0" ; then
  18848. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  18849. $as_echo "yes" >&6; }
  18850. succeeded=yes
  18851. { $as_echo "$as_me:${as_lineno-$LINENO}: checking QT_CFLAGS" >&5
  18852. $as_echo_n "checking QT_CFLAGS... " >&6; }
  18853. QT_CFLAGS=`$PKG_CONFIG --cflags "QtCore QtGui >= 4.1.0"`
  18854. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $QT_CFLAGS" >&5
  18855. $as_echo "$QT_CFLAGS" >&6; }
  18856. { $as_echo "$as_me:${as_lineno-$LINENO}: checking QT_LIBS" >&5
  18857. $as_echo_n "checking QT_LIBS... " >&6; }
  18858. QT_LIBS=`$PKG_CONFIG --libs "QtCore QtGui >= 4.1.0"`
  18859. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $QT_LIBS" >&5
  18860. $as_echo "$QT_LIBS" >&6; }
  18861. else
  18862. QT_CFLAGS=""
  18863. QT_LIBS=""
  18864. ## If we have a custom action on failure, don't print errors, but
  18865. ## do set a variable so people can do so.
  18866. QT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "QtCore QtGui >= 4.1.0"`
  18867. fi
  18868. else
  18869. echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
  18870. echo "*** See http://www.freedesktop.org/software/pkgconfig"
  18871. fi
  18872. fi
  18873. if test $succeeded = yes; then
  18874. HAVE_QT4="yes"
  18875. else
  18876. HAVE_QT4="no"
  18877. fi
  18878. if test "x$HAVE_QT4" = "xyes"; then
  18879. QT_INCLUDE_DIR=`$PKG_CONFIG --variable=includedir QtGui`
  18880. EXTRA_QT_INCLUDE_DIR="$QT_INCLUDE_DIR/Qt"
  18881. as_ac_File=`$as_echo "ac_cv_file_$QT_INCLUDE_DIR/QWidget" | $as_tr_sh`
  18882. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $QT_INCLUDE_DIR/QWidget" >&5
  18883. $as_echo_n "checking for $QT_INCLUDE_DIR/QWidget... " >&6; }
  18884. if { as_var=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then :
  18885. $as_echo_n "(cached) " >&6
  18886. else
  18887. test "$cross_compiling" = yes &&
  18888. as_fn_error "cannot check for file existence when cross compiling" "$LINENO" 5
  18889. if test -r "$QT_INCLUDE_DIR/QWidget"; then
  18890. eval "$as_ac_File=yes"
  18891. else
  18892. eval "$as_ac_File=no"
  18893. fi
  18894. fi
  18895. eval ac_res=\$$as_ac_File
  18896. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  18897. $as_echo "$ac_res" >&6; }
  18898. eval as_val=\$$as_ac_File
  18899. if test "x$as_val" = x""yes; then :
  18900. { $as_echo "$as_me:${as_lineno-$LINENO}: No extra QT_INCLUDE_DIR needed" >&5
  18901. $as_echo "$as_me: No extra QT_INCLUDE_DIR needed" >&6;}
  18902. else
  18903. as_ac_File=`$as_echo "ac_cv_file_$EXTRA_QT_INCLUDE_DIR/QWidget" | $as_tr_sh`
  18904. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $EXTRA_QT_INCLUDE_DIR/QWidget" >&5
  18905. $as_echo_n "checking for $EXTRA_QT_INCLUDE_DIR/QWidget... " >&6; }
  18906. if { as_var=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then :
  18907. $as_echo_n "(cached) " >&6
  18908. else
  18909. test "$cross_compiling" = yes &&
  18910. as_fn_error "cannot check for file existence when cross compiling" "$LINENO" 5
  18911. if test -r "$EXTRA_QT_INCLUDE_DIR/QWidget"; then
  18912. eval "$as_ac_File=yes"
  18913. else
  18914. eval "$as_ac_File=no"
  18915. fi
  18916. fi
  18917. eval ac_res=\$$as_ac_File
  18918. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  18919. $as_echo "$ac_res" >&6; }
  18920. eval as_val=\$$as_ac_File
  18921. if test "x$as_val" = x""yes; then :
  18922. QT_CFLAGS="$QT_CFLAGS -I$EXTRA_QT_INCLUDE_DIR"
  18923. else
  18924. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: QWidget not found" >&5
  18925. $as_echo "$as_me: WARNING: QWidget not found" >&2;}
  18926. fi
  18927. fi
  18928. # Extract the first word of "moc", so it can be a program name with args.
  18929. set dummy moc; ac_word=$2
  18930. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  18931. $as_echo_n "checking for $ac_word... " >&6; }
  18932. if test "${ac_cv_prog_MOC+set}" = set; then :
  18933. $as_echo_n "(cached) " >&6
  18934. else
  18935. if test -n "$MOC"; then
  18936. ac_cv_prog_MOC="$MOC" # Let the user override the test.
  18937. else
  18938. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  18939. for as_dir in $PATH
  18940. do
  18941. IFS=$as_save_IFS
  18942. test -z "$as_dir" && as_dir=.
  18943. for ac_exec_ext in '' $ac_executable_extensions; do
  18944. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  18945. ac_cv_prog_MOC="moc"
  18946. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  18947. break 2
  18948. fi
  18949. done
  18950. done
  18951. IFS=$as_save_IFS
  18952. fi
  18953. fi
  18954. MOC=$ac_cv_prog_MOC
  18955. if test -n "$MOC"; then
  18956. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MOC" >&5
  18957. $as_echo "$MOC" >&6; }
  18958. else
  18959. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18960. $as_echo "no" >&6; }
  18961. fi
  18962. # Extract the first word of "moc-qt4", so it can be a program name with args.
  18963. set dummy moc-qt4; ac_word=$2
  18964. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  18965. $as_echo_n "checking for $ac_word... " >&6; }
  18966. if test "${ac_cv_prog_MOC4+set}" = set; then :
  18967. $as_echo_n "(cached) " >&6
  18968. else
  18969. if test -n "$MOC4"; then
  18970. ac_cv_prog_MOC4="$MOC4" # Let the user override the test.
  18971. else
  18972. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  18973. for as_dir in $PATH
  18974. do
  18975. IFS=$as_save_IFS
  18976. test -z "$as_dir" && as_dir=.
  18977. for ac_exec_ext in '' $ac_executable_extensions; do
  18978. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  18979. ac_cv_prog_MOC4="moc-qt4"
  18980. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  18981. break 2
  18982. fi
  18983. done
  18984. done
  18985. IFS=$as_save_IFS
  18986. fi
  18987. fi
  18988. MOC4=$ac_cv_prog_MOC4
  18989. if test -n "$MOC4"; then
  18990. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MOC4" >&5
  18991. $as_echo "$MOC4" >&6; }
  18992. else
  18993. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18994. $as_echo "no" >&6; }
  18995. fi
  18996. if test x"$MOC4" != x ; then
  18997. { $as_echo "$as_me:${as_lineno-$LINENO}: Using $MOC4 as moc" >&5
  18998. $as_echo "$as_me: Using $MOC4 as moc" >&6;}
  18999. MOC=$MOC4;
  19000. fi
  19001. fi
  19002. if test "x$HAVE_QT4" = "xno"; then
  19003. { $as_echo "$as_me:${as_lineno-$LINENO}: Looking for QT_CFLAGS and QT_LIBS without pkg-config" >&5
  19004. $as_echo "$as_me: Looking for QT_CFLAGS and QT_LIBS without pkg-config" >&6;}
  19005. case "$host_os" in
  19006. darwin*)
  19007. # Check whether --with-qt4dir was given.
  19008. if test "${with_qt4dir+set}" = set; then :
  19009. withval=$with_qt4dir; QT4DIR=$withval
  19010. fi
  19011. if test x"$QT4DIR" = x ; then
  19012. as_fn_error "*** No path for Qt4 --with-qt4dir option given" "$LINENO" 5
  19013. fi
  19014. { $as_echo "$as_me:${as_lineno-$LINENO}: result: QT4DIR... $QT4DIR" >&5
  19015. $as_echo "QT4DIR... $QT4DIR" >&6; }
  19016. # Extract the first word of "moc", so it can be a program name with args.
  19017. set dummy moc; ac_word=$2
  19018. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  19019. $as_echo_n "checking for $ac_word... " >&6; }
  19020. if test "${ac_cv_prog_MOC+set}" = set; then :
  19021. $as_echo_n "(cached) " >&6
  19022. else
  19023. if test -n "$MOC"; then
  19024. ac_cv_prog_MOC="$MOC" # Let the user override the test.
  19025. else
  19026. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  19027. for as_dir in $QT4DIR/bin
  19028. do
  19029. IFS=$as_save_IFS
  19030. test -z "$as_dir" && as_dir=.
  19031. for ac_exec_ext in '' $ac_executable_extensions; do
  19032. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  19033. ac_cv_prog_MOC="$QT4DIR/bin/moc"
  19034. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  19035. break 2
  19036. fi
  19037. done
  19038. done
  19039. IFS=$as_save_IFS
  19040. fi
  19041. fi
  19042. MOC=$ac_cv_prog_MOC
  19043. if test -n "$MOC"; then
  19044. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MOC" >&5
  19045. $as_echo "$MOC" >&6; }
  19046. else
  19047. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19048. $as_echo "no" >&6; }
  19049. fi
  19050. if test x"$MOC" = x; then
  19051. as_fn_error "*** This is not the right Qt installation" "$LINENO" 5
  19052. fi
  19053. QT_CFLAGS="-F$QT4DIR/lib -I$QT4DIR/lib/QtCore.framework/Headers"
  19054. QT_CFLAGS="$QT_CFLAGS -I$QT4DIR/lib/QtGui.framework/Headers"
  19055. QT_LIBS="-Xlinker -F$QT4DIR/lib -Xlinker -framework -Xlinker QtCore"
  19056. QT_LIBS="$QT_LIBS -Xlinker -framework -Xlinker QtGui"
  19057. ;;
  19058. *)
  19059. as_fn_error "*** Please check PKG_CONFIG_PATH or the version
  19060. of your installed Qt4 installation." "$LINENO" 5
  19061. ;;
  19062. esac
  19063. fi
  19064. { $as_echo "$as_me:${as_lineno-$LINENO}: Set QT_CFLAGS... $QT_CFLAGS" >&5
  19065. $as_echo "$as_me: Set QT_CFLAGS... $QT_CFLAGS" >&6;}
  19066. fi
  19067. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MSG_NOSIGNAL" >&5
  19068. $as_echo_n "checking for MSG_NOSIGNAL... " >&6; }
  19069. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19070. /* end confdefs.h. */
  19071. #include <sys/socket.h>
  19072. int
  19073. main ()
  19074. {
  19075. int f = MSG_NOSIGNAL;
  19076. ;
  19077. return 0;
  19078. }
  19079. _ACEOF
  19080. if ac_fn_c_try_compile "$LINENO"; then :
  19081. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  19082. $as_echo "yes" >&6; }
  19083. $as_echo "#define HAVE_MSG_NOSIGNAL 1" >>confdefs.h
  19084. else
  19085. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19086. $as_echo "no" >&6; }
  19087. fi
  19088. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19089. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SO_NOSIGPIPE " >&5
  19090. $as_echo_n "checking for SO_NOSIGPIPE ... " >&6; }
  19091. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19092. /* end confdefs.h. */
  19093. #include <sys/socket.h>
  19094. int
  19095. main ()
  19096. {
  19097. int f = SO_NOSIGPIPE;
  19098. ;
  19099. return 0;
  19100. }
  19101. _ACEOF
  19102. if ac_fn_c_try_compile "$LINENO"; then :
  19103. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  19104. $as_echo "yes" >&6; }
  19105. $as_echo "#define HAVE_SO_NOSIGPIPE 1" >>confdefs.h
  19106. else
  19107. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19108. $as_echo "no" >&6; }
  19109. fi
  19110. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19111. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MSG_WAITALL" >&5
  19112. $as_echo_n "checking for MSG_WAITALL... " >&6; }
  19113. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19114. /* end confdefs.h. */
  19115. #include <sys/socket.h>
  19116. int
  19117. main ()
  19118. {
  19119. int f = MSG_WAITALL;
  19120. ;
  19121. return 0;
  19122. }
  19123. _ACEOF
  19124. if ac_fn_c_try_compile "$LINENO"; then :
  19125. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  19126. $as_echo "yes" >&6; }
  19127. $as_echo "#define HAVE_MSG_WAITALL 1" >>confdefs.h
  19128. else
  19129. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19130. $as_echo "no" >&6; }
  19131. fi
  19132. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19133. if test "x${COMPILE_PLUGIN}" = xyes; then
  19134. succeeded=no
  19135. if test -z "$PKG_CONFIG"; then
  19136. if test -n "$ac_tool_prefix"; then
  19137. # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
  19138. set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
  19139. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  19140. $as_echo_n "checking for $ac_word... " >&6; }
  19141. if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
  19142. $as_echo_n "(cached) " >&6
  19143. else
  19144. case $PKG_CONFIG in
  19145. [\\/]* | ?:[\\/]*)
  19146. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  19147. ;;
  19148. *)
  19149. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  19150. for as_dir in $PATH
  19151. do
  19152. IFS=$as_save_IFS
  19153. test -z "$as_dir" && as_dir=.
  19154. for ac_exec_ext in '' $ac_executable_extensions; do
  19155. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  19156. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  19157. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  19158. break 2
  19159. fi
  19160. done
  19161. done
  19162. IFS=$as_save_IFS
  19163. ;;
  19164. esac
  19165. fi
  19166. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  19167. if test -n "$PKG_CONFIG"; then
  19168. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  19169. $as_echo "$PKG_CONFIG" >&6; }
  19170. else
  19171. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19172. $as_echo "no" >&6; }
  19173. fi
  19174. fi
  19175. if test -z "$ac_cv_path_PKG_CONFIG"; then
  19176. ac_pt_PKG_CONFIG=$PKG_CONFIG
  19177. # Extract the first word of "pkg-config", so it can be a program name with args.
  19178. set dummy pkg-config; ac_word=$2
  19179. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  19180. $as_echo_n "checking for $ac_word... " >&6; }
  19181. if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
  19182. $as_echo_n "(cached) " >&6
  19183. else
  19184. case $ac_pt_PKG_CONFIG in
  19185. [\\/]* | ?:[\\/]*)
  19186. ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
  19187. ;;
  19188. *)
  19189. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  19190. for as_dir in $PATH
  19191. do
  19192. IFS=$as_save_IFS
  19193. test -z "$as_dir" && as_dir=.
  19194. for ac_exec_ext in '' $ac_executable_extensions; do
  19195. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  19196. ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  19197. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  19198. break 2
  19199. fi
  19200. done
  19201. done
  19202. IFS=$as_save_IFS
  19203. ;;
  19204. esac
  19205. fi
  19206. ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
  19207. if test -n "$ac_pt_PKG_CONFIG"; then
  19208. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
  19209. $as_echo "$ac_pt_PKG_CONFIG" >&6; }
  19210. else
  19211. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19212. $as_echo "no" >&6; }
  19213. fi
  19214. if test "x$ac_pt_PKG_CONFIG" = x; then
  19215. PKG_CONFIG="no"
  19216. else
  19217. case $cross_compiling:$ac_tool_warned in
  19218. yes:)
  19219. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  19220. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  19221. ac_tool_warned=yes ;;
  19222. esac
  19223. PKG_CONFIG=$ac_pt_PKG_CONFIG
  19224. fi
  19225. else
  19226. PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
  19227. fi
  19228. fi
  19229. if test "$PKG_CONFIG" = "no" ; then
  19230. echo "*** The pkg-config script could not be found. Make sure it is"
  19231. echo "*** in your path, or set the PKG_CONFIG environment variable"
  19232. echo "*** to the full path to pkg-config."
  19233. echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
  19234. else
  19235. PKG_CONFIG_MIN_VERSION=0.9.0
  19236. if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
  19237. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mozilla-plugin libxul-unstable" >&5
  19238. $as_echo_n "checking for mozilla-plugin libxul-unstable... " >&6; }
  19239. if $PKG_CONFIG --exists "mozilla-plugin libxul-unstable" ; then
  19240. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  19241. $as_echo "yes" >&6; }
  19242. succeeded=yes
  19243. { $as_echo "$as_me:${as_lineno-$LINENO}: checking MOZILLA_CFLAGS" >&5
  19244. $as_echo_n "checking MOZILLA_CFLAGS... " >&6; }
  19245. MOZILLA_CFLAGS=`$PKG_CONFIG --cflags "mozilla-plugin libxul-unstable"`
  19246. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MOZILLA_CFLAGS" >&5
  19247. $as_echo "$MOZILLA_CFLAGS" >&6; }
  19248. { $as_echo "$as_me:${as_lineno-$LINENO}: checking MOZILLA_LIBS" >&5
  19249. $as_echo_n "checking MOZILLA_LIBS... " >&6; }
  19250. MOZILLA_LIBS=`$PKG_CONFIG --libs "mozilla-plugin libxul-unstable"`
  19251. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MOZILLA_LIBS" >&5
  19252. $as_echo "$MOZILLA_LIBS" >&6; }
  19253. else
  19254. MOZILLA_CFLAGS=""
  19255. MOZILLA_LIBS=""
  19256. ## If we have a custom action on failure, don't print errors, but
  19257. ## do set a variable so people can do so.
  19258. MOZILLA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "mozilla-plugin libxul-unstable"`
  19259. fi
  19260. else
  19261. echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
  19262. echo "*** See http://www.freedesktop.org/software/pkgconfig"
  19263. fi
  19264. fi
  19265. if test $succeeded = yes; then
  19266. MOZILLA_FOUND=yes
  19267. else
  19268. MOZILLA_FOUND=no
  19269. fi
  19270. if test "x${MOZILLA_FOUND}" = xno; then
  19271. succeeded=no
  19272. if test -z "$PKG_CONFIG"; then
  19273. if test -n "$ac_tool_prefix"; then
  19274. # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
  19275. set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
  19276. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  19277. $as_echo_n "checking for $ac_word... " >&6; }
  19278. if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
  19279. $as_echo_n "(cached) " >&6
  19280. else
  19281. case $PKG_CONFIG in
  19282. [\\/]* | ?:[\\/]*)
  19283. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  19284. ;;
  19285. *)
  19286. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  19287. for as_dir in $PATH
  19288. do
  19289. IFS=$as_save_IFS
  19290. test -z "$as_dir" && as_dir=.
  19291. for ac_exec_ext in '' $ac_executable_extensions; do
  19292. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  19293. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  19294. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  19295. break 2
  19296. fi
  19297. done
  19298. done
  19299. IFS=$as_save_IFS
  19300. ;;
  19301. esac
  19302. fi
  19303. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  19304. if test -n "$PKG_CONFIG"; then
  19305. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  19306. $as_echo "$PKG_CONFIG" >&6; }
  19307. else
  19308. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19309. $as_echo "no" >&6; }
  19310. fi
  19311. fi
  19312. if test -z "$ac_cv_path_PKG_CONFIG"; then
  19313. ac_pt_PKG_CONFIG=$PKG_CONFIG
  19314. # Extract the first word of "pkg-config", so it can be a program name with args.
  19315. set dummy pkg-config; ac_word=$2
  19316. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  19317. $as_echo_n "checking for $ac_word... " >&6; }
  19318. if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
  19319. $as_echo_n "(cached) " >&6
  19320. else
  19321. case $ac_pt_PKG_CONFIG in
  19322. [\\/]* | ?:[\\/]*)
  19323. ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
  19324. ;;
  19325. *)
  19326. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  19327. for as_dir in $PATH
  19328. do
  19329. IFS=$as_save_IFS
  19330. test -z "$as_dir" && as_dir=.
  19331. for ac_exec_ext in '' $ac_executable_extensions; do
  19332. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  19333. ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  19334. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  19335. break 2
  19336. fi
  19337. done
  19338. done
  19339. IFS=$as_save_IFS
  19340. ;;
  19341. esac
  19342. fi
  19343. ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
  19344. if test -n "$ac_pt_PKG_CONFIG"; then
  19345. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
  19346. $as_echo "$ac_pt_PKG_CONFIG" >&6; }
  19347. else
  19348. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19349. $as_echo "no" >&6; }
  19350. fi
  19351. if test "x$ac_pt_PKG_CONFIG" = x; then
  19352. PKG_CONFIG="no"
  19353. else
  19354. case $cross_compiling:$ac_tool_warned in
  19355. yes:)
  19356. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  19357. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  19358. ac_tool_warned=yes ;;
  19359. esac
  19360. PKG_CONFIG=$ac_pt_PKG_CONFIG
  19361. fi
  19362. else
  19363. PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
  19364. fi
  19365. fi
  19366. if test "$PKG_CONFIG" = "no" ; then
  19367. echo "*** The pkg-config script could not be found. Make sure it is"
  19368. echo "*** in your path, or set the PKG_CONFIG environment variable"
  19369. echo "*** to the full path to pkg-config."
  19370. echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
  19371. else
  19372. PKG_CONFIG_MIN_VERSION=0.9.0
  19373. if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
  19374. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mozilla-plugin" >&5
  19375. $as_echo_n "checking for mozilla-plugin... " >&6; }
  19376. if $PKG_CONFIG --exists "mozilla-plugin" ; then
  19377. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  19378. $as_echo "yes" >&6; }
  19379. succeeded=yes
  19380. { $as_echo "$as_me:${as_lineno-$LINENO}: checking MOZILLA_CFLAGS" >&5
  19381. $as_echo_n "checking MOZILLA_CFLAGS... " >&6; }
  19382. MOZILLA_CFLAGS=`$PKG_CONFIG --cflags "mozilla-plugin"`
  19383. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MOZILLA_CFLAGS" >&5
  19384. $as_echo "$MOZILLA_CFLAGS" >&6; }
  19385. { $as_echo "$as_me:${as_lineno-$LINENO}: checking MOZILLA_LIBS" >&5
  19386. $as_echo_n "checking MOZILLA_LIBS... " >&6; }
  19387. MOZILLA_LIBS=`$PKG_CONFIG --libs "mozilla-plugin"`
  19388. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MOZILLA_LIBS" >&5
  19389. $as_echo "$MOZILLA_LIBS" >&6; }
  19390. else
  19391. MOZILLA_CFLAGS=""
  19392. MOZILLA_LIBS=""
  19393. ## If we have a custom action on failure, don't print errors, but
  19394. ## do set a variable so people can do so.
  19395. MOZILLA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "mozilla-plugin"`
  19396. fi
  19397. else
  19398. echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
  19399. echo "*** See http://www.freedesktop.org/software/pkgconfig"
  19400. fi
  19401. fi
  19402. if test $succeeded = yes; then
  19403. MOZILLA_FOUND=yes
  19404. else
  19405. MOZILLA_FOUND=no
  19406. fi
  19407. fi
  19408. if test "x${MOZILLA_FOUND}" = xno; then
  19409. succeeded=no
  19410. if test -z "$PKG_CONFIG"; then
  19411. if test -n "$ac_tool_prefix"; then
  19412. # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
  19413. set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
  19414. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  19415. $as_echo_n "checking for $ac_word... " >&6; }
  19416. if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
  19417. $as_echo_n "(cached) " >&6
  19418. else
  19419. case $PKG_CONFIG in
  19420. [\\/]* | ?:[\\/]*)
  19421. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  19422. ;;
  19423. *)
  19424. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  19425. for as_dir in $PATH
  19426. do
  19427. IFS=$as_save_IFS
  19428. test -z "$as_dir" && as_dir=.
  19429. for ac_exec_ext in '' $ac_executable_extensions; do
  19430. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  19431. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  19432. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  19433. break 2
  19434. fi
  19435. done
  19436. done
  19437. IFS=$as_save_IFS
  19438. ;;
  19439. esac
  19440. fi
  19441. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  19442. if test -n "$PKG_CONFIG"; then
  19443. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  19444. $as_echo "$PKG_CONFIG" >&6; }
  19445. else
  19446. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19447. $as_echo "no" >&6; }
  19448. fi
  19449. fi
  19450. if test -z "$ac_cv_path_PKG_CONFIG"; then
  19451. ac_pt_PKG_CONFIG=$PKG_CONFIG
  19452. # Extract the first word of "pkg-config", so it can be a program name with args.
  19453. set dummy pkg-config; ac_word=$2
  19454. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  19455. $as_echo_n "checking for $ac_word... " >&6; }
  19456. if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
  19457. $as_echo_n "(cached) " >&6
  19458. else
  19459. case $ac_pt_PKG_CONFIG in
  19460. [\\/]* | ?:[\\/]*)
  19461. ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
  19462. ;;
  19463. *)
  19464. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  19465. for as_dir in $PATH
  19466. do
  19467. IFS=$as_save_IFS
  19468. test -z "$as_dir" && as_dir=.
  19469. for ac_exec_ext in '' $ac_executable_extensions; do
  19470. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  19471. ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  19472. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  19473. break 2
  19474. fi
  19475. done
  19476. done
  19477. IFS=$as_save_IFS
  19478. ;;
  19479. esac
  19480. fi
  19481. ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
  19482. if test -n "$ac_pt_PKG_CONFIG"; then
  19483. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
  19484. $as_echo "$ac_pt_PKG_CONFIG" >&6; }
  19485. else
  19486. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19487. $as_echo "no" >&6; }
  19488. fi
  19489. if test "x$ac_pt_PKG_CONFIG" = x; then
  19490. PKG_CONFIG="no"
  19491. else
  19492. case $cross_compiling:$ac_tool_warned in
  19493. yes:)
  19494. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  19495. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  19496. ac_tool_warned=yes ;;
  19497. esac
  19498. PKG_CONFIG=$ac_pt_PKG_CONFIG
  19499. fi
  19500. else
  19501. PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
  19502. fi
  19503. fi
  19504. if test "$PKG_CONFIG" = "no" ; then
  19505. echo "*** The pkg-config script could not be found. Make sure it is"
  19506. echo "*** in your path, or set the PKG_CONFIG environment variable"
  19507. echo "*** to the full path to pkg-config."
  19508. echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
  19509. else
  19510. PKG_CONFIG_MIN_VERSION=0.9.0
  19511. if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
  19512. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for firefox-plugin firefox-xpcom" >&5
  19513. $as_echo_n "checking for firefox-plugin firefox-xpcom... " >&6; }
  19514. if $PKG_CONFIG --exists "firefox-plugin firefox-xpcom" ; then
  19515. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  19516. $as_echo "yes" >&6; }
  19517. succeeded=yes
  19518. { $as_echo "$as_me:${as_lineno-$LINENO}: checking MOZILLA_CFLAGS" >&5
  19519. $as_echo_n "checking MOZILLA_CFLAGS... " >&6; }
  19520. MOZILLA_CFLAGS=`$PKG_CONFIG --cflags "firefox-plugin firefox-xpcom"`
  19521. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MOZILLA_CFLAGS" >&5
  19522. $as_echo "$MOZILLA_CFLAGS" >&6; }
  19523. { $as_echo "$as_me:${as_lineno-$LINENO}: checking MOZILLA_LIBS" >&5
  19524. $as_echo_n "checking MOZILLA_LIBS... " >&6; }
  19525. MOZILLA_LIBS=`$PKG_CONFIG --libs "firefox-plugin firefox-xpcom"`
  19526. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MOZILLA_LIBS" >&5
  19527. $as_echo "$MOZILLA_LIBS" >&6; }
  19528. else
  19529. MOZILLA_CFLAGS=""
  19530. MOZILLA_LIBS=""
  19531. ## If we have a custom action on failure, don't print errors, but
  19532. ## do set a variable so people can do so.
  19533. MOZILLA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "firefox-plugin firefox-xpcom"`
  19534. fi
  19535. else
  19536. echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
  19537. echo "*** See http://www.freedesktop.org/software/pkgconfig"
  19538. fi
  19539. fi
  19540. if test $succeeded = yes; then
  19541. MOZILLA_FOUND=yes
  19542. else
  19543. MOZILLA_FOUND=no
  19544. fi
  19545. fi
  19546. if test "x${MOZILLA_FOUND}" = xno; then
  19547. succeeded=no
  19548. if test -z "$PKG_CONFIG"; then
  19549. if test -n "$ac_tool_prefix"; then
  19550. # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
  19551. set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
  19552. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  19553. $as_echo_n "checking for $ac_word... " >&6; }
  19554. if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
  19555. $as_echo_n "(cached) " >&6
  19556. else
  19557. case $PKG_CONFIG in
  19558. [\\/]* | ?:[\\/]*)
  19559. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  19560. ;;
  19561. *)
  19562. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  19563. for as_dir in $PATH
  19564. do
  19565. IFS=$as_save_IFS
  19566. test -z "$as_dir" && as_dir=.
  19567. for ac_exec_ext in '' $ac_executable_extensions; do
  19568. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  19569. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  19570. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  19571. break 2
  19572. fi
  19573. done
  19574. done
  19575. IFS=$as_save_IFS
  19576. ;;
  19577. esac
  19578. fi
  19579. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  19580. if test -n "$PKG_CONFIG"; then
  19581. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  19582. $as_echo "$PKG_CONFIG" >&6; }
  19583. else
  19584. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19585. $as_echo "no" >&6; }
  19586. fi
  19587. fi
  19588. if test -z "$ac_cv_path_PKG_CONFIG"; then
  19589. ac_pt_PKG_CONFIG=$PKG_CONFIG
  19590. # Extract the first word of "pkg-config", so it can be a program name with args.
  19591. set dummy pkg-config; ac_word=$2
  19592. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  19593. $as_echo_n "checking for $ac_word... " >&6; }
  19594. if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
  19595. $as_echo_n "(cached) " >&6
  19596. else
  19597. case $ac_pt_PKG_CONFIG in
  19598. [\\/]* | ?:[\\/]*)
  19599. ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
  19600. ;;
  19601. *)
  19602. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  19603. for as_dir in $PATH
  19604. do
  19605. IFS=$as_save_IFS
  19606. test -z "$as_dir" && as_dir=.
  19607. for ac_exec_ext in '' $ac_executable_extensions; do
  19608. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  19609. ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  19610. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  19611. break 2
  19612. fi
  19613. done
  19614. done
  19615. IFS=$as_save_IFS
  19616. ;;
  19617. esac
  19618. fi
  19619. ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
  19620. if test -n "$ac_pt_PKG_CONFIG"; then
  19621. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
  19622. $as_echo "$ac_pt_PKG_CONFIG" >&6; }
  19623. else
  19624. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19625. $as_echo "no" >&6; }
  19626. fi
  19627. if test "x$ac_pt_PKG_CONFIG" = x; then
  19628. PKG_CONFIG="no"
  19629. else
  19630. case $cross_compiling:$ac_tool_warned in
  19631. yes:)
  19632. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  19633. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  19634. ac_tool_warned=yes ;;
  19635. esac
  19636. PKG_CONFIG=$ac_pt_PKG_CONFIG
  19637. fi
  19638. else
  19639. PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
  19640. fi
  19641. fi
  19642. if test "$PKG_CONFIG" = "no" ; then
  19643. echo "*** The pkg-config script could not be found. Make sure it is"
  19644. echo "*** in your path, or set the PKG_CONFIG environment variable"
  19645. echo "*** to the full path to pkg-config."
  19646. echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
  19647. else
  19648. PKG_CONFIG_MIN_VERSION=0.9.0
  19649. if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
  19650. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xulrunner-plugin xulrunner-xpcom" >&5
  19651. $as_echo_n "checking for xulrunner-plugin xulrunner-xpcom... " >&6; }
  19652. if $PKG_CONFIG --exists "xulrunner-plugin xulrunner-xpcom" ; then
  19653. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  19654. $as_echo "yes" >&6; }
  19655. succeeded=yes
  19656. { $as_echo "$as_me:${as_lineno-$LINENO}: checking MOZILLA_CFLAGS" >&5
  19657. $as_echo_n "checking MOZILLA_CFLAGS... " >&6; }
  19658. MOZILLA_CFLAGS=`$PKG_CONFIG --cflags "xulrunner-plugin xulrunner-xpcom"`
  19659. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MOZILLA_CFLAGS" >&5
  19660. $as_echo "$MOZILLA_CFLAGS" >&6; }
  19661. { $as_echo "$as_me:${as_lineno-$LINENO}: checking MOZILLA_LIBS" >&5
  19662. $as_echo_n "checking MOZILLA_LIBS... " >&6; }
  19663. MOZILLA_LIBS=`$PKG_CONFIG --libs "xulrunner-plugin xulrunner-xpcom"`
  19664. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MOZILLA_LIBS" >&5
  19665. $as_echo "$MOZILLA_LIBS" >&6; }
  19666. else
  19667. MOZILLA_CFLAGS=""
  19668. MOZILLA_LIBS=""
  19669. ## If we have a custom action on failure, don't print errors, but
  19670. ## do set a variable so people can do so.
  19671. MOZILLA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xulrunner-plugin xulrunner-xpcom"`
  19672. fi
  19673. else
  19674. echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
  19675. echo "*** See http://www.freedesktop.org/software/pkgconfig"
  19676. fi
  19677. fi
  19678. if test $succeeded = yes; then
  19679. MOZILLA_FOUND=yes
  19680. else
  19681. MOZILLA_FOUND=no
  19682. fi
  19683. fi
  19684. if test "x${MOZILLA_FOUND}" = xno; then
  19685. succeeded=no
  19686. if test -z "$PKG_CONFIG"; then
  19687. if test -n "$ac_tool_prefix"; then
  19688. # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
  19689. set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
  19690. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  19691. $as_echo_n "checking for $ac_word... " >&6; }
  19692. if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
  19693. $as_echo_n "(cached) " >&6
  19694. else
  19695. case $PKG_CONFIG in
  19696. [\\/]* | ?:[\\/]*)
  19697. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  19698. ;;
  19699. *)
  19700. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  19701. for as_dir in $PATH
  19702. do
  19703. IFS=$as_save_IFS
  19704. test -z "$as_dir" && as_dir=.
  19705. for ac_exec_ext in '' $ac_executable_extensions; do
  19706. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  19707. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  19708. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  19709. break 2
  19710. fi
  19711. done
  19712. done
  19713. IFS=$as_save_IFS
  19714. ;;
  19715. esac
  19716. fi
  19717. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  19718. if test -n "$PKG_CONFIG"; then
  19719. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  19720. $as_echo "$PKG_CONFIG" >&6; }
  19721. else
  19722. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19723. $as_echo "no" >&6; }
  19724. fi
  19725. fi
  19726. if test -z "$ac_cv_path_PKG_CONFIG"; then
  19727. ac_pt_PKG_CONFIG=$PKG_CONFIG
  19728. # Extract the first word of "pkg-config", so it can be a program name with args.
  19729. set dummy pkg-config; ac_word=$2
  19730. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  19731. $as_echo_n "checking for $ac_word... " >&6; }
  19732. if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
  19733. $as_echo_n "(cached) " >&6
  19734. else
  19735. case $ac_pt_PKG_CONFIG in
  19736. [\\/]* | ?:[\\/]*)
  19737. ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
  19738. ;;
  19739. *)
  19740. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  19741. for as_dir in $PATH
  19742. do
  19743. IFS=$as_save_IFS
  19744. test -z "$as_dir" && as_dir=.
  19745. for ac_exec_ext in '' $ac_executable_extensions; do
  19746. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  19747. ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  19748. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  19749. break 2
  19750. fi
  19751. done
  19752. done
  19753. IFS=$as_save_IFS
  19754. ;;
  19755. esac
  19756. fi
  19757. ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
  19758. if test -n "$ac_pt_PKG_CONFIG"; then
  19759. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
  19760. $as_echo "$ac_pt_PKG_CONFIG" >&6; }
  19761. else
  19762. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19763. $as_echo "no" >&6; }
  19764. fi
  19765. if test "x$ac_pt_PKG_CONFIG" = x; then
  19766. PKG_CONFIG="no"
  19767. else
  19768. case $cross_compiling:$ac_tool_warned in
  19769. yes:)
  19770. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  19771. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  19772. ac_tool_warned=yes ;;
  19773. esac
  19774. PKG_CONFIG=$ac_pt_PKG_CONFIG
  19775. fi
  19776. else
  19777. PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
  19778. fi
  19779. fi
  19780. if test "$PKG_CONFIG" = "no" ; then
  19781. echo "*** The pkg-config script could not be found. Make sure it is"
  19782. echo "*** in your path, or set the PKG_CONFIG environment variable"
  19783. echo "*** to the full path to pkg-config."
  19784. echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
  19785. else
  19786. PKG_CONFIG_MIN_VERSION=0.9.0
  19787. if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
  19788. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mozilla-firefox-plugin mozilla-firefox-xpcom" >&5
  19789. $as_echo_n "checking for mozilla-firefox-plugin mozilla-firefox-xpcom... " >&6; }
  19790. if $PKG_CONFIG --exists "mozilla-firefox-plugin mozilla-firefox-xpcom" ; then
  19791. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  19792. $as_echo "yes" >&6; }
  19793. succeeded=yes
  19794. { $as_echo "$as_me:${as_lineno-$LINENO}: checking MOZILLA_CFLAGS" >&5
  19795. $as_echo_n "checking MOZILLA_CFLAGS... " >&6; }
  19796. MOZILLA_CFLAGS=`$PKG_CONFIG --cflags "mozilla-firefox-plugin mozilla-firefox-xpcom"`
  19797. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MOZILLA_CFLAGS" >&5
  19798. $as_echo "$MOZILLA_CFLAGS" >&6; }
  19799. { $as_echo "$as_me:${as_lineno-$LINENO}: checking MOZILLA_LIBS" >&5
  19800. $as_echo_n "checking MOZILLA_LIBS... " >&6; }
  19801. MOZILLA_LIBS=`$PKG_CONFIG --libs "mozilla-firefox-plugin mozilla-firefox-xpcom"`
  19802. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MOZILLA_LIBS" >&5
  19803. $as_echo "$MOZILLA_LIBS" >&6; }
  19804. else
  19805. MOZILLA_CFLAGS=""
  19806. MOZILLA_LIBS=""
  19807. ## If we have a custom action on failure, don't print errors, but
  19808. ## do set a variable so people can do so.
  19809. MOZILLA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "mozilla-firefox-plugin mozilla-firefox-xpcom"`
  19810. fi
  19811. else
  19812. echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
  19813. echo "*** See http://www.freedesktop.org/software/pkgconfig"
  19814. fi
  19815. fi
  19816. if test $succeeded = yes; then
  19817. MOZILLA_FOUND=yes
  19818. else
  19819. MOZILLA_FOUND=no
  19820. fi
  19821. fi
  19822. if test "x${MOZILLA_FOUND}" = xno; then
  19823. succeeded=no
  19824. if test -z "$PKG_CONFIG"; then
  19825. if test -n "$ac_tool_prefix"; then
  19826. # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
  19827. set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
  19828. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  19829. $as_echo_n "checking for $ac_word... " >&6; }
  19830. if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
  19831. $as_echo_n "(cached) " >&6
  19832. else
  19833. case $PKG_CONFIG in
  19834. [\\/]* | ?:[\\/]*)
  19835. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  19836. ;;
  19837. *)
  19838. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  19839. for as_dir in $PATH
  19840. do
  19841. IFS=$as_save_IFS
  19842. test -z "$as_dir" && as_dir=.
  19843. for ac_exec_ext in '' $ac_executable_extensions; do
  19844. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  19845. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  19846. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  19847. break 2
  19848. fi
  19849. done
  19850. done
  19851. IFS=$as_save_IFS
  19852. ;;
  19853. esac
  19854. fi
  19855. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  19856. if test -n "$PKG_CONFIG"; then
  19857. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  19858. $as_echo "$PKG_CONFIG" >&6; }
  19859. else
  19860. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19861. $as_echo "no" >&6; }
  19862. fi
  19863. fi
  19864. if test -z "$ac_cv_path_PKG_CONFIG"; then
  19865. ac_pt_PKG_CONFIG=$PKG_CONFIG
  19866. # Extract the first word of "pkg-config", so it can be a program name with args.
  19867. set dummy pkg-config; ac_word=$2
  19868. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  19869. $as_echo_n "checking for $ac_word... " >&6; }
  19870. if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
  19871. $as_echo_n "(cached) " >&6
  19872. else
  19873. case $ac_pt_PKG_CONFIG in
  19874. [\\/]* | ?:[\\/]*)
  19875. ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
  19876. ;;
  19877. *)
  19878. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  19879. for as_dir in $PATH
  19880. do
  19881. IFS=$as_save_IFS
  19882. test -z "$as_dir" && as_dir=.
  19883. for ac_exec_ext in '' $ac_executable_extensions; do
  19884. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  19885. ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  19886. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  19887. break 2
  19888. fi
  19889. done
  19890. done
  19891. IFS=$as_save_IFS
  19892. ;;
  19893. esac
  19894. fi
  19895. ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
  19896. if test -n "$ac_pt_PKG_CONFIG"; then
  19897. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
  19898. $as_echo "$ac_pt_PKG_CONFIG" >&6; }
  19899. else
  19900. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19901. $as_echo "no" >&6; }
  19902. fi
  19903. if test "x$ac_pt_PKG_CONFIG" = x; then
  19904. PKG_CONFIG="no"
  19905. else
  19906. case $cross_compiling:$ac_tool_warned in
  19907. yes:)
  19908. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  19909. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  19910. ac_tool_warned=yes ;;
  19911. esac
  19912. PKG_CONFIG=$ac_pt_PKG_CONFIG
  19913. fi
  19914. else
  19915. PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
  19916. fi
  19917. fi
  19918. if test "$PKG_CONFIG" = "no" ; then
  19919. echo "*** The pkg-config script could not be found. Make sure it is"
  19920. echo "*** in your path, or set the PKG_CONFIG environment variable"
  19921. echo "*** to the full path to pkg-config."
  19922. echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
  19923. else
  19924. PKG_CONFIG_MIN_VERSION=0.9.0
  19925. if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
  19926. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for seamonkey-plugin seamonkey-xpcom" >&5
  19927. $as_echo_n "checking for seamonkey-plugin seamonkey-xpcom... " >&6; }
  19928. if $PKG_CONFIG --exists "seamonkey-plugin seamonkey-xpcom" ; then
  19929. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  19930. $as_echo "yes" >&6; }
  19931. succeeded=yes
  19932. { $as_echo "$as_me:${as_lineno-$LINENO}: checking MOZILLA_CFLAGS" >&5
  19933. $as_echo_n "checking MOZILLA_CFLAGS... " >&6; }
  19934. MOZILLA_CFLAGS=`$PKG_CONFIG --cflags "seamonkey-plugin seamonkey-xpcom"`
  19935. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MOZILLA_CFLAGS" >&5
  19936. $as_echo "$MOZILLA_CFLAGS" >&6; }
  19937. { $as_echo "$as_me:${as_lineno-$LINENO}: checking MOZILLA_LIBS" >&5
  19938. $as_echo_n "checking MOZILLA_LIBS... " >&6; }
  19939. MOZILLA_LIBS=`$PKG_CONFIG --libs "seamonkey-plugin seamonkey-xpcom"`
  19940. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MOZILLA_LIBS" >&5
  19941. $as_echo "$MOZILLA_LIBS" >&6; }
  19942. else
  19943. MOZILLA_CFLAGS=""
  19944. MOZILLA_LIBS=""
  19945. ## If we have a custom action on failure, don't print errors, but
  19946. ## do set a variable so people can do so.
  19947. MOZILLA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "seamonkey-plugin seamonkey-xpcom"`
  19948. fi
  19949. else
  19950. echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
  19951. echo "*** See http://www.freedesktop.org/software/pkgconfig"
  19952. fi
  19953. fi
  19954. if test $succeeded = yes; then
  19955. MOZILLA_FOUND=yes
  19956. else
  19957. MOZILLA_FOUND=no
  19958. fi
  19959. fi
  19960. if test "x${MOZILLA_FOUND}" = xno; then
  19961. succeeded=no
  19962. if test -z "$PKG_CONFIG"; then
  19963. if test -n "$ac_tool_prefix"; then
  19964. # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
  19965. set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
  19966. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  19967. $as_echo_n "checking for $ac_word... " >&6; }
  19968. if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
  19969. $as_echo_n "(cached) " >&6
  19970. else
  19971. case $PKG_CONFIG in
  19972. [\\/]* | ?:[\\/]*)
  19973. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  19974. ;;
  19975. *)
  19976. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  19977. for as_dir in $PATH
  19978. do
  19979. IFS=$as_save_IFS
  19980. test -z "$as_dir" && as_dir=.
  19981. for ac_exec_ext in '' $ac_executable_extensions; do
  19982. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  19983. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  19984. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  19985. break 2
  19986. fi
  19987. done
  19988. done
  19989. IFS=$as_save_IFS
  19990. ;;
  19991. esac
  19992. fi
  19993. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  19994. if test -n "$PKG_CONFIG"; then
  19995. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  19996. $as_echo "$PKG_CONFIG" >&6; }
  19997. else
  19998. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19999. $as_echo "no" >&6; }
  20000. fi
  20001. fi
  20002. if test -z "$ac_cv_path_PKG_CONFIG"; then
  20003. ac_pt_PKG_CONFIG=$PKG_CONFIG
  20004. # Extract the first word of "pkg-config", so it can be a program name with args.
  20005. set dummy pkg-config; ac_word=$2
  20006. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  20007. $as_echo_n "checking for $ac_word... " >&6; }
  20008. if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
  20009. $as_echo_n "(cached) " >&6
  20010. else
  20011. case $ac_pt_PKG_CONFIG in
  20012. [\\/]* | ?:[\\/]*)
  20013. ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
  20014. ;;
  20015. *)
  20016. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  20017. for as_dir in $PATH
  20018. do
  20019. IFS=$as_save_IFS
  20020. test -z "$as_dir" && as_dir=.
  20021. for ac_exec_ext in '' $ac_executable_extensions; do
  20022. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  20023. ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  20024. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  20025. break 2
  20026. fi
  20027. done
  20028. done
  20029. IFS=$as_save_IFS
  20030. ;;
  20031. esac
  20032. fi
  20033. ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
  20034. if test -n "$ac_pt_PKG_CONFIG"; then
  20035. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
  20036. $as_echo "$ac_pt_PKG_CONFIG" >&6; }
  20037. else
  20038. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20039. $as_echo "no" >&6; }
  20040. fi
  20041. if test "x$ac_pt_PKG_CONFIG" = x; then
  20042. PKG_CONFIG="no"
  20043. else
  20044. case $cross_compiling:$ac_tool_warned in
  20045. yes:)
  20046. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  20047. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  20048. ac_tool_warned=yes ;;
  20049. esac
  20050. PKG_CONFIG=$ac_pt_PKG_CONFIG
  20051. fi
  20052. else
  20053. PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
  20054. fi
  20055. fi
  20056. if test "$PKG_CONFIG" = "no" ; then
  20057. echo "*** The pkg-config script could not be found. Make sure it is"
  20058. echo "*** in your path, or set the PKG_CONFIG environment variable"
  20059. echo "*** to the full path to pkg-config."
  20060. echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
  20061. else
  20062. PKG_CONFIG_MIN_VERSION=0.9.0
  20063. if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
  20064. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iceape-plugin iceape-xpcom" >&5
  20065. $as_echo_n "checking for iceape-plugin iceape-xpcom... " >&6; }
  20066. if $PKG_CONFIG --exists "iceape-plugin iceape-xpcom" ; then
  20067. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  20068. $as_echo "yes" >&6; }
  20069. succeeded=yes
  20070. { $as_echo "$as_me:${as_lineno-$LINENO}: checking MOZILLA_CFLAGS" >&5
  20071. $as_echo_n "checking MOZILLA_CFLAGS... " >&6; }
  20072. MOZILLA_CFLAGS=`$PKG_CONFIG --cflags "iceape-plugin iceape-xpcom"`
  20073. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MOZILLA_CFLAGS" >&5
  20074. $as_echo "$MOZILLA_CFLAGS" >&6; }
  20075. { $as_echo "$as_me:${as_lineno-$LINENO}: checking MOZILLA_LIBS" >&5
  20076. $as_echo_n "checking MOZILLA_LIBS... " >&6; }
  20077. MOZILLA_LIBS=`$PKG_CONFIG --libs "iceape-plugin iceape-xpcom"`
  20078. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MOZILLA_LIBS" >&5
  20079. $as_echo "$MOZILLA_LIBS" >&6; }
  20080. else
  20081. MOZILLA_CFLAGS=""
  20082. MOZILLA_LIBS=""
  20083. ## If we have a custom action on failure, don't print errors, but
  20084. ## do set a variable so people can do so.
  20085. MOZILLA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "iceape-plugin iceape-xpcom"`
  20086. fi
  20087. else
  20088. echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
  20089. echo "*** See http://www.freedesktop.org/software/pkgconfig"
  20090. fi
  20091. fi
  20092. if test $succeeded = yes; then
  20093. MOZILLA_FOUND=yes
  20094. else
  20095. MOZILLA_FOUND=no
  20096. fi
  20097. fi
  20098. if test "x${MOZILLA_FOUND}" = xno; then
  20099. as_fn_error "Couldn't find plugin support headers and libraries, try --disable-plugin" "$LINENO" 5
  20100. fi
  20101. succeeded=no
  20102. if test -z "$PKG_CONFIG"; then
  20103. if test -n "$ac_tool_prefix"; then
  20104. # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
  20105. set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
  20106. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  20107. $as_echo_n "checking for $ac_word... " >&6; }
  20108. if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
  20109. $as_echo_n "(cached) " >&6
  20110. else
  20111. case $PKG_CONFIG in
  20112. [\\/]* | ?:[\\/]*)
  20113. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  20114. ;;
  20115. *)
  20116. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  20117. for as_dir in $PATH
  20118. do
  20119. IFS=$as_save_IFS
  20120. test -z "$as_dir" && as_dir=.
  20121. for ac_exec_ext in '' $ac_executable_extensions; do
  20122. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  20123. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  20124. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  20125. break 2
  20126. fi
  20127. done
  20128. done
  20129. IFS=$as_save_IFS
  20130. ;;
  20131. esac
  20132. fi
  20133. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  20134. if test -n "$PKG_CONFIG"; then
  20135. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  20136. $as_echo "$PKG_CONFIG" >&6; }
  20137. else
  20138. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20139. $as_echo "no" >&6; }
  20140. fi
  20141. fi
  20142. if test -z "$ac_cv_path_PKG_CONFIG"; then
  20143. ac_pt_PKG_CONFIG=$PKG_CONFIG
  20144. # Extract the first word of "pkg-config", so it can be a program name with args.
  20145. set dummy pkg-config; ac_word=$2
  20146. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  20147. $as_echo_n "checking for $ac_word... " >&6; }
  20148. if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
  20149. $as_echo_n "(cached) " >&6
  20150. else
  20151. case $ac_pt_PKG_CONFIG in
  20152. [\\/]* | ?:[\\/]*)
  20153. ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
  20154. ;;
  20155. *)
  20156. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  20157. for as_dir in $PATH
  20158. do
  20159. IFS=$as_save_IFS
  20160. test -z "$as_dir" && as_dir=.
  20161. for ac_exec_ext in '' $ac_executable_extensions; do
  20162. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  20163. ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  20164. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  20165. break 2
  20166. fi
  20167. done
  20168. done
  20169. IFS=$as_save_IFS
  20170. ;;
  20171. esac
  20172. fi
  20173. ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
  20174. if test -n "$ac_pt_PKG_CONFIG"; then
  20175. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
  20176. $as_echo "$ac_pt_PKG_CONFIG" >&6; }
  20177. else
  20178. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20179. $as_echo "no" >&6; }
  20180. fi
  20181. if test "x$ac_pt_PKG_CONFIG" = x; then
  20182. PKG_CONFIG="no"
  20183. else
  20184. case $cross_compiling:$ac_tool_warned in
  20185. yes:)
  20186. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  20187. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  20188. ac_tool_warned=yes ;;
  20189. esac
  20190. PKG_CONFIG=$ac_pt_PKG_CONFIG
  20191. fi
  20192. else
  20193. PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
  20194. fi
  20195. fi
  20196. if test "$PKG_CONFIG" = "no" ; then
  20197. echo "*** The pkg-config script could not be found. Make sure it is"
  20198. echo "*** in your path, or set the PKG_CONFIG environment variable"
  20199. echo "*** to the full path to pkg-config."
  20200. echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
  20201. else
  20202. PKG_CONFIG_MIN_VERSION=0.9.0
  20203. if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
  20204. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for glib-2.0" >&5
  20205. $as_echo_n "checking for glib-2.0... " >&6; }
  20206. if $PKG_CONFIG --exists "glib-2.0" ; then
  20207. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  20208. $as_echo "yes" >&6; }
  20209. succeeded=yes
  20210. { $as_echo "$as_me:${as_lineno-$LINENO}: checking GLIB_CFLAGS" >&5
  20211. $as_echo_n "checking GLIB_CFLAGS... " >&6; }
  20212. GLIB_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0"`
  20213. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GLIB_CFLAGS" >&5
  20214. $as_echo "$GLIB_CFLAGS" >&6; }
  20215. { $as_echo "$as_me:${as_lineno-$LINENO}: checking GLIB_LIBS" >&5
  20216. $as_echo_n "checking GLIB_LIBS... " >&6; }
  20217. GLIB_LIBS=`$PKG_CONFIG --libs "glib-2.0"`
  20218. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GLIB_LIBS" >&5
  20219. $as_echo "$GLIB_LIBS" >&6; }
  20220. else
  20221. GLIB_CFLAGS=""
  20222. GLIB_LIBS=""
  20223. ## If we have a custom action on failure, don't print errors, but
  20224. ## do set a variable so people can do so.
  20225. GLIB_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "glib-2.0"`
  20226. echo $GLIB_PKG_ERRORS
  20227. fi
  20228. else
  20229. echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
  20230. echo "*** See http://www.freedesktop.org/software/pkgconfig"
  20231. fi
  20232. fi
  20233. if test $succeeded = yes; then
  20234. :
  20235. else
  20236. as_fn_error "Library requirements (glib-2.0) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." "$LINENO" 5
  20237. fi
  20238. succeeded=no
  20239. if test -z "$PKG_CONFIG"; then
  20240. if test -n "$ac_tool_prefix"; then
  20241. # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
  20242. set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
  20243. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  20244. $as_echo_n "checking for $ac_word... " >&6; }
  20245. if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
  20246. $as_echo_n "(cached) " >&6
  20247. else
  20248. case $PKG_CONFIG in
  20249. [\\/]* | ?:[\\/]*)
  20250. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  20251. ;;
  20252. *)
  20253. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  20254. for as_dir in $PATH
  20255. do
  20256. IFS=$as_save_IFS
  20257. test -z "$as_dir" && as_dir=.
  20258. for ac_exec_ext in '' $ac_executable_extensions; do
  20259. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  20260. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  20261. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  20262. break 2
  20263. fi
  20264. done
  20265. done
  20266. IFS=$as_save_IFS
  20267. ;;
  20268. esac
  20269. fi
  20270. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  20271. if test -n "$PKG_CONFIG"; then
  20272. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  20273. $as_echo "$PKG_CONFIG" >&6; }
  20274. else
  20275. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20276. $as_echo "no" >&6; }
  20277. fi
  20278. fi
  20279. if test -z "$ac_cv_path_PKG_CONFIG"; then
  20280. ac_pt_PKG_CONFIG=$PKG_CONFIG
  20281. # Extract the first word of "pkg-config", so it can be a program name with args.
  20282. set dummy pkg-config; ac_word=$2
  20283. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  20284. $as_echo_n "checking for $ac_word... " >&6; }
  20285. if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
  20286. $as_echo_n "(cached) " >&6
  20287. else
  20288. case $ac_pt_PKG_CONFIG in
  20289. [\\/]* | ?:[\\/]*)
  20290. ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
  20291. ;;
  20292. *)
  20293. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  20294. for as_dir in $PATH
  20295. do
  20296. IFS=$as_save_IFS
  20297. test -z "$as_dir" && as_dir=.
  20298. for ac_exec_ext in '' $ac_executable_extensions; do
  20299. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  20300. ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  20301. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  20302. break 2
  20303. fi
  20304. done
  20305. done
  20306. IFS=$as_save_IFS
  20307. ;;
  20308. esac
  20309. fi
  20310. ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
  20311. if test -n "$ac_pt_PKG_CONFIG"; then
  20312. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
  20313. $as_echo "$ac_pt_PKG_CONFIG" >&6; }
  20314. else
  20315. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20316. $as_echo "no" >&6; }
  20317. fi
  20318. if test "x$ac_pt_PKG_CONFIG" = x; then
  20319. PKG_CONFIG="no"
  20320. else
  20321. case $cross_compiling:$ac_tool_warned in
  20322. yes:)
  20323. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  20324. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  20325. ac_tool_warned=yes ;;
  20326. esac
  20327. PKG_CONFIG=$ac_pt_PKG_CONFIG
  20328. fi
  20329. else
  20330. PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
  20331. fi
  20332. fi
  20333. if test "$PKG_CONFIG" = "no" ; then
  20334. echo "*** The pkg-config script could not be found. Make sure it is"
  20335. echo "*** in your path, or set the PKG_CONFIG environment variable"
  20336. echo "*** to the full path to pkg-config."
  20337. echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
  20338. else
  20339. PKG_CONFIG_MIN_VERSION=0.9.0
  20340. if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
  20341. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gtk+-2.0 >= 2.8 gthread-2.0 >= 2.2 gdk-pixbuf-2.0" >&5
  20342. $as_echo_n "checking for gtk+-2.0 >= 2.8 gthread-2.0 >= 2.2 gdk-pixbuf-2.0... " >&6; }
  20343. if $PKG_CONFIG --exists "gtk+-2.0 >= 2.8 gthread-2.0 >= 2.2 gdk-pixbuf-2.0" ; then
  20344. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  20345. $as_echo "yes" >&6; }
  20346. succeeded=yes
  20347. { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_CFLAGS" >&5
  20348. $as_echo_n "checking GTK_CFLAGS... " >&6; }
  20349. GTK_CFLAGS=`$PKG_CONFIG --cflags "gtk+-2.0 >= 2.8 gthread-2.0 >= 2.2 gdk-pixbuf-2.0"`
  20350. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_CFLAGS" >&5
  20351. $as_echo "$GTK_CFLAGS" >&6; }
  20352. { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_LIBS" >&5
  20353. $as_echo_n "checking GTK_LIBS... " >&6; }
  20354. GTK_LIBS=`$PKG_CONFIG --libs "gtk+-2.0 >= 2.8 gthread-2.0 >= 2.2 gdk-pixbuf-2.0"`
  20355. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_LIBS" >&5
  20356. $as_echo "$GTK_LIBS" >&6; }
  20357. else
  20358. GTK_CFLAGS=""
  20359. GTK_LIBS=""
  20360. ## If we have a custom action on failure, don't print errors, but
  20361. ## do set a variable so people can do so.
  20362. GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gtk+-2.0 >= 2.8 gthread-2.0 >= 2.2 gdk-pixbuf-2.0"`
  20363. echo $GTK_PKG_ERRORS
  20364. fi
  20365. else
  20366. echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
  20367. echo "*** See http://www.freedesktop.org/software/pkgconfig"
  20368. fi
  20369. fi
  20370. if test $succeeded = yes; then
  20371. :
  20372. else
  20373. as_fn_error "Library requirements (gtk+-2.0 >= 2.8 gthread-2.0 >= 2.2 gdk-pixbuf-2.0) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." "$LINENO" 5
  20374. fi
  20375. PLUGIN_DIR=$HOME/.mozilla/plugins/
  20376. fi
  20377. # Check whether --with-gmp was given.
  20378. if test "${with_gmp+set}" = set; then :
  20379. withval=$with_gmp;
  20380. fi
  20381. # Check whether --with-gmp_include was given.
  20382. if test "${with_gmp_include+set}" = set; then :
  20383. withval=$with_gmp_include;
  20384. fi
  20385. # Check whether --with-gmp_lib was given.
  20386. if test "${with_gmp_lib+set}" = set; then :
  20387. withval=$with_gmp_lib;
  20388. fi
  20389. if test "x$with_gmp" != x; then
  20390. gmplibs=-lgmp
  20391. gmpinc=
  20392. gmplibs="-L$with_gmp/lib $gmplibs"
  20393. gmpinc="-I$with_gmp/include $gmpinc"
  20394. if test "x$with_gmp_include" != x; then
  20395. gmpinc="-I$with_gmp_include $gmpinc"
  20396. fi
  20397. if test "x$with_gmp_lib" != x; then
  20398. gmplibs="-L$with_gmp_lib $gmplibs"
  20399. fi
  20400. else
  20401. gmplibs="-lgmp"
  20402. gmpinc="-I/usr/include"
  20403. fi
  20404. if test "x${COMPILE_GMP}" = xyes; then
  20405. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GMP directories" >&5
  20406. $as_echo_n "checking for GMP directories... " >&6; }
  20407. if test "x$with_gmp" != x; then
  20408. gmplibs="-L$with_gmp/lib -lgmp"
  20409. gmpinc="-I$with_gmp/include"
  20410. if test "x$with_gmp_include" != x; then
  20411. gmpinc="-I$with_gmp_include $gmpinc"
  20412. fi
  20413. if test "x$with_gmp_lib" != x; then
  20414. gmplibs="-L$with_gmp_lib $gmplibs"
  20415. fi
  20416. else
  20417. with_gmp="/usr"
  20418. gmplibs="-lgmp"
  20419. gmpinc="-I/usr/include"
  20420. fi
  20421. { $as_echo "$as_me:${as_lineno-$LINENO}: result: prefix=$with_gmp, libs=$gmplibs, inc=$gmpinc" >&5
  20422. $as_echo "prefix=$with_gmp, libs=$gmplibs, inc=$gmpinc" >&6; }
  20423. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __gmpz_mul_si in -lgmp" >&5
  20424. $as_echo_n "checking for __gmpz_mul_si in -lgmp... " >&6; }
  20425. if test "${ac_cv_lib_gmp___gmpz_mul_si+set}" = set; then :
  20426. $as_echo_n "(cached) " >&6
  20427. else
  20428. ac_check_lib_save_LIBS=$LIBS
  20429. LIBS="-lgmp $LIBS"
  20430. if test x$gcc_no_link = xyes; then
  20431. as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  20432. fi
  20433. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20434. /* end confdefs.h. */
  20435. /* Override any GCC internal prototype to avoid an error.
  20436. Use char because int might match the return type of a GCC
  20437. builtin and then its argument prototype would still apply. */
  20438. #ifdef __cplusplus
  20439. extern "C"
  20440. #endif
  20441. char __gmpz_mul_si ();
  20442. int
  20443. main ()
  20444. {
  20445. return __gmpz_mul_si ();
  20446. ;
  20447. return 0;
  20448. }
  20449. _ACEOF
  20450. if ac_fn_c_try_link "$LINENO"; then :
  20451. ac_cv_lib_gmp___gmpz_mul_si=yes
  20452. else
  20453. ac_cv_lib_gmp___gmpz_mul_si=no
  20454. fi
  20455. rm -f core conftest.err conftest.$ac_objext \
  20456. conftest$ac_exeext conftest.$ac_ext
  20457. LIBS=$ac_check_lib_save_LIBS
  20458. fi
  20459. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gmp___gmpz_mul_si" >&5
  20460. $as_echo "$ac_cv_lib_gmp___gmpz_mul_si" >&6; }
  20461. if test "x$ac_cv_lib_gmp___gmpz_mul_si" = x""yes; then :
  20462. GMP_CFLAGS="$gmpinc"
  20463. GMP_LIBS="$gmplibs"
  20464. else
  20465. GMP_CFLAGS=
  20466. GMP_LIBS=
  20467. fi
  20468. for ac_header in gmp.h
  20469. do :
  20470. ac_fn_c_check_header_mongrel "$LINENO" "gmp.h" "ac_cv_header_gmp_h" "$ac_includes_default"
  20471. if test "x$ac_cv_header_gmp_h" = x""yes; then :
  20472. cat >>confdefs.h <<_ACEOF
  20473. #define HAVE_GMP_H 1
  20474. _ACEOF
  20475. fi
  20476. done
  20477. fi
  20478. else
  20479. COMPILE_GMP=no
  20480. fi
  20481. if test "x${REGENERATE_JNI_HEADERS}" = xyes; then
  20482. # Check whether --with-javah was given.
  20483. if test "${with_javah+set}" = set; then :
  20484. withval=$with_javah;
  20485. if test "x${withval}" != x && test "x${withval}" != xyes && test "x${withval}" != xno; then
  20486. if test "x${withval}" != x; then
  20487. if test -f "${withval}"; then
  20488. USER_JAVAH="${withval}"
  20489. else
  20490. # Extract the first word of ""${withval}"", so it can be a program name with args.
  20491. set dummy "${withval}"; ac_word=$2
  20492. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  20493. $as_echo_n "checking for $ac_word... " >&6; }
  20494. if test "${ac_cv_path_USER_JAVAH+set}" = set; then :
  20495. $as_echo_n "(cached) " >&6
  20496. else
  20497. case $USER_JAVAH in
  20498. [\\/]* | ?:[\\/]*)
  20499. ac_cv_path_USER_JAVAH="$USER_JAVAH" # Let the user override the test with a path.
  20500. ;;
  20501. *)
  20502. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  20503. for as_dir in $PATH
  20504. do
  20505. IFS=$as_save_IFS
  20506. test -z "$as_dir" && as_dir=.
  20507. for ac_exec_ext in '' $ac_executable_extensions; do
  20508. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  20509. ac_cv_path_USER_JAVAH="$as_dir/$ac_word$ac_exec_ext"
  20510. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  20511. break 2
  20512. fi
  20513. done
  20514. done
  20515. IFS=$as_save_IFS
  20516. ;;
  20517. esac
  20518. fi
  20519. USER_JAVAH=$ac_cv_path_USER_JAVAH
  20520. if test -n "$USER_JAVAH"; then
  20521. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USER_JAVAH" >&5
  20522. $as_echo "$USER_JAVAH" >&6; }
  20523. else
  20524. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20525. $as_echo "no" >&6; }
  20526. fi
  20527. fi
  20528. else
  20529. for ac_prog in gjavah gjavah-4.3 gjavah-4.2 gjavah-4.1 gcjh-wrapper-4.1 gcjh-4.1 javah
  20530. do
  20531. # Extract the first word of "$ac_prog", so it can be a program name with args.
  20532. set dummy $ac_prog; ac_word=$2
  20533. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  20534. $as_echo_n "checking for $ac_word... " >&6; }
  20535. if test "${ac_cv_path_USER_JAVAH+set}" = set; then :
  20536. $as_echo_n "(cached) " >&6
  20537. else
  20538. case $USER_JAVAH in
  20539. [\\/]* | ?:[\\/]*)
  20540. ac_cv_path_USER_JAVAH="$USER_JAVAH" # Let the user override the test with a path.
  20541. ;;
  20542. *)
  20543. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  20544. for as_dir in $PATH
  20545. do
  20546. IFS=$as_save_IFS
  20547. test -z "$as_dir" && as_dir=.
  20548. for ac_exec_ext in '' $ac_executable_extensions; do
  20549. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  20550. ac_cv_path_USER_JAVAH="$as_dir/$ac_word$ac_exec_ext"
  20551. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  20552. break 2
  20553. fi
  20554. done
  20555. done
  20556. IFS=$as_save_IFS
  20557. ;;
  20558. esac
  20559. fi
  20560. USER_JAVAH=$ac_cv_path_USER_JAVAH
  20561. if test -n "$USER_JAVAH"; then
  20562. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USER_JAVAH" >&5
  20563. $as_echo "$USER_JAVAH" >&6; }
  20564. else
  20565. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20566. $as_echo "no" >&6; }
  20567. fi
  20568. test -n "$USER_JAVAH" && break
  20569. done
  20570. fi
  20571. if test "x${USER_JAVAH}" = x; then
  20572. as_fn_error "can not find javah" "$LINENO" 5
  20573. fi
  20574. else
  20575. if test "x" != x; then
  20576. if test -f ""; then
  20577. USER_JAVAH=""
  20578. else
  20579. # Extract the first word of """", so it can be a program name with args.
  20580. set dummy ""; ac_word=$2
  20581. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  20582. $as_echo_n "checking for $ac_word... " >&6; }
  20583. if test "${ac_cv_path_USER_JAVAH+set}" = set; then :
  20584. $as_echo_n "(cached) " >&6
  20585. else
  20586. case $USER_JAVAH in
  20587. [\\/]* | ?:[\\/]*)
  20588. ac_cv_path_USER_JAVAH="$USER_JAVAH" # Let the user override the test with a path.
  20589. ;;
  20590. *)
  20591. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  20592. for as_dir in $PATH
  20593. do
  20594. IFS=$as_save_IFS
  20595. test -z "$as_dir" && as_dir=.
  20596. for ac_exec_ext in '' $ac_executable_extensions; do
  20597. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  20598. ac_cv_path_USER_JAVAH="$as_dir/$ac_word$ac_exec_ext"
  20599. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  20600. break 2
  20601. fi
  20602. done
  20603. done
  20604. IFS=$as_save_IFS
  20605. ;;
  20606. esac
  20607. fi
  20608. USER_JAVAH=$ac_cv_path_USER_JAVAH
  20609. if test -n "$USER_JAVAH"; then
  20610. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USER_JAVAH" >&5
  20611. $as_echo "$USER_JAVAH" >&6; }
  20612. else
  20613. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20614. $as_echo "no" >&6; }
  20615. fi
  20616. fi
  20617. else
  20618. for ac_prog in gjavah gjavah-4.3 gjavah-4.2 gjavah-4.1 gcjh-wrapper-4.1 gcjh-4.1 javah
  20619. do
  20620. # Extract the first word of "$ac_prog", so it can be a program name with args.
  20621. set dummy $ac_prog; ac_word=$2
  20622. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  20623. $as_echo_n "checking for $ac_word... " >&6; }
  20624. if test "${ac_cv_path_USER_JAVAH+set}" = set; then :
  20625. $as_echo_n "(cached) " >&6
  20626. else
  20627. case $USER_JAVAH in
  20628. [\\/]* | ?:[\\/]*)
  20629. ac_cv_path_USER_JAVAH="$USER_JAVAH" # Let the user override the test with a path.
  20630. ;;
  20631. *)
  20632. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  20633. for as_dir in $PATH
  20634. do
  20635. IFS=$as_save_IFS
  20636. test -z "$as_dir" && as_dir=.
  20637. for ac_exec_ext in '' $ac_executable_extensions; do
  20638. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  20639. ac_cv_path_USER_JAVAH="$as_dir/$ac_word$ac_exec_ext"
  20640. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  20641. break 2
  20642. fi
  20643. done
  20644. done
  20645. IFS=$as_save_IFS
  20646. ;;
  20647. esac
  20648. fi
  20649. USER_JAVAH=$ac_cv_path_USER_JAVAH
  20650. if test -n "$USER_JAVAH"; then
  20651. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USER_JAVAH" >&5
  20652. $as_echo "$USER_JAVAH" >&6; }
  20653. else
  20654. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20655. $as_echo "no" >&6; }
  20656. fi
  20657. test -n "$USER_JAVAH" && break
  20658. done
  20659. fi
  20660. if test "x${USER_JAVAH}" = x; then
  20661. as_fn_error "can not find javah" "$LINENO" 5
  20662. fi
  20663. fi
  20664. else
  20665. if test "x" != x; then
  20666. if test -f ""; then
  20667. USER_JAVAH=""
  20668. else
  20669. # Extract the first word of """", so it can be a program name with args.
  20670. set dummy ""; ac_word=$2
  20671. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  20672. $as_echo_n "checking for $ac_word... " >&6; }
  20673. if test "${ac_cv_path_USER_JAVAH+set}" = set; then :
  20674. $as_echo_n "(cached) " >&6
  20675. else
  20676. case $USER_JAVAH in
  20677. [\\/]* | ?:[\\/]*)
  20678. ac_cv_path_USER_JAVAH="$USER_JAVAH" # Let the user override the test with a path.
  20679. ;;
  20680. *)
  20681. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  20682. for as_dir in $PATH
  20683. do
  20684. IFS=$as_save_IFS
  20685. test -z "$as_dir" && as_dir=.
  20686. for ac_exec_ext in '' $ac_executable_extensions; do
  20687. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  20688. ac_cv_path_USER_JAVAH="$as_dir/$ac_word$ac_exec_ext"
  20689. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  20690. break 2
  20691. fi
  20692. done
  20693. done
  20694. IFS=$as_save_IFS
  20695. ;;
  20696. esac
  20697. fi
  20698. USER_JAVAH=$ac_cv_path_USER_JAVAH
  20699. if test -n "$USER_JAVAH"; then
  20700. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USER_JAVAH" >&5
  20701. $as_echo "$USER_JAVAH" >&6; }
  20702. else
  20703. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20704. $as_echo "no" >&6; }
  20705. fi
  20706. fi
  20707. else
  20708. for ac_prog in gjavah gjavah-4.3 gjavah-4.2 gjavah-4.1 gcjh-wrapper-4.1 gcjh-4.1 javah
  20709. do
  20710. # Extract the first word of "$ac_prog", so it can be a program name with args.
  20711. set dummy $ac_prog; ac_word=$2
  20712. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  20713. $as_echo_n "checking for $ac_word... " >&6; }
  20714. if test "${ac_cv_path_USER_JAVAH+set}" = set; then :
  20715. $as_echo_n "(cached) " >&6
  20716. else
  20717. case $USER_JAVAH in
  20718. [\\/]* | ?:[\\/]*)
  20719. ac_cv_path_USER_JAVAH="$USER_JAVAH" # Let the user override the test with a path.
  20720. ;;
  20721. *)
  20722. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  20723. for as_dir in $PATH
  20724. do
  20725. IFS=$as_save_IFS
  20726. test -z "$as_dir" && as_dir=.
  20727. for ac_exec_ext in '' $ac_executable_extensions; do
  20728. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  20729. ac_cv_path_USER_JAVAH="$as_dir/$ac_word$ac_exec_ext"
  20730. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  20731. break 2
  20732. fi
  20733. done
  20734. done
  20735. IFS=$as_save_IFS
  20736. ;;
  20737. esac
  20738. fi
  20739. USER_JAVAH=$ac_cv_path_USER_JAVAH
  20740. if test -n "$USER_JAVAH"; then
  20741. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USER_JAVAH" >&5
  20742. $as_echo "$USER_JAVAH" >&6; }
  20743. else
  20744. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20745. $as_echo "no" >&6; }
  20746. fi
  20747. test -n "$USER_JAVAH" && break
  20748. done
  20749. fi
  20750. if test "x${USER_JAVAH}" = x; then
  20751. as_fn_error "can not find javah" "$LINENO" 5
  20752. fi
  20753. fi
  20754. fi
  20755. CLASSPATH_INCLUDES="-I\$(top_srcdir)/include -I\$(top_srcdir)/native/jni/classpath -I\$(top_srcdir)/native/jni/native-lib"
  20756. if test "x${COMPILE_JNI}" = xyes; then
  20757. { $as_echo "$as_me:${as_lineno-$LINENO}: checking jni_md.h support" >&5
  20758. $as_echo_n "checking jni_md.h support... " >&6; }
  20759. if test -f ${srcdir}/include/jni_md-${target_cpu}-${target_os}.h; then
  20760. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  20761. $as_echo "yes" >&6; }
  20762. else
  20763. target_cpu=x86
  20764. target_os=linux-gnu
  20765. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no" >&5
  20766. $as_echo "$as_me: WARNING: no" >&2;}
  20767. fi
  20768. ac_sources="include/jni_md-${target_cpu}-${target_os}.h"
  20769. ac_dests="include/jni_md.h"
  20770. while test -n "$ac_sources"; do
  20771. set $ac_dests; ac_dest=$1; shift; ac_dests=$*
  20772. set $ac_sources; ac_source=$1; shift; ac_sources=$*
  20773. ac_config_links_1="$ac_config_links_1 $ac_dest:$ac_source"
  20774. done
  20775. ac_config_links="$ac_config_links $ac_config_links_1"
  20776. fi
  20777. # Check whether --with-vm-classes was given.
  20778. if test "${with_vm_classes+set}" = set; then :
  20779. withval=$with_vm_classes; vm_classes="$with_vm_classes"
  20780. else
  20781. vm_classes='${top_srcdir}/vm/reference'
  20782. fi
  20783. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
  20784. $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
  20785. # Check whether --enable-maintainer-mode was given.
  20786. if test "${enable_maintainer_mode+set}" = set; then :
  20787. enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
  20788. else
  20789. USE_MAINTAINER_MODE=no
  20790. fi
  20791. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
  20792. $as_echo "$USE_MAINTAINER_MODE" >&6; }
  20793. if test $USE_MAINTAINER_MODE = yes; then
  20794. MAINTAINER_MODE_TRUE=
  20795. MAINTAINER_MODE_FALSE='#'
  20796. else
  20797. MAINTAINER_MODE_TRUE='#'
  20798. MAINTAINER_MODE_FALSE=
  20799. fi
  20800. MAINT=$MAINTAINER_MODE_TRUE
  20801. # Check whether --enable-debug was given.
  20802. if test "${enable_debug+set}" = set; then :
  20803. enableval=$enable_debug; case "${enableval}" in
  20804. yes)
  20805. LIBDEBUG="true"
  20806. $as_echo "#define DEBUG 1" >>confdefs.h
  20807. ;;
  20808. no) LIBDEBUG="false" ;;
  20809. *) as_fn_error "bad value ${enableval} for --enable-debug" "$LINENO" 5 ;;
  20810. esac
  20811. else
  20812. LIBDEBUG="false"
  20813. fi
  20814. # Check whether --enable-load-library was given.
  20815. if test "${enable_load_library+set}" = set; then :
  20816. enableval=$enable_load_library; case "${enableval}" in
  20817. yes) INIT_LOAD_LIBRARY="true" ;;
  20818. no) INIT_LOAD_LIBRARY="false" ;;
  20819. *) as_fn_error "bad value ${enableval} for --enable-load-library" "$LINENO" 5 ;;
  20820. esac
  20821. else
  20822. INIT_LOAD_LIBRARY="true"
  20823. fi
  20824. # Check whether --with-ecj-jar was given.
  20825. if test "${with_ecj_jar+set}" = set; then :
  20826. withval=$with_ecj_jar; ECJ_JAR=$withval
  20827. else
  20828. if test -f $multi_basedir/ecj.jar; then
  20829. ECJ_JAR='$(jardir)/ecj.jar'
  20830. fi
  20831. fi
  20832. # Check whether --enable-java-lang-system-explicit-initialization was given.
  20833. if test "${enable_java_lang_system_explicit_initialization+set}" = set; then :
  20834. enableval=$enable_java_lang_system_explicit_initialization; case "${enableval}" in
  20835. yes|true) JAVA_LANG_SYSTEM_EXPLICIT_INITIALIZATION="true" ;;
  20836. no|false) JAVA_LANG_SYSTEM_EXPLICIT_INITIALIZATION="false" ;;
  20837. *) as_fn_error "bad value ${enableval} for --enable-java-lang-system-explicit-initialization" "$LINENO" 5 ;;
  20838. esac
  20839. else
  20840. JAVA_LANG_SYSTEM_EXPLICIT_INITIALIZATION="false"
  20841. fi
  20842. REMOVE=""
  20843. # Extract the first word of "mkdir", so it can be a program name with args.
  20844. set dummy mkdir; ac_word=$2
  20845. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  20846. $as_echo_n "checking for $ac_word... " >&6; }
  20847. if test "${ac_cv_path_MKDIR+set}" = set; then :
  20848. $as_echo_n "(cached) " >&6
  20849. else
  20850. case $MKDIR in
  20851. [\\/]* | ?:[\\/]*)
  20852. ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
  20853. ;;
  20854. *)
  20855. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  20856. for as_dir in $PATH
  20857. do
  20858. IFS=$as_save_IFS
  20859. test -z "$as_dir" && as_dir=.
  20860. for ac_exec_ext in '' $ac_executable_extensions; do
  20861. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  20862. ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
  20863. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  20864. break 2
  20865. fi
  20866. done
  20867. done
  20868. IFS=$as_save_IFS
  20869. ;;
  20870. esac
  20871. fi
  20872. MKDIR=$ac_cv_path_MKDIR
  20873. if test -n "$MKDIR"; then
  20874. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR" >&5
  20875. $as_echo "$MKDIR" >&6; }
  20876. else
  20877. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20878. $as_echo "no" >&6; }
  20879. fi
  20880. # Extract the first word of "cp", so it can be a program name with args.
  20881. set dummy cp; ac_word=$2
  20882. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  20883. $as_echo_n "checking for $ac_word... " >&6; }
  20884. if test "${ac_cv_path_CP+set}" = set; then :
  20885. $as_echo_n "(cached) " >&6
  20886. else
  20887. case $CP in
  20888. [\\/]* | ?:[\\/]*)
  20889. ac_cv_path_CP="$CP" # Let the user override the test with a path.
  20890. ;;
  20891. *)
  20892. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  20893. for as_dir in $PATH
  20894. do
  20895. IFS=$as_save_IFS
  20896. test -z "$as_dir" && as_dir=.
  20897. for ac_exec_ext in '' $ac_executable_extensions; do
  20898. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  20899. ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
  20900. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  20901. break 2
  20902. fi
  20903. done
  20904. done
  20905. IFS=$as_save_IFS
  20906. ;;
  20907. esac
  20908. fi
  20909. CP=$ac_cv_path_CP
  20910. if test -n "$CP"; then
  20911. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
  20912. $as_echo "$CP" >&6; }
  20913. else
  20914. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20915. $as_echo "no" >&6; }
  20916. fi
  20917. # Extract the first word of "date", so it can be a program name with args.
  20918. set dummy date; ac_word=$2
  20919. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  20920. $as_echo_n "checking for $ac_word... " >&6; }
  20921. if test "${ac_cv_path_DATE+set}" = set; then :
  20922. $as_echo_n "(cached) " >&6
  20923. else
  20924. case $DATE in
  20925. [\\/]* | ?:[\\/]*)
  20926. ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
  20927. ;;
  20928. *)
  20929. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  20930. for as_dir in $PATH
  20931. do
  20932. IFS=$as_save_IFS
  20933. test -z "$as_dir" && as_dir=.
  20934. for ac_exec_ext in '' $ac_executable_extensions; do
  20935. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  20936. ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
  20937. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  20938. break 2
  20939. fi
  20940. done
  20941. done
  20942. IFS=$as_save_IFS
  20943. ;;
  20944. esac
  20945. fi
  20946. DATE=$ac_cv_path_DATE
  20947. if test -n "$DATE"; then
  20948. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DATE" >&5
  20949. $as_echo "$DATE" >&6; }
  20950. else
  20951. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20952. $as_echo "no" >&6; }
  20953. fi
  20954. # Extract the first word of "find", so it can be a program name with args.
  20955. set dummy find; ac_word=$2
  20956. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  20957. $as_echo_n "checking for $ac_word... " >&6; }
  20958. if test "${ac_cv_path_FIND+set}" = set; then :
  20959. $as_echo_n "(cached) " >&6
  20960. else
  20961. case $FIND in
  20962. [\\/]* | ?:[\\/]*)
  20963. ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
  20964. ;;
  20965. *)
  20966. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  20967. for as_dir in $PATH
  20968. do
  20969. IFS=$as_save_IFS
  20970. test -z "$as_dir" && as_dir=.
  20971. for ac_exec_ext in '' $ac_executable_extensions; do
  20972. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  20973. ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
  20974. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  20975. break 2
  20976. fi
  20977. done
  20978. done
  20979. IFS=$as_save_IFS
  20980. ;;
  20981. esac
  20982. fi
  20983. FIND=$ac_cv_path_FIND
  20984. if test -n "$FIND"; then
  20985. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FIND" >&5
  20986. $as_echo "$FIND" >&6; }
  20987. else
  20988. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20989. $as_echo "no" >&6; }
  20990. fi
  20991. # Extract the first word of "zip", so it can be a program name with args.
  20992. set dummy zip; ac_word=$2
  20993. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  20994. $as_echo_n "checking for $ac_word... " >&6; }
  20995. if test "${ac_cv_path_ZIP+set}" = set; then :
  20996. $as_echo_n "(cached) " >&6
  20997. else
  20998. case $ZIP in
  20999. [\\/]* | ?:[\\/]*)
  21000. ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
  21001. ;;
  21002. *)
  21003. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  21004. for as_dir in $PATH
  21005. do
  21006. IFS=$as_save_IFS
  21007. test -z "$as_dir" && as_dir=.
  21008. for ac_exec_ext in '' $ac_executable_extensions; do
  21009. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  21010. ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
  21011. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  21012. break 2
  21013. fi
  21014. done
  21015. done
  21016. IFS=$as_save_IFS
  21017. ;;
  21018. esac
  21019. fi
  21020. ZIP=$ac_cv_path_ZIP
  21021. if test -n "$ZIP"; then
  21022. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIP" >&5
  21023. $as_echo "$ZIP" >&6; }
  21024. else
  21025. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  21026. $as_echo "no" >&6; }
  21027. fi
  21028. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a jar-like tool" >&5
  21029. $as_echo_n "checking for a jar-like tool... " >&6; }
  21030. # Check whether --with-jar was given.
  21031. if test "${with_jar+set}" = set; then :
  21032. withval=$with_jar;
  21033. case "${withval}" in
  21034. yes)
  21035. JAR=yes
  21036. ;;
  21037. no)
  21038. JAR=no
  21039. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${JAR}" >&5
  21040. $as_echo "${JAR}" >&6; }
  21041. ;;
  21042. *)
  21043. if test -f "${withval}"; then
  21044. JAR="${withval}"
  21045. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${JAR}" >&5
  21046. $as_echo "${JAR}" >&6; }
  21047. else
  21048. { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
  21049. $as_echo "not found" >&6; }
  21050. as_fn_error "The jar tool ${withval} was not found." "$LINENO" 5
  21051. fi
  21052. ;;
  21053. esac
  21054. else
  21055. JAR=yes
  21056. fi
  21057. if test x"${JAR}" = "xyes"; then
  21058. { $as_echo "$as_me:${as_lineno-$LINENO}: result: trying fastjar, gjar and jar" >&5
  21059. $as_echo "trying fastjar, gjar and jar" >&6; }
  21060. for ac_prog in fastjar gjar jar
  21061. do
  21062. # Extract the first word of "$ac_prog", so it can be a program name with args.
  21063. set dummy $ac_prog; ac_word=$2
  21064. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  21065. $as_echo_n "checking for $ac_word... " >&6; }
  21066. if test "${ac_cv_path_JAR+set}" = set; then :
  21067. $as_echo_n "(cached) " >&6
  21068. else
  21069. case $JAR in
  21070. [\\/]* | ?:[\\/]*)
  21071. ac_cv_path_JAR="$JAR" # Let the user override the test with a path.
  21072. ;;
  21073. *)
  21074. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  21075. for as_dir in $PATH
  21076. do
  21077. IFS=$as_save_IFS
  21078. test -z "$as_dir" && as_dir=.
  21079. for ac_exec_ext in '' $ac_executable_extensions; do
  21080. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  21081. ac_cv_path_JAR="$as_dir/$ac_word$ac_exec_ext"
  21082. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  21083. break 2
  21084. fi
  21085. done
  21086. done
  21087. IFS=$as_save_IFS
  21088. ;;
  21089. esac
  21090. fi
  21091. JAR=$ac_cv_path_JAR
  21092. if test -n "$JAR"; then
  21093. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAR" >&5
  21094. $as_echo "$JAR" >&6; }
  21095. else
  21096. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  21097. $as_echo "no" >&6; }
  21098. fi
  21099. test -n "$JAR" && break
  21100. done
  21101. if test x"${RHINO_JAR}" = "xyes"; then
  21102. { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
  21103. $as_echo "not found" >&6; }
  21104. fi
  21105. fi
  21106. if test x"${JAR}" = "xno" && test x"${ZIP}" = ""; then
  21107. as_fn_error "No zip or jar tool found." "$LINENO" 5
  21108. fi
  21109. if test x"${JAR}" != "xno" && test x"${JAR}" != "xyes"; then
  21110. WITH_JAR_TRUE=
  21111. WITH_JAR_FALSE='#'
  21112. else
  21113. WITH_JAR_TRUE='#'
  21114. WITH_JAR_FALSE=
  21115. fi
  21116. # Check whether --with-glibj was given.
  21117. if test "${with_glibj+set}" = set; then :
  21118. withval=$with_glibj;
  21119. if test "x${withval}" = xyes || test "x${withval}" = xzip; then
  21120. install_class_files=no
  21121. build_class_files=yes
  21122. use_zip=yes
  21123. elif test "x${withval}" = xboth; then
  21124. install_class_files=yes
  21125. build_class_files=yes
  21126. use_zip=yes
  21127. elif test "x${withval}" = xflat; then
  21128. install_class_files=yes
  21129. build_class_files=yes
  21130. use_zip=no
  21131. elif test "x${withval}" = xno || test "x${withval}" = xnone; then
  21132. install_class_files=no
  21133. build_class_files=no
  21134. use_zip=no
  21135. elif test "x${withval}" = xbuild; then
  21136. install_class_files=no
  21137. build_class_files=yes
  21138. use_zip=no
  21139. else
  21140. as_fn_error "unknown value given to --with-glibj" "$LINENO" 5
  21141. fi
  21142. else
  21143. install_class_files=no
  21144. use_zip=yes
  21145. fi
  21146. if test "x${use_zip}" = xyes; then
  21147. INSTALL_GLIBJ_ZIP_TRUE=
  21148. INSTALL_GLIBJ_ZIP_FALSE='#'
  21149. else
  21150. INSTALL_GLIBJ_ZIP_TRUE='#'
  21151. INSTALL_GLIBJ_ZIP_FALSE=
  21152. fi
  21153. if test "x${install_class_files}" = xyes; then
  21154. INSTALL_CLASS_FILES_TRUE=
  21155. INSTALL_CLASS_FILES_FALSE='#'
  21156. else
  21157. INSTALL_CLASS_FILES_TRUE='#'
  21158. INSTALL_CLASS_FILES_FALSE=
  21159. fi
  21160. if test "x${build_class_files}" = xyes; then
  21161. BUILD_CLASS_FILES_TRUE=
  21162. BUILD_CLASS_FILES_FALSE='#'
  21163. else
  21164. BUILD_CLASS_FILES_TRUE='#'
  21165. BUILD_CLASS_FILES_FALSE=
  21166. fi
  21167. # Check whether --enable-examples was given.
  21168. if test "${enable_examples+set}" = set; then :
  21169. enableval=$enable_examples; case "${enableval}" in
  21170. yes) EXAMPLESDIR="examples" ;;
  21171. no) EXAMPLESDIR="" ;;
  21172. *) as_fn_error "bad value ${enableval} for --enable-examples" "$LINENO" 5 ;;
  21173. esac
  21174. else
  21175. EXAMPLESDIR="examples"
  21176. fi
  21177. if test "x${build_class_files}" = xno; then
  21178. EXAMPLESDIR=""
  21179. fi
  21180. # Check whether --enable-tools was given.
  21181. if test "${enable_tools+set}" = set; then :
  21182. enableval=$enable_tools; case "${enableval}" in
  21183. yes) TOOLSDIR="tools" ;;
  21184. no) TOOLSDIR="" ;;
  21185. *) as_fn_error "bad value ${enableval} for --enable-tools" "$LINENO" 5 ;;
  21186. esac
  21187. else
  21188. TOOLSDIR="tools"
  21189. fi
  21190. if test "x${build_class_files}" = xno; then
  21191. TOOLSDIR=""
  21192. fi
  21193. # Check whether --with-gjdoc was given.
  21194. if test "${with_gjdoc+set}" = set; then :
  21195. withval=$with_gjdoc; if test "x${withval}" = xno; then
  21196. WITH_GJDOC=no;
  21197. elif test "x${withval}" = xyes -o "x{withval}" = x; then
  21198. WITH_GJDOC=yes;
  21199. # Extract the first word of "gjdoc", so it can be a program name with args.
  21200. set dummy gjdoc; ac_word=$2
  21201. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  21202. $as_echo_n "checking for $ac_word... " >&6; }
  21203. if test "${ac_cv_path_GJDOC+set}" = set; then :
  21204. $as_echo_n "(cached) " >&6
  21205. else
  21206. case $GJDOC in
  21207. [\\/]* | ?:[\\/]*)
  21208. ac_cv_path_GJDOC="$GJDOC" # Let the user override the test with a path.
  21209. ;;
  21210. *)
  21211. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  21212. for as_dir in $PATH
  21213. do
  21214. IFS=$as_save_IFS
  21215. test -z "$as_dir" && as_dir=.
  21216. for ac_exec_ext in '' $ac_executable_extensions; do
  21217. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  21218. ac_cv_path_GJDOC="$as_dir/$ac_word$ac_exec_ext"
  21219. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  21220. break 2
  21221. fi
  21222. done
  21223. done
  21224. IFS=$as_save_IFS
  21225. test -z "$ac_cv_path_GJDOC" && ac_cv_path_GJDOC=""no""
  21226. ;;
  21227. esac
  21228. fi
  21229. GJDOC=$ac_cv_path_GJDOC
  21230. if test -n "$GJDOC"; then
  21231. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GJDOC" >&5
  21232. $as_echo "$GJDOC" >&6; }
  21233. else
  21234. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  21235. $as_echo "no" >&6; }
  21236. fi
  21237. if test "x${GJDOC}" = xno; then
  21238. as_fn_error "\"gjdoc executable not found\"" "$LINENO" 5;
  21239. fi
  21240. else
  21241. WITH_GJDOC=yes
  21242. GJDOC="${withval}"
  21243. as_ac_File=`$as_echo "ac_cv_file_${GJDOC}" | $as_tr_sh`
  21244. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${GJDOC}" >&5
  21245. $as_echo_n "checking for ${GJDOC}... " >&6; }
  21246. if { as_var=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then :
  21247. $as_echo_n "(cached) " >&6
  21248. else
  21249. test "$cross_compiling" = yes &&
  21250. as_fn_error "cannot check for file existence when cross compiling" "$LINENO" 5
  21251. if test -r "${GJDOC}"; then
  21252. eval "$as_ac_File=yes"
  21253. else
  21254. eval "$as_ac_File=no"
  21255. fi
  21256. fi
  21257. eval ac_res=\$$as_ac_File
  21258. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  21259. $as_echo "$ac_res" >&6; }
  21260. eval as_val=\$$as_ac_File
  21261. if test "x$as_val" = x""yes; then :
  21262. else
  21263. as_fn_error "\"Cannot use ${withval} as gjdoc executable since it doesn't exist\"" "$LINENO" 5
  21264. fi
  21265. fi
  21266. else
  21267. WITH_GJDOC=no
  21268. fi
  21269. if test "x${WITH_GJDOC}" = xyes; then
  21270. CREATE_API_DOCS_TRUE=
  21271. CREATE_API_DOCS_FALSE='#'
  21272. else
  21273. CREATE_API_DOCS_TRUE='#'
  21274. CREATE_API_DOCS_FALSE=
  21275. fi
  21276. if test "x${WITH_GJDOC}" = xyes; then
  21277. { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of GJDoc" >&5
  21278. $as_echo_n "checking version of GJDoc... " >&6; }
  21279. gjdoc_version=$(${GJDOC} --version|cut -d ' ' -f2)
  21280. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${gjdoc_version}" >&5
  21281. $as_echo "${gjdoc_version}" >&6; }
  21282. case ${gjdoc_version} in
  21283. 0.7.9) ;;
  21284. 0.8*) ;;
  21285. 0.9*) ;;
  21286. 1*) ;;
  21287. *) as_fn_error "Building documentation requires GJDoc >= 0.7.9, ${gjdoc_version} found." "$LINENO" 5 ;;
  21288. esac
  21289. fi
  21290. # Check whether --with-jay was given.
  21291. if test "${with_jay+set}" = set; then :
  21292. withval=$with_jay;
  21293. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to regenerate parsers with jay" >&5
  21294. $as_echo_n "checking whether to regenerate parsers with jay... " >&6; }
  21295. JAY_FOUND=no
  21296. JAY_DIR_PATH=
  21297. if test "x${withval}" = xno; then
  21298. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  21299. $as_echo "no" >&6; }
  21300. elif test "x${withval}" = xyes; then
  21301. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  21302. $as_echo "yes" >&6; }
  21303. JAY_DIR_PATH="/usr/share/jay"
  21304. elif test -d "${withval}"; then
  21305. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  21306. $as_echo "yes" >&6; }
  21307. JAY_DIR_PATH="${withval}"
  21308. elif test -f "${withval}"; then
  21309. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  21310. $as_echo "yes" >&6; }
  21311. JAY_DIR_PATH=`dirname "${withval}"`
  21312. JAY="${withval}"
  21313. else
  21314. as_fn_error "jay not found at ${withval}" "$LINENO" 5
  21315. fi
  21316. if test "x${JAY_DIR_PATH}" != x; then
  21317. # Extract the first word of "jay", so it can be a program name with args.
  21318. set dummy jay; ac_word=$2
  21319. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  21320. $as_echo_n "checking for $ac_word... " >&6; }
  21321. if test "${ac_cv_path_JAY+set}" = set; then :
  21322. $as_echo_n "(cached) " >&6
  21323. else
  21324. case $JAY in
  21325. [\\/]* | ?:[\\/]*)
  21326. ac_cv_path_JAY="$JAY" # Let the user override the test with a path.
  21327. ;;
  21328. *)
  21329. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  21330. as_dummy="${JAY_DIR_PATH}:${PATH}"
  21331. for as_dir in $as_dummy
  21332. do
  21333. IFS=$as_save_IFS
  21334. test -z "$as_dir" && as_dir=.
  21335. for ac_exec_ext in '' $ac_executable_extensions; do
  21336. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  21337. ac_cv_path_JAY="$as_dir/$ac_word$ac_exec_ext"
  21338. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  21339. break 2
  21340. fi
  21341. done
  21342. done
  21343. IFS=$as_save_IFS
  21344. test -z "$ac_cv_path_JAY" && ac_cv_path_JAY=""no""
  21345. ;;
  21346. esac
  21347. fi
  21348. JAY=$ac_cv_path_JAY
  21349. if test -n "$JAY"; then
  21350. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAY" >&5
  21351. $as_echo "$JAY" >&6; }
  21352. else
  21353. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  21354. $as_echo "no" >&6; }
  21355. fi
  21356. if test "x${JAY}" = xno; then
  21357. as_fn_error "jay executable not found" "$LINENO" 5;
  21358. fi
  21359. JAY_SKELETON="${JAY_DIR_PATH}/skeleton"
  21360. as_ac_File=`$as_echo "ac_cv_file_${JAY_SKELETON}" | $as_tr_sh`
  21361. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${JAY_SKELETON}" >&5
  21362. $as_echo_n "checking for ${JAY_SKELETON}... " >&6; }
  21363. if { as_var=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then :
  21364. $as_echo_n "(cached) " >&6
  21365. else
  21366. test "$cross_compiling" = yes &&
  21367. as_fn_error "cannot check for file existence when cross compiling" "$LINENO" 5
  21368. if test -r "${JAY_SKELETON}"; then
  21369. eval "$as_ac_File=yes"
  21370. else
  21371. eval "$as_ac_File=no"
  21372. fi
  21373. fi
  21374. eval ac_res=\$$as_ac_File
  21375. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  21376. $as_echo "$ac_res" >&6; }
  21377. eval as_val=\$$as_ac_File
  21378. if test "x$as_val" = x""yes; then :
  21379. else
  21380. as_fn_error "Expected skeleton file in ${JAY_DIR_PATH}" "$LINENO" 5
  21381. fi
  21382. JAY_FOUND=yes
  21383. fi
  21384. else
  21385. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to regenerate parsers with jay" >&5
  21386. $as_echo_n "checking whether to regenerate parsers with jay... " >&6; }
  21387. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  21388. $as_echo "no" >&6; }
  21389. JAY_FOUND=no
  21390. fi
  21391. if test "x${JAY_FOUND}" = xyes; then
  21392. REGEN_PARSERS_TRUE=
  21393. REGEN_PARSERS_FALSE='#'
  21394. else
  21395. REGEN_PARSERS_TRUE='#'
  21396. REGEN_PARSERS_FALSE=
  21397. fi
  21398. # Check whether --enable-portable-native-sync was given.
  21399. if test "${enable_portable_native_sync+set}" = set; then :
  21400. enableval=$enable_portable_native_sync; case "${enableval}" in
  21401. yes)
  21402. $as_echo "#define PORTABLE_NATIVE_SYNC 1" >>confdefs.h
  21403. ;;
  21404. no) ;;
  21405. *)
  21406. as_fn_error "bad value ${enableval} for --enable-portable-native-sync" "$LINENO" 5
  21407. ;;
  21408. esac
  21409. fi
  21410. # ------ AX CREATE STDINT H -------------------------------------
  21411. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint types" >&5
  21412. $as_echo_n "checking for stdint types... " >&6; }
  21413. ac_stdint_h=`echo include/config-int.h`
  21414. # try to shortcircuit - if the default include path of the compiler
  21415. # can find a "stdint.h" header then we assume that all compilers can.
  21416. if test "${ac_cv_header_stdint_t+set}" = set; then :
  21417. $as_echo_n "(cached) " >&6
  21418. else
  21419. old_CXXFLAGS="$CXXFLAGS" ; CXXFLAGS=""
  21420. old_CPPFLAGS="$CPPFLAGS" ; CPPFLAGS=""
  21421. old_CFLAGS="$CFLAGS" ; CFLAGS=""
  21422. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21423. /* end confdefs.h. */
  21424. #include <stdint.h>
  21425. int
  21426. main ()
  21427. {
  21428. int_least32_t v = 0;
  21429. ;
  21430. return 0;
  21431. }
  21432. _ACEOF
  21433. if ac_fn_c_try_compile "$LINENO"; then :
  21434. ac_cv_stdint_result="(assuming C99 compatible system)"
  21435. ac_cv_header_stdint_t="stdint.h";
  21436. else
  21437. ac_cv_header_stdint_t=""
  21438. fi
  21439. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  21440. CXXFLAGS="$old_CXXFLAGS"
  21441. CPPFLAGS="$old_CPPFLAGS"
  21442. CFLAGS="$old_CFLAGS"
  21443. fi
  21444. v="... $ac_cv_header_stdint_h"
  21445. if test "$ac_stdint_h" = "stdint.h" ; then
  21446. { $as_echo "$as_me:${as_lineno-$LINENO}: result: (are you sure you want them in ./stdint.h?)" >&5
  21447. $as_echo "(are you sure you want them in ./stdint.h?)" >&6; }
  21448. elif test "$ac_stdint_h" = "inttypes.h" ; then
  21449. { $as_echo "$as_me:${as_lineno-$LINENO}: result: (are you sure you want them in ./inttypes.h?)" >&5
  21450. $as_echo "(are you sure you want them in ./inttypes.h?)" >&6; }
  21451. elif test "_$ac_cv_header_stdint_t" = "_" ; then
  21452. { $as_echo "$as_me:${as_lineno-$LINENO}: result: (putting them into $ac_stdint_h)$v" >&5
  21453. $as_echo "(putting them into $ac_stdint_h)$v" >&6; }
  21454. else
  21455. ac_cv_header_stdint="$ac_cv_header_stdint_t"
  21456. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdint (shortcircuit)" >&5
  21457. $as_echo "$ac_cv_header_stdint (shortcircuit)" >&6; }
  21458. fi
  21459. if test "_$ac_cv_header_stdint_t" = "_" ; then # can not shortcircuit..
  21460. inttype_headers=`echo | sed -e 's/,/ /g'`
  21461. ac_cv_stdint_result="(no helpful system typedefs seen)"
  21462. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint uintptr_t" >&5
  21463. $as_echo_n "checking for stdint uintptr_t... " >&6; }
  21464. if test "${ac_cv_header_stdint_x+set}" = set; then :
  21465. $as_echo_n "(cached) " >&6
  21466. else
  21467. ac_cv_header_stdint_x="" # the 1997 typedefs (inttypes.h)
  21468. { $as_echo "$as_me:${as_lineno-$LINENO}: result: (..)" >&5
  21469. $as_echo "(..)" >&6; }
  21470. for i in stdint.h inttypes.h sys/inttypes.h $inttype_headers ; do
  21471. unset ac_cv_type_uintptr_t
  21472. unset ac_cv_type_uint64_t
  21473. ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#include <$i>
  21474. "
  21475. if test "x$ac_cv_type_uintptr_t" = x""yes; then :
  21476. ac_cv_header_stdint_x=$i
  21477. else
  21478. continue
  21479. fi
  21480. ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include<$i>
  21481. "
  21482. if test "x$ac_cv_type_uint64_t" = x""yes; then :
  21483. and64="/uint64_t"
  21484. else
  21485. and64=""
  21486. fi
  21487. stdint.h inttypes.h sys/inttypes.h $inttype_headers
  21488. break
  21489. done
  21490. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint uintptr_t" >&5
  21491. $as_echo_n "checking for stdint uintptr_t... " >&6; }
  21492. fi
  21493. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdint_x" >&5
  21494. $as_echo "$ac_cv_header_stdint_x" >&6; }
  21495. if test "_$ac_cv_header_stdint_x" = "_" ; then
  21496. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint uint32_t" >&5
  21497. $as_echo_n "checking for stdint uint32_t... " >&6; }
  21498. if test "${ac_cv_header_stdint_o+set}" = set; then :
  21499. $as_echo_n "(cached) " >&6
  21500. else
  21501. ac_cv_header_stdint_o="" # the 1995 typedefs (sys/inttypes.h)
  21502. { $as_echo "$as_me:${as_lineno-$LINENO}: result: (..)" >&5
  21503. $as_echo "(..)" >&6; }
  21504. for i in inttypes.h sys/inttypes.h stdint.h $inttype_headers ; do
  21505. unset ac_cv_type_uint32_t
  21506. unset ac_cv_type_uint64_t
  21507. ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "#include <$i>
  21508. "
  21509. if test "x$ac_cv_type_uint32_t" = x""yes; then :
  21510. ac_cv_header_stdint_o=$i
  21511. else
  21512. continue
  21513. fi
  21514. ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include<$i>
  21515. "
  21516. if test "x$ac_cv_type_uint64_t" = x""yes; then :
  21517. and64="/uint64_t"
  21518. else
  21519. and64=""
  21520. fi
  21521. inttypes.h sys/inttypes.h stdint.h $inttype_headers
  21522. break
  21523. break;
  21524. done
  21525. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint uint32_t" >&5
  21526. $as_echo_n "checking for stdint uint32_t... " >&6; }
  21527. fi
  21528. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdint_o" >&5
  21529. $as_echo "$ac_cv_header_stdint_o" >&6; }
  21530. fi
  21531. if test "_$ac_cv_header_stdint_x" = "_" ; then
  21532. if test "_$ac_cv_header_stdint_o" = "_" ; then
  21533. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint u_int32_t" >&5
  21534. $as_echo_n "checking for stdint u_int32_t... " >&6; }
  21535. if test "${ac_cv_header_stdint_u+set}" = set; then :
  21536. $as_echo_n "(cached) " >&6
  21537. else
  21538. ac_cv_header_stdint_u="" # the BSD typedefs (sys/types.h)
  21539. { $as_echo "$as_me:${as_lineno-$LINENO}: result: (..)" >&5
  21540. $as_echo "(..)" >&6; }
  21541. for i in sys/types.h inttypes.h sys/inttypes.h $inttype_headers ; do
  21542. unset ac_cv_type_u_int32_t
  21543. unset ac_cv_type_u_int64_t
  21544. ac_fn_c_check_type "$LINENO" "u_int32_t" "ac_cv_type_u_int32_t" "#include <$i>
  21545. "
  21546. if test "x$ac_cv_type_u_int32_t" = x""yes; then :
  21547. ac_cv_header_stdint_u=$i
  21548. else
  21549. continue
  21550. fi
  21551. ac_fn_c_check_type "$LINENO" "u_int64_t" "ac_cv_type_u_int64_t" "#include<$i>
  21552. "
  21553. if test "x$ac_cv_type_u_int64_t" = x""yes; then :
  21554. and64="/u_int64_t"
  21555. else
  21556. and64=""
  21557. fi
  21558. sys/types.h inttypes.h sys/inttypes.h $inttype_headers
  21559. break
  21560. break;
  21561. done
  21562. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint u_int32_t" >&5
  21563. $as_echo_n "checking for stdint u_int32_t... " >&6; }
  21564. fi
  21565. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdint_u" >&5
  21566. $as_echo "$ac_cv_header_stdint_u" >&6; }
  21567. fi fi
  21568. if test "_$ac_cv_header_stdint_x" = "_" ; then
  21569. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint datatype model" >&5
  21570. $as_echo_n "checking for stdint datatype model... " >&6; }
  21571. { $as_echo "$as_me:${as_lineno-$LINENO}: result: (..)" >&5
  21572. $as_echo "(..)" >&6; }
  21573. # The cast to long int works around a bug in the HP C Compiler
  21574. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  21575. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  21576. # This bug is HP SR number 8606223364.
  21577. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char" >&5
  21578. $as_echo_n "checking size of char... " >&6; }
  21579. if test "${ac_cv_sizeof_char+set}" = set; then :
  21580. $as_echo_n "(cached) " >&6
  21581. else
  21582. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char))" "ac_cv_sizeof_char" "$ac_includes_default"; then :
  21583. else
  21584. if test "$ac_cv_type_char" = yes; then
  21585. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  21586. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  21587. { as_fn_set_status 77
  21588. as_fn_error "cannot compute sizeof (char)
  21589. See \`config.log' for more details." "$LINENO" 5; }; }
  21590. else
  21591. ac_cv_sizeof_char=0
  21592. fi
  21593. fi
  21594. fi
  21595. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char" >&5
  21596. $as_echo "$ac_cv_sizeof_char" >&6; }
  21597. cat >>confdefs.h <<_ACEOF
  21598. #define SIZEOF_CHAR $ac_cv_sizeof_char
  21599. _ACEOF
  21600. # The cast to long int works around a bug in the HP C Compiler
  21601. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  21602. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  21603. # This bug is HP SR number 8606223364.
  21604. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
  21605. $as_echo_n "checking size of short... " >&6; }
  21606. if test "${ac_cv_sizeof_short+set}" = set; then :
  21607. $as_echo_n "(cached) " >&6
  21608. else
  21609. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
  21610. else
  21611. if test "$ac_cv_type_short" = yes; then
  21612. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  21613. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  21614. { as_fn_set_status 77
  21615. as_fn_error "cannot compute sizeof (short)
  21616. See \`config.log' for more details." "$LINENO" 5; }; }
  21617. else
  21618. ac_cv_sizeof_short=0
  21619. fi
  21620. fi
  21621. fi
  21622. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
  21623. $as_echo "$ac_cv_sizeof_short" >&6; }
  21624. cat >>confdefs.h <<_ACEOF
  21625. #define SIZEOF_SHORT $ac_cv_sizeof_short
  21626. _ACEOF
  21627. # The cast to long int works around a bug in the HP C Compiler
  21628. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  21629. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  21630. # This bug is HP SR number 8606223364.
  21631. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
  21632. $as_echo_n "checking size of int... " >&6; }
  21633. if test "${ac_cv_sizeof_int+set}" = set; then :
  21634. $as_echo_n "(cached) " >&6
  21635. else
  21636. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
  21637. else
  21638. if test "$ac_cv_type_int" = yes; then
  21639. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  21640. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  21641. { as_fn_set_status 77
  21642. as_fn_error "cannot compute sizeof (int)
  21643. See \`config.log' for more details." "$LINENO" 5; }; }
  21644. else
  21645. ac_cv_sizeof_int=0
  21646. fi
  21647. fi
  21648. fi
  21649. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
  21650. $as_echo "$ac_cv_sizeof_int" >&6; }
  21651. cat >>confdefs.h <<_ACEOF
  21652. #define SIZEOF_INT $ac_cv_sizeof_int
  21653. _ACEOF
  21654. # The cast to long int works around a bug in the HP C Compiler
  21655. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  21656. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  21657. # This bug is HP SR number 8606223364.
  21658. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
  21659. $as_echo_n "checking size of long... " >&6; }
  21660. if test "${ac_cv_sizeof_long+set}" = set; then :
  21661. $as_echo_n "(cached) " >&6
  21662. else
  21663. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
  21664. else
  21665. if test "$ac_cv_type_long" = yes; then
  21666. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  21667. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  21668. { as_fn_set_status 77
  21669. as_fn_error "cannot compute sizeof (long)
  21670. See \`config.log' for more details." "$LINENO" 5; }; }
  21671. else
  21672. ac_cv_sizeof_long=0
  21673. fi
  21674. fi
  21675. fi
  21676. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
  21677. $as_echo "$ac_cv_sizeof_long" >&6; }
  21678. cat >>confdefs.h <<_ACEOF
  21679. #define SIZEOF_LONG $ac_cv_sizeof_long
  21680. _ACEOF
  21681. # The cast to long int works around a bug in the HP C Compiler
  21682. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  21683. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  21684. # This bug is HP SR number 8606223364.
  21685. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void*" >&5
  21686. $as_echo_n "checking size of void*... " >&6; }
  21687. if test "${ac_cv_sizeof_voidp+set}" = set; then :
  21688. $as_echo_n "(cached) " >&6
  21689. else
  21690. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void*))" "ac_cv_sizeof_voidp" "$ac_includes_default"; then :
  21691. else
  21692. if test "$ac_cv_type_voidp" = yes; then
  21693. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  21694. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  21695. { as_fn_set_status 77
  21696. as_fn_error "cannot compute sizeof (void*)
  21697. See \`config.log' for more details." "$LINENO" 5; }; }
  21698. else
  21699. ac_cv_sizeof_voidp=0
  21700. fi
  21701. fi
  21702. fi
  21703. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_voidp" >&5
  21704. $as_echo "$ac_cv_sizeof_voidp" >&6; }
  21705. cat >>confdefs.h <<_ACEOF
  21706. #define SIZEOF_VOIDP $ac_cv_sizeof_voidp
  21707. _ACEOF
  21708. ac_cv_char_data_model=""
  21709. ac_cv_char_data_model="$ac_cv_char_data_model$ac_cv_sizeof_char"
  21710. ac_cv_char_data_model="$ac_cv_char_data_model$ac_cv_sizeof_short"
  21711. ac_cv_char_data_model="$ac_cv_char_data_model$ac_cv_sizeof_int"
  21712. ac_cv_long_data_model=""
  21713. ac_cv_long_data_model="$ac_cv_long_data_model$ac_cv_sizeof_int"
  21714. ac_cv_long_data_model="$ac_cv_long_data_model$ac_cv_sizeof_long"
  21715. ac_cv_long_data_model="$ac_cv_long_data_model$ac_cv_sizeof_voidp"
  21716. { $as_echo "$as_me:${as_lineno-$LINENO}: checking data model" >&5
  21717. $as_echo_n "checking data model... " >&6; }
  21718. case "$ac_cv_char_data_model/$ac_cv_long_data_model" in
  21719. 122/242) ac_cv_data_model="IP16" ; n="standard 16bit machine" ;;
  21720. 122/244) ac_cv_data_model="LP32" ; n="standard 32bit machine" ;;
  21721. 122/*) ac_cv_data_model="i16" ; n="unusual int16 model" ;;
  21722. 124/444) ac_cv_data_model="ILP32" ; n="standard 32bit unixish" ;;
  21723. 124/488) ac_cv_data_model="LP64" ; n="standard 64bit unixish" ;;
  21724. 124/448) ac_cv_data_model="LLP64" ; n="unusual 64bit unixish" ;;
  21725. 124/*) ac_cv_data_model="i32" ; n="unusual int32 model" ;;
  21726. 128/888) ac_cv_data_model="ILP64" ; n="unusual 64bit numeric" ;;
  21727. 128/*) ac_cv_data_model="i64" ; n="unusual int64 model" ;;
  21728. 222/*2) ac_cv_data_model="DSP16" ; n="strict 16bit dsptype" ;;
  21729. 333/*3) ac_cv_data_model="DSP24" ; n="strict 24bit dsptype" ;;
  21730. 444/*4) ac_cv_data_model="DSP32" ; n="strict 32bit dsptype" ;;
  21731. 666/*6) ac_cv_data_model="DSP48" ; n="strict 48bit dsptype" ;;
  21732. 888/*8) ac_cv_data_model="DSP64" ; n="strict 64bit dsptype" ;;
  21733. 222/*|333/*|444/*|666/*|888/*) :
  21734. ac_cv_data_model="iDSP" ; n="unusual dsptype" ;;
  21735. *) ac_cv_data_model="none" ; n="very unusual model" ;;
  21736. esac
  21737. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_data_model ($ac_cv_long_data_model, $n)" >&5
  21738. $as_echo "$ac_cv_data_model ($ac_cv_long_data_model, $n)" >&6; }
  21739. fi
  21740. if test "_$ac_cv_header_stdint_x" != "_" ; then
  21741. ac_cv_header_stdint="$ac_cv_header_stdint_x"
  21742. elif test "_$ac_cv_header_stdint_o" != "_" ; then
  21743. ac_cv_header_stdint="$ac_cv_header_stdint_o"
  21744. elif test "_$ac_cv_header_stdint_u" != "_" ; then
  21745. ac_cv_header_stdint="$ac_cv_header_stdint_u"
  21746. else
  21747. ac_cv_header_stdint="stddef.h"
  21748. fi
  21749. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for extra inttypes in chosen header" >&5
  21750. $as_echo_n "checking for extra inttypes in chosen header... " >&6; }
  21751. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ($ac_cv_header_stdint)" >&5
  21752. $as_echo "($ac_cv_header_stdint)" >&6; }
  21753. unset ac_cv_type_int_least32_t
  21754. unset ac_cv_type_int_fast32_t
  21755. ac_fn_c_check_type "$LINENO" "int_least32_t" "ac_cv_type_int_least32_t" "#include <$ac_cv_header_stdint>
  21756. "
  21757. if test "x$ac_cv_type_int_least32_t" = x""yes; then :
  21758. fi
  21759. ac_fn_c_check_type "$LINENO" "int_fast32_t" "ac_cv_type_int_fast32_t" "#include<$ac_cv_header_stdint>
  21760. "
  21761. if test "x$ac_cv_type_int_fast32_t" = x""yes; then :
  21762. fi
  21763. ac_fn_c_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "#include <$ac_cv_header_stdint>
  21764. "
  21765. if test "x$ac_cv_type_intmax_t" = x""yes; then :
  21766. fi
  21767. fi # shortcircut to system "stdint.h"
  21768. # ------------------ PREPARE VARIABLES ------------------------------
  21769. if test "$GCC" = "yes" ; then
  21770. ac_cv_stdint_message="using gnu compiler "`$CC --version | head -1`
  21771. else
  21772. ac_cv_stdint_message="using $CC"
  21773. fi
  21774. { $as_echo "$as_me:${as_lineno-$LINENO}: result: make use of $ac_cv_header_stdint in $ac_stdint_h $ac_cv_stdint_result" >&5
  21775. $as_echo "make use of $ac_cv_header_stdint in $ac_stdint_h $ac_cv_stdint_result" >&6; }
  21776. # ----------------- DONE inttypes.h checks START header -------------
  21777. ac_config_commands="$ac_config_commands $ac_stdint_h"
  21778. # Check whether --with-glibj_zip was given.
  21779. if test "${with_glibj_zip+set}" = set; then :
  21780. withval=$with_glibj_zip;
  21781. fi
  21782. case "$with_glibj_zip" in
  21783. "")
  21784. use_glibj_zip=false
  21785. ;;
  21786. "no" )
  21787. use_glibj_zip=false
  21788. ;;
  21789. "yes")
  21790. as_fn_error "Please suply an absolute path to a prebuilt glibj.zip" "$LINENO" 5
  21791. ;;
  21792. *)
  21793. use_glibj_zip=true
  21794. PATH_TO_GLIBJ_ZIP=$with_glibj_zip
  21795. ;;
  21796. esac;
  21797. if test x$use_glibj_zip = xtrue; then
  21798. USE_PREBUILT_GLIBJ_ZIP_TRUE=
  21799. USE_PREBUILT_GLIBJ_ZIP_FALSE='#'
  21800. else
  21801. USE_PREBUILT_GLIBJ_ZIP_TRUE='#'
  21802. USE_PREBUILT_GLIBJ_ZIP_FALSE=
  21803. fi
  21804. if test "x${TOOLSDIR}" != x; then
  21805. if test "x${COMPILE_WRAPPERS}" = xno && test "x${enable_java_maintainer_mode}" = xyes; then
  21806. if test "x$JAVAPREFIX" = x; then
  21807. test "x$JAVA" = x && for ac_prog in cacao$EXEEXT jamvm$EXEEXT kaffe$EXEEXT gij$EXEEXT java$EXEEXT
  21808. do
  21809. # Extract the first word of "$ac_prog", so it can be a program name with args.
  21810. set dummy $ac_prog; ac_word=$2
  21811. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  21812. $as_echo_n "checking for $ac_word... " >&6; }
  21813. if test "${ac_cv_prog_JAVA+set}" = set; then :
  21814. $as_echo_n "(cached) " >&6
  21815. else
  21816. if test -n "$JAVA"; then
  21817. ac_cv_prog_JAVA="$JAVA" # Let the user override the test.
  21818. else
  21819. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  21820. for as_dir in $PATH
  21821. do
  21822. IFS=$as_save_IFS
  21823. test -z "$as_dir" && as_dir=.
  21824. for ac_exec_ext in '' $ac_executable_extensions; do
  21825. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  21826. ac_cv_prog_JAVA="$ac_prog"
  21827. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  21828. break 2
  21829. fi
  21830. done
  21831. done
  21832. IFS=$as_save_IFS
  21833. fi
  21834. fi
  21835. JAVA=$ac_cv_prog_JAVA
  21836. if test -n "$JAVA"; then
  21837. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVA" >&5
  21838. $as_echo "$JAVA" >&6; }
  21839. else
  21840. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  21841. $as_echo "no" >&6; }
  21842. fi
  21843. test -n "$JAVA" && break
  21844. done
  21845. else
  21846. test "x$JAVA" = x && for ac_prog in cacao$EXEEXT jamvm$EXEEXT kaffe$EXEEXT gij$EXEEXT java$EXEEXT
  21847. do
  21848. # Extract the first word of "$ac_prog", so it can be a program name with args.
  21849. set dummy $ac_prog; ac_word=$2
  21850. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  21851. $as_echo_n "checking for $ac_word... " >&6; }
  21852. if test "${ac_cv_prog_JAVA+set}" = set; then :
  21853. $as_echo_n "(cached) " >&6
  21854. else
  21855. if test -n "$JAVA"; then
  21856. ac_cv_prog_JAVA="$JAVA" # Let the user override the test.
  21857. else
  21858. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  21859. for as_dir in $PATH
  21860. do
  21861. IFS=$as_save_IFS
  21862. test -z "$as_dir" && as_dir=.
  21863. for ac_exec_ext in '' $ac_executable_extensions; do
  21864. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  21865. ac_cv_prog_JAVA="$ac_prog"
  21866. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  21867. break 2
  21868. fi
  21869. done
  21870. done
  21871. IFS=$as_save_IFS
  21872. fi
  21873. fi
  21874. JAVA=$ac_cv_prog_JAVA
  21875. if test -n "$JAVA"; then
  21876. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVA" >&5
  21877. $as_echo "$JAVA" >&6; }
  21878. else
  21879. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  21880. $as_echo "no" >&6; }
  21881. fi
  21882. test -n "$JAVA" && break
  21883. done
  21884. test -n "$JAVA" || JAVA="$JAVAPREFIX"
  21885. fi
  21886. test "x$JAVA" = x && as_fn_error "no acceptable Java virtual machine found in \$PATH" "$LINENO" 5
  21887. ECJ_OPTS="-warn:-deprecation,serial,unusedImport,unusedPrivate,resource"
  21888. JAVAC_OPTS="-Xlint:unchecked,cast,divzero,empty,finally,overrides"
  21889. GCJ_OPTS="-g"
  21890. if test "x$JAVAPREFIX" = x; then
  21891. test "x$JAVAC" = x && for ac_prog in "ecj$EXEEXT $ECJ_OPTS" "ecj-3.3$EXEEXT $ECJ_OPTS" "ecj-3.2$EXEEXT $ECJ_OPTS" "javac$EXEEXT $JAVAC_OPTS" "gcj$EXEEXT -C"
  21892. do
  21893. # Extract the first word of "$ac_prog", so it can be a program name with args.
  21894. set dummy $ac_prog; ac_word=$2
  21895. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  21896. $as_echo_n "checking for $ac_word... " >&6; }
  21897. if test "${ac_cv_prog_JAVAC+set}" = set; then :
  21898. $as_echo_n "(cached) " >&6
  21899. else
  21900. if test -n "$JAVAC"; then
  21901. ac_cv_prog_JAVAC="$JAVAC" # Let the user override the test.
  21902. else
  21903. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  21904. for as_dir in $PATH
  21905. do
  21906. IFS=$as_save_IFS
  21907. test -z "$as_dir" && as_dir=.
  21908. for ac_exec_ext in '' $ac_executable_extensions; do
  21909. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  21910. ac_cv_prog_JAVAC="$ac_prog"
  21911. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  21912. break 2
  21913. fi
  21914. done
  21915. done
  21916. IFS=$as_save_IFS
  21917. fi
  21918. fi
  21919. JAVAC=$ac_cv_prog_JAVAC
  21920. if test -n "$JAVAC"; then
  21921. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVAC" >&5
  21922. $as_echo "$JAVAC" >&6; }
  21923. else
  21924. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  21925. $as_echo "no" >&6; }
  21926. fi
  21927. test -n "$JAVAC" && break
  21928. done
  21929. else
  21930. test "x$JAVAC" = x && for ac_prog in "ecj$EXEEXT $ECJ_OPTS" "ecj-3.3$EXEEXT $ECJ_OPTS" "ecj-3.2$EXEEXT $ECJ_OPTS" "javac$EXEEXT $JAVAC_OPTS" "gcj$EXEEXT -C"
  21931. do
  21932. # Extract the first word of "$ac_prog", so it can be a program name with args.
  21933. set dummy $ac_prog; ac_word=$2
  21934. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  21935. $as_echo_n "checking for $ac_word... " >&6; }
  21936. if test "${ac_cv_prog_JAVAC+set}" = set; then :
  21937. $as_echo_n "(cached) " >&6
  21938. else
  21939. if test -n "$JAVAC"; then
  21940. ac_cv_prog_JAVAC="$JAVAC" # Let the user override the test.
  21941. else
  21942. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  21943. for as_dir in $PATH
  21944. do
  21945. IFS=$as_save_IFS
  21946. test -z "$as_dir" && as_dir=.
  21947. for ac_exec_ext in '' $ac_executable_extensions; do
  21948. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  21949. ac_cv_prog_JAVAC="$ac_prog"
  21950. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  21951. break 2
  21952. fi
  21953. done
  21954. done
  21955. IFS=$as_save_IFS
  21956. fi
  21957. fi
  21958. JAVAC=$ac_cv_prog_JAVAC
  21959. if test -n "$JAVAC"; then
  21960. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVAC" >&5
  21961. $as_echo "$JAVAC" >&6; }
  21962. else
  21963. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  21964. $as_echo "no" >&6; }
  21965. fi
  21966. test -n "$JAVAC" && break
  21967. done
  21968. test -n "$JAVAC" || JAVAC="$JAVAPREFIX"
  21969. fi
  21970. test "x$JAVAC" = x && as_fn_error "no acceptable Java compiler found in \$PATH" "$LINENO" 5
  21971. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $JAVAC is a version of gcj" >&5
  21972. $as_echo_n "checking if $JAVAC is a version of gcj... " >&6; }
  21973. if test "${ac_cv_prog_javac_is_gcj+set}" = set; then :
  21974. $as_echo_n "(cached) " >&6
  21975. else
  21976. if $JAVAC --version 2>&1 | grep gcj >&5 ; then
  21977. ac_cv_prog_javac_is_gcj=yes;
  21978. JAVAC="$JAVAC $GCJ_OPTS";
  21979. else
  21980. ac_cv_prog_javac_is_gcj=no;
  21981. fi
  21982. fi
  21983. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_javac_is_gcj" >&5
  21984. $as_echo "$ac_cv_prog_javac_is_gcj" >&6; }
  21985. JAVAC_IS_GCJ=$ac_cv_prog_javac_is_gcj
  21986. if test x"${JAVAC_IS_GCJ}" = xyes; then
  21987. GCJ_JAVAC_TRUE=
  21988. GCJ_JAVAC_FALSE='#'
  21989. else
  21990. GCJ_JAVAC_TRUE='#'
  21991. GCJ_JAVAC_FALSE=
  21992. fi
  21993. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $JAVAC works" >&5
  21994. $as_echo_n "checking if $JAVAC works... " >&6; }
  21995. if test "${ac_cv_prog_javac_works+set}" = set; then :
  21996. $as_echo_n "(cached) " >&6
  21997. else
  21998. JAVA_TEST=Object.java
  21999. CLASS_TEST=Object.class
  22000. cat << \EOF > $JAVA_TEST
  22001. /* #line 25362 "configure" */
  22002. package java.lang;
  22003. public class Object
  22004. {
  22005. static <T> void doStuff()
  22006. {
  22007. }
  22008. }
  22009. EOF
  22010. if test x$JAVAC_IS_GCJ = xyes; then
  22011. CMD="$JAVAC $JAVACFLAGS -fsource=1.5 -ftarget=1.5 $JAVA_TEST"
  22012. else
  22013. CMD="$JAVAC $JAVACFLAGS -source 1.5 -target 1.5 $JAVA_TEST"
  22014. fi
  22015. if { ac_try='$CMD'
  22016. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
  22017. (eval $ac_try) 2>&5
  22018. ac_status=$?
  22019. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  22020. test $ac_status = 0; }; } >/dev/null 2>&1; then
  22021. ac_cv_prog_javac_works=yes
  22022. else
  22023. as_fn_error "The Java compiler $JAVAC failed (see config.log, check the CLASSPATH?)" "$LINENO" 5
  22024. echo "configure: failed program was:" >&5
  22025. cat $JAVA_TEST >&5
  22026. fi
  22027. rm -f $JAVA_TEST $CLASS_TEST
  22028. fi
  22029. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_javac_works" >&5
  22030. $as_echo "$ac_cv_prog_javac_works" >&6; }
  22031. # Extract the first word of "uudecode$EXEEXT", so it can be a program name with args.
  22032. set dummy uudecode$EXEEXT; ac_word=$2
  22033. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  22034. $as_echo_n "checking for $ac_word... " >&6; }
  22035. if test "${ac_cv_prog_uudecode+set}" = set; then :
  22036. $as_echo_n "(cached) " >&6
  22037. else
  22038. if test -n "$uudecode"; then
  22039. ac_cv_prog_uudecode="$uudecode" # Let the user override the test.
  22040. else
  22041. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  22042. for as_dir in $PATH
  22043. do
  22044. IFS=$as_save_IFS
  22045. test -z "$as_dir" && as_dir=.
  22046. for ac_exec_ext in '' $ac_executable_extensions; do
  22047. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  22048. ac_cv_prog_uudecode="yes"
  22049. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  22050. break 2
  22051. fi
  22052. done
  22053. done
  22054. IFS=$as_save_IFS
  22055. fi
  22056. fi
  22057. uudecode=$ac_cv_prog_uudecode
  22058. if test -n "$uudecode"; then
  22059. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $uudecode" >&5
  22060. $as_echo "$uudecode" >&6; }
  22061. else
  22062. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  22063. $as_echo "no" >&6; }
  22064. fi
  22065. if test x$uudecode = xyes; then
  22066. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if uudecode can decode base 64 file" >&5
  22067. $as_echo_n "checking if uudecode can decode base 64 file... " >&6; }
  22068. if test "${ac_cv_prog_uudecode_base64+set}" = set; then :
  22069. $as_echo_n "(cached) " >&6
  22070. else
  22071. cat << \EOF > Test.uue
  22072. begin-base64 644 Test.class
  22073. yv66vgADAC0AFQcAAgEABFRlc3QHAAQBABBqYXZhL2xhbmcvT2JqZWN0AQAE
  22074. bWFpbgEAFihbTGphdmEvbGFuZy9TdHJpbmc7KVYBAARDb2RlAQAPTGluZU51
  22075. bWJlclRhYmxlDAAKAAsBAARleGl0AQAEKEkpVgoADQAJBwAOAQAQamF2YS9s
  22076. YW5nL1N5c3RlbQEABjxpbml0PgEAAygpVgwADwAQCgADABEBAApTb3VyY2VG
  22077. aWxlAQAJVGVzdC5qYXZhACEAAQADAAAAAAACAAkABQAGAAEABwAAACEAAQAB
  22078. AAAABQO4AAyxAAAAAQAIAAAACgACAAAACgAEAAsAAQAPABAAAQAHAAAAIQAB
  22079. AAEAAAAFKrcAErEAAAABAAgAAAAKAAIAAAAEAAQABAABABMAAAACABQ=
  22080. ====
  22081. EOF
  22082. if uudecode$EXEEXT Test.uue; then
  22083. ac_cv_prog_uudecode_base64=yes
  22084. else
  22085. echo "configure: 25455: uudecode had trouble decoding base 64 file 'Test.uue'" >&5
  22086. echo "configure: failed file was:" >&5
  22087. cat Test.uue >&5
  22088. ac_cv_prog_uudecode_base64=no
  22089. fi
  22090. rm -f Test.uue
  22091. fi
  22092. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_uudecode_base64" >&5
  22093. $as_echo "$ac_cv_prog_uudecode_base64" >&6; }
  22094. fi
  22095. if test x$ac_cv_prog_uudecode_base64 != xyes; then
  22096. rm -f Test.class
  22097. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: I have to compile Test.class from scratch" >&5
  22098. $as_echo "$as_me: WARNING: I have to compile Test.class from scratch" >&2;}
  22099. if test x$ac_cv_prog_javac_works = xno; then
  22100. as_fn_error "Cannot compile java source. $JAVAC does not work properly" "$LINENO" 5
  22101. fi
  22102. fi
  22103. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $JAVA works" >&5
  22104. $as_echo_n "checking if $JAVA works... " >&6; }
  22105. if test "${ac_cv_prog_java_works+set}" = set; then :
  22106. $as_echo_n "(cached) " >&6
  22107. else
  22108. JAVA_TEST=Test.java
  22109. CLASS_TEST=Test.class
  22110. TEST=Test
  22111. cat << \EOF > $JAVA_TEST
  22112. /* [#]line 25483 "configure" */
  22113. public class Test {
  22114. public static void main (String args[]) {
  22115. System.exit (0);
  22116. } }
  22117. EOF
  22118. if test x$ac_cv_prog_uudecode_base64 != xyes; then
  22119. if { ac_try='$JAVAC $JAVACFLAGS $JAVA_TEST'
  22120. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
  22121. (eval $ac_try) 2>&5
  22122. ac_status=$?
  22123. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  22124. test $ac_status = 0; }; } && test -s $CLASS_TEST; then
  22125. :
  22126. else
  22127. echo "configure: failed program was:" >&5
  22128. cat $JAVA_TEST >&5
  22129. as_fn_error "The Java compiler $JAVAC failed (see config.log, check the CLASSPATH?)" "$LINENO" 5
  22130. fi
  22131. fi
  22132. if { ac_try='CLASSPATH=.:$CLASSPATH $JAVA $JAVAFLAGS $TEST'
  22133. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
  22134. (eval $ac_try) 2>&5
  22135. ac_status=$?
  22136. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  22137. test $ac_status = 0; }; } >/dev/null 2>&1; then
  22138. ac_cv_prog_java_works=yes
  22139. else
  22140. echo "configure: failed program was:" >&5
  22141. cat $JAVA_TEST >&5
  22142. as_fn_error "The Java VM $JAVA failed (see config.log, check the CLASSPATH?)" "$LINENO" 5
  22143. fi
  22144. rm -fr $JAVA_TEST $CLASS_TEST Test.uue
  22145. fi
  22146. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_java_works" >&5
  22147. $as_echo "$ac_cv_prog_java_works" >&6; }
  22148. fi
  22149. if test "x${COMPILE_GJDOC}" = xyes; then
  22150. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the ANTLR parser generator JAR file" >&5
  22151. $as_echo_n "checking for the ANTLR parser generator JAR file... " >&6; }
  22152. if test -z "$ANTLR_JAR"; then
  22153. for antlr_lib_home in `ls -d /usr/local/share/antlr* 2> /dev/null` \
  22154. /usr/share/antlr/lib /usr/share/java /usr/lib;
  22155. do
  22156. if test -f "$antlr_lib_home/antlr.jar"; then
  22157. ANTLR_JAR="$antlr_lib_home/antlr.jar"
  22158. break
  22159. fi
  22160. done
  22161. fi
  22162. test -f $ANTLR_JAR || as_fn_error "specified ANTLR jar file $ANTLR_JAR not found." "$LINENO" 5 \
  22163. && { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ANTLR_JAR" >&5
  22164. $as_echo "$ANTLR_JAR" >&6; }
  22165. if test "x${REGENERATE_GJDOC_PARSER}" = xyes && test "x${enable_java_maintainer_mode}" = xyes; then
  22166. if test -n "$ac_tool_prefix"; then
  22167. for ac_prog in cantlr runantlr antlr
  22168. do
  22169. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  22170. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  22171. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  22172. $as_echo_n "checking for $ac_word... " >&6; }
  22173. if test "${ac_cv_prog_ANTLR+set}" = set; then :
  22174. $as_echo_n "(cached) " >&6
  22175. else
  22176. if test -n "$ANTLR"; then
  22177. ac_cv_prog_ANTLR="$ANTLR" # Let the user override the test.
  22178. else
  22179. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  22180. for as_dir in $PATH
  22181. do
  22182. IFS=$as_save_IFS
  22183. test -z "$as_dir" && as_dir=.
  22184. for ac_exec_ext in '' $ac_executable_extensions; do
  22185. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  22186. ac_cv_prog_ANTLR="$ac_tool_prefix$ac_prog"
  22187. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  22188. break 2
  22189. fi
  22190. done
  22191. done
  22192. IFS=$as_save_IFS
  22193. fi
  22194. fi
  22195. ANTLR=$ac_cv_prog_ANTLR
  22196. if test -n "$ANTLR"; then
  22197. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ANTLR" >&5
  22198. $as_echo "$ANTLR" >&6; }
  22199. else
  22200. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  22201. $as_echo "no" >&6; }
  22202. fi
  22203. test -n "$ANTLR" && break
  22204. done
  22205. fi
  22206. if test -z "$ANTLR"; then
  22207. ac_ct_ANTLR=$ANTLR
  22208. for ac_prog in cantlr runantlr antlr
  22209. do
  22210. # Extract the first word of "$ac_prog", so it can be a program name with args.
  22211. set dummy $ac_prog; ac_word=$2
  22212. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  22213. $as_echo_n "checking for $ac_word... " >&6; }
  22214. if test "${ac_cv_prog_ac_ct_ANTLR+set}" = set; then :
  22215. $as_echo_n "(cached) " >&6
  22216. else
  22217. if test -n "$ac_ct_ANTLR"; then
  22218. ac_cv_prog_ac_ct_ANTLR="$ac_ct_ANTLR" # Let the user override the test.
  22219. else
  22220. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  22221. for as_dir in $PATH
  22222. do
  22223. IFS=$as_save_IFS
  22224. test -z "$as_dir" && as_dir=.
  22225. for ac_exec_ext in '' $ac_executable_extensions; do
  22226. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  22227. ac_cv_prog_ac_ct_ANTLR="$ac_prog"
  22228. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  22229. break 2
  22230. fi
  22231. done
  22232. done
  22233. IFS=$as_save_IFS
  22234. fi
  22235. fi
  22236. ac_ct_ANTLR=$ac_cv_prog_ac_ct_ANTLR
  22237. if test -n "$ac_ct_ANTLR"; then
  22238. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_ANTLR" >&5
  22239. $as_echo "$ac_ct_ANTLR" >&6; }
  22240. else
  22241. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  22242. $as_echo "no" >&6; }
  22243. fi
  22244. test -n "$ac_ct_ANTLR" && break
  22245. done
  22246. if test "x$ac_ct_ANTLR" = x; then
  22247. ANTLR=""
  22248. else
  22249. case $cross_compiling:$ac_tool_warned in
  22250. yes:)
  22251. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  22252. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  22253. ac_tool_warned=yes ;;
  22254. esac
  22255. ANTLR=$ac_ct_ANTLR
  22256. fi
  22257. fi
  22258. if test "x$ANTLR" = x; then
  22259. if test -z "$JAVA"; then
  22260. as_fn_error "Failed to find either an antlr binary or a suitable Java runtime for ANTLR." "$LINENO" 5
  22261. else
  22262. if test -z "$ANTLR_JAR"; then
  22263. as_fn_error "Failed to find either an antlr binary or a suitable antlr jar file." "$LINENO" 5
  22264. else
  22265. ANTLR="$JAVA -classpath $ANTLR_JAR antlr.Tool"
  22266. fi
  22267. fi
  22268. fi
  22269. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for antlr 2.7.1 or better" >&5
  22270. $as_echo_n "checking for antlr 2.7.1 or better... " >&6; }
  22271. antlr_version_str=`$ANTLR 2>&1 | head -n 1 | sed '/.*Version */!d; s///;q'`
  22272. if test "$antlr_version_str"; then
  22273. antlr_version_regex='s/\([[:digit:]]\+\)\.\([[:digit:]]\+\)\.\([[:digit:]]\+\).*$/'
  22274. antlr_version_major=`echo $antlr_version_str | sed "$antlr_version_regex\\1/"`
  22275. antlr_version_minor=`echo $antlr_version_str | sed "$antlr_version_regex\\2/"`
  22276. antlr_version_micro=`echo $antlr_version_str | sed "$antlr_version_regex\\3/"`
  22277. (test $antlr_version_major -gt 2 || \
  22278. (test $antlr_version_major -eq 2 && \
  22279. test $antlr_version_minor -gt 7) || \
  22280. (test $antlr_version_major -eq 2 && \
  22281. test $antlr_version_minor -eq 7 && \
  22282. test $antlr_version_micro -ge 1))
  22283. fi
  22284. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $antlr_version_major.$antlr_version_minor.$antlr_version_micro" >&5
  22285. $as_echo "$antlr_version_major.$antlr_version_minor.$antlr_version_micro" >&6; }
  22286. fi
  22287. fi
  22288. fi
  22289. # Check for javac if we need to build either the class library,
  22290. # the examples or the tools
  22291. if test "x${use_glibj_zip}" = xfalse || \
  22292. test "x${EXAMPLESDIR}" != x || \
  22293. test "x${TOOLSDIR}" != x && \
  22294. test "x${build_class_files}" != xno && \
  22295. test "${enable_java_maintainer_mode}" = yes; then
  22296. JAVA_TEST=Test.java
  22297. CLASS_TEST=Test.class
  22298. cat << \EOF > $JAVA_TEST
  22299. /* #line 25691 "configure" */
  22300. public class Test
  22301. {
  22302. public static void main(String args)
  22303. {
  22304. System.out.println("Hello World");
  22305. }
  22306. }
  22307. EOF
  22308. if test x$JAVAC_IS_GCJ != xyes; then
  22309. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether javac supports -J" >&5
  22310. $as_echo_n "checking whether javac supports -J... " >&6; }
  22311. $JAVAC $JAVACFLAGS -J-Xmx768M -sourcepath '' $JAVA_TEST
  22312. javac_result=$?
  22313. if test "x$javac_result" = "x0"; then
  22314. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  22315. $as_echo "yes" >&6; }
  22316. JAVAC_MEM_OPT="-J-Xmx768M"
  22317. else
  22318. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  22319. $as_echo "no" >&6; }
  22320. fi
  22321. fi
  22322. rm -f $JAVA_TEST $CLASS_TEST
  22323. else
  22324. if false; then
  22325. GCJ_JAVAC_TRUE=
  22326. GCJ_JAVAC_FALSE='#'
  22327. else
  22328. GCJ_JAVAC_TRUE='#'
  22329. GCJ_JAVAC_FALSE=
  22330. fi
  22331. fi
  22332. # Check whether --with-escher was given.
  22333. if test "${with_escher+set}" = set; then :
  22334. withval=$with_escher;
  22335. fi
  22336. case "$with_escher" in
  22337. "")
  22338. use_escher=false
  22339. ;;
  22340. "no")
  22341. use_escher=false
  22342. ;;
  22343. "yes")
  22344. as_fn_error "Please supply an absolute path to Escher library" "$LINENO" 5
  22345. ;;
  22346. *)
  22347. use_escher=true
  22348. PATH_TO_ESCHER=$with_escher
  22349. ;;
  22350. esac
  22351. if test x$use_escher = xtrue; then
  22352. USE_ESCHER_TRUE=
  22353. USE_ESCHER_FALSE='#'
  22354. else
  22355. USE_ESCHER_TRUE='#'
  22356. USE_ESCHER_FALSE=
  22357. fi
  22358. # Check whether --enable-local-sockets was given.
  22359. if test "${enable_local_sockets+set}" = set; then :
  22360. enableval=$enable_local_sockets; case "${enableval}" in
  22361. yes)
  22362. ENABLE_LOCAL_SOCKETS=yes
  22363. ;;
  22364. *)
  22365. ENABLE_LOCAL_SOCKETS=no
  22366. ;;
  22367. esac
  22368. fi
  22369. if test "x$ENABLE_LOCAL_SOCKETS" = "xyes"
  22370. then
  22371. ac_fn_c_check_header_mongrel "$LINENO" "sys/un.h" "ac_cv_header_sys_un_h" "$ac_includes_default"
  22372. if test "x$ac_cv_header_sys_un_h" = x""yes; then :
  22373. fi
  22374. for ac_func in read write bind listen accept shutdown
  22375. do :
  22376. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  22377. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  22378. eval as_val=\$$as_ac_var
  22379. if test "x$as_val" = x""yes; then :
  22380. cat >>confdefs.h <<_ACEOF
  22381. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  22382. _ACEOF
  22383. else
  22384. as_fn_error "networking support not available" "$LINENO" 5
  22385. fi
  22386. done
  22387. $as_echo "#define ENABLE_LOCAL_SOCKETS 1" >>confdefs.h
  22388. fi
  22389. if test "x$ENABLE_LOCAL_SOCKETS" = "xyes"; then
  22390. ENABLE_LOCAL_SOCKETS_TRUE=
  22391. ENABLE_LOCAL_SOCKETS_FALSE='#'
  22392. else
  22393. ENABLE_LOCAL_SOCKETS_TRUE='#'
  22394. ENABLE_LOCAL_SOCKETS_FALSE=
  22395. fi
  22396. WANT_NATIVE_BIG_INTEGER=false
  22397. if test "x${COMPILE_GMP}" = xyes; then
  22398. if test "x${ac_cv_lib_gmp___gmpz_mul_si}" = xyes; then
  22399. if test "x${ac_cv_header_gmp_h}" = xyes; then
  22400. WANT_NATIVE_BIG_INTEGER=true
  22401. $as_echo "#define WITH_GNU_MP 1" >>confdefs.h
  22402. else
  22403. COMPILE_GMP=no
  22404. fi
  22405. else
  22406. COMPILE_GMP=no
  22407. fi
  22408. fi
  22409. if test "x${COMPILE_GMP}" = xyes; then
  22410. CREATE_GMPBI_LIBRARY_TRUE=
  22411. CREATE_GMPBI_LIBRARY_FALSE='#'
  22412. else
  22413. CREATE_GMPBI_LIBRARY_TRUE='#'
  22414. CREATE_GMPBI_LIBRARY_FALSE=
  22415. fi
  22416. ac_config_files="$ac_config_files Makefile doc/Makefile doc/api/Makefile external/Makefile external/sax/Makefile external/w3c_dom/Makefile external/relaxngDatatype/Makefile external/jsr166/Makefile gnu/classpath/Configuration.java gnu/java/security/Configuration.java include/Makefile native/Makefile native/fdlibm/Makefile native/jawt/Makefile native/jni/Makefile native/jni/classpath/Makefile native/jni/java-io/Makefile native/jni/java-lang/Makefile native/jni/java-math/Makefile native/jni/java-net/Makefile native/jni/java-nio/Makefile native/jni/java-util/Makefile native/jni/gtk-peer/Makefile native/jni/gconf-peer/Makefile native/jni/gstreamer-peer/Makefile native/jni/qt-peer/Makefile native/jni/xmlj/Makefile native/jni/midi-alsa/Makefile native/jni/midi-dssi/Makefile native/jni/native-lib/Makefile native/plugin/Makefile resource/Makefile resource/META-INF/services/java.util.prefs.PreferencesFactory resource/META-INF/services/javax.sound.sampled.spi.AudioFileReader resource/META-INF/services/javax.sound.sampled.spi.MixerProvider scripts/Makefile scripts/classpath.spec lib/Makefile lib/gen-classlist.sh lib/copy-vmresources.sh scripts/check_jni_methods.sh tools/Makefile examples/Makefile examples/Makefile.jawt examples/Makefile.java2d"
  22417. if test "x${COMPILE_WRAPPERS}" = xyes; then
  22418. :
  22419. else
  22420. ac_config_files="$ac_config_files tools/gappletviewer tools/gjarsigner tools/gkeytool tools/gjar tools/gnative2ascii tools/gserialver tools/grmiregistry tools/gtnameserv tools/gorbd tools/grmid tools/grmic tools/gjavah"
  22421. ac_config_commands="$ac_config_commands gappletviewer"
  22422. ac_config_commands="$ac_config_commands gjarsigner"
  22423. ac_config_commands="$ac_config_commands gkeytool"
  22424. ac_config_commands="$ac_config_commands gjar"
  22425. ac_config_commands="$ac_config_commands gnative2ascii"
  22426. ac_config_commands="$ac_config_commands gserialver"
  22427. ac_config_commands="$ac_config_commands grmiregistry"
  22428. ac_config_commands="$ac_config_commands gtnameserv"
  22429. ac_config_commands="$ac_config_commands gorbd"
  22430. ac_config_commands="$ac_config_commands grmid"
  22431. ac_config_commands="$ac_config_commands grmic"
  22432. ac_config_commands="$ac_config_commands gjavah"
  22433. fi
  22434. if test "x${COMPILE_GJDOC}" = xyes
  22435. then
  22436. ac_config_files="$ac_config_files tools/gjdoc"
  22437. ac_config_commands="$ac_config_commands gjdoc"
  22438. fi
  22439. ac_config_commands="$ac_config_commands gen-classlist"
  22440. ac_config_commands="$ac_config_commands copy-vmresources"
  22441. cat >confcache <<\_ACEOF
  22442. # This file is a shell script that caches the results of configure
  22443. # tests run on this system so they can be shared between configure
  22444. # scripts and configure runs, see configure's option --config-cache.
  22445. # It is not useful on other systems. If it contains results you don't
  22446. # want to keep, you may remove or edit it.
  22447. #
  22448. # config.status only pays attention to the cache file if you give it
  22449. # the --recheck option to rerun configure.
  22450. #
  22451. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  22452. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  22453. # following values.
  22454. _ACEOF
  22455. # The following way of writing the cache mishandles newlines in values,
  22456. # but we know of no workaround that is simple, portable, and efficient.
  22457. # So, we kill variables containing newlines.
  22458. # Ultrix sh set writes to stderr and can't be redirected directly,
  22459. # and sets the high bit in the cache file unless we assign to the vars.
  22460. (
  22461. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  22462. eval ac_val=\$$ac_var
  22463. case $ac_val in #(
  22464. *${as_nl}*)
  22465. case $ac_var in #(
  22466. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  22467. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  22468. esac
  22469. case $ac_var in #(
  22470. _ | IFS | as_nl) ;; #(
  22471. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  22472. *) { eval $ac_var=; unset $ac_var;} ;;
  22473. esac ;;
  22474. esac
  22475. done
  22476. (set) 2>&1 |
  22477. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  22478. *${as_nl}ac_space=\ *)
  22479. # `set' does not quote correctly, so add quotes: double-quote
  22480. # substitution turns \\\\ into \\, and sed turns \\ into \.
  22481. sed -n \
  22482. "s/'/'\\\\''/g;
  22483. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  22484. ;; #(
  22485. *)
  22486. # `set' quotes correctly as required by POSIX, so do not add quotes.
  22487. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  22488. ;;
  22489. esac |
  22490. sort
  22491. ) |
  22492. sed '
  22493. /^ac_cv_env_/b end
  22494. t clear
  22495. :clear
  22496. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  22497. t end
  22498. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  22499. :end' >>confcache
  22500. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  22501. if test -w "$cache_file"; then
  22502. test "x$cache_file" != "x/dev/null" &&
  22503. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  22504. $as_echo "$as_me: updating cache $cache_file" >&6;}
  22505. cat confcache >$cache_file
  22506. else
  22507. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  22508. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  22509. fi
  22510. fi
  22511. rm -f confcache
  22512. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  22513. # Let make expand exec_prefix.
  22514. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  22515. DEFS=-DHAVE_CONFIG_H
  22516. ac_libobjs=
  22517. ac_ltlibobjs=
  22518. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  22519. # 1. Remove the extension, and $U if already installed.
  22520. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  22521. ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  22522. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  22523. # will be set to the directory where LIBOBJS objects are built.
  22524. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  22525. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  22526. done
  22527. LIBOBJS=$ac_libobjs
  22528. LTLIBOBJS=$ac_ltlibobjs
  22529. if test -z "${JAVA_MAINTAINER_MODE_TRUE}" && test -z "${JAVA_MAINTAINER_MODE_FALSE}"; then
  22530. as_fn_error "conditional \"JAVA_MAINTAINER_MODE\" was never defined.
  22531. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  22532. fi
  22533. if test -z "${GENINSRC_TRUE}" && test -z "${GENINSRC_FALSE}"; then
  22534. as_fn_error "conditional \"GENINSRC\" was never defined.
  22535. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  22536. fi
  22537. if test -z "${INSTALL_BINARIES_TRUE}" && test -z "${INSTALL_BINARIES_FALSE}"; then
  22538. as_fn_error "conditional \"INSTALL_BINARIES\" was never defined.
  22539. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  22540. fi
  22541. if test -n "$EXEEXT"; then
  22542. am__EXEEXT_TRUE=
  22543. am__EXEEXT_FALSE='#'
  22544. else
  22545. am__EXEEXT_TRUE='#'
  22546. am__EXEEXT_FALSE=
  22547. fi
  22548. if test -z "${CREATE_COLLECTIONS_TRUE}" && test -z "${CREATE_COLLECTIONS_FALSE}"; then
  22549. as_fn_error "conditional \"CREATE_COLLECTIONS\" was never defined.
  22550. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  22551. fi
  22552. if test -z "${CREATE_JNI_LIBRARIES_TRUE}" && test -z "${CREATE_JNI_LIBRARIES_FALSE}"; then
  22553. as_fn_error "conditional \"CREATE_JNI_LIBRARIES\" was never defined.
  22554. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  22555. fi
  22556. if test -z "${CREATE_CORE_JNI_LIBRARIES_TRUE}" && test -z "${CREATE_CORE_JNI_LIBRARIES_FALSE}"; then
  22557. as_fn_error "conditional \"CREATE_CORE_JNI_LIBRARIES\" was never defined.
  22558. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  22559. fi
  22560. if test -z "${CREATE_GCONF_PEER_LIBRARIES_TRUE}" && test -z "${CREATE_GCONF_PEER_LIBRARIES_FALSE}"; then
  22561. as_fn_error "conditional \"CREATE_GCONF_PEER_LIBRARIES\" was never defined.
  22562. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  22563. fi
  22564. if test -z "${CREATE_GSTREAMER_PEER_LIBRARIES_TRUE}" && test -z "${CREATE_GSTREAMER_PEER_LIBRARIES_FALSE}"; then
  22565. as_fn_error "conditional \"CREATE_GSTREAMER_PEER_LIBRARIES\" was never defined.
  22566. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  22567. fi
  22568. if test -z "${CREATE_XMLJ_LIBRARY_TRUE}" && test -z "${CREATE_XMLJ_LIBRARY_FALSE}"; then
  22569. as_fn_error "conditional \"CREATE_XMLJ_LIBRARY\" was never defined.
  22570. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  22571. fi
  22572. if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
  22573. as_fn_error "conditional \"AMDEP\" was never defined.
  22574. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  22575. fi
  22576. if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  22577. as_fn_error "conditional \"am__fastdepCC\" was never defined.
  22578. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  22579. fi
  22580. if test -z "${CREATE_ALSA_LIBRARIES_TRUE}" && test -z "${CREATE_ALSA_LIBRARIES_FALSE}"; then
  22581. as_fn_error "conditional \"CREATE_ALSA_LIBRARIES\" was never defined.
  22582. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  22583. fi
  22584. if test -z "${CREATE_DSSI_LIBRARIES_TRUE}" && test -z "${CREATE_DSSI_LIBRARIES_FALSE}"; then
  22585. as_fn_error "conditional \"CREATE_DSSI_LIBRARIES\" was never defined.
  22586. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  22587. fi
  22588. if test -z "${CREATE_GTK_PEER_LIBRARIES_TRUE}" && test -z "${CREATE_GTK_PEER_LIBRARIES_FALSE}"; then
  22589. as_fn_error "conditional \"CREATE_GTK_PEER_LIBRARIES\" was never defined.
  22590. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  22591. fi
  22592. if test -z "${CREATE_QT_PEER_LIBRARIES_TRUE}" && test -z "${CREATE_QT_PEER_LIBRARIES_FALSE}"; then
  22593. as_fn_error "conditional \"CREATE_QT_PEER_LIBRARIES\" was never defined.
  22594. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  22595. fi
  22596. if test -z "${CREATE_PLUGIN_TRUE}" && test -z "${CREATE_PLUGIN_FALSE}"; then
  22597. as_fn_error "conditional \"CREATE_PLUGIN\" was never defined.
  22598. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  22599. fi
  22600. if test -z "${CREATE_GJDOC_TRUE}" && test -z "${CREATE_GJDOC_FALSE}"; then
  22601. as_fn_error "conditional \"CREATE_GJDOC\" was never defined.
  22602. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  22603. fi
  22604. if test -z "${CREATE_JNI_HEADERS_TRUE}" && test -z "${CREATE_JNI_HEADERS_FALSE}"; then
  22605. as_fn_error "conditional \"CREATE_JNI_HEADERS\" was never defined.
  22606. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  22607. fi
  22608. if test -z "${CREATE_GJDOC_PARSER_TRUE}" && test -z "${CREATE_GJDOC_PARSER_FALSE}"; then
  22609. as_fn_error "conditional \"CREATE_GJDOC_PARSER\" was never defined.
  22610. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  22611. fi
  22612. if test -z "${CREATE_WRAPPERS_TRUE}" && test -z "${CREATE_WRAPPERS_FALSE}"; then
  22613. as_fn_error "conditional \"CREATE_WRAPPERS\" was never defined.
  22614. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  22615. fi
  22616. if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  22617. as_fn_error "conditional \"am__fastdepCC\" was never defined.
  22618. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  22619. fi
  22620. if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
  22621. as_fn_error "conditional \"am__fastdepCXX\" was never defined.
  22622. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  22623. fi
  22624. if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
  22625. as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
  22626. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  22627. fi
  22628. if test -z "${WITH_JAR_TRUE}" && test -z "${WITH_JAR_FALSE}"; then
  22629. as_fn_error "conditional \"WITH_JAR\" was never defined.
  22630. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  22631. fi
  22632. if test -z "${INSTALL_GLIBJ_ZIP_TRUE}" && test -z "${INSTALL_GLIBJ_ZIP_FALSE}"; then
  22633. as_fn_error "conditional \"INSTALL_GLIBJ_ZIP\" was never defined.
  22634. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  22635. fi
  22636. if test -z "${INSTALL_CLASS_FILES_TRUE}" && test -z "${INSTALL_CLASS_FILES_FALSE}"; then
  22637. as_fn_error "conditional \"INSTALL_CLASS_FILES\" was never defined.
  22638. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  22639. fi
  22640. if test -z "${BUILD_CLASS_FILES_TRUE}" && test -z "${BUILD_CLASS_FILES_FALSE}"; then
  22641. as_fn_error "conditional \"BUILD_CLASS_FILES\" was never defined.
  22642. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  22643. fi
  22644. if test -z "${CREATE_API_DOCS_TRUE}" && test -z "${CREATE_API_DOCS_FALSE}"; then
  22645. as_fn_error "conditional \"CREATE_API_DOCS\" was never defined.
  22646. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  22647. fi
  22648. if test -z "${REGEN_PARSERS_TRUE}" && test -z "${REGEN_PARSERS_FALSE}"; then
  22649. as_fn_error "conditional \"REGEN_PARSERS\" was never defined.
  22650. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  22651. fi
  22652. if test -z "${USE_PREBUILT_GLIBJ_ZIP_TRUE}" && test -z "${USE_PREBUILT_GLIBJ_ZIP_FALSE}"; then
  22653. as_fn_error "conditional \"USE_PREBUILT_GLIBJ_ZIP\" was never defined.
  22654. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  22655. fi
  22656. if test -z "${GCJ_JAVAC_TRUE}" && test -z "${GCJ_JAVAC_FALSE}"; then
  22657. as_fn_error "conditional \"GCJ_JAVAC\" was never defined.
  22658. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  22659. fi
  22660. if test -z "${GCJ_JAVAC_TRUE}" && test -z "${GCJ_JAVAC_FALSE}"; then
  22661. as_fn_error "conditional \"GCJ_JAVAC\" was never defined.
  22662. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  22663. fi
  22664. if test -z "${USE_ESCHER_TRUE}" && test -z "${USE_ESCHER_FALSE}"; then
  22665. as_fn_error "conditional \"USE_ESCHER\" was never defined.
  22666. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  22667. fi
  22668. if test -z "${ENABLE_LOCAL_SOCKETS_TRUE}" && test -z "${ENABLE_LOCAL_SOCKETS_FALSE}"; then
  22669. as_fn_error "conditional \"ENABLE_LOCAL_SOCKETS\" was never defined.
  22670. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  22671. fi
  22672. if test -z "${CREATE_GMPBI_LIBRARY_TRUE}" && test -z "${CREATE_GMPBI_LIBRARY_FALSE}"; then
  22673. as_fn_error "conditional \"CREATE_GMPBI_LIBRARY\" was never defined.
  22674. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  22675. fi
  22676. : ${CONFIG_STATUS=./config.status}
  22677. ac_write_fail=0
  22678. ac_clean_files_save=$ac_clean_files
  22679. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  22680. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  22681. $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  22682. as_write_fail=0
  22683. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  22684. #! $SHELL
  22685. # Generated by $as_me.
  22686. # Run this file to recreate the current configuration.
  22687. # Compiler output produced by configure, useful for debugging
  22688. # configure, is in config.log if it exists.
  22689. debug=false
  22690. ac_cs_recheck=false
  22691. ac_cs_silent=false
  22692. SHELL=\${CONFIG_SHELL-$SHELL}
  22693. export SHELL
  22694. _ASEOF
  22695. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  22696. ## -------------------- ##
  22697. ## M4sh Initialization. ##
  22698. ## -------------------- ##
  22699. # Be more Bourne compatible
  22700. DUALCASE=1; export DUALCASE # for MKS sh
  22701. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  22702. emulate sh
  22703. NULLCMD=:
  22704. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  22705. # is contrary to our usage. Disable this feature.
  22706. alias -g '${1+"$@"}'='"$@"'
  22707. setopt NO_GLOB_SUBST
  22708. else
  22709. case `(set -o) 2>/dev/null` in #(
  22710. *posix*) :
  22711. set -o posix ;; #(
  22712. *) :
  22713. ;;
  22714. esac
  22715. fi
  22716. as_nl='
  22717. '
  22718. export as_nl
  22719. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  22720. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  22721. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  22722. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  22723. # Prefer a ksh shell builtin over an external printf program on Solaris,
  22724. # but without wasting forks for bash or zsh.
  22725. if test -z "$BASH_VERSION$ZSH_VERSION" \
  22726. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  22727. as_echo='print -r --'
  22728. as_echo_n='print -rn --'
  22729. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  22730. as_echo='printf %s\n'
  22731. as_echo_n='printf %s'
  22732. else
  22733. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  22734. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  22735. as_echo_n='/usr/ucb/echo -n'
  22736. else
  22737. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  22738. as_echo_n_body='eval
  22739. arg=$1;
  22740. case $arg in #(
  22741. *"$as_nl"*)
  22742. expr "X$arg" : "X\\(.*\\)$as_nl";
  22743. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  22744. esac;
  22745. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  22746. '
  22747. export as_echo_n_body
  22748. as_echo_n='sh -c $as_echo_n_body as_echo'
  22749. fi
  22750. export as_echo_body
  22751. as_echo='sh -c $as_echo_body as_echo'
  22752. fi
  22753. # The user is always right.
  22754. if test "${PATH_SEPARATOR+set}" != set; then
  22755. PATH_SEPARATOR=:
  22756. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  22757. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  22758. PATH_SEPARATOR=';'
  22759. }
  22760. fi
  22761. # IFS
  22762. # We need space, tab and new line, in precisely that order. Quoting is
  22763. # there to prevent editors from complaining about space-tab.
  22764. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  22765. # splitting by setting IFS to empty value.)
  22766. IFS=" "" $as_nl"
  22767. # Find who we are. Look in the path if we contain no directory separator.
  22768. case $0 in #((
  22769. *[\\/]* ) as_myself=$0 ;;
  22770. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  22771. for as_dir in $PATH
  22772. do
  22773. IFS=$as_save_IFS
  22774. test -z "$as_dir" && as_dir=.
  22775. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  22776. done
  22777. IFS=$as_save_IFS
  22778. ;;
  22779. esac
  22780. # We did not find ourselves, most probably we were run as `sh COMMAND'
  22781. # in which case we are not to be found in the path.
  22782. if test "x$as_myself" = x; then
  22783. as_myself=$0
  22784. fi
  22785. if test ! -f "$as_myself"; then
  22786. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  22787. exit 1
  22788. fi
  22789. # Unset variables that we do not need and which cause bugs (e.g. in
  22790. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  22791. # suppresses any "Segmentation fault" message there. '((' could
  22792. # trigger a bug in pdksh 5.2.14.
  22793. for as_var in BASH_ENV ENV MAIL MAILPATH
  22794. do eval test x\${$as_var+set} = xset \
  22795. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  22796. done
  22797. PS1='$ '
  22798. PS2='> '
  22799. PS4='+ '
  22800. # NLS nuisances.
  22801. LC_ALL=C
  22802. export LC_ALL
  22803. LANGUAGE=C
  22804. export LANGUAGE
  22805. # CDPATH.
  22806. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  22807. # as_fn_error ERROR [LINENO LOG_FD]
  22808. # ---------------------------------
  22809. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  22810. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  22811. # script with status $?, using 1 if that was 0.
  22812. as_fn_error ()
  22813. {
  22814. as_status=$?; test $as_status -eq 0 && as_status=1
  22815. if test "$3"; then
  22816. as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  22817. $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
  22818. fi
  22819. $as_echo "$as_me: error: $1" >&2
  22820. as_fn_exit $as_status
  22821. } # as_fn_error
  22822. # as_fn_set_status STATUS
  22823. # -----------------------
  22824. # Set $? to STATUS, without forking.
  22825. as_fn_set_status ()
  22826. {
  22827. return $1
  22828. } # as_fn_set_status
  22829. # as_fn_exit STATUS
  22830. # -----------------
  22831. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  22832. as_fn_exit ()
  22833. {
  22834. set +e
  22835. as_fn_set_status $1
  22836. exit $1
  22837. } # as_fn_exit
  22838. # as_fn_unset VAR
  22839. # ---------------
  22840. # Portably unset VAR.
  22841. as_fn_unset ()
  22842. {
  22843. { eval $1=; unset $1;}
  22844. }
  22845. as_unset=as_fn_unset
  22846. # as_fn_append VAR VALUE
  22847. # ----------------------
  22848. # Append the text in VALUE to the end of the definition contained in VAR. Take
  22849. # advantage of any shell optimizations that allow amortized linear growth over
  22850. # repeated appends, instead of the typical quadratic growth present in naive
  22851. # implementations.
  22852. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  22853. eval 'as_fn_append ()
  22854. {
  22855. eval $1+=\$2
  22856. }'
  22857. else
  22858. as_fn_append ()
  22859. {
  22860. eval $1=\$$1\$2
  22861. }
  22862. fi # as_fn_append
  22863. # as_fn_arith ARG...
  22864. # ------------------
  22865. # Perform arithmetic evaluation on the ARGs, and store the result in the
  22866. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  22867. # must be portable across $(()) and expr.
  22868. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  22869. eval 'as_fn_arith ()
  22870. {
  22871. as_val=$(( $* ))
  22872. }'
  22873. else
  22874. as_fn_arith ()
  22875. {
  22876. as_val=`expr "$@" || test $? -eq 1`
  22877. }
  22878. fi # as_fn_arith
  22879. if expr a : '\(a\)' >/dev/null 2>&1 &&
  22880. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  22881. as_expr=expr
  22882. else
  22883. as_expr=false
  22884. fi
  22885. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  22886. as_basename=basename
  22887. else
  22888. as_basename=false
  22889. fi
  22890. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  22891. as_dirname=dirname
  22892. else
  22893. as_dirname=false
  22894. fi
  22895. as_me=`$as_basename -- "$0" ||
  22896. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  22897. X"$0" : 'X\(//\)$' \| \
  22898. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  22899. $as_echo X/"$0" |
  22900. sed '/^.*\/\([^/][^/]*\)\/*$/{
  22901. s//\1/
  22902. q
  22903. }
  22904. /^X\/\(\/\/\)$/{
  22905. s//\1/
  22906. q
  22907. }
  22908. /^X\/\(\/\).*/{
  22909. s//\1/
  22910. q
  22911. }
  22912. s/.*/./; q'`
  22913. # Avoid depending upon Character Ranges.
  22914. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  22915. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  22916. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  22917. as_cr_digits='0123456789'
  22918. as_cr_alnum=$as_cr_Letters$as_cr_digits
  22919. ECHO_C= ECHO_N= ECHO_T=
  22920. case `echo -n x` in #(((((
  22921. -n*)
  22922. case `echo 'xy\c'` in
  22923. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  22924. xy) ECHO_C='\c';;
  22925. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  22926. ECHO_T=' ';;
  22927. esac;;
  22928. *)
  22929. ECHO_N='-n';;
  22930. esac
  22931. rm -f conf$$ conf$$.exe conf$$.file
  22932. if test -d conf$$.dir; then
  22933. rm -f conf$$.dir/conf$$.file
  22934. else
  22935. rm -f conf$$.dir
  22936. mkdir conf$$.dir 2>/dev/null
  22937. fi
  22938. if (echo >conf$$.file) 2>/dev/null; then
  22939. if ln -s conf$$.file conf$$ 2>/dev/null; then
  22940. as_ln_s='ln -s'
  22941. # ... but there are two gotchas:
  22942. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  22943. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  22944. # In both cases, we have to default to `cp -p'.
  22945. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  22946. as_ln_s='cp -p'
  22947. elif ln conf$$.file conf$$ 2>/dev/null; then
  22948. as_ln_s=ln
  22949. else
  22950. as_ln_s='cp -p'
  22951. fi
  22952. else
  22953. as_ln_s='cp -p'
  22954. fi
  22955. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  22956. rmdir conf$$.dir 2>/dev/null
  22957. # as_fn_mkdir_p
  22958. # -------------
  22959. # Create "$as_dir" as a directory, including parents if necessary.
  22960. as_fn_mkdir_p ()
  22961. {
  22962. case $as_dir in #(
  22963. -*) as_dir=./$as_dir;;
  22964. esac
  22965. test -d "$as_dir" || eval $as_mkdir_p || {
  22966. as_dirs=
  22967. while :; do
  22968. case $as_dir in #(
  22969. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  22970. *) as_qdir=$as_dir;;
  22971. esac
  22972. as_dirs="'$as_qdir' $as_dirs"
  22973. as_dir=`$as_dirname -- "$as_dir" ||
  22974. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  22975. X"$as_dir" : 'X\(//\)[^/]' \| \
  22976. X"$as_dir" : 'X\(//\)$' \| \
  22977. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  22978. $as_echo X"$as_dir" |
  22979. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  22980. s//\1/
  22981. q
  22982. }
  22983. /^X\(\/\/\)[^/].*/{
  22984. s//\1/
  22985. q
  22986. }
  22987. /^X\(\/\/\)$/{
  22988. s//\1/
  22989. q
  22990. }
  22991. /^X\(\/\).*/{
  22992. s//\1/
  22993. q
  22994. }
  22995. s/.*/./; q'`
  22996. test -d "$as_dir" && break
  22997. done
  22998. test -z "$as_dirs" || eval "mkdir $as_dirs"
  22999. } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
  23000. } # as_fn_mkdir_p
  23001. if mkdir -p . 2>/dev/null; then
  23002. as_mkdir_p='mkdir -p "$as_dir"'
  23003. else
  23004. test -d ./-p && rmdir ./-p
  23005. as_mkdir_p=false
  23006. fi
  23007. if test -x / >/dev/null 2>&1; then
  23008. as_test_x='test -x'
  23009. else
  23010. if ls -dL / >/dev/null 2>&1; then
  23011. as_ls_L_option=L
  23012. else
  23013. as_ls_L_option=
  23014. fi
  23015. as_test_x='
  23016. eval sh -c '\''
  23017. if test -d "$1"; then
  23018. test -d "$1/.";
  23019. else
  23020. case $1 in #(
  23021. -*)set "./$1";;
  23022. esac;
  23023. case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
  23024. ???[sx]*):;;*)false;;esac;fi
  23025. '\'' sh
  23026. '
  23027. fi
  23028. as_executable_p=$as_test_x
  23029. # Sed expression to map a string onto a valid CPP name.
  23030. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  23031. # Sed expression to map a string onto a valid variable name.
  23032. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  23033. exec 6>&1
  23034. ## ----------------------------------- ##
  23035. ## Main body of $CONFIG_STATUS script. ##
  23036. ## ----------------------------------- ##
  23037. _ASEOF
  23038. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  23039. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  23040. # Save the log message, to keep $0 and so on meaningful, and to
  23041. # report actual input values of CONFIG_FILES etc. instead of their
  23042. # values after options handling.
  23043. ac_log="
  23044. This file was extended by GNU Classpath $as_me 0.99.1-pre, which was
  23045. generated by GNU Autoconf 2.64. Invocation command line was
  23046. CONFIG_FILES = $CONFIG_FILES
  23047. CONFIG_HEADERS = $CONFIG_HEADERS
  23048. CONFIG_LINKS = $CONFIG_LINKS
  23049. CONFIG_COMMANDS = $CONFIG_COMMANDS
  23050. $ $0 $@
  23051. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  23052. "
  23053. _ACEOF
  23054. case $ac_config_files in *"
  23055. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  23056. esac
  23057. case $ac_config_headers in *"
  23058. "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  23059. esac
  23060. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  23061. # Files that config.status was made for.
  23062. config_files="$ac_config_files"
  23063. config_headers="$ac_config_headers"
  23064. config_links="$ac_config_links"
  23065. config_commands="$ac_config_commands"
  23066. _ACEOF
  23067. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  23068. ac_cs_usage="\
  23069. \`$as_me' instantiates files and other configuration actions
  23070. from templates according to the current configuration. Unless the files
  23071. and actions are specified as TAGs, all are instantiated by default.
  23072. Usage: $0 [OPTION]... [TAG]...
  23073. -h, --help print this help, then exit
  23074. -V, --version print version number and configuration settings, then exit
  23075. -q, --quiet, --silent
  23076. do not print progress messages
  23077. -d, --debug don't remove temporary files
  23078. --recheck update $as_me by reconfiguring in the same conditions
  23079. --file=FILE[:TEMPLATE]
  23080. instantiate the configuration file FILE
  23081. --header=FILE[:TEMPLATE]
  23082. instantiate the configuration header FILE
  23083. Configuration files:
  23084. $config_files
  23085. Configuration headers:
  23086. $config_headers
  23087. Configuration links:
  23088. $config_links
  23089. Configuration commands:
  23090. $config_commands
  23091. Report bugs to <classpath@gnu.org>.
  23092. GNU Classpath home page: <http://www.gnu.org/software/classpath/>.
  23093. General help using GNU software: <http://www.gnu.org/gethelp/>."
  23094. _ACEOF
  23095. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  23096. ac_cs_version="\\
  23097. GNU Classpath config.status 0.99.1-pre
  23098. configured by $0, generated by GNU Autoconf 2.64,
  23099. with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
  23100. Copyright (C) 2009 Free Software Foundation, Inc.
  23101. This config.status script is free software; the Free Software Foundation
  23102. gives unlimited permission to copy, distribute and modify it."
  23103. ac_pwd='$ac_pwd'
  23104. srcdir='$srcdir'
  23105. INSTALL='$INSTALL'
  23106. MKDIR_P='$MKDIR_P'
  23107. AWK='$AWK'
  23108. test -n "\$AWK" || AWK=awk
  23109. _ACEOF
  23110. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  23111. # The default lists apply if the user does not specify any file.
  23112. ac_need_defaults=:
  23113. while test $# != 0
  23114. do
  23115. case $1 in
  23116. --*=*)
  23117. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  23118. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  23119. ac_shift=:
  23120. ;;
  23121. *)
  23122. ac_option=$1
  23123. ac_optarg=$2
  23124. ac_shift=shift
  23125. ;;
  23126. esac
  23127. case $ac_option in
  23128. # Handling of the options.
  23129. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  23130. ac_cs_recheck=: ;;
  23131. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  23132. $as_echo "$ac_cs_version"; exit ;;
  23133. --debug | --debu | --deb | --de | --d | -d )
  23134. debug=: ;;
  23135. --file | --fil | --fi | --f )
  23136. $ac_shift
  23137. case $ac_optarg in
  23138. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  23139. esac
  23140. as_fn_append CONFIG_FILES " '$ac_optarg'"
  23141. ac_need_defaults=false;;
  23142. --header | --heade | --head | --hea )
  23143. $ac_shift
  23144. case $ac_optarg in
  23145. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  23146. esac
  23147. as_fn_append CONFIG_HEADERS " '$ac_optarg'"
  23148. ac_need_defaults=false;;
  23149. --he | --h)
  23150. # Conflict between --help and --header
  23151. as_fn_error "ambiguous option: \`$1'
  23152. Try \`$0 --help' for more information.";;
  23153. --help | --hel | -h )
  23154. $as_echo "$ac_cs_usage"; exit ;;
  23155. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  23156. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  23157. ac_cs_silent=: ;;
  23158. # This is an error.
  23159. -*) as_fn_error "unrecognized option: \`$1'
  23160. Try \`$0 --help' for more information." ;;
  23161. *) as_fn_append ac_config_targets " $1"
  23162. ac_need_defaults=false ;;
  23163. esac
  23164. shift
  23165. done
  23166. ac_configure_extra_args=
  23167. if $ac_cs_silent; then
  23168. exec 6>/dev/null
  23169. ac_configure_extra_args="$ac_configure_extra_args --silent"
  23170. fi
  23171. _ACEOF
  23172. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  23173. if \$ac_cs_recheck; then
  23174. set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  23175. shift
  23176. \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  23177. CONFIG_SHELL='$SHELL'
  23178. export CONFIG_SHELL
  23179. exec "\$@"
  23180. fi
  23181. _ACEOF
  23182. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  23183. exec 5>>config.log
  23184. {
  23185. echo
  23186. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  23187. ## Running $as_me. ##
  23188. _ASBOX
  23189. $as_echo "$ac_log"
  23190. } >&5
  23191. _ACEOF
  23192. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  23193. #
  23194. # INIT-COMMANDS
  23195. #
  23196. srcdir="$srcdir"
  23197. host="$host"
  23198. target="$target"
  23199. with_multisubdir="$with_multisubdir"
  23200. with_multisrctop="$with_multisrctop"
  23201. with_target_subdir="$with_target_subdir"
  23202. ac_configure_args="${multilib_arg} ${ac_configure_args}"
  23203. multi_basedir="$multi_basedir"
  23204. CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
  23205. CC="$CC"
  23206. CXX="$CXX"
  23207. GFORTRAN="$GFORTRAN"
  23208. GCJ="$GCJ"
  23209. AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
  23210. # The HP-UX ksh and POSIX shell print the target directory to stdout
  23211. # if CDPATH is set.
  23212. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  23213. sed_quote_subst='$sed_quote_subst'
  23214. double_quote_subst='$double_quote_subst'
  23215. delay_variable_subst='$delay_variable_subst'
  23216. enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
  23217. macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
  23218. macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
  23219. enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
  23220. pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
  23221. enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
  23222. SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
  23223. ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
  23224. host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
  23225. host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
  23226. host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
  23227. build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
  23228. build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
  23229. build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
  23230. SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
  23231. Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
  23232. GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
  23233. EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
  23234. FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
  23235. LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
  23236. NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
  23237. LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
  23238. max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
  23239. ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
  23240. exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
  23241. lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
  23242. lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
  23243. lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
  23244. reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
  23245. reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
  23246. OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
  23247. deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
  23248. file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
  23249. AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
  23250. AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
  23251. STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
  23252. RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
  23253. old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  23254. old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  23255. old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
  23256. lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
  23257. CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
  23258. CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
  23259. compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
  23260. GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
  23261. lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
  23262. lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
  23263. lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
  23264. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
  23265. objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
  23266. MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
  23267. lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
  23268. lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
  23269. lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
  23270. lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
  23271. lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
  23272. need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
  23273. DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
  23274. NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
  23275. LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
  23276. OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
  23277. OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
  23278. libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
  23279. shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
  23280. extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  23281. archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
  23282. enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
  23283. export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
  23284. whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
  23285. compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
  23286. old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
  23287. old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  23288. archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
  23289. archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  23290. module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
  23291. module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  23292. with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
  23293. allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
  23294. no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
  23295. hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
  23296. hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
  23297. hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
  23298. hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
  23299. hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
  23300. hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
  23301. hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
  23302. hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
  23303. inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
  23304. link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
  23305. fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
  23306. always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
  23307. export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
  23308. exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
  23309. include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
  23310. prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
  23311. file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
  23312. variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
  23313. need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
  23314. need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
  23315. version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
  23316. runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
  23317. shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
  23318. shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
  23319. libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
  23320. library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
  23321. soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
  23322. install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
  23323. postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  23324. postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  23325. finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
  23326. finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
  23327. hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
  23328. sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
  23329. sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
  23330. hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
  23331. enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
  23332. enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
  23333. enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
  23334. old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
  23335. striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
  23336. compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
  23337. predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
  23338. postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
  23339. predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
  23340. postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
  23341. compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
  23342. LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
  23343. reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
  23344. reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  23345. old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  23346. compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
  23347. GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
  23348. lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
  23349. lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
  23350. lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
  23351. lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
  23352. lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
  23353. archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
  23354. enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
  23355. export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  23356. whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  23357. compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
  23358. old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  23359. old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  23360. archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  23361. archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  23362. module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  23363. module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  23364. with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
  23365. allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
  23366. no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
  23367. hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  23368. hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`'
  23369. hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
  23370. hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
  23371. hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
  23372. hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
  23373. hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
  23374. hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
  23375. inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
  23376. link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
  23377. fix_srcfile_path_CXX='`$ECHO "$fix_srcfile_path_CXX" | $SED "$delay_single_quote_subst"`'
  23378. always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
  23379. export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  23380. exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
  23381. include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
  23382. prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  23383. file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
  23384. hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
  23385. compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
  23386. predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
  23387. postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
  23388. predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
  23389. postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
  23390. compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
  23391. LTCC='$LTCC'
  23392. LTCFLAGS='$LTCFLAGS'
  23393. compiler='$compiler_DEFAULT'
  23394. # A function that is used when there is no print builtin or printf.
  23395. func_fallback_echo ()
  23396. {
  23397. eval 'cat <<_LTECHO_EOF
  23398. \$1
  23399. _LTECHO_EOF'
  23400. }
  23401. # Quote evaled strings.
  23402. for var in SHELL \
  23403. ECHO \
  23404. SED \
  23405. GREP \
  23406. EGREP \
  23407. FGREP \
  23408. LD \
  23409. NM \
  23410. LN_S \
  23411. lt_SP2NL \
  23412. lt_NL2SP \
  23413. reload_flag \
  23414. OBJDUMP \
  23415. deplibs_check_method \
  23416. file_magic_cmd \
  23417. AR \
  23418. AR_FLAGS \
  23419. STRIP \
  23420. RANLIB \
  23421. CC \
  23422. CFLAGS \
  23423. compiler \
  23424. lt_cv_sys_global_symbol_pipe \
  23425. lt_cv_sys_global_symbol_to_cdecl \
  23426. lt_cv_sys_global_symbol_to_c_name_address \
  23427. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
  23428. lt_prog_compiler_no_builtin_flag \
  23429. lt_prog_compiler_wl \
  23430. lt_prog_compiler_pic \
  23431. lt_prog_compiler_static \
  23432. lt_cv_prog_compiler_c_o \
  23433. need_locks \
  23434. DSYMUTIL \
  23435. NMEDIT \
  23436. LIPO \
  23437. OTOOL \
  23438. OTOOL64 \
  23439. shrext_cmds \
  23440. export_dynamic_flag_spec \
  23441. whole_archive_flag_spec \
  23442. compiler_needs_object \
  23443. with_gnu_ld \
  23444. allow_undefined_flag \
  23445. no_undefined_flag \
  23446. hardcode_libdir_flag_spec \
  23447. hardcode_libdir_flag_spec_ld \
  23448. hardcode_libdir_separator \
  23449. fix_srcfile_path \
  23450. exclude_expsyms \
  23451. include_expsyms \
  23452. file_list_spec \
  23453. variables_saved_for_relink \
  23454. libname_spec \
  23455. library_names_spec \
  23456. soname_spec \
  23457. install_override_mode \
  23458. finish_eval \
  23459. old_striplib \
  23460. striplib \
  23461. compiler_lib_search_dirs \
  23462. predep_objects \
  23463. postdep_objects \
  23464. predeps \
  23465. postdeps \
  23466. compiler_lib_search_path \
  23467. LD_CXX \
  23468. reload_flag_CXX \
  23469. compiler_CXX \
  23470. lt_prog_compiler_no_builtin_flag_CXX \
  23471. lt_prog_compiler_wl_CXX \
  23472. lt_prog_compiler_pic_CXX \
  23473. lt_prog_compiler_static_CXX \
  23474. lt_cv_prog_compiler_c_o_CXX \
  23475. export_dynamic_flag_spec_CXX \
  23476. whole_archive_flag_spec_CXX \
  23477. compiler_needs_object_CXX \
  23478. with_gnu_ld_CXX \
  23479. allow_undefined_flag_CXX \
  23480. no_undefined_flag_CXX \
  23481. hardcode_libdir_flag_spec_CXX \
  23482. hardcode_libdir_flag_spec_ld_CXX \
  23483. hardcode_libdir_separator_CXX \
  23484. fix_srcfile_path_CXX \
  23485. exclude_expsyms_CXX \
  23486. include_expsyms_CXX \
  23487. file_list_spec_CXX \
  23488. compiler_lib_search_dirs_CXX \
  23489. predep_objects_CXX \
  23490. postdep_objects_CXX \
  23491. predeps_CXX \
  23492. postdeps_CXX \
  23493. compiler_lib_search_path_CXX; do
  23494. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  23495. *[\\\\\\\`\\"\\\$]*)
  23496. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
  23497. ;;
  23498. *)
  23499. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  23500. ;;
  23501. esac
  23502. done
  23503. # Double-quote double-evaled strings.
  23504. for var in reload_cmds \
  23505. old_postinstall_cmds \
  23506. old_postuninstall_cmds \
  23507. old_archive_cmds \
  23508. extract_expsyms_cmds \
  23509. old_archive_from_new_cmds \
  23510. old_archive_from_expsyms_cmds \
  23511. archive_cmds \
  23512. archive_expsym_cmds \
  23513. module_cmds \
  23514. module_expsym_cmds \
  23515. export_symbols_cmds \
  23516. prelink_cmds \
  23517. postinstall_cmds \
  23518. postuninstall_cmds \
  23519. finish_cmds \
  23520. sys_lib_search_path_spec \
  23521. sys_lib_dlsearch_path_spec \
  23522. reload_cmds_CXX \
  23523. old_archive_cmds_CXX \
  23524. old_archive_from_new_cmds_CXX \
  23525. old_archive_from_expsyms_cmds_CXX \
  23526. archive_cmds_CXX \
  23527. archive_expsym_cmds_CXX \
  23528. module_cmds_CXX \
  23529. module_expsym_cmds_CXX \
  23530. export_symbols_cmds_CXX \
  23531. prelink_cmds_CXX; do
  23532. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  23533. *[\\\\\\\`\\"\\\$]*)
  23534. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
  23535. ;;
  23536. *)
  23537. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  23538. ;;
  23539. esac
  23540. done
  23541. ac_aux_dir='$ac_aux_dir'
  23542. xsi_shell='$xsi_shell'
  23543. lt_shell_append='$lt_shell_append'
  23544. # See if we are running on zsh, and set the options which allow our
  23545. # commands through without removal of \ escapes INIT.
  23546. if test -n "\${ZSH_VERSION+set}" ; then
  23547. setopt NO_GLOB_SUBST
  23548. fi
  23549. PACKAGE='$PACKAGE'
  23550. VERSION='$VERSION'
  23551. TIMESTAMP='$TIMESTAMP'
  23552. RM='$RM'
  23553. ofile='$ofile'
  23554. # variables for create stdint.h replacement
  23555. PACKAGE="$PACKAGE"
  23556. VERSION="$VERSION"
  23557. ac_stdint_h="$ac_stdint_h"
  23558. _ac_stdint_h=`$as_echo "_$PACKAGE-$ac_stdint_h" | $as_tr_cpp`
  23559. ac_cv_stdint_message="$ac_cv_stdint_message"
  23560. ac_cv_header_stdint_t="$ac_cv_header_stdint_t"
  23561. ac_cv_header_stdint_x="$ac_cv_header_stdint_x"
  23562. ac_cv_header_stdint_o="$ac_cv_header_stdint_o"
  23563. ac_cv_header_stdint_u="$ac_cv_header_stdint_u"
  23564. ac_cv_type_uint64_t="$ac_cv_type_uint64_t"
  23565. ac_cv_type_u_int64_t="$ac_cv_type_u_int64_t"
  23566. ac_cv_char_data_model="$ac_cv_char_data_model"
  23567. ac_cv_long_data_model="$ac_cv_long_data_model"
  23568. ac_cv_type_int_least32_t="$ac_cv_type_int_least32_t"
  23569. ac_cv_type_int_fast32_t="$ac_cv_type_int_fast32_t"
  23570. ac_cv_type_intmax_t="$ac_cv_type_intmax_t"
  23571. _ACEOF
  23572. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  23573. # Handling of arguments.
  23574. for ac_config_target in $ac_config_targets
  23575. do
  23576. case $ac_config_target in
  23577. "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
  23578. "include/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
  23579. "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
  23580. "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
  23581. "lib/mkcollections.pl") CONFIG_FILES="$CONFIG_FILES lib/mkcollections.pl" ;;
  23582. "mkcollections.pl") CONFIG_COMMANDS="$CONFIG_COMMANDS mkcollections.pl" ;;
  23583. "$ac_config_links_1") CONFIG_LINKS="$CONFIG_LINKS $ac_config_links_1" ;;
  23584. "$ac_stdint_h") CONFIG_COMMANDS="$CONFIG_COMMANDS $ac_stdint_h" ;;
  23585. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  23586. "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
  23587. "doc/api/Makefile") CONFIG_FILES="$CONFIG_FILES doc/api/Makefile" ;;
  23588. "external/Makefile") CONFIG_FILES="$CONFIG_FILES external/Makefile" ;;
  23589. "external/sax/Makefile") CONFIG_FILES="$CONFIG_FILES external/sax/Makefile" ;;
  23590. "external/w3c_dom/Makefile") CONFIG_FILES="$CONFIG_FILES external/w3c_dom/Makefile" ;;
  23591. "external/relaxngDatatype/Makefile") CONFIG_FILES="$CONFIG_FILES external/relaxngDatatype/Makefile" ;;
  23592. "external/jsr166/Makefile") CONFIG_FILES="$CONFIG_FILES external/jsr166/Makefile" ;;
  23593. "gnu/classpath/Configuration.java") CONFIG_FILES="$CONFIG_FILES gnu/classpath/Configuration.java" ;;
  23594. "gnu/java/security/Configuration.java") CONFIG_FILES="$CONFIG_FILES gnu/java/security/Configuration.java" ;;
  23595. "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
  23596. "native/Makefile") CONFIG_FILES="$CONFIG_FILES native/Makefile" ;;
  23597. "native/fdlibm/Makefile") CONFIG_FILES="$CONFIG_FILES native/fdlibm/Makefile" ;;
  23598. "native/jawt/Makefile") CONFIG_FILES="$CONFIG_FILES native/jawt/Makefile" ;;
  23599. "native/jni/Makefile") CONFIG_FILES="$CONFIG_FILES native/jni/Makefile" ;;
  23600. "native/jni/classpath/Makefile") CONFIG_FILES="$CONFIG_FILES native/jni/classpath/Makefile" ;;
  23601. "native/jni/java-io/Makefile") CONFIG_FILES="$CONFIG_FILES native/jni/java-io/Makefile" ;;
  23602. "native/jni/java-lang/Makefile") CONFIG_FILES="$CONFIG_FILES native/jni/java-lang/Makefile" ;;
  23603. "native/jni/java-math/Makefile") CONFIG_FILES="$CONFIG_FILES native/jni/java-math/Makefile" ;;
  23604. "native/jni/java-net/Makefile") CONFIG_FILES="$CONFIG_FILES native/jni/java-net/Makefile" ;;
  23605. "native/jni/java-nio/Makefile") CONFIG_FILES="$CONFIG_FILES native/jni/java-nio/Makefile" ;;
  23606. "native/jni/java-util/Makefile") CONFIG_FILES="$CONFIG_FILES native/jni/java-util/Makefile" ;;
  23607. "native/jni/gtk-peer/Makefile") CONFIG_FILES="$CONFIG_FILES native/jni/gtk-peer/Makefile" ;;
  23608. "native/jni/gconf-peer/Makefile") CONFIG_FILES="$CONFIG_FILES native/jni/gconf-peer/Makefile" ;;
  23609. "native/jni/gstreamer-peer/Makefile") CONFIG_FILES="$CONFIG_FILES native/jni/gstreamer-peer/Makefile" ;;
  23610. "native/jni/qt-peer/Makefile") CONFIG_FILES="$CONFIG_FILES native/jni/qt-peer/Makefile" ;;
  23611. "native/jni/xmlj/Makefile") CONFIG_FILES="$CONFIG_FILES native/jni/xmlj/Makefile" ;;
  23612. "native/jni/midi-alsa/Makefile") CONFIG_FILES="$CONFIG_FILES native/jni/midi-alsa/Makefile" ;;
  23613. "native/jni/midi-dssi/Makefile") CONFIG_FILES="$CONFIG_FILES native/jni/midi-dssi/Makefile" ;;
  23614. "native/jni/native-lib/Makefile") CONFIG_FILES="$CONFIG_FILES native/jni/native-lib/Makefile" ;;
  23615. "native/plugin/Makefile") CONFIG_FILES="$CONFIG_FILES native/plugin/Makefile" ;;
  23616. "resource/Makefile") CONFIG_FILES="$CONFIG_FILES resource/Makefile" ;;
  23617. "resource/META-INF/services/java.util.prefs.PreferencesFactory") CONFIG_FILES="$CONFIG_FILES resource/META-INF/services/java.util.prefs.PreferencesFactory" ;;
  23618. "resource/META-INF/services/javax.sound.sampled.spi.AudioFileReader") CONFIG_FILES="$CONFIG_FILES resource/META-INF/services/javax.sound.sampled.spi.AudioFileReader" ;;
  23619. "resource/META-INF/services/javax.sound.sampled.spi.MixerProvider") CONFIG_FILES="$CONFIG_FILES resource/META-INF/services/javax.sound.sampled.spi.MixerProvider" ;;
  23620. "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
  23621. "scripts/classpath.spec") CONFIG_FILES="$CONFIG_FILES scripts/classpath.spec" ;;
  23622. "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
  23623. "lib/gen-classlist.sh") CONFIG_FILES="$CONFIG_FILES lib/gen-classlist.sh" ;;
  23624. "lib/copy-vmresources.sh") CONFIG_FILES="$CONFIG_FILES lib/copy-vmresources.sh" ;;
  23625. "scripts/check_jni_methods.sh") CONFIG_FILES="$CONFIG_FILES scripts/check_jni_methods.sh" ;;
  23626. "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
  23627. "examples/Makefile") CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;;
  23628. "examples/Makefile.jawt") CONFIG_FILES="$CONFIG_FILES examples/Makefile.jawt" ;;
  23629. "examples/Makefile.java2d") CONFIG_FILES="$CONFIG_FILES examples/Makefile.java2d" ;;
  23630. "tools/gappletviewer") CONFIG_FILES="$CONFIG_FILES tools/gappletviewer" ;;
  23631. "tools/gjarsigner") CONFIG_FILES="$CONFIG_FILES tools/gjarsigner" ;;
  23632. "tools/gkeytool") CONFIG_FILES="$CONFIG_FILES tools/gkeytool" ;;
  23633. "tools/gjar") CONFIG_FILES="$CONFIG_FILES tools/gjar" ;;
  23634. "tools/gnative2ascii") CONFIG_FILES="$CONFIG_FILES tools/gnative2ascii" ;;
  23635. "tools/gserialver") CONFIG_FILES="$CONFIG_FILES tools/gserialver" ;;
  23636. "tools/grmiregistry") CONFIG_FILES="$CONFIG_FILES tools/grmiregistry" ;;
  23637. "tools/gtnameserv") CONFIG_FILES="$CONFIG_FILES tools/gtnameserv" ;;
  23638. "tools/gorbd") CONFIG_FILES="$CONFIG_FILES tools/gorbd" ;;
  23639. "tools/grmid") CONFIG_FILES="$CONFIG_FILES tools/grmid" ;;
  23640. "tools/grmic") CONFIG_FILES="$CONFIG_FILES tools/grmic" ;;
  23641. "tools/gjavah") CONFIG_FILES="$CONFIG_FILES tools/gjavah" ;;
  23642. "gappletviewer") CONFIG_COMMANDS="$CONFIG_COMMANDS gappletviewer" ;;
  23643. "gjarsigner") CONFIG_COMMANDS="$CONFIG_COMMANDS gjarsigner" ;;
  23644. "gkeytool") CONFIG_COMMANDS="$CONFIG_COMMANDS gkeytool" ;;
  23645. "gjar") CONFIG_COMMANDS="$CONFIG_COMMANDS gjar" ;;
  23646. "gnative2ascii") CONFIG_COMMANDS="$CONFIG_COMMANDS gnative2ascii" ;;
  23647. "gserialver") CONFIG_COMMANDS="$CONFIG_COMMANDS gserialver" ;;
  23648. "grmiregistry") CONFIG_COMMANDS="$CONFIG_COMMANDS grmiregistry" ;;
  23649. "gtnameserv") CONFIG_COMMANDS="$CONFIG_COMMANDS gtnameserv" ;;
  23650. "gorbd") CONFIG_COMMANDS="$CONFIG_COMMANDS gorbd" ;;
  23651. "grmid") CONFIG_COMMANDS="$CONFIG_COMMANDS grmid" ;;
  23652. "grmic") CONFIG_COMMANDS="$CONFIG_COMMANDS grmic" ;;
  23653. "gjavah") CONFIG_COMMANDS="$CONFIG_COMMANDS gjavah" ;;
  23654. "tools/gjdoc") CONFIG_FILES="$CONFIG_FILES tools/gjdoc" ;;
  23655. "gjdoc") CONFIG_COMMANDS="$CONFIG_COMMANDS gjdoc" ;;
  23656. "gen-classlist") CONFIG_COMMANDS="$CONFIG_COMMANDS gen-classlist" ;;
  23657. "copy-vmresources") CONFIG_COMMANDS="$CONFIG_COMMANDS copy-vmresources" ;;
  23658. *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  23659. esac
  23660. done
  23661. # If the user did not use the arguments to specify the items to instantiate,
  23662. # then the envvar interface is used. Set only those that are not.
  23663. # We use the long form for the default assignment because of an extremely
  23664. # bizarre bug on SunOS 4.1.3.
  23665. if $ac_need_defaults; then
  23666. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  23667. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  23668. test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
  23669. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  23670. fi
  23671. # Have a temporary directory for convenience. Make it in the build tree
  23672. # simply because there is no reason against having it here, and in addition,
  23673. # creating and moving files from /tmp can sometimes cause problems.
  23674. # Hook for its removal unless debugging.
  23675. # Note that there is a small window in which the directory will not be cleaned:
  23676. # after its creation but before its name has been assigned to `$tmp'.
  23677. $debug ||
  23678. {
  23679. tmp=
  23680. trap 'exit_status=$?
  23681. { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
  23682. ' 0
  23683. trap 'as_fn_exit 1' 1 2 13 15
  23684. }
  23685. # Create a (secure) tmp directory for tmp files.
  23686. {
  23687. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  23688. test -n "$tmp" && test -d "$tmp"
  23689. } ||
  23690. {
  23691. tmp=./conf$$-$RANDOM
  23692. (umask 077 && mkdir "$tmp")
  23693. } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
  23694. # Set up the scripts for CONFIG_FILES section.
  23695. # No need to generate them if there are no CONFIG_FILES.
  23696. # This happens for instance with `./config.status config.h'.
  23697. if test -n "$CONFIG_FILES"; then
  23698. ac_cr=`echo X | tr X '\015'`
  23699. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  23700. # But we know of no other shell where ac_cr would be empty at this
  23701. # point, so we can use a bashism as a fallback.
  23702. if test "x$ac_cr" = x; then
  23703. eval ac_cr=\$\'\\r\'
  23704. fi
  23705. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  23706. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  23707. ac_cs_awk_cr='\r'
  23708. else
  23709. ac_cs_awk_cr=$ac_cr
  23710. fi
  23711. echo 'BEGIN {' >"$tmp/subs1.awk" &&
  23712. _ACEOF
  23713. {
  23714. echo "cat >conf$$subs.awk <<_ACEOF" &&
  23715. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  23716. echo "_ACEOF"
  23717. } >conf$$subs.sh ||
  23718. as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
  23719. ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
  23720. ac_delim='%!_!# '
  23721. for ac_last_try in false false false false false :; do
  23722. . ./conf$$subs.sh ||
  23723. as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
  23724. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  23725. if test $ac_delim_n = $ac_delim_num; then
  23726. break
  23727. elif $ac_last_try; then
  23728. as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
  23729. else
  23730. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  23731. fi
  23732. done
  23733. rm -f conf$$subs.sh
  23734. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  23735. cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
  23736. _ACEOF
  23737. sed -n '
  23738. h
  23739. s/^/S["/; s/!.*/"]=/
  23740. p
  23741. g
  23742. s/^[^!]*!//
  23743. :repl
  23744. t repl
  23745. s/'"$ac_delim"'$//
  23746. t delim
  23747. :nl
  23748. h
  23749. s/\(.\{148\}\).*/\1/
  23750. t more1
  23751. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  23752. p
  23753. n
  23754. b repl
  23755. :more1
  23756. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  23757. p
  23758. g
  23759. s/.\{148\}//
  23760. t nl
  23761. :delim
  23762. h
  23763. s/\(.\{148\}\).*/\1/
  23764. t more2
  23765. s/["\\]/\\&/g; s/^/"/; s/$/"/
  23766. p
  23767. b
  23768. :more2
  23769. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  23770. p
  23771. g
  23772. s/.\{148\}//
  23773. t delim
  23774. ' <conf$$subs.awk | sed '
  23775. /^[^""]/{
  23776. N
  23777. s/\n//
  23778. }
  23779. ' >>$CONFIG_STATUS || ac_write_fail=1
  23780. rm -f conf$$subs.awk
  23781. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  23782. _ACAWK
  23783. cat >>"\$tmp/subs1.awk" <<_ACAWK &&
  23784. for (key in S) S_is_set[key] = 1
  23785. FS = ""
  23786. }
  23787. {
  23788. line = $ 0
  23789. nfields = split(line, field, "@")
  23790. substed = 0
  23791. len = length(field[1])
  23792. for (i = 2; i < nfields; i++) {
  23793. key = field[i]
  23794. keylen = length(key)
  23795. if (S_is_set[key]) {
  23796. value = S[key]
  23797. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  23798. len += length(value) + length(field[++i])
  23799. substed = 1
  23800. } else
  23801. len += 1 + keylen
  23802. }
  23803. print line
  23804. }
  23805. _ACAWK
  23806. _ACEOF
  23807. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  23808. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  23809. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  23810. else
  23811. cat
  23812. fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
  23813. || as_fn_error "could not setup config files machinery" "$LINENO" 5
  23814. _ACEOF
  23815. # VPATH may cause trouble with some makes, so we remove $(srcdir),
  23816. # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
  23817. # trailing colons and then remove the whole line if VPATH becomes empty
  23818. # (actually we leave an empty line to preserve line numbers).
  23819. if test "x$srcdir" = x.; then
  23820. ac_vpsub='/^[ ]*VPATH[ ]*=/{
  23821. s/:*\$(srcdir):*/:/
  23822. s/:*\${srcdir}:*/:/
  23823. s/:*@srcdir@:*/:/
  23824. s/^\([^=]*=[ ]*\):*/\1/
  23825. s/:*$//
  23826. s/^[^=]*=[ ]*$//
  23827. }'
  23828. fi
  23829. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  23830. fi # test -n "$CONFIG_FILES"
  23831. # Set up the scripts for CONFIG_HEADERS section.
  23832. # No need to generate them if there are no CONFIG_HEADERS.
  23833. # This happens for instance with `./config.status Makefile'.
  23834. if test -n "$CONFIG_HEADERS"; then
  23835. cat >"$tmp/defines.awk" <<\_ACAWK ||
  23836. BEGIN {
  23837. _ACEOF
  23838. # Transform confdefs.h into an awk script `defines.awk', embedded as
  23839. # here-document in config.status, that substitutes the proper values into
  23840. # config.h.in to produce config.h.
  23841. # Create a delimiter string that does not exist in confdefs.h, to ease
  23842. # handling of long lines.
  23843. ac_delim='%!_!# '
  23844. for ac_last_try in false false :; do
  23845. ac_t=`sed -n "/$ac_delim/p" confdefs.h`
  23846. if test -z "$ac_t"; then
  23847. break
  23848. elif $ac_last_try; then
  23849. as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
  23850. else
  23851. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  23852. fi
  23853. done
  23854. # For the awk script, D is an array of macro values keyed by name,
  23855. # likewise P contains macro parameters if any. Preserve backslash
  23856. # newline sequences.
  23857. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  23858. sed -n '
  23859. s/.\{148\}/&'"$ac_delim"'/g
  23860. t rset
  23861. :rset
  23862. s/^[ ]*#[ ]*define[ ][ ]*/ /
  23863. t def
  23864. d
  23865. :def
  23866. s/\\$//
  23867. t bsnl
  23868. s/["\\]/\\&/g
  23869. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  23870. D["\1"]=" \3"/p
  23871. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  23872. d
  23873. :bsnl
  23874. s/["\\]/\\&/g
  23875. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  23876. D["\1"]=" \3\\\\\\n"\\/p
  23877. t cont
  23878. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  23879. t cont
  23880. d
  23881. :cont
  23882. n
  23883. s/.\{148\}/&'"$ac_delim"'/g
  23884. t clear
  23885. :clear
  23886. s/\\$//
  23887. t bsnlc
  23888. s/["\\]/\\&/g; s/^/"/; s/$/"/p
  23889. d
  23890. :bsnlc
  23891. s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  23892. b cont
  23893. ' <confdefs.h | sed '
  23894. s/'"$ac_delim"'/"\\\
  23895. "/g' >>$CONFIG_STATUS || ac_write_fail=1
  23896. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  23897. for (key in D) D_is_set[key] = 1
  23898. FS = ""
  23899. }
  23900. /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  23901. line = \$ 0
  23902. split(line, arg, " ")
  23903. if (arg[1] == "#") {
  23904. defundef = arg[2]
  23905. mac1 = arg[3]
  23906. } else {
  23907. defundef = substr(arg[1], 2)
  23908. mac1 = arg[2]
  23909. }
  23910. split(mac1, mac2, "(") #)
  23911. macro = mac2[1]
  23912. prefix = substr(line, 1, index(line, defundef) - 1)
  23913. if (D_is_set[macro]) {
  23914. # Preserve the white space surrounding the "#".
  23915. print prefix "define", macro P[macro] D[macro]
  23916. next
  23917. } else {
  23918. # Replace #undef with comments. This is necessary, for example,
  23919. # in the case of _POSIX_SOURCE, which is predefined and required
  23920. # on some systems where configure will not decide to define it.
  23921. if (defundef == "undef") {
  23922. print "/*", prefix defundef, macro, "*/"
  23923. next
  23924. }
  23925. }
  23926. }
  23927. { print }
  23928. _ACAWK
  23929. _ACEOF
  23930. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  23931. as_fn_error "could not setup config headers machinery" "$LINENO" 5
  23932. fi # test -n "$CONFIG_HEADERS"
  23933. eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
  23934. shift
  23935. for ac_tag
  23936. do
  23937. case $ac_tag in
  23938. :[FHLC]) ac_mode=$ac_tag; continue;;
  23939. esac
  23940. case $ac_mode$ac_tag in
  23941. :[FHL]*:*);;
  23942. :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
  23943. :[FH]-) ac_tag=-:-;;
  23944. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  23945. esac
  23946. ac_save_IFS=$IFS
  23947. IFS=:
  23948. set x $ac_tag
  23949. IFS=$ac_save_IFS
  23950. shift
  23951. ac_file=$1
  23952. shift
  23953. case $ac_mode in
  23954. :L) ac_source=$1;;
  23955. :[FH])
  23956. ac_file_inputs=
  23957. for ac_f
  23958. do
  23959. case $ac_f in
  23960. -) ac_f="$tmp/stdin";;
  23961. *) # Look for the file first in the build tree, then in the source tree
  23962. # (if the path is not absolute). The absolute path cannot be DOS-style,
  23963. # because $ac_f cannot contain `:'.
  23964. test -f "$ac_f" ||
  23965. case $ac_f in
  23966. [\\/$]*) false;;
  23967. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  23968. esac ||
  23969. as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  23970. esac
  23971. case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  23972. as_fn_append ac_file_inputs " '$ac_f'"
  23973. done
  23974. # Let's still pretend it is `configure' which instantiates (i.e., don't
  23975. # use $as_me), people would be surprised to read:
  23976. # /* config.h. Generated by config.status. */
  23977. configure_input='Generated from '`
  23978. $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  23979. `' by configure.'
  23980. if test x"$ac_file" != x-; then
  23981. configure_input="$ac_file. $configure_input"
  23982. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  23983. $as_echo "$as_me: creating $ac_file" >&6;}
  23984. fi
  23985. # Neutralize special characters interpreted by sed in replacement strings.
  23986. case $configure_input in #(
  23987. *\&* | *\|* | *\\* )
  23988. ac_sed_conf_input=`$as_echo "$configure_input" |
  23989. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  23990. *) ac_sed_conf_input=$configure_input;;
  23991. esac
  23992. case $ac_tag in
  23993. *:-:* | *:-) cat >"$tmp/stdin" \
  23994. || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
  23995. esac
  23996. ;;
  23997. esac
  23998. ac_dir=`$as_dirname -- "$ac_file" ||
  23999. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  24000. X"$ac_file" : 'X\(//\)[^/]' \| \
  24001. X"$ac_file" : 'X\(//\)$' \| \
  24002. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  24003. $as_echo X"$ac_file" |
  24004. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  24005. s//\1/
  24006. q
  24007. }
  24008. /^X\(\/\/\)[^/].*/{
  24009. s//\1/
  24010. q
  24011. }
  24012. /^X\(\/\/\)$/{
  24013. s//\1/
  24014. q
  24015. }
  24016. /^X\(\/\).*/{
  24017. s//\1/
  24018. q
  24019. }
  24020. s/.*/./; q'`
  24021. as_dir="$ac_dir"; as_fn_mkdir_p
  24022. ac_builddir=.
  24023. case "$ac_dir" in
  24024. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  24025. *)
  24026. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  24027. # A ".." for each directory in $ac_dir_suffix.
  24028. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  24029. case $ac_top_builddir_sub in
  24030. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  24031. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  24032. esac ;;
  24033. esac
  24034. ac_abs_top_builddir=$ac_pwd
  24035. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  24036. # for backward compatibility:
  24037. ac_top_builddir=$ac_top_build_prefix
  24038. case $srcdir in
  24039. .) # We are building in place.
  24040. ac_srcdir=.
  24041. ac_top_srcdir=$ac_top_builddir_sub
  24042. ac_abs_top_srcdir=$ac_pwd ;;
  24043. [\\/]* | ?:[\\/]* ) # Absolute name.
  24044. ac_srcdir=$srcdir$ac_dir_suffix;
  24045. ac_top_srcdir=$srcdir
  24046. ac_abs_top_srcdir=$srcdir ;;
  24047. *) # Relative name.
  24048. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  24049. ac_top_srcdir=$ac_top_build_prefix$srcdir
  24050. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  24051. esac
  24052. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  24053. case $ac_mode in
  24054. :F)
  24055. #
  24056. # CONFIG_FILE
  24057. #
  24058. case $INSTALL in
  24059. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  24060. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  24061. esac
  24062. ac_MKDIR_P=$MKDIR_P
  24063. case $MKDIR_P in
  24064. [\\/$]* | ?:[\\/]* ) ;;
  24065. */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
  24066. esac
  24067. _ACEOF
  24068. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  24069. # If the template does not know about datarootdir, expand it.
  24070. # FIXME: This hack should be removed a few years after 2.60.
  24071. ac_datarootdir_hack=; ac_datarootdir_seen=
  24072. ac_sed_dataroot='
  24073. /datarootdir/ {
  24074. p
  24075. q
  24076. }
  24077. /@datadir@/p
  24078. /@docdir@/p
  24079. /@infodir@/p
  24080. /@localedir@/p
  24081. /@mandir@/p'
  24082. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  24083. *datarootdir*) ac_datarootdir_seen=yes;;
  24084. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  24085. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  24086. $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  24087. _ACEOF
  24088. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  24089. ac_datarootdir_hack='
  24090. s&@datadir@&$datadir&g
  24091. s&@docdir@&$docdir&g
  24092. s&@infodir@&$infodir&g
  24093. s&@localedir@&$localedir&g
  24094. s&@mandir@&$mandir&g
  24095. s&\\\${datarootdir}&$datarootdir&g' ;;
  24096. esac
  24097. _ACEOF
  24098. # Neutralize VPATH when `$srcdir' = `.'.
  24099. # Shell code in configure.ac might set extrasub.
  24100. # FIXME: do we really want to maintain this feature?
  24101. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  24102. ac_sed_extra="$ac_vpsub
  24103. $extrasub
  24104. _ACEOF
  24105. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  24106. :t
  24107. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  24108. s|@configure_input@|$ac_sed_conf_input|;t t
  24109. s&@top_builddir@&$ac_top_builddir_sub&;t t
  24110. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  24111. s&@srcdir@&$ac_srcdir&;t t
  24112. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  24113. s&@top_srcdir@&$ac_top_srcdir&;t t
  24114. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  24115. s&@builddir@&$ac_builddir&;t t
  24116. s&@abs_builddir@&$ac_abs_builddir&;t t
  24117. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  24118. s&@INSTALL@&$ac_INSTALL&;t t
  24119. s&@MKDIR_P@&$ac_MKDIR_P&;t t
  24120. $ac_datarootdir_hack
  24121. "
  24122. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
  24123. || as_fn_error "could not create $ac_file" "$LINENO" 5
  24124. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  24125. { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
  24126. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
  24127. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  24128. which seems to be undefined. Please make sure it is defined." >&5
  24129. $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  24130. which seems to be undefined. Please make sure it is defined." >&2;}
  24131. rm -f "$tmp/stdin"
  24132. case $ac_file in
  24133. -) cat "$tmp/out" && rm -f "$tmp/out";;
  24134. *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
  24135. esac \
  24136. || as_fn_error "could not create $ac_file" "$LINENO" 5
  24137. ;;
  24138. :H)
  24139. #
  24140. # CONFIG_HEADER
  24141. #
  24142. if test x"$ac_file" != x-; then
  24143. {
  24144. $as_echo "/* $configure_input */" \
  24145. && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
  24146. } >"$tmp/config.h" \
  24147. || as_fn_error "could not create $ac_file" "$LINENO" 5
  24148. if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
  24149. { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
  24150. $as_echo "$as_me: $ac_file is unchanged" >&6;}
  24151. else
  24152. rm -f "$ac_file"
  24153. mv "$tmp/config.h" "$ac_file" \
  24154. || as_fn_error "could not create $ac_file" "$LINENO" 5
  24155. fi
  24156. else
  24157. $as_echo "/* $configure_input */" \
  24158. && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
  24159. || as_fn_error "could not create -" "$LINENO" 5
  24160. fi
  24161. # Compute "$ac_file"'s index in $config_headers.
  24162. _am_arg="$ac_file"
  24163. _am_stamp_count=1
  24164. for _am_header in $config_headers :; do
  24165. case $_am_header in
  24166. $_am_arg | $_am_arg:* )
  24167. break ;;
  24168. * )
  24169. _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  24170. esac
  24171. done
  24172. echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
  24173. $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  24174. X"$_am_arg" : 'X\(//\)[^/]' \| \
  24175. X"$_am_arg" : 'X\(//\)$' \| \
  24176. X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
  24177. $as_echo X"$_am_arg" |
  24178. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  24179. s//\1/
  24180. q
  24181. }
  24182. /^X\(\/\/\)[^/].*/{
  24183. s//\1/
  24184. q
  24185. }
  24186. /^X\(\/\/\)$/{
  24187. s//\1/
  24188. q
  24189. }
  24190. /^X\(\/\).*/{
  24191. s//\1/
  24192. q
  24193. }
  24194. s/.*/./; q'`/stamp-h$_am_stamp_count
  24195. ;;
  24196. :L)
  24197. #
  24198. # CONFIG_LINK
  24199. #
  24200. if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
  24201. :
  24202. else
  24203. # Prefer the file from the source tree if names are identical.
  24204. if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
  24205. ac_source=$srcdir/$ac_source
  24206. fi
  24207. { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
  24208. $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
  24209. if test ! -r "$ac_source"; then
  24210. as_fn_error "$ac_source: file not found" "$LINENO" 5
  24211. fi
  24212. rm -f "$ac_file"
  24213. # Try a relative symlink, then a hard link, then a copy.
  24214. case $srcdir in
  24215. [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
  24216. *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
  24217. esac
  24218. ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
  24219. ln "$ac_source" "$ac_file" 2>/dev/null ||
  24220. cp -p "$ac_source" "$ac_file" ||
  24221. as_fn_error "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
  24222. fi
  24223. ;;
  24224. :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
  24225. $as_echo "$as_me: executing $ac_file commands" >&6;}
  24226. ;;
  24227. esac
  24228. case $ac_file$ac_mode in
  24229. "default-1":C)
  24230. # Only add multilib support code if we just rebuilt the top-level
  24231. # Makefile.
  24232. case " $CONFIG_FILES " in
  24233. *" Makefile "*)
  24234. ac_file=Makefile . ${multi_basedir}/config-ml.in
  24235. ;;
  24236. esac ;;
  24237. "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
  24238. # Autoconf 2.62 quotes --file arguments for eval, but not when files
  24239. # are listed without --file. Let's play safe and only enable the eval
  24240. # if we detect the quoting.
  24241. case $CONFIG_FILES in
  24242. *\'*) eval set x "$CONFIG_FILES" ;;
  24243. *) set x $CONFIG_FILES ;;
  24244. esac
  24245. shift
  24246. for mf
  24247. do
  24248. # Strip MF so we end up with the name of the file.
  24249. mf=`echo "$mf" | sed -e 's/:.*$//'`
  24250. # Check whether this is an Automake generated Makefile or not.
  24251. # We used to match only the files named `Makefile.in', but
  24252. # some people rename them; so instead we look at the file content.
  24253. # Grep'ing the first line is not enough: some people post-process
  24254. # each Makefile.in and add a new line on top of each file to say so.
  24255. # Grep'ing the whole file is not good either: AIX grep has a line
  24256. # limit of 2048, but all sed's we know have understand at least 4000.
  24257. if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
  24258. dirpart=`$as_dirname -- "$mf" ||
  24259. $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  24260. X"$mf" : 'X\(//\)[^/]' \| \
  24261. X"$mf" : 'X\(//\)$' \| \
  24262. X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
  24263. $as_echo X"$mf" |
  24264. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  24265. s//\1/
  24266. q
  24267. }
  24268. /^X\(\/\/\)[^/].*/{
  24269. s//\1/
  24270. q
  24271. }
  24272. /^X\(\/\/\)$/{
  24273. s//\1/
  24274. q
  24275. }
  24276. /^X\(\/\).*/{
  24277. s//\1/
  24278. q
  24279. }
  24280. s/.*/./; q'`
  24281. else
  24282. continue
  24283. fi
  24284. # Extract the definition of DEPDIR, am__include, and am__quote
  24285. # from the Makefile without running `make'.
  24286. DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  24287. test -z "$DEPDIR" && continue
  24288. am__include=`sed -n 's/^am__include = //p' < "$mf"`
  24289. test -z "am__include" && continue
  24290. am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
  24291. # When using ansi2knr, U may be empty or an underscore; expand it
  24292. U=`sed -n 's/^U = //p' < "$mf"`
  24293. # Find all dependency output files, they are included files with
  24294. # $(DEPDIR) in their names. We invoke sed twice because it is the
  24295. # simplest approach to changing $(DEPDIR) to its actual value in the
  24296. # expansion.
  24297. for file in `sed -n "
  24298. s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
  24299. sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
  24300. # Make sure the directory exists.
  24301. test -f "$dirpart/$file" && continue
  24302. fdir=`$as_dirname -- "$file" ||
  24303. $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  24304. X"$file" : 'X\(//\)[^/]' \| \
  24305. X"$file" : 'X\(//\)$' \| \
  24306. X"$file" : 'X\(/\)' \| . 2>/dev/null ||
  24307. $as_echo X"$file" |
  24308. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  24309. s//\1/
  24310. q
  24311. }
  24312. /^X\(\/\/\)[^/].*/{
  24313. s//\1/
  24314. q
  24315. }
  24316. /^X\(\/\/\)$/{
  24317. s//\1/
  24318. q
  24319. }
  24320. /^X\(\/\).*/{
  24321. s//\1/
  24322. q
  24323. }
  24324. s/.*/./; q'`
  24325. as_dir=$dirpart/$fdir; as_fn_mkdir_p
  24326. # echo "creating $dirpart/$file"
  24327. echo '# dummy' > "$dirpart/$file"
  24328. done
  24329. done
  24330. }
  24331. ;;
  24332. "libtool":C)
  24333. # See if we are running on zsh, and set the options which allow our
  24334. # commands through without removal of \ escapes.
  24335. if test -n "${ZSH_VERSION+set}" ; then
  24336. setopt NO_GLOB_SUBST
  24337. fi
  24338. cfgfile="${ofile}T"
  24339. trap "$RM \"$cfgfile\"; exit 1" 1 2 15
  24340. $RM "$cfgfile"
  24341. cat <<_LT_EOF >> "$cfgfile"
  24342. #! $SHELL
  24343. # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
  24344. # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
  24345. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  24346. # NOTE: Changes made to this file will be lost: look at ltmain.sh.
  24347. #
  24348. # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
  24349. # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
  24350. # Written by Gordon Matzigkeit, 1996
  24351. #
  24352. # This file is part of GNU Libtool.
  24353. #
  24354. # GNU Libtool is free software; you can redistribute it and/or
  24355. # modify it under the terms of the GNU General Public License as
  24356. # published by the Free Software Foundation; either version 2 of
  24357. # the License, or (at your option) any later version.
  24358. #
  24359. # As a special exception to the GNU General Public License,
  24360. # if you distribute this file as part of a program or library that
  24361. # is built using GNU Libtool, you may include this file under the
  24362. # same distribution terms that you use for the rest of that program.
  24363. #
  24364. # GNU Libtool is distributed in the hope that it will be useful,
  24365. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  24366. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  24367. # GNU General Public License for more details.
  24368. #
  24369. # You should have received a copy of the GNU General Public License
  24370. # along with GNU Libtool; see the file COPYING. If not, a copy
  24371. # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
  24372. # obtained by writing to the Free Software Foundation, Inc.,
  24373. # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  24374. # The names of the tagged configurations supported by this script.
  24375. available_tags="CXX "
  24376. # ### BEGIN LIBTOOL CONFIG
  24377. # Whether or not to build static libraries.
  24378. build_old_libs=$enable_static
  24379. # Which release of libtool.m4 was used?
  24380. macro_version=$macro_version
  24381. macro_revision=$macro_revision
  24382. # Whether or not to build shared libraries.
  24383. build_libtool_libs=$enable_shared
  24384. # What type of objects to build.
  24385. pic_mode=$pic_mode
  24386. # Whether or not to optimize for fast installation.
  24387. fast_install=$enable_fast_install
  24388. # Shell to use when invoking shell scripts.
  24389. SHELL=$lt_SHELL
  24390. # An echo program that protects backslashes.
  24391. ECHO=$lt_ECHO
  24392. # The host system.
  24393. host_alias=$host_alias
  24394. host=$host
  24395. host_os=$host_os
  24396. # The build system.
  24397. build_alias=$build_alias
  24398. build=$build
  24399. build_os=$build_os
  24400. # A sed program that does not truncate output.
  24401. SED=$lt_SED
  24402. # Sed that helps us avoid accidentally triggering echo(1) options like -n.
  24403. Xsed="\$SED -e 1s/^X//"
  24404. # A grep program that handles long lines.
  24405. GREP=$lt_GREP
  24406. # An ERE matcher.
  24407. EGREP=$lt_EGREP
  24408. # A literal string matcher.
  24409. FGREP=$lt_FGREP
  24410. # A BSD- or MS-compatible name lister.
  24411. NM=$lt_NM
  24412. # Whether we need soft or hard links.
  24413. LN_S=$lt_LN_S
  24414. # What is the maximum length of a command?
  24415. max_cmd_len=$max_cmd_len
  24416. # Object file suffix (normally "o").
  24417. objext=$ac_objext
  24418. # Executable file suffix (normally "").
  24419. exeext=$exeext
  24420. # whether the shell understands "unset".
  24421. lt_unset=$lt_unset
  24422. # turn spaces into newlines.
  24423. SP2NL=$lt_lt_SP2NL
  24424. # turn newlines into spaces.
  24425. NL2SP=$lt_lt_NL2SP
  24426. # An object symbol dumper.
  24427. OBJDUMP=$lt_OBJDUMP
  24428. # Method to check whether dependent libraries are shared objects.
  24429. deplibs_check_method=$lt_deplibs_check_method
  24430. # Command to use when deplibs_check_method == "file_magic".
  24431. file_magic_cmd=$lt_file_magic_cmd
  24432. # The archiver.
  24433. AR=$lt_AR
  24434. AR_FLAGS=$lt_AR_FLAGS
  24435. # A symbol stripping program.
  24436. STRIP=$lt_STRIP
  24437. # Commands used to install an old-style archive.
  24438. RANLIB=$lt_RANLIB
  24439. old_postinstall_cmds=$lt_old_postinstall_cmds
  24440. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  24441. # Whether to use a lock for old archive extraction.
  24442. lock_old_archive_extraction=$lock_old_archive_extraction
  24443. # A C compiler.
  24444. LTCC=$lt_CC
  24445. # LTCC compiler flags.
  24446. LTCFLAGS=$lt_CFLAGS
  24447. # Take the output of nm and produce a listing of raw symbols and C names.
  24448. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  24449. # Transform the output of nm in a proper C declaration.
  24450. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  24451. # Transform the output of nm in a C name address pair.
  24452. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  24453. # Transform the output of nm in a C name address pair when lib prefix is needed.
  24454. global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
  24455. # The name of the directory that contains temporary libtool files.
  24456. objdir=$objdir
  24457. # Used to examine libraries when file_magic_cmd begins with "file".
  24458. MAGIC_CMD=$MAGIC_CMD
  24459. # Must we lock files when doing compilation?
  24460. need_locks=$lt_need_locks
  24461. # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
  24462. DSYMUTIL=$lt_DSYMUTIL
  24463. # Tool to change global to local symbols on Mac OS X.
  24464. NMEDIT=$lt_NMEDIT
  24465. # Tool to manipulate fat objects and archives on Mac OS X.
  24466. LIPO=$lt_LIPO
  24467. # ldd/readelf like tool for Mach-O binaries on Mac OS X.
  24468. OTOOL=$lt_OTOOL
  24469. # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
  24470. OTOOL64=$lt_OTOOL64
  24471. # Old archive suffix (normally "a").
  24472. libext=$libext
  24473. # Shared library suffix (normally ".so").
  24474. shrext_cmds=$lt_shrext_cmds
  24475. # The commands to extract the exported symbol list from a shared archive.
  24476. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  24477. # Variables whose values should be saved in libtool wrapper scripts and
  24478. # restored at link time.
  24479. variables_saved_for_relink=$lt_variables_saved_for_relink
  24480. # Do we need the "lib" prefix for modules?
  24481. need_lib_prefix=$need_lib_prefix
  24482. # Do we need a version for libraries?
  24483. need_version=$need_version
  24484. # Library versioning type.
  24485. version_type=$version_type
  24486. # Shared library runtime path variable.
  24487. runpath_var=$runpath_var
  24488. # Shared library path variable.
  24489. shlibpath_var=$shlibpath_var
  24490. # Is shlibpath searched before the hard-coded library search path?
  24491. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  24492. # Format of library name prefix.
  24493. libname_spec=$lt_libname_spec
  24494. # List of archive names. First name is the real one, the rest are links.
  24495. # The last name is the one that the linker finds with -lNAME
  24496. library_names_spec=$lt_library_names_spec
  24497. # The coded name of the library, if different from the real name.
  24498. soname_spec=$lt_soname_spec
  24499. # Permission mode override for installation of shared libraries.
  24500. install_override_mode=$lt_install_override_mode
  24501. # Command to use after installation of a shared archive.
  24502. postinstall_cmds=$lt_postinstall_cmds
  24503. # Command to use after uninstallation of a shared archive.
  24504. postuninstall_cmds=$lt_postuninstall_cmds
  24505. # Commands used to finish a libtool library installation in a directory.
  24506. finish_cmds=$lt_finish_cmds
  24507. # As "finish_cmds", except a single script fragment to be evaled but
  24508. # not shown.
  24509. finish_eval=$lt_finish_eval
  24510. # Whether we should hardcode library paths into libraries.
  24511. hardcode_into_libs=$hardcode_into_libs
  24512. # Compile-time system search path for libraries.
  24513. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  24514. # Run-time system search path for libraries.
  24515. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  24516. # Whether dlopen is supported.
  24517. dlopen_support=$enable_dlopen
  24518. # Whether dlopen of programs is supported.
  24519. dlopen_self=$enable_dlopen_self
  24520. # Whether dlopen of statically linked programs is supported.
  24521. dlopen_self_static=$enable_dlopen_self_static
  24522. # Commands to strip libraries.
  24523. old_striplib=$lt_old_striplib
  24524. striplib=$lt_striplib
  24525. # The linker used to build libraries.
  24526. LD=$lt_LD
  24527. # How to create reloadable object files.
  24528. reload_flag=$lt_reload_flag
  24529. reload_cmds=$lt_reload_cmds
  24530. # Commands used to build an old-style archive.
  24531. old_archive_cmds=$lt_old_archive_cmds
  24532. # A language specific compiler.
  24533. CC=$lt_compiler
  24534. # Is the compiler the GNU compiler?
  24535. with_gcc=$GCC
  24536. # Compiler flag to turn off builtin functions.
  24537. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  24538. # How to pass a linker flag through the compiler.
  24539. wl=$lt_lt_prog_compiler_wl
  24540. # Additional compiler flags for building library objects.
  24541. pic_flag=$lt_lt_prog_compiler_pic
  24542. # Compiler flag to prevent dynamic linking.
  24543. link_static_flag=$lt_lt_prog_compiler_static
  24544. # Does compiler simultaneously support -c and -o options?
  24545. compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  24546. # Whether or not to add -lc for building shared libraries.
  24547. build_libtool_need_lc=$archive_cmds_need_lc
  24548. # Whether or not to disallow shared libs when runtime libs are static.
  24549. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  24550. # Compiler flag to allow reflexive dlopens.
  24551. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  24552. # Compiler flag to generate shared objects directly from archives.
  24553. whole_archive_flag_spec=$lt_whole_archive_flag_spec
  24554. # Whether the compiler copes with passing no objects directly.
  24555. compiler_needs_object=$lt_compiler_needs_object
  24556. # Create an old-style archive from a shared archive.
  24557. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  24558. # Create a temporary old-style archive to link instead of a shared archive.
  24559. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  24560. # Commands used to build a shared archive.
  24561. archive_cmds=$lt_archive_cmds
  24562. archive_expsym_cmds=$lt_archive_expsym_cmds
  24563. # Commands used to build a loadable module if different from building
  24564. # a shared archive.
  24565. module_cmds=$lt_module_cmds
  24566. module_expsym_cmds=$lt_module_expsym_cmds
  24567. # Whether we are building with GNU ld or not.
  24568. with_gnu_ld=$lt_with_gnu_ld
  24569. # Flag that allows shared libraries with undefined symbols to be built.
  24570. allow_undefined_flag=$lt_allow_undefined_flag
  24571. # Flag that enforces no undefined symbols.
  24572. no_undefined_flag=$lt_no_undefined_flag
  24573. # Flag to hardcode \$libdir into a binary during linking.
  24574. # This must work even if \$libdir does not exist
  24575. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  24576. # If ld is used when linking, flag to hardcode \$libdir into a binary
  24577. # during linking. This must work even if \$libdir does not exist.
  24578. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
  24579. # Whether we need a single "-rpath" flag with a separated argument.
  24580. hardcode_libdir_separator=$lt_hardcode_libdir_separator
  24581. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  24582. # DIR into the resulting binary.
  24583. hardcode_direct=$hardcode_direct
  24584. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  24585. # DIR into the resulting binary and the resulting library dependency is
  24586. # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
  24587. # library is relocated.
  24588. hardcode_direct_absolute=$hardcode_direct_absolute
  24589. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  24590. # into the resulting binary.
  24591. hardcode_minus_L=$hardcode_minus_L
  24592. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  24593. # into the resulting binary.
  24594. hardcode_shlibpath_var=$hardcode_shlibpath_var
  24595. # Set to "yes" if building a shared library automatically hardcodes DIR
  24596. # into the library and all subsequent libraries and executables linked
  24597. # against it.
  24598. hardcode_automatic=$hardcode_automatic
  24599. # Set to yes if linker adds runtime paths of dependent libraries
  24600. # to runtime path list.
  24601. inherit_rpath=$inherit_rpath
  24602. # Whether libtool must link a program against all its dependency libraries.
  24603. link_all_deplibs=$link_all_deplibs
  24604. # Fix the shell variable \$srcfile for the compiler.
  24605. fix_srcfile_path=$lt_fix_srcfile_path
  24606. # Set to "yes" if exported symbols are required.
  24607. always_export_symbols=$always_export_symbols
  24608. # The commands to list exported symbols.
  24609. export_symbols_cmds=$lt_export_symbols_cmds
  24610. # Symbols that should not be listed in the preloaded symbols.
  24611. exclude_expsyms=$lt_exclude_expsyms
  24612. # Symbols that must always be exported.
  24613. include_expsyms=$lt_include_expsyms
  24614. # Commands necessary for linking programs (against libraries) with templates.
  24615. prelink_cmds=$lt_prelink_cmds
  24616. # Specify filename containing input files.
  24617. file_list_spec=$lt_file_list_spec
  24618. # How to hardcode a shared library path into an executable.
  24619. hardcode_action=$hardcode_action
  24620. # The directories searched by this compiler when creating a shared library.
  24621. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
  24622. # Dependencies to place before and after the objects being linked to
  24623. # create a shared library.
  24624. predep_objects=$lt_predep_objects
  24625. postdep_objects=$lt_postdep_objects
  24626. predeps=$lt_predeps
  24627. postdeps=$lt_postdeps
  24628. # The library search path used internally by the compiler when linking
  24629. # a shared library.
  24630. compiler_lib_search_path=$lt_compiler_lib_search_path
  24631. # ### END LIBTOOL CONFIG
  24632. _LT_EOF
  24633. case $host_os in
  24634. aix3*)
  24635. cat <<\_LT_EOF >> "$cfgfile"
  24636. # AIX sometimes has problems with the GCC collect2 program. For some
  24637. # reason, if we set the COLLECT_NAMES environment variable, the problems
  24638. # vanish in a puff of smoke.
  24639. if test "X${COLLECT_NAMES+set}" != Xset; then
  24640. COLLECT_NAMES=
  24641. export COLLECT_NAMES
  24642. fi
  24643. _LT_EOF
  24644. ;;
  24645. esac
  24646. ltmain="$ac_aux_dir/ltmain.sh"
  24647. # We use sed instead of cat because bash on DJGPP gets confused if
  24648. # if finds mixed CR/LF and LF-only lines. Since sed operates in
  24649. # text mode, it properly converts lines to CR/LF. This bash problem
  24650. # is reportedly fixed, but why not run on old versions too?
  24651. sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
  24652. || (rm -f "$cfgfile"; exit 1)
  24653. case $xsi_shell in
  24654. yes)
  24655. cat << \_LT_EOF >> "$cfgfile"
  24656. # func_dirname file append nondir_replacement
  24657. # Compute the dirname of FILE. If nonempty, add APPEND to the result,
  24658. # otherwise set result to NONDIR_REPLACEMENT.
  24659. func_dirname ()
  24660. {
  24661. case ${1} in
  24662. */*) func_dirname_result="${1%/*}${2}" ;;
  24663. * ) func_dirname_result="${3}" ;;
  24664. esac
  24665. }
  24666. # func_basename file
  24667. func_basename ()
  24668. {
  24669. func_basename_result="${1##*/}"
  24670. }
  24671. # func_dirname_and_basename file append nondir_replacement
  24672. # perform func_basename and func_dirname in a single function
  24673. # call:
  24674. # dirname: Compute the dirname of FILE. If nonempty,
  24675. # add APPEND to the result, otherwise set result
  24676. # to NONDIR_REPLACEMENT.
  24677. # value returned in "$func_dirname_result"
  24678. # basename: Compute filename of FILE.
  24679. # value retuned in "$func_basename_result"
  24680. # Implementation must be kept synchronized with func_dirname
  24681. # and func_basename. For efficiency, we do not delegate to
  24682. # those functions but instead duplicate the functionality here.
  24683. func_dirname_and_basename ()
  24684. {
  24685. case ${1} in
  24686. */*) func_dirname_result="${1%/*}${2}" ;;
  24687. * ) func_dirname_result="${3}" ;;
  24688. esac
  24689. func_basename_result="${1##*/}"
  24690. }
  24691. # func_stripname prefix suffix name
  24692. # strip PREFIX and SUFFIX off of NAME.
  24693. # PREFIX and SUFFIX must not contain globbing or regex special
  24694. # characters, hashes, percent signs, but SUFFIX may contain a leading
  24695. # dot (in which case that matches only a dot).
  24696. func_stripname ()
  24697. {
  24698. # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
  24699. # positional parameters, so assign one to ordinary parameter first.
  24700. func_stripname_result=${3}
  24701. func_stripname_result=${func_stripname_result#"${1}"}
  24702. func_stripname_result=${func_stripname_result%"${2}"}
  24703. }
  24704. # func_opt_split
  24705. func_opt_split ()
  24706. {
  24707. func_opt_split_opt=${1%%=*}
  24708. func_opt_split_arg=${1#*=}
  24709. }
  24710. # func_lo2o object
  24711. func_lo2o ()
  24712. {
  24713. case ${1} in
  24714. *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
  24715. *) func_lo2o_result=${1} ;;
  24716. esac
  24717. }
  24718. # func_xform libobj-or-source
  24719. func_xform ()
  24720. {
  24721. func_xform_result=${1%.*}.lo
  24722. }
  24723. # func_arith arithmetic-term...
  24724. func_arith ()
  24725. {
  24726. func_arith_result=$(( $* ))
  24727. }
  24728. # func_len string
  24729. # STRING may not start with a hyphen.
  24730. func_len ()
  24731. {
  24732. func_len_result=${#1}
  24733. }
  24734. _LT_EOF
  24735. ;;
  24736. *) # Bourne compatible functions.
  24737. cat << \_LT_EOF >> "$cfgfile"
  24738. # func_dirname file append nondir_replacement
  24739. # Compute the dirname of FILE. If nonempty, add APPEND to the result,
  24740. # otherwise set result to NONDIR_REPLACEMENT.
  24741. func_dirname ()
  24742. {
  24743. # Extract subdirectory from the argument.
  24744. func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
  24745. if test "X$func_dirname_result" = "X${1}"; then
  24746. func_dirname_result="${3}"
  24747. else
  24748. func_dirname_result="$func_dirname_result${2}"
  24749. fi
  24750. }
  24751. # func_basename file
  24752. func_basename ()
  24753. {
  24754. func_basename_result=`$ECHO "${1}" | $SED "$basename"`
  24755. }
  24756. # func_stripname prefix suffix name
  24757. # strip PREFIX and SUFFIX off of NAME.
  24758. # PREFIX and SUFFIX must not contain globbing or regex special
  24759. # characters, hashes, percent signs, but SUFFIX may contain a leading
  24760. # dot (in which case that matches only a dot).
  24761. # func_strip_suffix prefix name
  24762. func_stripname ()
  24763. {
  24764. case ${2} in
  24765. .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
  24766. *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
  24767. esac
  24768. }
  24769. # sed scripts:
  24770. my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
  24771. my_sed_long_arg='1s/^-[^=]*=//'
  24772. # func_opt_split
  24773. func_opt_split ()
  24774. {
  24775. func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
  24776. func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
  24777. }
  24778. # func_lo2o object
  24779. func_lo2o ()
  24780. {
  24781. func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
  24782. }
  24783. # func_xform libobj-or-source
  24784. func_xform ()
  24785. {
  24786. func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
  24787. }
  24788. # func_arith arithmetic-term...
  24789. func_arith ()
  24790. {
  24791. func_arith_result=`expr "$@"`
  24792. }
  24793. # func_len string
  24794. # STRING may not start with a hyphen.
  24795. func_len ()
  24796. {
  24797. func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
  24798. }
  24799. _LT_EOF
  24800. esac
  24801. case $lt_shell_append in
  24802. yes)
  24803. cat << \_LT_EOF >> "$cfgfile"
  24804. # func_append var value
  24805. # Append VALUE to the end of shell variable VAR.
  24806. func_append ()
  24807. {
  24808. eval "$1+=\$2"
  24809. }
  24810. _LT_EOF
  24811. ;;
  24812. *)
  24813. cat << \_LT_EOF >> "$cfgfile"
  24814. # func_append var value
  24815. # Append VALUE to the end of shell variable VAR.
  24816. func_append ()
  24817. {
  24818. eval "$1=\$$1\$2"
  24819. }
  24820. _LT_EOF
  24821. ;;
  24822. esac
  24823. sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
  24824. || (rm -f "$cfgfile"; exit 1)
  24825. mv -f "$cfgfile" "$ofile" ||
  24826. (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  24827. chmod +x "$ofile"
  24828. cat <<_LT_EOF >> "$ofile"
  24829. # ### BEGIN LIBTOOL TAG CONFIG: CXX
  24830. # The linker used to build libraries.
  24831. LD=$lt_LD_CXX
  24832. # How to create reloadable object files.
  24833. reload_flag=$lt_reload_flag_CXX
  24834. reload_cmds=$lt_reload_cmds_CXX
  24835. # Commands used to build an old-style archive.
  24836. old_archive_cmds=$lt_old_archive_cmds_CXX
  24837. # A language specific compiler.
  24838. CC=$lt_compiler_CXX
  24839. # Is the compiler the GNU compiler?
  24840. with_gcc=$GCC_CXX
  24841. # Compiler flag to turn off builtin functions.
  24842. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
  24843. # How to pass a linker flag through the compiler.
  24844. wl=$lt_lt_prog_compiler_wl_CXX
  24845. # Additional compiler flags for building library objects.
  24846. pic_flag=$lt_lt_prog_compiler_pic_CXX
  24847. # Compiler flag to prevent dynamic linking.
  24848. link_static_flag=$lt_lt_prog_compiler_static_CXX
  24849. # Does compiler simultaneously support -c and -o options?
  24850. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
  24851. # Whether or not to add -lc for building shared libraries.
  24852. build_libtool_need_lc=$archive_cmds_need_lc_CXX
  24853. # Whether or not to disallow shared libs when runtime libs are static.
  24854. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
  24855. # Compiler flag to allow reflexive dlopens.
  24856. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
  24857. # Compiler flag to generate shared objects directly from archives.
  24858. whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
  24859. # Whether the compiler copes with passing no objects directly.
  24860. compiler_needs_object=$lt_compiler_needs_object_CXX
  24861. # Create an old-style archive from a shared archive.
  24862. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
  24863. # Create a temporary old-style archive to link instead of a shared archive.
  24864. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
  24865. # Commands used to build a shared archive.
  24866. archive_cmds=$lt_archive_cmds_CXX
  24867. archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
  24868. # Commands used to build a loadable module if different from building
  24869. # a shared archive.
  24870. module_cmds=$lt_module_cmds_CXX
  24871. module_expsym_cmds=$lt_module_expsym_cmds_CXX
  24872. # Whether we are building with GNU ld or not.
  24873. with_gnu_ld=$lt_with_gnu_ld_CXX
  24874. # Flag that allows shared libraries with undefined symbols to be built.
  24875. allow_undefined_flag=$lt_allow_undefined_flag_CXX
  24876. # Flag that enforces no undefined symbols.
  24877. no_undefined_flag=$lt_no_undefined_flag_CXX
  24878. # Flag to hardcode \$libdir into a binary during linking.
  24879. # This must work even if \$libdir does not exist
  24880. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
  24881. # If ld is used when linking, flag to hardcode \$libdir into a binary
  24882. # during linking. This must work even if \$libdir does not exist.
  24883. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
  24884. # Whether we need a single "-rpath" flag with a separated argument.
  24885. hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
  24886. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  24887. # DIR into the resulting binary.
  24888. hardcode_direct=$hardcode_direct_CXX
  24889. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  24890. # DIR into the resulting binary and the resulting library dependency is
  24891. # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
  24892. # library is relocated.
  24893. hardcode_direct_absolute=$hardcode_direct_absolute_CXX
  24894. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  24895. # into the resulting binary.
  24896. hardcode_minus_L=$hardcode_minus_L_CXX
  24897. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  24898. # into the resulting binary.
  24899. hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
  24900. # Set to "yes" if building a shared library automatically hardcodes DIR
  24901. # into the library and all subsequent libraries and executables linked
  24902. # against it.
  24903. hardcode_automatic=$hardcode_automatic_CXX
  24904. # Set to yes if linker adds runtime paths of dependent libraries
  24905. # to runtime path list.
  24906. inherit_rpath=$inherit_rpath_CXX
  24907. # Whether libtool must link a program against all its dependency libraries.
  24908. link_all_deplibs=$link_all_deplibs_CXX
  24909. # Fix the shell variable \$srcfile for the compiler.
  24910. fix_srcfile_path=$lt_fix_srcfile_path_CXX
  24911. # Set to "yes" if exported symbols are required.
  24912. always_export_symbols=$always_export_symbols_CXX
  24913. # The commands to list exported symbols.
  24914. export_symbols_cmds=$lt_export_symbols_cmds_CXX
  24915. # Symbols that should not be listed in the preloaded symbols.
  24916. exclude_expsyms=$lt_exclude_expsyms_CXX
  24917. # Symbols that must always be exported.
  24918. include_expsyms=$lt_include_expsyms_CXX
  24919. # Commands necessary for linking programs (against libraries) with templates.
  24920. prelink_cmds=$lt_prelink_cmds_CXX
  24921. # Specify filename containing input files.
  24922. file_list_spec=$lt_file_list_spec_CXX
  24923. # How to hardcode a shared library path into an executable.
  24924. hardcode_action=$hardcode_action_CXX
  24925. # The directories searched by this compiler when creating a shared library.
  24926. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
  24927. # Dependencies to place before and after the objects being linked to
  24928. # create a shared library.
  24929. predep_objects=$lt_predep_objects_CXX
  24930. postdep_objects=$lt_postdep_objects_CXX
  24931. predeps=$lt_predeps_CXX
  24932. postdeps=$lt_postdeps_CXX
  24933. # The library search path used internally by the compiler when linking
  24934. # a shared library.
  24935. compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
  24936. # ### END LIBTOOL TAG CONFIG: CXX
  24937. _LT_EOF
  24938. ;;
  24939. "mkcollections.pl":C) chmod 755 lib/mkcollections.pl ;;
  24940. "$ac_stdint_h":C)
  24941. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_stdint_h : $_ac_stdint_h" >&5
  24942. $as_echo "$as_me: creating $ac_stdint_h : $_ac_stdint_h" >&6;}
  24943. ac_stdint=$tmp/_stdint.h
  24944. echo "#ifndef" $_ac_stdint_h >$ac_stdint
  24945. echo "#define" $_ac_stdint_h "1" >>$ac_stdint
  24946. echo "#ifndef" _GENERATED_STDINT_H >>$ac_stdint
  24947. echo "#define" _GENERATED_STDINT_H '"'$PACKAGE $VERSION'"' >>$ac_stdint
  24948. echo "/* generated $ac_cv_stdint_message */" >>$ac_stdint
  24949. if test "_$ac_cv_header_stdint_t" != "_" ; then
  24950. echo "#define _STDINT_HAVE_STDINT_H" "1" >>$ac_stdint
  24951. echo "#include <stdint.h>" >>$ac_stdint
  24952. echo "#endif" >>$ac_stdint
  24953. echo "#endif" >>$ac_stdint
  24954. else
  24955. cat >>$ac_stdint <<STDINT_EOF
  24956. /* ................... shortcircuit part ........................... */
  24957. #if defined HAVE_STDINT_H || defined _STDINT_HAVE_STDINT_H
  24958. #include <stdint.h>
  24959. #else
  24960. #include <stddef.h>
  24961. /* .................... configured part ............................ */
  24962. STDINT_EOF
  24963. echo "/* whether we have a C99 compatible stdint header file */" >>$ac_stdint
  24964. if test "_$ac_cv_header_stdint_x" != "_" ; then
  24965. ac_header="$ac_cv_header_stdint_x"
  24966. echo "#define _STDINT_HEADER_INTPTR" '"'"$ac_header"'"' >>$ac_stdint
  24967. else
  24968. echo "/* #undef _STDINT_HEADER_INTPTR */" >>$ac_stdint
  24969. fi
  24970. echo "/* whether we have a C96 compatible inttypes header file */" >>$ac_stdint
  24971. if test "_$ac_cv_header_stdint_o" != "_" ; then
  24972. ac_header="$ac_cv_header_stdint_o"
  24973. echo "#define _STDINT_HEADER_UINT32" '"'"$ac_header"'"' >>$ac_stdint
  24974. else
  24975. echo "/* #undef _STDINT_HEADER_UINT32 */" >>$ac_stdint
  24976. fi
  24977. echo "/* whether we have a BSD compatible inet types header */" >>$ac_stdint
  24978. if test "_$ac_cv_header_stdint_u" != "_" ; then
  24979. ac_header="$ac_cv_header_stdint_u"
  24980. echo "#define _STDINT_HEADER_U_INT32" '"'"$ac_header"'"' >>$ac_stdint
  24981. else
  24982. echo "/* #undef _STDINT_HEADER_U_INT32 */" >>$ac_stdint
  24983. fi
  24984. echo "" >>$ac_stdint
  24985. if test "_$ac_header" != "_" ; then if test "$ac_header" != "stddef.h" ; then
  24986. echo "#include <$ac_header>" >>$ac_stdint
  24987. echo "" >>$ac_stdint
  24988. fi fi
  24989. echo "/* which 64bit typedef has been found */" >>$ac_stdint
  24990. if test "$ac_cv_type_uint64_t" = "yes" ; then
  24991. echo "#define _STDINT_HAVE_UINT64_T" "1" >>$ac_stdint
  24992. else
  24993. echo "/* #undef _STDINT_HAVE_UINT64_T */" >>$ac_stdint
  24994. fi
  24995. if test "$ac_cv_type_u_int64_t" = "yes" ; then
  24996. echo "#define _STDINT_HAVE_U_INT64_T" "1" >>$ac_stdint
  24997. else
  24998. echo "/* #undef _STDINT_HAVE_U_INT64_T */" >>$ac_stdint
  24999. fi
  25000. echo "" >>$ac_stdint
  25001. echo "/* which type model has been detected */" >>$ac_stdint
  25002. if test "_$ac_cv_char_data_model" != "_" ; then
  25003. echo "#define _STDINT_CHAR_MODEL" "$ac_cv_char_data_model" >>$ac_stdint
  25004. echo "#define _STDINT_LONG_MODEL" "$ac_cv_long_data_model" >>$ac_stdint
  25005. else
  25006. echo "/* #undef _STDINT_CHAR_MODEL // skipped */" >>$ac_stdint
  25007. echo "/* #undef _STDINT_LONG_MODEL // skipped */" >>$ac_stdint
  25008. fi
  25009. echo "" >>$ac_stdint
  25010. echo "/* whether int_least types were detected */" >>$ac_stdint
  25011. if test "$ac_cv_type_int_least32_t" = "yes"; then
  25012. echo "#define _STDINT_HAVE_INT_LEAST32_T" "1" >>$ac_stdint
  25013. else
  25014. echo "/* #undef _STDINT_HAVE_INT_LEAST32_T */" >>$ac_stdint
  25015. fi
  25016. echo "/* whether int_fast types were detected */" >>$ac_stdint
  25017. if test "$ac_cv_type_int_fast32_t" = "yes"; then
  25018. echo "#define _STDINT_HAVE_INT_FAST32_T" "1" >>$ac_stdint
  25019. else
  25020. echo "/* #undef _STDINT_HAVE_INT_FAST32_T */" >>$ac_stdint
  25021. fi
  25022. echo "/* whether intmax_t type was detected */" >>$ac_stdint
  25023. if test "$ac_cv_type_intmax_t" = "yes"; then
  25024. echo "#define _STDINT_HAVE_INTMAX_T" "1" >>$ac_stdint
  25025. else
  25026. echo "/* #undef _STDINT_HAVE_INTMAX_T */" >>$ac_stdint
  25027. fi
  25028. echo "" >>$ac_stdint
  25029. cat >>$ac_stdint <<STDINT_EOF
  25030. /* .................... detections part ............................ */
  25031. /* whether we need to define bitspecific types from compiler base types */
  25032. #ifndef _STDINT_HEADER_INTPTR
  25033. #ifndef _STDINT_HEADER_UINT32
  25034. #ifndef _STDINT_HEADER_U_INT32
  25035. #define _STDINT_NEED_INT_MODEL_T
  25036. #else
  25037. #define _STDINT_HAVE_U_INT_TYPES
  25038. #endif
  25039. #endif
  25040. #endif
  25041. #ifdef _STDINT_HAVE_U_INT_TYPES
  25042. #undef _STDINT_NEED_INT_MODEL_T
  25043. #endif
  25044. #ifdef _STDINT_CHAR_MODEL
  25045. #if _STDINT_CHAR_MODEL+0 == 122 || _STDINT_CHAR_MODEL+0 == 124
  25046. #ifndef _STDINT_BYTE_MODEL
  25047. #define _STDINT_BYTE_MODEL 12
  25048. #endif
  25049. #endif
  25050. #endif
  25051. #ifndef _STDINT_HAVE_INT_LEAST32_T
  25052. #define _STDINT_NEED_INT_LEAST_T
  25053. #endif
  25054. #ifndef _STDINT_HAVE_INT_FAST32_T
  25055. #define _STDINT_NEED_INT_FAST_T
  25056. #endif
  25057. #ifndef _STDINT_HEADER_INTPTR
  25058. #define _STDINT_NEED_INTPTR_T
  25059. #ifndef _STDINT_HAVE_INTMAX_T
  25060. #define _STDINT_NEED_INTMAX_T
  25061. #endif
  25062. #endif
  25063. /* .................... definition part ............................ */
  25064. /* some system headers have good uint64_t */
  25065. #ifndef _HAVE_UINT64_T
  25066. #if defined _STDINT_HAVE_UINT64_T || defined HAVE_UINT64_T
  25067. #define _HAVE_UINT64_T
  25068. #elif defined _STDINT_HAVE_U_INT64_T || defined HAVE_U_INT64_T
  25069. #define _HAVE_UINT64_T
  25070. typedef u_int64_t uint64_t;
  25071. #endif
  25072. #endif
  25073. #ifndef _HAVE_UINT64_T
  25074. /* .. here are some common heuristics using compiler runtime specifics */
  25075. #if defined __STDC_VERSION__ && defined __STDC_VERSION__ >= 199901L
  25076. #define _HAVE_UINT64_T
  25077. #define _HAVE_LONGLONG_UINT64_T
  25078. typedef long long int64_t;
  25079. typedef unsigned long long uint64_t;
  25080. #elif !defined __STRICT_ANSI__
  25081. #if defined _MSC_VER || defined __WATCOMC__ || defined __BORLANDC__
  25082. #define _HAVE_UINT64_T
  25083. typedef __int64 int64_t;
  25084. typedef unsigned __int64 uint64_t;
  25085. #elif defined __GNUC__ || defined __MWERKS__ || defined __ELF__
  25086. /* note: all ELF-systems seem to have loff-support which needs 64-bit */
  25087. #if !defined _NO_LONGLONG
  25088. #define _HAVE_UINT64_T
  25089. #define _HAVE_LONGLONG_UINT64_T
  25090. typedef long long int64_t;
  25091. typedef unsigned long long uint64_t;
  25092. #endif
  25093. #elif defined __alpha || (defined __mips && defined _ABIN32)
  25094. #if !defined _NO_LONGLONG
  25095. typedef long int64_t;
  25096. typedef unsigned long uint64_t;
  25097. #endif
  25098. /* compiler/cpu type to define int64_t */
  25099. #endif
  25100. #endif
  25101. #endif
  25102. #if defined _STDINT_HAVE_U_INT_TYPES
  25103. /* int8_t int16_t int32_t defined by inet code, redeclare the u_intXX types */
  25104. typedef u_int8_t uint8_t;
  25105. typedef u_int16_t uint16_t;
  25106. typedef u_int32_t uint32_t;
  25107. /* glibc compatibility */
  25108. #ifndef __int8_t_defined
  25109. #define __int8_t_defined
  25110. #endif
  25111. #endif
  25112. #ifdef _STDINT_NEED_INT_MODEL_T
  25113. /* we must guess all the basic types. Apart from byte-adressable system, */
  25114. /* there a few 32-bit-only dsp-systems that we guard with BYTE_MODEL 8-} */
  25115. /* (btw, those nibble-addressable systems are way off, or so we assume) */
  25116. #if defined _STDINT_BYTE_MODEL
  25117. #if _STDINT_LONG_MODEL+0 == 242
  25118. /* 2:4:2 = IP16 = a normal 16-bit system */
  25119. typedef unsigned char uint8_t;
  25120. typedef unsigned short uint16_t;
  25121. typedef unsigned long uint32_t;
  25122. #ifndef __int8_t_defined
  25123. #define __int8_t_defined
  25124. typedef char int8_t;
  25125. typedef short int16_t;
  25126. typedef long int32_t;
  25127. #endif
  25128. #elif _STDINT_LONG_MODEL+0 == 244 || _STDINT_LONG_MODEL == 444
  25129. /* 2:4:4 = LP32 = a 32-bit system derived from a 16-bit */
  25130. /* 4:4:4 = ILP32 = a normal 32-bit system */
  25131. typedef unsigned char uint8_t;
  25132. typedef unsigned short uint16_t;
  25133. typedef unsigned int uint32_t;
  25134. #ifndef __int8_t_defined
  25135. #define __int8_t_defined
  25136. typedef char int8_t;
  25137. typedef short int16_t;
  25138. typedef int int32_t;
  25139. #endif
  25140. #elif _STDINT_LONG_MODEL+0 == 484 || _STDINT_LONG_MODEL+0 == 488
  25141. /* 4:8:4 = IP32 = a 32-bit system prepared for 64-bit */
  25142. /* 4:8:8 = LP64 = a normal 64-bit system */
  25143. typedef unsigned char uint8_t;
  25144. typedef unsigned short uint16_t;
  25145. typedef unsigned int uint32_t;
  25146. #ifndef __int8_t_defined
  25147. #define __int8_t_defined
  25148. typedef char int8_t;
  25149. typedef short int16_t;
  25150. typedef int int32_t;
  25151. #endif
  25152. /* this system has a "long" of 64bit */
  25153. #ifndef _HAVE_UINT64_T
  25154. #define _HAVE_UINT64_T
  25155. typedef unsigned long uint64_t;
  25156. typedef long int64_t;
  25157. #endif
  25158. #elif _STDINT_LONG_MODEL+0 == 448
  25159. /* LLP64 a 64-bit system derived from a 32-bit system */
  25160. typedef unsigned char uint8_t;
  25161. typedef unsigned short uint16_t;
  25162. typedef unsigned int uint32_t;
  25163. #ifndef __int8_t_defined
  25164. #define __int8_t_defined
  25165. typedef char int8_t;
  25166. typedef short int16_t;
  25167. typedef int int32_t;
  25168. #endif
  25169. /* assuming the system has a "long long" */
  25170. #ifndef _HAVE_UINT64_T
  25171. #define _HAVE_UINT64_T
  25172. #define _HAVE_LONGLONG_UINT64_T
  25173. typedef unsigned long long uint64_t;
  25174. typedef long long int64_t;
  25175. #endif
  25176. #else
  25177. #define _STDINT_NO_INT32_T
  25178. #endif
  25179. #else
  25180. #define _STDINT_NO_INT8_T
  25181. #define _STDINT_NO_INT32_T
  25182. #endif
  25183. #endif
  25184. /*
  25185. * quote from SunOS-5.8 sys/inttypes.h:
  25186. * Use at your own risk. As of February 1996, the committee is squarely
  25187. * behind the fixed sized types; the "least" and "fast" types are still being
  25188. * discussed. The probability that the "fast" types may be removed before
  25189. * the standard is finalized is high enough that they are not currently
  25190. * implemented.
  25191. */
  25192. #if defined _STDINT_NEED_INT_LEAST_T
  25193. typedef int8_t int_least8_t;
  25194. typedef int16_t int_least16_t;
  25195. typedef int32_t int_least32_t;
  25196. #ifdef _HAVE_UINT64_T
  25197. typedef int64_t int_least64_t;
  25198. #endif
  25199. typedef uint8_t uint_least8_t;
  25200. typedef uint16_t uint_least16_t;
  25201. typedef uint32_t uint_least32_t;
  25202. #ifdef _HAVE_UINT64_T
  25203. typedef uint64_t uint_least64_t;
  25204. #endif
  25205. /* least types */
  25206. #endif
  25207. #if defined _STDINT_NEED_INT_FAST_T
  25208. typedef int8_t int_fast8_t;
  25209. typedef int int_fast16_t;
  25210. typedef int32_t int_fast32_t;
  25211. #ifdef _HAVE_UINT64_T
  25212. typedef int64_t int_fast64_t;
  25213. #endif
  25214. typedef uint8_t uint_fast8_t;
  25215. typedef unsigned uint_fast16_t;
  25216. typedef uint32_t uint_fast32_t;
  25217. #ifdef _HAVE_UINT64_T
  25218. typedef uint64_t uint_fast64_t;
  25219. #endif
  25220. /* fast types */
  25221. #endif
  25222. #ifdef _STDINT_NEED_INTMAX_T
  25223. #ifdef _HAVE_UINT64_T
  25224. typedef int64_t intmax_t;
  25225. typedef uint64_t uintmax_t;
  25226. #else
  25227. typedef long intmax_t;
  25228. typedef unsigned long uintmax_t;
  25229. #endif
  25230. #endif
  25231. #ifdef _STDINT_NEED_INTPTR_T
  25232. #ifndef __intptr_t_defined
  25233. #define __intptr_t_defined
  25234. /* we encourage using "long" to store pointer values, never use "int" ! */
  25235. #if _STDINT_LONG_MODEL+0 == 242 || _STDINT_LONG_MODEL+0 == 484
  25236. typedef unsigned int uintptr_t;
  25237. typedef int intptr_t;
  25238. #elif _STDINT_LONG_MODEL+0 == 244 || _STDINT_LONG_MODEL+0 == 444
  25239. typedef unsigned long uintptr_t;
  25240. typedef long intptr_t;
  25241. #elif _STDINT_LONG_MODEL+0 == 448 && defined _HAVE_UINT64_T
  25242. typedef uint64_t uintptr_t;
  25243. typedef int64_t intptr_t;
  25244. #else /* matches typical system types ILP32 and LP64 - but not IP16 or LLP64 */
  25245. typedef unsigned long uintptr_t;
  25246. typedef long intptr_t;
  25247. #endif
  25248. #endif
  25249. #endif
  25250. /* The ISO C99 standard specifies that in C++ implementations these
  25251. should only be defined if explicitly requested. */
  25252. #if !defined __cplusplus || defined __STDC_CONSTANT_MACROS
  25253. #ifndef UINT32_C
  25254. /* Signed. */
  25255. # define INT8_C(c) c
  25256. # define INT16_C(c) c
  25257. # define INT32_C(c) c
  25258. # ifdef _HAVE_LONGLONG_UINT64_T
  25259. # define INT64_C(c) c ## L
  25260. # else
  25261. # define INT64_C(c) c ## LL
  25262. # endif
  25263. /* Unsigned. */
  25264. # define UINT8_C(c) c ## U
  25265. # define UINT16_C(c) c ## U
  25266. # define UINT32_C(c) c ## U
  25267. # ifdef _HAVE_LONGLONG_UINT64_T
  25268. # define UINT64_C(c) c ## UL
  25269. # else
  25270. # define UINT64_C(c) c ## ULL
  25271. # endif
  25272. /* Maximal type. */
  25273. # ifdef _HAVE_LONGLONG_UINT64_T
  25274. # define INTMAX_C(c) c ## L
  25275. # define UINTMAX_C(c) c ## UL
  25276. # else
  25277. # define INTMAX_C(c) c ## LL
  25278. # define UINTMAX_C(c) c ## ULL
  25279. # endif
  25280. /* literalnumbers */
  25281. #endif
  25282. #endif
  25283. /* These limits are merily those of a two complement byte-oriented system */
  25284. /* Minimum of signed integral types. */
  25285. #ifndef INT8_MIN
  25286. # define INT8_MIN (-128)
  25287. #endif
  25288. #ifndef INT16_MIN
  25289. # define INT16_MIN (-32767-1)
  25290. #endif
  25291. #ifndef INT32_MIN
  25292. # define INT32_MIN (-2147483647-1)
  25293. #endif
  25294. #ifndef INT64_MIN
  25295. # define INT64_MIN (-__INT64_C(9223372036854775807)-1)
  25296. #endif
  25297. /* Maximum of signed integral types. */
  25298. #ifndef INT8_MAX
  25299. # define INT8_MAX (127)
  25300. #endif
  25301. #ifndef INT16_MAX
  25302. # define INT16_MAX (32767)
  25303. #endif
  25304. #ifndef INT32_MAX
  25305. # define INT32_MAX (2147483647)
  25306. #endif
  25307. #ifndef INT64_MAX
  25308. # define INT64_MAX (__INT64_C(9223372036854775807))
  25309. #endif
  25310. /* Maximum of unsigned integral types. */
  25311. #ifndef UINT8_MAX
  25312. # define UINT8_MAX (255)
  25313. #endif
  25314. #ifndef UINT16_MAX
  25315. # define UINT16_MAX (65535)
  25316. #endif
  25317. #ifndef UINT32_MAX
  25318. # define UINT32_MAX (4294967295U)
  25319. #endif
  25320. #ifndef UINT64_MAX
  25321. # define UINT64_MAX (__UINT64_C(18446744073709551615))
  25322. #endif
  25323. /* Minimum of signed integral types having a minimum size. */
  25324. # define INT_LEAST8_MIN INT8_MIN
  25325. # define INT_LEAST16_MIN INT16_MIN
  25326. # define INT_LEAST32_MIN INT32_MIN
  25327. # define INT_LEAST64_MIN INT64_MIN
  25328. /* Maximum of signed integral types having a minimum size. */
  25329. # define INT_LEAST8_MAX INT8_MAX
  25330. # define INT_LEAST16_MAX INT16_MAX
  25331. # define INT_LEAST32_MAX INT32_MAX
  25332. # define INT_LEAST64_MAX INT64_MAX
  25333. /* Maximum of unsigned integral types having a minimum size. */
  25334. # define UINT_LEAST8_MAX UINT8_MAX
  25335. # define UINT_LEAST16_MAX UINT16_MAX
  25336. # define UINT_LEAST32_MAX UINT32_MAX
  25337. # define UINT_LEAST64_MAX UINT64_MAX
  25338. /* shortcircuit*/
  25339. #endif
  25340. /* once */
  25341. #endif
  25342. #endif
  25343. STDINT_EOF
  25344. fi
  25345. if cmp -s $ac_stdint_h $ac_stdint 2>/dev/null; then
  25346. { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_stdint_h is unchanged" >&5
  25347. $as_echo "$as_me: $ac_stdint_h is unchanged" >&6;}
  25348. else
  25349. ac_dir=`$as_dirname -- "$ac_stdint_h" ||
  25350. $as_expr X"$ac_stdint_h" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  25351. X"$ac_stdint_h" : 'X\(//\)[^/]' \| \
  25352. X"$ac_stdint_h" : 'X\(//\)$' \| \
  25353. X"$ac_stdint_h" : 'X\(/\)' \| . 2>/dev/null ||
  25354. $as_echo X"$ac_stdint_h" |
  25355. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  25356. s//\1/
  25357. q
  25358. }
  25359. /^X\(\/\/\)[^/].*/{
  25360. s//\1/
  25361. q
  25362. }
  25363. /^X\(\/\/\)$/{
  25364. s//\1/
  25365. q
  25366. }
  25367. /^X\(\/\).*/{
  25368. s//\1/
  25369. q
  25370. }
  25371. s/.*/./; q'`
  25372. as_dir="$ac_dir"; as_fn_mkdir_p
  25373. rm -f $ac_stdint_h
  25374. mv $ac_stdint $ac_stdint_h
  25375. fi
  25376. ;;
  25377. "gappletviewer":C) chmod 755 tools/gappletviewer ;;
  25378. "gjarsigner":C) chmod 755 tools/gjarsigner ;;
  25379. "gkeytool":C) chmod 755 tools/gkeytool ;;
  25380. "gjar":C) chmod 755 tools/gjar ;;
  25381. "gnative2ascii":C) chmod 755 tools/gnative2ascii ;;
  25382. "gserialver":C) chmod 755 tools/gserialver ;;
  25383. "grmiregistry":C) chmod 755 tools/grmiregistry ;;
  25384. "gtnameserv":C) chmod 755 tools/gtnameserv ;;
  25385. "gorbd":C) chmod 755 tools/gorbd ;;
  25386. "grmid":C) chmod 755 tools/grmid ;;
  25387. "grmic":C) chmod 755 tools/grmic ;;
  25388. "gjavah":C) chmod 755 tools/gjavah ;;
  25389. "gjdoc":C) chmod 755 tools/gjdoc ;;
  25390. "gen-classlist":C) chmod 755 lib/gen-classlist.sh ;;
  25391. "copy-vmresources":C) chmod 755 lib/copy-vmresources.sh ;;
  25392. esac
  25393. done # for ac_tag
  25394. as_fn_exit 0
  25395. _ACEOF
  25396. ac_clean_files=$ac_clean_files_save
  25397. test $ac_write_fail = 0 ||
  25398. as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
  25399. # configure is writing to config.log, and then calls config.status.
  25400. # config.status does its own redirection, appending to config.log.
  25401. # Unfortunately, on DOS this fails, as config.log is still kept open
  25402. # by configure, so config.status won't be able to write to it; its
  25403. # output is simply discarded. So we exec the FD to /dev/null,
  25404. # effectively closing config.log, so it can be properly (re)opened and
  25405. # appended to by config.status. When coming back to configure, we
  25406. # need to make the FD available again.
  25407. if test "$no_create" != yes; then
  25408. ac_cs_success=:
  25409. ac_config_status_args=
  25410. test "$silent" = yes &&
  25411. ac_config_status_args="$ac_config_status_args --quiet"
  25412. exec 5>/dev/null
  25413. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  25414. exec 5>>config.log
  25415. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  25416. # would make configure fail if this is the last instruction.
  25417. $ac_cs_success || as_fn_exit $?
  25418. fi
  25419. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  25420. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  25421. $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  25422. fi
  25423. # Create standard.omit based on decisions we just made.
  25424. cat ${srcdir}/lib/standard.omit.in > lib/standard.omit
  25425. if test x$use_escher != xtrue; then
  25426. echo gnu/java/awt/peer/x/.*java$ >> lib/standard.omit
  25427. fi
  25428. if test "x${COMPILE_PLUGIN}" = "xyes" ; then
  25429. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You have enabled the browser plugin. Please note that this is no longer maintained as part of GNU Classpath; development has moved to the IcedTea project." >&5
  25430. $as_echo "$as_me: WARNING: You have enabled the browser plugin. Please note that this is no longer maintained as part of GNU Classpath; development has moved to the IcedTea project." >&2;}
  25431. fi